localization question.


Last Updated:

  1. emnaki

    emnaki New Member This Topic's Starter

    Joined:
    Jul 13, 2009
    Messages:
    4
    Likes Received:
    0
    I've read that one should use the string.xml files in resources to do localization of text. I have one application which will allow the users to modify the text value. Will I be able to do that if I use string.xml? My question is if the string.xml file can be modified, added to and included into the application without a full recompile of the application. If not then is using a database for this the best option?
     

    Advertisement
  2. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    Your string table --the xml file-- will be compiled into your application, so any localisation needs to be done prior to distribution.

    If you have user-customisable strings (say, the field labels for those 'custom' fields in the address book) then yes, you'd best store them in a database. You might store these strings along with your data (best if each record needs to be separately customisable), or you might store them in your application's preferences (best if the labels should be application-global).
     

Share This Page

Loading...