The local gettext-like system was enabled in my application, but my translation function looks like this:
t($category, $string, [$plural_string, $number, $vprintf_arguments])
My PoEdit keywords:
t:2 t:2,3
- t: 2 tells PoEdit to parse
$string , and it works, apparently - t: 2,3 should indicate PoEdit for parsing both
$string and $plural_string - but this is not: (
It only sees $string , so I do not handle multiple forms ... How can I fix this? I don't want to switch my function to a different argument format, because I like this one :(
This function also acts as a replacement for sprintf:
- if the third argument ($ plural_string) is an array, then the function will consider the values ββfrom the array as arguments for vsprintf
- if the 3rd argument is a string and $ number is supplied, the function will consider $ vprintf_arguments as vsprintf arguments (if provided), and $ plural_string as the plural form of $ string
In any case, PoEdit should not interfere with non-displayable arguments, right? I mean, it will parse $ plural_string as a string if it looks like 'abc abc'
php localization gettext poedit
Alex
source share