JSONDATA for a language and for an another

Good morning

In SDK 7 it is stated in README.html

Allow more than 255 fields (variables, functions, etc.) in a module or class. But if I create more than 255 variables, it is indicated too high
BUILD: ERROR: fenix6pro: C:\Users\Parents\workspace\APP4PARAGLIDNEW\bin\gen\006-B3290-00\source\Rez.mcgen:49: 256 members found in module '$.Rez.Strings', exceeding the limit of 254.
CONSTRUCTION: Completed
Aborted launch due to build failure.
So maybe it's not possible for module strings or variables, not in this case

So I'm trying to use jsondata to migrate variables into this module but I have a problem.

When I use Jsondata, the module does not use language separation. when you select the language, you don't have json for English or json for French when using Ressourcese-Eng or Ressources-Fre

The only way to select the language is to do it in code to select with a loadjson variable Eng when the language is English and select variableFre when the language is French. It's not very user-friendly.

Do you have this problem with jsondata, or how do you separate languages with JSONdata type variables?

Didier

  • Are your resource-eng, resource-fra folders at the same hierarchy  level as resource?

  • When you use directories like resources-eng, resources-fre, resources, then you should have each resource in resources/ and the ones that are different from the default also in the relevant resources-<lng>/ directory. When you use any resource from code or xml, then the system will automatically use the relevant resource depending on your device's language setting. If it's French then it'll try to find it in resources-fre/ and if it doesn't find it there then it'll look for it in resources/. If your device's language is Italian then it'll look for it in resources/ only. BTW you have other distinctions you can have depending on device screen shape and size, etc.

  • Hi

    on this link an example of a bad translation of json data.

    All is good for string but bad with Json

    Set langage to French italian, german or English

    drive.google.com/.../view

  • Allow more than 255 fields (variables, functions, etc.) in a module or class. But if I create more than 255 variables, it is indicated too high

    This feature only works for devices that support the 5.0.0 AP, which currently is only the System 7 preview deviceI. Sorry for the confusion, we'll be updating the release notes to indicate this.