Browse Source

Fix gender icon title.

mscherer 5 years ago
parent
commit
40eaedf8a5

+ 6 - 6
src/Locale/deu/tools.po

@@ -736,11 +736,11 @@ msgstr ""
 msgid "List {0}"
 msgstr ""
 
-msgid "genderInter"
-msgstr ""
+msgid "Inter"
+msgstr "Inter"
 
-#~ msgid "valErrProvideCurrentPwd"
-#~ msgstr "Bitte das bisherige Passwort eingeben"
+msgid "valErrProvideCurrentPwd"
+msgstr "Bitte das bisherige Passwort eingeben"
 
-#~ msgid "valErrCurrentPwdIncorrect"
-#~ msgstr "Das bisherige Passwort ist nicht korrekt"
+msgid "valErrCurrentPwdIncorrect"
+msgstr "Das bisherige Passwort ist nicht korrekt"

+ 3 - 0
src/Locale/eng/tools.po

@@ -689,3 +689,6 @@ msgstr "Please provide the current password."
 
 msgid "valErrCurrentPwdIncorrect"
 msgstr "The current password is not correct"
+
+msgid "Inter"
+msgstr "Inter"

+ 2 - 2
src/Locale/tools.pot

@@ -184,5 +184,5 @@ msgstr ""
 msgid "publishedNotYet"
 msgstr ""
 
-msgid "genderInter"
-msgstr ""
+msgid "Inter"
+msgstr "Inter"

+ 1 - 1
src/View/Helper/FormatHelper.php

@@ -185,7 +185,7 @@ class FormatHelper extends Helper {
 		} elseif ($value == static::GENDER_MALE) {
 			$icon = $this->icon('male', $options, $attributes);
 		} else {
-			$icon = $this->icon('genderless', $options, $attributes + ['title' => __d('tools', 'genderInter')]);
+			$icon = $this->icon('genderless', $options, $attributes + ['title' => __d('tools', 'Inter')]);
 		}
 		return $icon;
 	}

+ 1 - 1
tests/TestCase/View/Helper/FormatHelperTest.php

@@ -204,7 +204,7 @@ class FormatHelperTest extends TestCase {
 	public function testGenderIcon() {
 		$result = $this->Format->genderIcon(0);
 
-		$expected = '<i class="icon icon-genderless fa fa-genderless" title="Unknown" data-placement="bottom" data-toggle="tooltip"></i>';
+		$expected = '<i class="icon icon-genderless fa fa-genderless" title="Inter" data-placement="bottom" data-toggle="tooltip"></i>';
 		$this->assertEquals($expected, $result);
 
 		$result = $this->Format->genderIcon(1);

+ 1 - 1
tests/bootstrap.php

@@ -24,7 +24,7 @@ define('CAKE', CORE_PATH . APP_DIR . DS);
 define('WWW_ROOT', ROOT . DS . 'webroot' . DS);
 define('CONFIG', __DIR__ . DS . 'config' . DS);
 
-ini_set('intl.default_locale', 'de-DE');
+ini_set('intl.default_locale', 'de_DE');
 
 require ROOT . DS . 'vendor/autoload.php';
 require CORE_PATH . 'config/bootstrap.php';