Skip to content

Commit 24be4bc

Browse files
authored
Merge pull request #464 from synonymdev/chore/update-translations
Add script to pull Transifex translations
2 parents 638968e + e67bad5 commit 24be4bc

File tree

16 files changed

+276
-14
lines changed

16 files changed

+276
-14
lines changed

.tx/config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[main]
2+
host = https://app.transifex.com
3+
4+
[o:synonym:p:bitkit:r:stringsxml]
5+
file_filter = app/src/main/res/values-<lang>/strings.xml
6+
source_file = app/src/main/res/values/strings.xml
7+
source_lang = en
8+
type = ANDROID

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,28 @@ Reports are generated in: `app/build/reports/detekt/`.
6868
```
6969

7070
## Localization
71-
See repo: https://github.com/synonymdev/bitkit-transifex-sync
71+
72+
### Pulling Translations
73+
74+
To pull the latest translations from Transifex:
75+
76+
1. **Install Transifex CLI** (if not already installed):
77+
- Follow the installation instructions: [Transifex CLI Installation](https://developers.transifex.com/docs/cli)
78+
79+
2. **Authenticate with Transifex** (if not already configured):
80+
- Create a `.transifexrc` file in your home directory (`~/.transifexrc`) with your API token:
81+
```ini
82+
[https://www.transifex.com]
83+
rest_hostname = https://rest.api.transifex.com
84+
token = YOUR_API_TOKEN_HERE
85+
```
86+
- You can get your API token from your [Transifex account settings](https://www.transifex.com/user/settings/api/)
87+
- The CLI will prompt you for an API token if one is not configured
88+
89+
3. **Pull translations**:
90+
```sh
91+
./scripts/pull-translations.sh
92+
```
7293

7394
## Build
7495

app/src/main/res/values-ar/strings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="common__delete_yes">نعم، احذف</string>
4+
<string name="settings__backup__category_contacts">جهات الاتصال</string>
45
<string name="slashtags__your_name">اسمك</string>
56
<string name="slashtags__your_name_capital">اسمك</string>
67
<string name="slashtags__contact_name">اسم جهة الاتصال</string>
@@ -28,4 +29,4 @@
2829
<string name="wallet__drawer__contacts">جهات الاتصال</string>
2930
<string name="wallet__recipient_contact">جهة الاتصال</string>
3031
<string name="wallet__activity_contact">جهة الاتصال</string>
31-
</resources>
32+
</resources>

app/src/main/res/values-b+es+419/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,4 +1121,4 @@
11211121
<string name="widgets__weather__current_fee">Tasa media actual</string>
11221122
<string name="widgets__weather__next_block">Inclusión en siguiente bloque</string>
11231123
<string name="widgets__weather__error">No se pudo consultar la condición actual de fees</string>
1124-
</resources>
1124+
</resources>

app/src/main/res/values-ca/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,4 +614,4 @@
614614
<string name="widgets__news__name">Capçaleres de Bitcoin</string>
615615
<string name="widgets__blocks__name">Blocs de Bitcoin</string>
616616
<string name="widgets__facts__name">Bitcoin Fets</string>
617-
</resources>
617+
</resources>

app/src/main/res/values-cs/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,4 +1121,4 @@
11211121
<string name="widgets__weather__current_fee">Aktuální průměrný poplatek</string>
11221122
<string name="widgets__weather__next_block">Zařazení do dalšího bloku</string>
11231123
<string name="widgets__weather__error">Nepodařilo se získat aktuální poplatkovou úroveň</string>
1124-
</resources>
1124+
</resources>

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,4 +1099,4 @@
10991099
<string name="widgets__weather__condition__poor__description">Wenn du es nicht eilig hast mit deiner Transaktion, könnte es besser sein etwas zu warten.</string>
11001100
<string name="widgets__weather__current_fee">Momentane Durchschnittsgebühr</string>
11011101
<string name="widgets__weather__error">Konnte aktuelle Gebührenwetterlage nicht ermitteln.</string>
1102-
</resources>
1102+
</resources>

app/src/main/res/values-el/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
<string name="slashtags__profile_link_suggestions">Προτάσεις</string>
7171
<string name="slashtags__profile_delete">Διαγραφή</string>
7272
<string name="widgets__widget__edit_custom">Προσαρμοσμένο</string>
73-
</resources>
73+
</resources>

app/src/main/res/values-es/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3+
<string name="cards__backupSeedPhrase__title">Copia de seguridad</string>
34
<string name="cards__discount__description">Saldo de gastos</string>
45
<string name="cards__invite__description">Comparta Bitkit</string>
56
<string name="cards__lightning__description">Pagos instantáneos</string>
@@ -353,6 +354,7 @@
353354
<string name="security__use_pin">Utilizar código PIN</string>
354355
<string name="security__wiped_title">Datos de Monedero Borrados</string>
355356
<string name="security__wiped_message">Bitkit ha sido restaurado y todos los datos de monedero han sido borrados.</string>
357+
<string name="settings__settings">Ajustes</string>
356358
<string name="settings__dev_enabled_title">Opciones de desarrollo activadas</string>
357359
<string name="settings__dev_disabled_title">Opciones de desarrollo desactivadas</string>
358360
<string name="settings__general_title">General</string>
@@ -733,4 +735,4 @@
733735
<string name="widgets__news__name">Titulares Bitcoin</string>
734736
<string name="widgets__blocks__name">Bloques Bitcoin</string>
735737
<string name="widgets__facts__name">Hechos Bitcoin</string>
736-
</resources>
738+
</resources>

app/src/main/res/values-fr/strings.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
<string name="cards__buyBitcoin__description">Achetez des bitcoins</string>
3333
<string name="cards__btFailed__title">Échec</string>
3434
<string name="cards__btFailed__description">Veuillez réessayer</string>
35+
<string name="cards__notifications__title">Soyez rémunéré</string>
36+
<string name="cards__notifications__description">Lorsque Bitkit est fermé</string>
3537
<string name="cards__suggestions">Suggestions</string>
3638
<string name="common__advanced">Avancé</string>
3739
<string name="common__continue">Continue</string>
@@ -767,6 +769,10 @@
767769
<string name="settings__gap__reset">Réinitialiser</string>
768770
<string name="settings__gap__gap_limit_update_title">Limite de l\'écart d\'adressage Mise à jour</string>
769771
<string name="settings__gap__gap_limit_update_description">Les modifications prendront effet après le redémarrage de l\'application.</string>
772+
<string name="settings__gap__look_behind">Voir en arrière</string>
773+
<string name="settings__gap__look_ahead">Voir en avant</string>
774+
<string name="settings__gap__look_behind_change">Voir changement en arrière</string>
775+
<string name="settings__gap__look_ahead_change">Voir changement en avant</string>
770776
<string name="settings__rgs__server_url">URL du serveur Rapid-Gossip-Sync</string>
771777
<string name="settings__rgs__button_connect">Connecter</string>
772778
<string name="settings__rgs__update_success_title">Mise à jour du serveur Rapid-Gossip-Sync</string>
@@ -1117,4 +1123,4 @@
11171123
<string name="widgets__weather__current_fee">Frais moyen actuel</string>
11181124
<string name="widgets__weather__next_block">Inclusion dans le bloc suivant</string>
11191125
<string name="widgets__weather__error">Impossible d’obtenir les frais de transaction actuels</string>
1120-
</resources>
1126+
</resources>

0 commit comments

Comments
 (0)