Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|Forum|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    03.09.2010
Home»BestView preview library»SDK
Find out more how to use BestView...
Resource file

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
Valid HTML 4.01 Transitional© PVL team, 2004-2010, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.