I decided to remove some features from the devices that have only 16K DF memory to be able to squeeze it in the 16K. So after I removed (with annotations) part of the code I'd like to remove also the unnecessary properties and settings. So when in a device with only 16K the settings should only have the configs relevant to that device and also not include the strings that are only used in settings for devices with more memory. And I also would like to not repeat the same translation strings more than once (meaning I don't want to have the same entry: <string id="foo"> for a specific language in more than one place)
First I added a a new directory for source-memory32K and added it to monkey.jungle, and it works.
Then I added resource-memory32K and split the strings to 2 files: strings.xml: the phrases that are used in all devices, strings-memory32K.xm for the phrases that are only used in the settings of devices with at least 32K:
resources/strings.xml (foo:"Foo in English")
resources/strings-memory32K.xml (it's empty)
resources-memory32K/strings-memory32K.xml (bar:"Bar in English")
This works when I only have the default language. Then I added the translations:
resources-hun/strings.xml (foo:"Foo in Hungarian")
And now I'm stuck. Is there a pre-defined directory for the translations? I tried resources-memory32K-hun and resources-hun-memory32K, and neither of them is being used.
resources-memory32K-hun/strings-memory32K.xml (bar:"Bar in Hungarian")
How am I supposed to add it to monkey.jungle? This is my current file:
project.manifest = manifest.xml base.sourcePath = source base.excludeAnnotations = base # Configure source paths for all supported devices fenix3.sourcePath = $(fenix3.sourcePath);source-memory16K fenix6.sourcePath = $(fenix6.sourcePath);source-memory32K # Configure resource paths for all supported devices fenix3.resourcePath = $(fenix3.resourcePath);resources-memory16K fenix6.resourcePath = $(fenix6.resourcePath);resources-memory32K # Configure exclusion annotations fenix3.excludeAnnotations = $(fenix3.excludeAnnotations);memory32K fenix6.excludeAnnotations = $(fenix6.excludeAnnotations);memory16K