Convert XLIFF to ANDROIDSTRINGS
Turn XLIFF 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 XLIFF files on the dialor turn it to pick what to do
Translations ready to drop into an Android app.One strings.xml file, with strings, plurals and arrays in place.
What you get
A single Android strings.xml with one string for each entry. Each string is named by its context. If an entry has no context, the name is made from its source text as a resource name.
Plural entries become plurals with the quantities of the language. Entries named like days[0] are gathered into string arrays. Notes in the XLIFF file become comments.
Source text and translations
Entries without a finished translation keep their source text. For entries that are translated, the source text is dropped and only the translation is written.
A numeric trans-unit id is not taken as a context. Such an entry is named from its source text instead.
Inline codes and placeholders
Inline codes keep their text. Empty placeholders such as
<x/>become their equiv-text. When a placeholder has no equiv-text, it is dropped.What it leaves behind
Translator comments and source references are dropped. Only notes carry over, as comments.
XLIFF and ANDROIDSTRINGS.What each format is.
The formats
XLIFF 1.2
XLIFF 1.2, the XML exchange format of translation tools, with trans-units, states and notes.
- Extensions
- .xlf .xliff
- MIME type
- application
/xliff +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 XLIFF 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 XLIFF to ANDROIDSTRINGS.
The context names the string. Without a context, the source text is made into a resource name. A numeric trans-unit id is never used as the context.
They keep their source text in the output. Only entries with a finished translation use the translated text.
Yes. Entries named like days[0] are gathered into string arrays. Plural entries become plurals with the quantities of the language.
No. Translator comments and source references are dropped. Notes are kept as comments.