stable

Clone or download

Read-only

i18n in gitphp

Part of story #10416: burning parrot gloss on gitphp views Go to a repository ยป commit. View should be localized. Proper way to manage gettext files (for example, fr_FR locale folder should contain LC_MESSAGES subfolder, not directly the .mo[1]) Remove external scripts to manage translations in favor of builtin php functions. Now gitphp smarty templates need to specify the domain (like it is done for our mustache templates). Now generate-po can extract gettext strings from smarty templates, however it is highly specific to gitphp stuff (gitphp component have its own locales with strings coming from smarty templates or gitphp code). Maybe we should only have one tuleap-git domain instead of tuleap-git + gitphp domains? [1] https://www.gnu.org/software/gettext/manual/gettext.html#Locating-Message-Catalog-Files Change-Id: Iecc0900a2d69c8b5176d359d532a4d1bfadac11e

Modified Files

Name
M plugins/git/build-manifest.json +8 โˆ’0 Go to diff View file
M plugins/git/composer.json +2 โˆ’1 Go to diff View file
M plugins/git/composer.lock +56 โˆ’2 Go to diff View file
M plugins/git/include/GitActions.class.php +4 โˆ’4 Go to diff View file
D plugins/git/include/GitPHP/Resource.php +0 โˆ’132 Go to diff View file
M plugins/git/include/GitPHP/controller/ControllerBase.php +1 โˆ’0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blame.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blob.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blobdiff.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Commit.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Commitdiff.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Feed.php +3 โˆ’3 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Heads.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_History.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Log.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Search.php +6 โˆ’6 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Snapshot.php +1 โˆ’1 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Tag.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Tags.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Tree.php +2 โˆ’2 Go to diff View file
M plugins/git/include/GitPHP/git/Blob.php +4 โˆ’4 Go to diff View file
M plugins/git/include/GitPHP/git/DiffExe.php +18 โˆ’0 Go to diff View file
M plugins/git/include/GitPHP/git/FileDiff.php +1 โˆ’1 Go to diff View file
M plugins/git/include/GitPHP/git/GitObject.php +1 โˆ’1 Go to diff View file
M plugins/git/include/GitPHP/git/Pack.php +1 โˆ’1 Go to diff View file
M plugins/git/include/GitPHP/git/Project.php +4 โˆ’4 Go to diff View file
M plugins/git/include/GitPHP/git/TmpDir.php +4 โˆ’4 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/AUTHORS +0 โˆ’3 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/COPYING +0 โˆ’340 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/Makefile +0 โˆ’38 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/README +0 โˆ’161 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/gettext.inc +0 โˆ’534 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/gettext.php +0 โˆ’424 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/streams.php +0 โˆ’171 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/tests/.simpletest_skip +0 โˆ’0 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/tests/LocalesTest.php +0 โˆ’66 Go to diff View file
D plugins/git/include/GitPHP/lib/php-gettext/tests/ParsingTest.php +0 โˆ’43 Go to diff View file
D plugins/git/include/GitPHP/smartyplugins/block.t.php +0 โˆ’124 Go to diff View file
M plugins/git/include/GitPHP/smartyplugins/modifier.agestring.php +8 โˆ’8 Go to diff View file
M plugins/git/include/GitViews/GitPhpViewer.class.php +1 โˆ’22 Go to diff View file
M plugins/git/include/gitPlugin.class.php +1 โˆ’0 Go to diff View file
R plugins/git/site-content/gitphp_locale/fr_FR/gitphp.po Go to diff View file
A plugins/git/site-content-gitphp/gitphp.pot +371 โˆ’0 Go to diff View file
D plugins/git/site-content/gitphp_locale/fr_FR/gitphp.mo +- โˆ’- Go to diff View file
D plugins/git/site-content/gitphp_locale/gitphp.pot +0 โˆ’805 Go to diff View file
M plugins/git/templates/gitphp/blame.tpl +4 โˆ’4 Go to diff View file
M plugins/git/templates/gitphp/blob.tpl +5 โˆ’5 Go to diff View file
M plugins/git/templates/gitphp/blobdiff.tpl +5 โˆ’5 Go to diff View file
M plugins/git/templates/gitphp/commit.tpl +39 โˆ’39 Go to diff View file
M plugins/git/templates/gitphp/commitdiff.tpl +11 โˆ’11 Go to diff View file
M plugins/git/templates/gitphp/committip.tpl +2 โˆ’2 Go to diff View file
M plugins/git/templates/gitphp/footer.tpl +2 โˆ’2 Go to diff View file
M plugins/git/templates/gitphp/header.tpl +4 โˆ’4 Go to diff View file
M plugins/git/templates/gitphp/headlist.tpl +1 โˆ’1 Go to diff View file
M plugins/git/templates/gitphp/history.tpl +2 โˆ’2 Go to diff View file
M plugins/git/templates/gitphp/nav.tpl +10 โˆ’10 Go to diff View file
M plugins/git/templates/gitphp/search.tpl +10 โˆ’10 Go to diff View file
M plugins/git/templates/gitphp/shortlog.tpl +10 โˆ’10 Go to diff View file
M plugins/git/templates/gitphp/shortloglist.tpl +7 โˆ’7 Go to diff View file
M plugins/git/templates/gitphp/tag.tpl +6 โˆ’6 Go to diff View file
M plugins/git/templates/gitphp/taglist.tpl +4 โˆ’4 Go to diff View file
M plugins/git/templates/gitphp/tagtip.tpl +1 โˆ’1 Go to diff View file
M plugins/git/templates/gitphp/title.tpl +6 โˆ’6 Go to diff View file
M plugins/git/templates/gitphp/tree.tpl +1 โˆ’1 Go to diff View file
M plugins/git/templates/gitphp/treelist.tpl +8 โˆ’8 Go to diff View file
M plugins/git/templates/gitphp/tuleap/blob-diff.tpl +4 โˆ’4 Go to diff View file
M plugins/git/templates/gitphp/tuleap/blob-header.tpl +3 โˆ’3 Go to diff View file
M plugins/git/templates/gitphp/tuleap/commit-diff.tpl +3 โˆ’3 Go to diff View file
M plugins/git/templates/gitphp/tuleap/commit-files.tpl +6 โˆ’6 Go to diff View file
M plugins/git/templates/gitphp/tuleap/commit-title-metadata.tpl +6 โˆ’6 Go to diff View file
M plugins/git/templates/gitphp/tuleap/commits-as-cards.tpl +7 โˆ’7 Go to diff View file
M plugins/git/templates/gitphp/tuleap/shortlog.tpl +13 โˆ’13 Go to diff View file
M plugins/git/templates/gitphp/tuleap/tree.tpl +3 โˆ’3 Go to diff View file
M tools/utils/generate-mo.sh +4 โˆ’1 Go to diff View file
M tools/utils/generate-po.php +54 โˆ’3 Go to diff View file
A tools/utils/generate-smarty-mo.php +80 โˆ’0 Go to diff View file