git-filter-repo/t
Elijah Newren 7bc87c7f0b filter-repo: enable internationalization
Assuming filter-repo will be merged into git.git, use "git" for the
TEXTDOMAIN, and assume its build system will replace "@@LOCALEDIR@@"
appropriately.

Note that the xgettext command used to grab string translations is
nearly identical to the one for C files in git.git; just use
--language=python instead and add --join-existing to avoid overwriting
the po/git.pot file.  In other words, use the command:
    xgettext -o../git/po/git.pot --join-existing --force-po \
        --add-comments=TRANSLATORS: \
        --msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" \
        --from-code=UTF-8 --language=python \
        --keyword=_ --keyword=N_ --keyword="Q_:1,2" \
        git-filter-repo

To create or update the translation, go to git.git/po and run either of:
    msginit --locale=XX
    msgmerge --add-location --backup=off -U XX.po git.pot

Once you've updated the translation, within git.git just build as
normal.  That's all that's needed.

Signed-off-by: Elijah Newren <newren@gmail.com>
2019-04-29 09:56:38 -07:00
..
t9390 filter-repo: add coverage for some corner cases and unusual constructs 2019-04-29 09:56:38 -07:00
t9391 filter-repo: add tests triggering callback sanity checks 2019-04-29 09:56:38 -07:00
run_coverage filter-repo: add a script to generate a line coverage report 2019-04-29 09:56:38 -07:00
t9390-filter-repo.sh filter-repo: enable internationalization 2019-04-29 09:56:38 -07:00
t9391-filter-repo-lib-usage.sh filter-repo: add a test just to get line coverage of an unusual error 2019-04-29 09:56:38 -07:00
t9392-python-callback.sh filter-repo: add tests triggering callback sanity checks 2019-04-29 09:56:38 -07:00
test-lib-functions.sh filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00
test-lib.sh filter-repo: add some basic tests, with git-style test-lib.sh 2019-03-12 14:19:38 -07:00