Localization android ui


Last Updated:

  1. oror494

    oror494 New Member This Topic's Starter

    Joined:
    Jul 15, 2010
    Messages:
    2
    Likes Received:
    0
    i want to Localize the android ui to a diffrent language
    how I do it?
    what program do I need to use?
     

    Advertisement
  2. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    In your res folder in your project, create another folder called values-it for example, substituting the two letter language code of your choice for "it". Optionally, you could do something like values-en-uk which not only specifies the language, but also the region (in this case, uk), you can find a full list of supported languages and regions on the android developer site. once you have that then you just create a copy of your stings.xml etc... into your new directory (keepin the names the same) and changine the strings to whatever language you want. The android os will automatically pick the best option based on your phone's local settings.
     
  3. oror494

    oror494 New Member This Topic's Starter

    Joined:
    Jul 15, 2010
    Messages:
    2
    Likes Received:
    0
    ok how do i open the .xml file?
     
  4. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    Have you made the app yet? You open it the same way you open ylur layout files. Lol however the strings.xml will probably need created as eclipse doesnt create it for you.
     

Share This Page

Loading...