stable
Clone or download
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 |