Translate some text with parameters and specific numerus
function UteTranslateNum ($key, $num);
(string) translated text
This function is required at runtime for the template execution only.
Translated texts can have a specific numerus either by a constant number or
by a number modulo n. So special translations can be defined for a count of
0, 1 or 2 etc. and for all counts of 0, 1 etc. modulo 10 which is 0, 10, 20,
30 resp. 1, 11, 21, 31 and so on. The moduli currently supported, in their
order of matching, are 1, 100 and 10. Adding more can decrease performance.
Example: To match the text key "posts" to several numbers, write this:
0 -- 'posts.num0'
1 -- 'posts.num1'
2 -- 'posts.num2'
1, 11, 21... -- 'posts.num1%10'
5, 15, 25... -- 'posts.num5%10'
0, 100, 200... -- 'posts.num0%100'
20, 120, 220... -- 'posts.num20%100'
$UNB_T
Implementation file: unb_lib/ute-runtime.lib.php, line 239
© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.