Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

All Toolkit content including instruction sets for different RDT types can be found on GitHub. Both the App text AND the RDT instructions can be translated.

Supported Languages

Currently the Rapid Diagnostics Toolkit is available in:

  • French
  • English
  • Portuguese
  • Malagasy

The Settings menu in the Android App can be used to select one of these languages

1) APK App Translations

The application translations are managed through standard Android SDK translation assets. Software developers can use the Android Studio built-in translation tools to add new languages or easily update translations.

For non-technical teams who want to add a new language for translation, the main translation file can be found online here. This file can be edited with any text editor, changing the inside of the XML <string> tags. 

Note: 

  • XML escaping will need to be used: primarily, apostrophe characters will need to be escaped with backslashes, so “it's” -> “it\'s”

  • Placeholders (%s, %d) will need to be retained.

  • New languages need to be added by creating a new strings-LANGCODE folder in the resources directory with the appropriate android ISO langcode for the new locale, and placing the translate strings.xml file inside that folder

2) “Folio” Translations (for Test Instructions)

“Dynamic” content about tests or classifiers, like Job Aids or test instructions, are translated in a different format. This content is maintained inside of a “Folio” file which may or may not be part of the hard coded application.

Currently, the folio files are maintained as Android App Assets, and the folios for each test and job aid are maintained independently (along with their multimedia files). To update translations for these, the appropriate folio.json file needs to be changed directly. 

An example app folio file can be found in the code for a Job Aid interpreting the Care Start Pf/Pv test results.

To add a new language for translation, one of the existing blocks should be copied and pasted to the end of the list, changing the ‘lang’ key to the same ISO langcode mentioned above for the APK translations, and then the test of each string updated. 

Submitting Translation Changes

New or updated translations can be submitted to GitHub via Pull Requests to the repository

Known Issues

This is a known bug due to the localization layer that we are using, which allows translating into locales other than those present on the local device.

You can trigger the translation in full by restarting the app (force closing, loading the task chooser and killing the backstack for the app, or worst case restarting the device). Unfortunately I've looked into this bug, and it's actually quite difficult to fix, but we haven't perceived it as a blocker since the intent isn't to swap locales in real time but rather to just provide a mechanism to permanently change away from the current device locale.



  • No labels