Skip to content

Commit

Permalink
Fix gender icon title.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 13, 2020
1 parent 946861a commit 40eaedf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/Locale/deu/tools.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 0 deletions src/Locale/eng/tools.po
Original file line number Diff line number Diff line change
Expand Up @@ -689,3 +689,6 @@ msgstr "Please provide the current password."

msgid "valErrCurrentPwdIncorrect"
msgstr "The current password is not correct"

msgid "Inter"
msgstr "Inter"
4 changes: 2 additions & 2 deletions src/Locale/tools.pot
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ msgstr ""
msgid "publishedNotYet"
msgstr ""

msgid "genderInter"
msgstr ""
msgid "Inter"
msgstr "Inter"
2 changes: 1 addition & 1 deletion src/View/Helper/FormatHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function genderIcon($value, array $options = [], array $attributes = [])
} 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;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/Helper/FormatHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function testThumbs() {
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);
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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';
Expand Down

0 comments on commit 40eaedf

Please sign in to comment.