Convert XLIFF2 to ANDROIDSTRINGS

Turn XLIFF2 files into ANDROIDSTRINGS. An Android strings.xml with one string per entry, named by the context or else the source text made into a resource name, plural entries as plurals with the language's quantities, entries named like days[0] gathered into string arrays, and notes as comments.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XLIFF2 files on the dialor turn it to pick what to do

An Android strings.xml from your XLIFF 2.0 file.Each entry becomes a string, a plural or part of a string array.

  1. What you get

    One strings.xml file. Each entry becomes one string, named by its context. If there is no context, the name is made from the source text. A numeric unit id is not taken as a context.

    Plural entries become plurals with the quantities of the language. Entries named like days[0] are gathered into string arrays. Notes become comments.

  2. Which text is used

    An entry without a finished translation keeps its source text. For translated entries, the source text is dropped and the translation is used.

    The segments of a unit are joined into one string. Inline codes keep their text, and placeholders such as <ph/> become their display text.

  3. What it leaves behind

    Translator comments are dropped. Source references are dropped too.

XLIFF2 and ANDROIDSTRINGS.What each format is.

The formats

From · XLIFF2

XLIFF 2.0

XLIFF 2.0, the newer translation exchange format with units, segments and states.

Extensions
.xlf .xliff
MIME type
application/x-xliff2+xml
Kind
Text and data
To · ANDROIDSTRINGS

Android Strings

Android strings.xml resources with strings, plurals and string arrays.

Extensions
.strings.xml
MIME type
application/x-android-strings+xml
Kind
Text and data

In your code.The same XLIFF2 to ANDROIDSTRINGS conversion through the API, for your app or your agent.

terminal
$ cv convert report.xlf report.strings.xml
$ cv convert report.xlf report.strings.xml

Questions.What people ask about XLIFF2 to ANDROIDSTRINGS.

01OF 04

The name comes from the context. If there is none, the source text is made into a resource name. A numeric unit id is not used as a context.

Plural entries become plurals with the quantities of the language.

Yes. Entries named like days[0] are gathered into string arrays.

They keep their source text.

More conversions.Other ways in and out of XLIFF2 and ANDROIDSTRINGS.