Possible to disable untranslated resources warning?

Is this possible? I do NOT translate my settings because settings are changed rarely only and it's not worth the effort (did not get a single mail because if this yet).

I do get a lot of warnings like following though:

BUILD: WARNING: String ID 'AlternativeTimeZoneLabel' undefined for language 'hun'.

Is it possible to disable this type of warning somehow?

  • yes and no.

    no: you can not disable the warning

    yes: a workaround is to include all your english texts also inside your translated resource folders. (as a consequence your prg file will become a lot larger)

    ---

    be aware that if you do not provide resource strings for your translated languages then the setting pages in Garmin Express will look awful because of this bug: forums.garmin.com/.../garmin-express-does-not-implement-fallback-to-default-language-english-resources

  • I did not provide any setting translations yet and did not copy the english texts to the localised folders as I just saw in my tests, that the fallback to the default langage works (on my android phone). I did not get any feedback yet about missing translations from any user yet, so the problem you mention may not be a big issue in real life as most people use their phone to set up a watchface, but still it's good to know.

    With the new information it seems that I really need to copy the resources from the default language to all enabled languages to get rid of the errors and to support garmin express

  • Maybe there is a better solution, but this is how I did it:

    I split the strings in resources/ (default language) into

    - strings.xml : here are the strings that are only used in resources/ (default language). These strings are translated in other languages.

    and

    - strings-default.xml : here are the strings that should not be translated in other languages (e.g. app-name or app-version).

    I then do it this way for the translations (e.g. resources-deu):

    - strings.xml contains the translated strings

    and


    - strings-default.xml is a link to resources/

    This saves me double data maintenance and eliminates the build warning.

    Here is an example:

    > tree -f resources
    resources
    ├── resources/drawables
    │   ├── resources/drawables/drawables.xml
    │   └── resources/drawables/launcher_icon.png
    ├── resources/fitcontributions
    │   ├── resources/fitcontributions/fitcontributions.xml
    │   └── resources/fitcontributions/strings.xml
    ├── resources/settings
    │   ├── resources/settings/properties.xml
    │   ├── resources/settings/strings-default.xml
    │   └── resources/settings/strings.xml
    └── resources/strings
    ├── resources/strings/strings-default.xml
    └── resources/strings/strings.xml

    4 directories, 9 files

    > tree -f resources-deu/
    resources-deu
    ├── resources-deu/fitcontributions
    │   └── resources-deu/fitcontributions/strings.xml
    ├── resources-deu/settings
    │   ├── resources-deu/settings/strings-default.xml -> ../../resources/settings/strings-default.xml
    │   └── resources-deu/settings/strings.xml
    └── resources-deu/strings
    ├── resources-deu/strings/strings-default.xml -> ../../resources/strings/strings-default.xml
    └── resources-deu/strings/strings.xml

    3 directories, 5 files
  • You can add translatable="false" and the warning is gone

  • Works perfectly - I didn't know it was so easy.
    Many thanks for the tip