Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.34 KB

Testing_Translations.md

File metadata and controls

39 lines (31 loc) · 1.34 KB

fdroidserver tools for repositories

It is possible to run a local, development copy of fdroidserver in order to test localizations while they are in progress. This requires minimal fluency in using the terminal, just like using fdroidserver does.

$ sudo apt-get install fdroidserver python3-babel
$ git clone https://gitlab.com/fdroid/fdroidserver.git
$ cd fdroidserver
$ ./setup.py compile_catalog
running compile_catalog
[..snip..]
compiling catalog locale/zh_Hant/LC_MESSAGES/fdroidserver.po to locale/zh_Hant/LC_MESSAGES/fdroidserver.mo
[..snip..]
$ export LC_ALL=zh_Hans.utf8  # optionally force the locale
$ ./fdroid signindex
2021-02-02 12:55:09,988 WARNING: No config.yml found, using defaults.
2021-02-02 12:55:09,990 CRITICAL: Missing output directory 'repo'
$ editor locale/zh_Hant/LC_MESSAGES/fdroidserver.po
$ ./setup.py compile_catalog
running compile_catalog
[..snip..]
compiling catalog locale/zh_Hant/LC_MESSAGES/fdroidserver.po to locale/zh_Hant/LC_MESSAGES/fdroidserver.mo
[..snip..]
$ ./fdroid signindex

fdroidclient

There is an Android emulator test that makes sure that there are no crashes caused by format strings. It can be run by itself using:

./gradlew assembleFullDebug connectedFullDebugAndroidTest \
  -Pandroid.testInstrumentationRunnerArguments.class=org.fdroid.fdroid.LocalizationTest