1. Download our Official Android App: Forums for Android!

Apps Localization android ui

Discussion in 'Android Development' started by oror494, Jul 21, 2010.

  1. oror494

    oror494 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 15, 2010

    Jul 15, 2010
    2
    0
    5
    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 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    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 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 15, 2010

    Jul 15, 2010
    2
    0
    5
    ok how do i open the .xml file?
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    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...