diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-10-18 23:34:18 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-10-30 22:50:22 +0100 |
commit | b443b53919f50bd0176e7b67dfd1efc28276a770 (patch) | |
tree | df4d089d9d431f5223a71e6b40f9d87361705929 /includes/controller | |
parent | 90e1a949623ead173c0952f802d7b5c5487251b1 (diff) |
Translation: added pluralization support
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/user_angeltypes_controller.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/includes/controller/user_angeltypes_controller.php b/includes/controller/user_angeltypes_controller.php index aa614cf3..734bd1e9 100644 --- a/includes/controller/user_angeltypes_controller.php +++ b/includes/controller/user_angeltypes_controller.php @@ -23,10 +23,15 @@ function user_angeltypes_unconfirmed_hint() . '</a>'; } - return sprintf(ngettext('There is %d unconfirmed angeltype.', 'There are %d unconfirmed angeltypes.', - count($unconfirmed_user_angeltypes)), - count($unconfirmed_user_angeltypes)) . ' ' . __('Angel types which need approvals:') . ' ' . join(', ', - $unconfirmed_links); + $count = count($unconfirmed_user_angeltypes); + return _e( + 'There is %d unconfirmed angeltype.', + 'There are %d unconfirmed angeltypes.', + $count, + [$count] + ) + . ' ' . __('Angel types which need approvals:') + . ' ' . join(', ', $unconfirmed_links); } /** |