Skip to content

ippras/metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLCA l10n

Generating the PO Template

MDBOOK_OUTPUT='{"xgettext": {}}' \
  mdbook build -d po

Initialize a New Translation

msginit -i po/messages.pot -l ru -o po/ru.po --no-translator

Updating an Existing Translation

msgmerge --update po/ru.po po/messages.pot
msgcat --no-wrap po/ru.po -o po/ru.po
msgcat po/ru.po -o po/ru.po
msgfmt --statistics po/ru.po

Build and postprocess all translations

for language in en ru; do
    echo "Start building $language translation"
    MDBOOK_BOOK__LANGUAGE=$language \
    mdbook build -d book/$language
    echo "End building"
done

Other

s/<!-- i18n:skip -->\s*\n//g;

msgid "\[.*\]\(.*\)"

MDBOOK_BOOK__LANGUAGE=ru mdbook build
MDBOOK_BOOK__LANGUAGE=ru mdbook serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors