HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
About PluralTranslate()
Could someone tell me how to localize the following strings? \applications\vanilla\views\discussions\helper_functions.php printf(PluralTranslate($Discussion->CountComments, '%s comment html', '%s comments html', '%s comment', '%s comments'), BigPlural($Discussion->CountComments, '%s comment')); my language pack:… -
Re: About PluralTranslate()
Here's the function: function PluralTranslate($Number, $Singular, $Plural, $SingularDefault = FALSE, $PluralDefault = FALSE) { if ($Number == 1) return T($Singular, $SingularDefault); else return T($Plural, $PluralDefault);} Meaning that your locale definitions should look like this: $Definition['%s comment html'] = '%s…
2 results