README.md (3000B)
1 # GNU Taler Android Code Repository 2 3 This git repository contains code for GNU Taler Android apps and libraries. 4 The official location is: 5 6 https://git.taler.net/taler-android.git 7 8 ## Structure 9 10 * [**cashier**](/cashier) - an Android app that enables you to take cash and give out electronic cash 11 * [**merchant-lib**](/merchant-lib) - a library providing communication with a merchant backend 12 to be used by the point of sale app below. 13 * [**merchant-terminal**](/merchant-terminal) - a merchant point of sale terminal Android app 14 that allows sellers to 15 process customers’ orders by adding or removing products, 16 calculate the amount owed by the customer 17 and let the customer make a Taler payment via QR code or NFC. 18 * [**taler-kotlin-android**](/taler-kotlin-android) - an Android library containing common code 19 needed by more than one Taler Android app. 20 * [**wallet**](/wallet) - a GNU Taler wallet Android app 21 * [**tests**](/tests) - emulator-driven simulator harnesses for the wallet and the merchant terminal 22 23 ## Building 24 25 You can get a list of possible build tasks like this: 26 27 $ ./gradlew tasks 28 29 See the [Taler developer manual](https://docs.taler.net/developers-manual.html#build-apps-from-source). 30 for more information about building individual apps. 31 32 ## I18N (Internationalization) 33 34 The default source language is **English**. All translatable strings are defined in (one of 35 various) locations: 36 37 ``res/values/strings.xml`` 38 39 ### Folder Structure 40 41 Translations follow the standard Android convention: 42 43 res/values/ -> English (source / reference) 44 res/values-de/ -> German 45 res/values-it/ -> Italian 46 res/values-fr/ -> French 47 48 etc. 49 50 ### Check for Available Languages and See Translation Status 51 52 Use the helper script ``check-translations.py`` to analyze the current 53 translation coverage across all modules in the repository. 54 55 *Note: 56 The script automatically detects the git repo root via the .git folder 57 and scans all modules (merchant-terminal, cashier, wallet, etc.), also 58 when run from any subfolder of the repository.* 59 60 From the git repository's root path: 61 62 ```bash 63 # Overview of all languages 64 65 ./check-translations.py 66 67 # Missing strings for a specific language (per module): 68 69 ./check-translations.py de # German 70 ./check-translations.py it # Italian 71 ./check-translations.py fr # French 72 73 # Lint-like checks (format args, extra keys, string-array lengths): 74 75 ./check-translations.py de --lint 76 ./check-translations.py fr --lint 77 ./check-translations.py --lint # all languages 78 ``` 79 80 ``--lint`` reports: 81 82 * **MissingTranslation** / **ExtraTranslation** (vs English ``values/``) 83 * **StringFormatCount** (``%s`` / ``%1$d`` placeholders must match) 84 * **StringArrayLength** / **StringArrayPair** (e.g. language values vs labels) 85 86 Exit status is non-zero if missing strings (with ``LANG``) or lint issues 87 (with ``--lint``) are found. 88 89 The overview and per-language output cover **all** app modules in the 90 repository (not only PoS).