summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 854f301)
raw | patch | inline | side by side (parent: 854f301)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Feb 2010 10:24:58 +0000 (10:24 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Feb 2010 10:24:58 +0000 (10:24 +0000) |
- Add a check that disallows dashes at the beginning of a
script classname.
- Add localisation for new string
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15609 594d385d-05f5-0310-b6e9-bd551577e9d8
script classname.
- Add localisation for new string
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15609 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/trunk/gosa-plugins/fai/admin/fai/class_askClassName.inc b/trunk/gosa-plugins/fai/admin/fai/class_askClassName.inc
index 3d3beb2ebcf9aa07b77f130998eb6db96a117042..197f9726db684fc9b1c0c11ee2cd6db636500738 100644 (file)
$message[] = msgPool::invalid(_("Name"),preg_replace("/ /","_",$this->ClassName),"/[^_]/");
}
+ if($this->objectClass == "FAIscript" && preg_match("/^-/", $this->ClassName)) {
+ $message[] = sprintf(_("The specified classname '%s' is invalid. Scripts must not start with a dash."), $this->ClassName);
+
+ }
+
if($this->ClassName == ""){
$message[]= msgPool::required(_("Name"));
}
diff --git a/trunk/gosa-plugins/fai/locale/de/LC_MESSAGES/messages.po b/trunk/gosa-plugins/fai/locale/de/LC_MESSAGES/messages.po
index a6a8c1735091281c4ad94010e05836a13a5afcd5..b46a1fcfc04ec8a5a47156110b44d0c945731f94 100644 (file)
msgstr ""
"Project-Id-Version: messages\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-10-16 17:38+0200\n"
+"POT-Creation-Date: 2010-02-10 15:41+0100\n"
"PO-Revision-Date: 2008-12-04 11:27+0100\n"
"Last-Translator: Cajus Pollmeier <pollmeier@gonicus.de>\n"
"Language-Team: deutsch <de@li.org>\n"
#: admin/fai/class_faiPartitionTableEntry.inc:474
#: admin/fai/class_faiTemplate.inc:421 admin/fai/class_faiTemplate.inc:545
#: admin/fai/faiVariable.tpl:9 admin/fai/class_askClassName.inc:142
-#: admin/fai/class_askClassName.inc:146 admin/fai/class_askClassName.inc:150
+#: admin/fai/class_askClassName.inc:151 admin/fai/class_askClassName.inc:155
#: admin/fai/class_faiManagement.inc:614 admin/fai/class_faiManagement.inc:620
#: admin/fai/class_faiScriptEntry.inc:137
#: admin/fai/class_faiScriptEntry.inc:142
msgid "Template bundle"
msgstr "Vorlagen-Gruppe"
-#: admin/fai/class_askClassName.inc:175
+#: admin/fai/class_askClassName.inc:146
+#, php-format
+msgid ""
+"The specified classname '%s' is invalid. Scripts must not start with a dash."
+msgstr ""
+"Der angegebene Klassen-Name ist ungültig. Skripte dürfen nicht mit einem Bindestrich beginnn."
+
+#: admin/fai/class_askClassName.inc:189
#, php-format
msgid "This FAI class name is already in use by the administrative unit '%s'."
msgstr ""
index e4286cf39e49455083c4120b6ae130275c4433cf..4a23d8c45b62c85472940cf34995e8b123589b01 100644 (file)
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-10-16 17:38+0200\n"
+"POT-Creation-Date: 2010-02-10 15:41+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: admin/fai/class_faiPartitionTableEntry.inc:474
#: admin/fai/class_faiTemplate.inc:421 admin/fai/class_faiTemplate.inc:545
#: admin/fai/faiVariable.tpl:9 admin/fai/class_askClassName.inc:142
-#: admin/fai/class_askClassName.inc:146 admin/fai/class_askClassName.inc:150
+#: admin/fai/class_askClassName.inc:151 admin/fai/class_askClassName.inc:155
#: admin/fai/class_faiManagement.inc:614 admin/fai/class_faiManagement.inc:620
#: admin/fai/class_faiScriptEntry.inc:137
#: admin/fai/class_faiScriptEntry.inc:142
msgid "Template bundle"
msgstr ""
-#: admin/fai/class_askClassName.inc:175
+#: admin/fai/class_askClassName.inc:146
+#, php-format
+msgid ""
+"The specified classname '%s' is invalid. Scripts must not start with a dash."
+msgstr ""
+
+#: admin/fai/class_askClassName.inc:189
#, php-format
msgid "This FAI class name is already in use by the administrative unit '%s'."
msgstr ""