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.
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.
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.
What it leaves behind
Translator comments are dropped. Source references are dropped too.
XLIFF2 and ANDROIDSTRINGS.What each format is.
The formats
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
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.
$ cv convert report.xlf report.strings.xml$ cv convert report.xlf report.strings.xmlQuestions.What people ask about XLIFF2 to ANDROIDSTRINGS.
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.