Convert ANDROIDSTRINGS to PO

Turn ANDROIDSTRINGS files into PO. A gettext PO file with each entry's context, source text and plural source, translation or plural forms, notes, translator comments, source references, flags and fuzzy mark, obsolete entries as #~ lines, and a header with the language and its plural rule.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Android strings, ready to translate.Strings, plurals and string-array items become entries in one PO file.

  1. What you get

    One PO file with a header that holds the language and its plural rule. Each string, plural and string-array item becomes an entry with its source text, ready for translation.

    The name of each item becomes the entry's context. That keeps entries with the same text apart and ties each one back to its place in strings.xml.

  2. What is left out

    Strings marked translatable="false" are skipped. They do not appear in the PO file, so translators never see them.

  3. What a PO entry can hold

    The PO format has room for more than the source text. An entry can carry a translation or plural forms, notes, translator comments, source references, flags and a fuzzy mark. Obsolete entries are written as #~ lines.

ANDROIDSTRINGS and PO.What each format is.

The formats

From · 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
To · PO

Gettext PO

Gettext translation catalogs and .pot templates, with each message's context, plural forms, notes and fuzzy mark.

Extensions
.po .pot
MIME type
text/x-gettext-translation
Kind
Text and data

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

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

Questions.What people ask about ANDROIDSTRINGS to PO.

01OF 04

Yes. Plurals become entries with their source text, and the header carries the plural rule for the language.

Yes. Each item in a string array becomes an entry with its name as the context.

It is probably marked translatable="false". Those strings are skipped.

The names of the strings, plurals and string-array items. They tell entries apart and point back to the source.

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