Changeset 22266 for branches/version-2_12-multilang/data/include
- Timestamp:
- 2013/01/17 10:34:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/include/common.php
r22101 r22266 68 68 $translated_single = $single; 69 69 $translated_plural = $plural; 70 $options['lang_code'] = 'en ';70 $options['lang_code'] = 'en-US'; 71 71 } 72 72 … … 103 103 * @return integer index 104 104 */ 105 function get_plural_index($count, $lang_code = 'en ') {105 function get_plural_index($count, $lang_code = 'en-US') { 106 106 static $plural_indexes = array(); 107 107 … … 124 124 $plural_indexes[$lang_code][$count] = $plural; 125 125 // If there is no plural formula for English 126 } elseif ($lang_code == 'en ') {126 } elseif ($lang_code == 'en-US') { 127 127 $plural_indexes[$lang_code][$count] = (int) ($count != 1); 128 128 // Otherwise, return -1 (unknown).
Note: See TracChangeset
for help on using the changeset viewer.
