nutritionfactsorg / daily-dozen-android

Keep track of the foods that Dr. Greger recommends in his NYT's best-selling book, How Not to Die with this Android app
https://play.google.com/store/apps/details?id=org.nutritionfacts.dailydozen&hl=en
Other
274 stars 95 forks source link

Translations: German, Hebrew, Portuguese, Russian #197

Closed marc-medley closed 9 months ago

marc-medley commented 2 years ago

@slavick The attached android-resources.zip file contains Nutrition Facts strings.xml translations for Hebrew, Portuguese, Portuguese (Brazil), Portuguese (Portugal) and Russian.

android-resources.zip

Please check if these files work OK with the Android software. Let me know if anything is missing, incomplete or broken. See details below.

Also, if the Android app builds OK with these xml files, would it be possible to provide a test (non-general-release) build for the translators to review?

Thanks.

Details

The files are also located here:

The files were programmatically generated from the TSV files provided from the translation team. There were no subsequent hands edits done to the strings.xml files.

The translated strings.xml is created by mapping the Android keys from the translated TSV file to overwrite values of an in-memory copy of the English_US strings.xml

A (re-generated) English_US strings.xml is also include to give an idea of how the formatting is affected through the process.

The English_US strings.xml file is used as the base reference to provide the following:

Observations: Things to Check

An effort was made to use the same translated text for both Android and iPhone where possible. There may be some unexpected issues which need to be addressed.

prior version

<string name="format_version" formatted="false">version %s</string>
<string name="format_num_days" formatted="false">%d days</string>

current branch

<string name="format_version">version %1$s</string>
<string name="format_num_days">%1$d days</string>

For example:

<string-array name="food_info_serving_sizes_other_fruits">
    <item>%s1 medium-sized fruit</item>
    <item>1%s cut-up fruit</item>
    <item>%s dried fruit</item>
</string-array>
<string-array name="food_info_serving_sizes_other_fruits_imperial">
    <item></item>
    <item> cup</item>
    <item>¼ cup</item>
</string-array>
<string-array name="food_info_serving_sizes_other_fruits_metric">
    <item></item>
    <item>20 g</item>
    <item>40 g</item>
</string-array>
slavick commented 2 years ago

@marc-medley Thank you Marc, I will create apks for the testers in the coming days.

marc-medley commented 2 years ago

@slavick A German translation which has been reviewed, updated and supports both platforms has been added. The Brazilian Portuguese has been updated for the region.

The attached android-resources-de-en-he-pt-ru.zip file:

Android XML resource files: android-resources-de-en-he-pt-ru.zip

Please let me know if you find any issues with the set. Thanks.

marc-medley commented 9 months ago

Translations are now being provided via Pull Requests, so this issue no longer needs to be open.