Skip to content

Translations

hxgohxrr edited this page Jun 27, 2026 · 2 revisions

Existing languages

Language Folder Status
Spanish app/src/main/res/values/ Default
English app/src/main/res/values-en/ Complete

Adding a new language

Create a new folder under `app/src/main/res/` using the standard Android language qualifier.
| Language | Folder |
|---|---|
| French | `values-fr/` |
| German | `values-de/` |
| Japanese | `values-ja/` |
| Portuguese (Brazil) | `values-pt-rBR/` |
| Italian | `values-it/` |
Copy the English strings file into the new folder and translate every value. Do not translate the `name` attributes — only the text content.
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">EnmaPatcher</string>
    <string name="settings">Paramètres</string>
    <string name="patch">Patcher</string>
    <string name="loading">Chargement…</string>
    <string name="patches_label">Patchs : %1$s (%2$s)</string>
    <string name="app_detected">Application détectée</string>
    <string name="app_not_found">Application introuvable</string>
    <string name="app_not_found_package">Application introuvable : %1$s</string>
    <string name="install_hint">Installez %1$s pour continuer</string>
    <string name="patching">Patching…</string>
    <string name="applying_patches">Application des patchs</string>
    <string name="patch_success">Patché avec succès !</string>
    <string name="patch_error">Échec du patch</string>
    <string name="retry">Réessayer</string>
    <string name="install_apk">Installer l'APK</string>
    <string name="share_apk">Partager l'APK</string>
    <string name="share_apk_title">Partager l'APK patché</string>
    <string name="back">Retour</string>
    <string name="patches_repo">Dépôt de patchs</string>
    <string name="github_repo_label">Dépôt GitHub (owner/repo)</string>
    <string name="branch_label">Branche</string>
    <string name="auto_install">Installation automatique</string>
    <string name="auto_install_sub">Lancer l'installeur à la fin</string>
    <string name="save">Enregistrer</string>
    <string name="join_discord">Rejoindre le Discord</string>
    <string name="language">Langue</string>
    <string name="language_system">Système</string>
    <string name="language_local">Español</string>
    <string name="step_download_config">Téléchargement de la config</string>
    <string name="step_download_config_desc">enmapatcher.cfg.json depuis GitHub</string>
    <string name="step_download_patches">Téléchargement des patchs</string>
    <string name="step_download_patches_desc">Dépôt : %1$s</string>
    <string name="step_locate_apk">Localisation de l'APK</string>
    <string name="step_apply_patches">Application des patchs</string>
    <string name="step_apply_patches_desc">%1$d fichiers</string>
    <string name="step_sign_apk">Signature de l'APK</string>
    <string name="step_sign_apk_desc">Signature JAR v1</string>
</resources>
```
Run `./gradlew assembleDebug`, install on a device, switch to the new language in Settings, and verify all strings display correctly.

Format specifiers

Some strings contain format arguments. Preserve them exactly in translations.

Specifier Type Used in
%1$s String patches_label, app_not_found_package, install_hint, step_download_patches_desc
%2$s String patches_label
%1$d Integer step_apply_patches_desc

Notes

Do not translate `app_name`. Keep it as `EnmaPatcher` in all languages.
  • If a string is missing from a language file, Android automatically falls back to the default (Spanish).

Clone this wiki locally