|
27 | 27 | This translation is for an Android application's UI. Use concise, clear language consistent with standard Android UI conventions. Do not alter the intended meaning of the text. |
28 | 28 |
|
29 | 29 | **Formatting & Structure:** |
30 | | -- Preserve all placeholders exactly as they appear (e.g., %d, %s, %1$s). |
| 30 | +- Keep all placeholders (e.g., %d, %s, %1$s) exactly as in the source. If the target language requires reordering, ensure that the same placeholders appear and are correctly positioned according to the language's syntax. |
31 | 31 | - Maintain the integrity of HTML, CDATA, or XML structures; translate only the textual content. |
32 | 32 | - Preserve all whitespace, line breaks, and XML formatting exactly as in the source. |
33 | 33 | - Escape apostrophes with a backslash (\\') as required by Android. |
34 | 34 |
|
35 | 35 | **System Terms:** |
36 | | -Do not translate system state words (e.g., WARNING, FAILED, SUCCESS, PAUSED, RUNNING). They must remain in English and in uppercase. |
| 36 | +Do not translate system state words (e.g., WARNING, FAILED, SUCCESS) or any technical and branded terms. Always leave these in their original English, uppercase form. |
37 | 37 |
|
38 | 38 | **Terminology & Natural Expressions:** |
39 | | -Use natural, context-appropriate phrasing and avoid literal translations that sound awkward or unnatural. |
40 | | -When a technical term (e.g., "upload", "server") or a proper noun, feature name, or trademarked term is more natural in English, keep it in English. |
| 39 | +Translate in a natural, concise style that matches standard Android UI conventions. |
| 40 | +Avoid overly literal translations that may sound awkward. When a technical term or proper noun is more recognizable in English for that language, keep it in English. |
41 | 41 |
|
42 | 42 | **Examples (Portuguese of Portugal):** |
43 | 43 | - "Day Limit" → ✅ "Limite diário" (❌ "Limite do dia") |
|
76 | 76 | """ |
77 | 77 |
|
78 | 78 | TRANSLATE_FINAL_TEXT = """\ |
79 | | -Translate the following resource for an Android app provided after the dashed line to the following values-{target_language}/string.xml for the language: {target_language} |
| 79 | +Translate the following string resource provided after the dashed line to the values-{target_language}/string.xml file for the language: {target_language} |
80 | 80 | ---------- |
81 | 81 | """ |
82 | 82 |
|
|
0 commit comments