string resource files specified in jungle?

Former Member
Former Member

finally getting around to adding language support in my app and went down the normal route of adding in my translations in the resources-[lang] files.  quickly realized that eats up memory pretty quickly with all my strings i have and is going to cause memory issues in the older devices.

so, anyone know of a trick to load language resource files only for larger memory devices?

i'm already specifying specific source and resource paths based on the device, but not sure how i would incorporate languages into that same structure

ie, 
edge1030.sourcePath= source;sourceEdge;
edge1030.resourcePath = $(base.resourcePath);resources\edge;

what i'm now after is 

edge1030 AND lang="fre": resourcePath:$(base.resourcePath);resources\edge;resources\french;

Top Replies

All Replies

  • https://developer.garmin.com/connect-iq/reference-guides/jungle-reference/

    Localization Resources

    Localization strings are a kind of resource in Connect IQ, but have a slightly different syntax since multiple languages may be supported by a single device or device family. Suppose an application supports both English and Spanish, and all of the fēnix English localization resources are stored in a fenix-resources-eng directory, while the Spanish localization resources are kept in a fenix-resources-spa directory.

    # Set the fenix 5 English language resource location
    fenix5.lang.eng = $(fenix5.lang.eng);fenix-resources-eng
    
    # Set the fenix 5 Spanish language resource location
    fenix5.lang.spa = $(fenix5.lang.spa);fenix-resources-spa
    
    # Set the fenix 3 English language resource location
    fenix3.lang.eng = $(fenix3.lang.eng);fenix-resources-eng
    
    # Set the fenix 3 Spanish language resource location
    fenix3.lang.spa = $(fenix3.lang.spa);fenix-resources-spa
    ...
    

    The lang qualifier property is used in this build instruction to specify that a localization resource is being set, and is followed by an additional ISO 639–2 language code localization qualifier to indicate for which language the supplied resource locations are intended. A list of supported localization qualifiers can be found in the [Appendices][] chapter. Specifying an unsupported localization qualifier will result in an error at compile time.

    When specifying localization resources within Jungle files, the supported languages must also be set in a project’s manifest, otherwise the associated localization overrides will be ignored.

    You may also want to look at default.jungle in your installed SDK folder to see how the default language paths work.

  • Former Member
    0 Former Member in reply to flowstate

    lovely.  thanks!