diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-29 17:28:02 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-29 17:28:02 +0000 |
commit | da3c19b36c5b45cd2a395e5930fce27f04460918 (patch) | |
tree | 91a0cac67837b7ebe53956e3ae841715e8a8f8f8 /includes | |
parent | d8b17c9f19b1e43c629dab48c15284a2adab8a37 (diff) | |
download | brdo-da3c19b36c5b45cd2a395e5930fce27f04460918.tar.gz brdo-da3c19b36c5b45cd2a395e5930fce27f04460918.tar.bz2 |
#170334 by JirkaRybka: allow @count to be used in singular format_plural() values too
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 1a2d79c30..3619c325b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -955,10 +955,10 @@ function format_xml_elements($array) { * A translated string. */ function format_plural($count, $singular, $plural, $args = array(), $langcode = NULL) { + $args['@count'] = $count; if ($count == 1) { - return t($singular, $args); + return t($singular, $args, $langcode); } - $args['@count'] = $count; // get the plural index through the gettext formula $index = (function_exists('locale_get_plural')) ? locale_get_plural($count, $langcode) : -1; |