Android strings.xml 翻訳ツール

CDATA と string-array 対応の Android strings.xml

ログイン不要 $19から 変数安全

課題

  • 汎用 XML パーサーで CDATA セクションが壊れる
  • HTML エンティティ (&, <) が二重エンコードされる
  • string-array 構造が失われる
  • 書式指定子 %1$d が誤翻訳される

解決策

  • Android 対応 XML パーサーが CDATA を保持
  • HTML エンティティを正しく処理
  • string-array と plurals の構造を保持
  • 書式指定子 (%1$d, %s) をロック

翻訳前後の比較

Android XMLファイルがAI翻訳によってどのように変化するかご確認ください。変数はそのまま保護されます。

原文(英語)

単語数:28
<resources>\n  <string name="greeting">Hello {player_name}!</string>\n  <string name="newline">Line 1\nLine 2</string>\n  <string-array name="items">\n    <item>Sword</item>\n    <item>Potion</item>\n  </string-array>\n  <string name="count">%1$d items found</string>\n</resources>

翻訳文(スペイン語)

28言語以上対応
<resources>\n  <string name="greeting">¡Hola {player_name}!</string>\n  <string name="newline">Línea 1\nLínea 2</string>\n  <string-array name="items">\n    <item>Espada</item>\n    <item>Poción</item>\n  </string-array>\n  <string name="count">%1$d objetos encontrados</string>\n</resources>

お知らせ:すべての変数({pattern}など)は、翻訳版でも完全にそのまま保持されます。

変数保護パターン

Android XMLファイルには、決して翻訳してはいけない特殊なパターンが含まれています。当社のAIがこれらを自動的にロックします。

ロック済み
{player_name}

波括弧

ロック済み
%1$d

Android 形式

ロック済み
%s

Printf

保持
<![CDATA[

CDATA

保持
&amp;

HTML エンティティ

Androidゲームのローカライズを始める準備はできましたか?

Android XMLファイルをアップロードするだけで、24時間以内に変数保護機能付きのAI翻訳をお届けします。ログイン不要。1ファイルあたり$19から。

24時間対応・変数保護・28言語以上

Translate Android strings.xml online — without breaking your app

Your res/values/strings.xml is where every language version of your app starts. Translating it by hand means keeping %1$s, %2$d and string-array blocks in sync across values-es/, values-fr/ and a dozen more folders — the kind of busywork that eats a release week. Generic AI tools see %1$d and happily translate it into broken text. LocaFile AI is an Android strings.xml translator that locks your format specifiers before the AI ever sees them.

Upload your strings.xml, pick a pass, and get back files ready to drop into res/values-<lang>/ — 28 languages, same keys, same structure, only the values translated. No login required, pay-per-pass from $19, engine-aware instead of a generic XML shortcut.

A string.xml translator that respects Android resource rules

LocaFile AI parses strings.xml the way Android actually reads it: <string>, <string-array> and <plurals> nodes are handled separately, CDATA sections and HTML entities are preserved byte-for-byte, and positional format specifiers (%1$s, %2$d) are locked so plural rules and String.format() calls keep working in every language.

The result is a file you can drop in and ship — not a translation you have to hand-repair. That is the point of an Android XML translation tool that understands the format it translates.

Android strings.xml translation — FAQ

How do I translate Android strings.xml online?

Upload your strings.xml, choose your languages, pay for a pass, and download the translated files. No login required — your download link is your recovery key. Pay-per-pass from $19, with no per-word or per-language fees.

Is there an Android string translation tool that localizes strings.xml automatically?

Yes — LocaFile AI is an engine-aware strings XML translator. It parses res/values/strings.xml the way Android does, locks format specifiers, translates the values, and returns files ready to drop into values-<lang>/. From $19 per pass, no login, no subscription.

Will translating strings.xml break my %1$s or %1$d format specifiers?

No. Positional format specifiers like %1$s, %2$d and %s are locked with regex token replacement before the AI sees your text, then restored byte-for-byte after translation. Your String.format() calls keep working in every language.

Does it handle string-array and plurals?

Yes. string-array and plurals blocks are parsed and translated as their own structures, so item order and plural quantities stay intact.

Where do I put the translated strings.xml files?

Each translated file drops straight into res/values-<lang-code>/strings.xml — for example values-es/ for Spanish. Keep the same filename and Android picks the files up automatically.

What about CDATA sections and HTML entities?

CDATA sections are preserved byte-for-byte and HTML entities are left alone, so rich text and encoded characters are not double-encoded or mangled.

How much does translating Android strings cost?

From $19 per pass, one-time, no subscription. You choose how many languages you need — the pass covers them. No per-word pricing, no login required.