Plural and singluar for Tunisian

Fragment of a discussion from User talk:Mjbmr
Edited by author.
Last edit: 11:32, 29 April 2015

Hi, I can suggest you this: Hel-pâj dexlûlhe {{#ifexpr: $1 = 1 | marra | {{#ifexpr: $1 = 2 | marrtîn | {{#ifexpr: $1 > 2 and $1 < 11 | marrât | {{#ifexpr: $1 > 10 and $1 < 20 | n-marra | {{#ifexpr: $1 > 19 | marra }} }} }} }} }}.

Mjbmr (talk)20:28, 28 April 2015

Could you please use aeb-latn code instead of aeb in the translation in Latin script?

Mjbmr (talk)20:36, 28 April 2015

Yeah, that's what we are doing.

GeekEmad (talk)11:10, 29 April 2015
 

Thanks very much.

GeekEmad (talk)11:10, 29 April 2015
 

Umm.. it doesn't work. Two problems, first Expression error: Unrecognized punctuation character "$". and !!FUZZY!! is automatically added. [1]

GeekEmad (talk)11:19, 29 April 2015

This case of PLURAL system you're talking about is odd but my solution is good enough, of course you see a red error now becuase $1 is not a valid number, but all $1 will be replaced with correct number when mediawiki is using it. Second problem when you trying to edit it !!FUZZY!! will be added becuase I think {{PLURAL:}} was not used, you can either use it or just remove !!FUZZY!! part and save it. The other and better solution is using this: {{PLURAL:$1|marra|2=marrtîn|3=marrât|4=marrât|5=marrât|6=marrât|7=marrât|8=marrât|9=marrât|10=marrât|11=n-marra|12=n-marra|13=n-marra|14=n-marra|15=n-marra|16=n-marra|17=n-marra|18=n-marra|19=n-marra|20=marra}}.

Mjbmr (talk)11:31, 29 April 2015

Perfect. Thank you.

GeekEmad (talk)20:47, 29 April 2015