]> git.agnieray.net Git - galette.git/blob - tests/fixtures/translations.php
Migrate to phpunit; closes #1674
[galette.git] / tests / fixtures / translations.php
1 <?php
2
3 /**
4 * Test translation features.
5 *
6 * example (see galette/lan/Makefile for up to date command):
7 * xgettext translations.php --keyword=_T --keyword=__ --keyword=_Tn:1,2 --keyword=_Tx:1c,2 --keyword=_Tnx:1c,2,3 -L PHP --from-code=UTF-8 --add-comments=TRANS --force-po -o php_translations.pot
8 */
9
10 _T('Translation, no domain');
11 __('Another known syntax');
12 _T('Translation, galette domain', 'galette');
13 _T('Translation, other domain', 'other');
14
15 _Tn('I have a dream', 'I have several dreams', 1);
16 _Tx('button', 'Cancel');
17 _Tnx('button', 'Proceed action', 'Proceed actions', 3);
18 //TRANS: %s is user name
19 sprintf(_T('Hello %s'), 'you');
20 //TRANS: %1$s is the day name, %2$s the hour in the day
21 sprintf(_T('Day is %1$s, hour is %2$s'), 'tuesday', 9);