Resource file
The resource file BestView.xml is an ordinary xml file which
contains string resources for different languages. The file has next structure:
-
<resources> - root tag, contains several <resource>
tags
-
<resource> - this tag has to be declared for every
language. The tag contains two attributes:
-
language
- the language's identifier
-
name - human readable name of the language
and a set of item
tags
-
<item> - the tag item has one
attribute, id, which uniquely identifies resource strings. The
body of the item tag contains the value of the item
Although you are free to use your own language identifiers let's notice that one
language identifier has its special mission: the identifier is en-US
and it is internally used by the library as default, i.e. if you set another
language using bvSetLanguage function and in
your section there is no required resource the library will look for the
resource in the en-US resource tag.
If you want to create your own language section you will have to do next steps:
-
Create a copy of en-US
tag
-
Change attributes language and name of
the new resource tag
-
Translate all items in the new section onto your language
-
In your application make bvSetLanguage function
call with the identifier of your language as the input parameter