From 632d0a4cabc70032f9b6d78c563eb36b82789f09 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 4 Jun 2013 00:50:21 +0200 Subject: [PATCH] Added missing language variables --- wcfsetup/install/files/lib/acp/form/TagAddForm.class.php | 6 ++++-- wcfsetup/install/lang/de.xml | 4 ++++ wcfsetup/install/lang/en.xml | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php index b5654de08a..98a2cc3cec 100644 --- a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php @@ -105,8 +105,10 @@ class TagAddForm extends AbstractForm { } // validate synonyms - foreach ($this->synonyms as $synonym) { - if (StringUtil::toLowerCase($synonym) == StringUtil::toLowerCase($this->name)) throw new UserInputException('synonyms', 'duplicate'); + foreach ($this->synonyms as $key => $synonym) { + if (StringUtil::toLowerCase($synonym) == StringUtil::toLowerCase($this->name)) { + unset($this->synonyms[$key]); + } } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 0a63322e5f..f3249ae929 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -392,6 +392,7 @@ + @@ -1041,6 +1042,8 @@ + + @@ -1057,6 +1060,7 @@ + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index ea947f1378..14ba9b48a2 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -391,6 +391,7 @@ Examples for medium ID detection: + @@ -1040,6 +1041,8 @@ Examples for medium ID detection: + + @@ -1056,6 +1059,7 @@ Examples for medium ID detection: + -- 2.20.1