Localize app icon and title

Hi,

I would like to localize my icon. However, after some research on the internet, I only found tools to localize text in the app. So, is there a way to localize icons?

And regarding the title for android, I found a post by @csavalas offering a solution to this problem. Is it really risky to use this method?

Thanks in advance for your replies

I know it’s crazy to reply to a question this old (and hopefully you figured it out in the meantime!) But for anyone else wondering about the title part, this is the method I use now:

  1. Folder Structure

In your project root (where main.lua is), create an AndroidResources folder. Inside, create specific values-xx folders for your target languages. Do not create a generic values folder, it’ll error out when you try to build.

  • ProjectRoot/
    • main.lua
    • build.settings
    • AndroidResources/
      • res/
        • values-ja/ (Japanese)
          • strings.xml
        • values-de/ (German)
          • strings.xml
        • values-es/ (Spanish)
          • strings.xml
  1. The strings.xml Content

In each localized folder, create a strings.xml file using the standard app_name key. Android will automatically prioritize these more specific folders when the device language matches.

Example (res/values-ja/strings.xml):

xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">アプリ名</string>
</resources>
  1. Building

  2. Open the Android Build Dialog in the Solar2D Simulator.

  3. In the Application Name field, type your Default/English title (e.g., “My Game”).

  4. Build the APK.

7 Likes

Not crazy at all.
Great info.

Still worth replying, even years later…