Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Language subdirectories

When an application uses language subdirectories for localized resource files, the resource files created for each language must all have the same file name. In the embedded file system (EFS), they must be stored in directories that use the language code for the directory name. When creating directories using language codes, omit any trailing spaces.

Applications can use the AEE_RES_LANGDIR macro and the filename when calling ISHELL_LoadResXX() functions to load resources. AEE_RES_LANGDIR is defined in AEEShell.h.

Applications should have default language resources in case no resources for a language are available on the device. Resources for the default language reside in the application directory instead of a subdirectory and the resource file names do not contain a language suffix.

For example, if an application is developed for English, Spanish, and French with English as the default language, resource files should be stored in the corresponding language directories as follows:

  • The sample.bar file contains resources for the English language.
  • The icons.bar file contains resources for the English language.
  • The es/sample.bar file contains the Spanish resources.
  • The es/icons.bar file contains the Spanish icon resources.
  • The fr/sample.bar file contains the French resources.
  • The fr/icons.bar file contains the French icon resources.