Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 898517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:03:22+00:00 2026-05-15T15:03:22+00:00

I have the localized strings file that is used in the Iphone app that

  • 0

I have the localized strings file that is used in the Iphone app that I work on to port to Android. Are there any tools that go through the file taken from the xcode project and build the xml needed to use the strings in android?

As the apple file is a simple key value file is there a tool that converts string in this format

“key”=”value”

to this:

<string name="key"> value </string>

This tool should be easy to build but I appreciate any pointers to already working tools.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:03:22+00:00Added an answer on May 15, 2026 at 3:03 pm

    Ok i wrote my own little converter using a little bit from the code from alex.

    public static void main(String[] args) throws IOException {
        Scanner fileScanner =
                new Scanner(new FileInputStream(args[0]), "utf-16");
        Writer writer =
                new BufferedWriter(new OutputStreamWriter(new FileOutputStream(
                        new File(args[1])), "UTF8"));
        writer.append("<?xml version=\"1.0\" encoding=\"utf-8\"?> <resources>");
        while (fileScanner.hasNextLine()) {
            String line = fileScanner.nextLine();
            if (line.contains("=")) {
                line = line.trim();
                line = line.replace("\"", "");
                line = line.replace(";", "");
                String[] parts = line.split("=");
                String nextLine =
                        "<string name=\"" + parts[0].trim() + "\">"
                                + parts[1].trim() + "</string>";
                System.out.println(nextLine);
                writer.append(nextLine);
            }
        }
        fileScanner.close();
        writer.append("</resources>");
        writer.close();
    }
    

    It was a little bit tricky to get Java to correctly read and write the UTF 16 input I got out of the xcode project but now it is working like a charm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text file that contains localized language strings that is currently encoded
I've got an iPhone app that need to be localized. No problem with strings,
I have an iPhone iOS4.1 application that uses localized strings. I have just started
I have a Localized.strings (UTF-16) file that contains some strings that I use to
I have a template for an email that I've put in a localized strings
Hallo, a Wicket i18n question: I have a javaScript file, that holds strings I
I have some static resources (images and HTML files) that will be localized. One
HI, I want to dynamically concatenating the strings using C#. I have localized string
Greetings, I have file with the following strings: string.Format({0},{1}, Having \Two\ On The Same
I have an app that suffered a major surgery and a lot of stuff

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.