Skip to content

Commit

Permalink
[eos-translations] more DE, FR, RU translations; added more translato…
Browse files Browse the repository at this point in the history
…r instructions into README.md
  • Loading branch information
manuel-192 committed Sep 17, 2023
1 parent 24d3b54 commit b437a30
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
8 changes: 4 additions & 4 deletions eos-translations/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=eos-translations
pkgdesc="EndeavourOS translation support"
pkgver=23.7
pkgver=23.8
pkgrel=1
arch=('any')
license=('GPL')
Expand Down Expand Up @@ -45,12 +45,12 @@ source=(
)
sha512sums=('2cf06da4e6cd71ba1c656760f9f9466f7940405dd4777c2cd4ec36c0cc0dcad5cba642474183e0e0c5c6c05253fbd2bc5626963b407c026aa0993a2d0d578b0e'
'd4de1875194bfdffb42bdee1f6d040eeaa6df06ac6f2c58a5afd0b798446aece93ec07bf333d9f1d16b3a4f9377ae20a9d0ad8d1ad09481f8eed9c7e06db44be'
'1ccb0a135316a277aa446160a46317e13c7f8a280b4b91d1d169fe01d083e2034c5c9ff2edd79ad52c16266e0b9ed620fa1b98200c4d6dbc02d9ff9262f801da'
'15984848393cbfb9cffef67f73c7721b4119d335e8bec13476942bbc0d6347d0fc3851115c1012aedce10ba3bfb908a243bfbb633f08cd5c9aafbe482dca5047'
'2c948698ff781d719e2df2009a14350d817cba9200c2b27ec01470bd1a49c8d48bb37db4ccf4cb2c523310240f9093975e9b5553020d8151e707510365af5410'
'33e593e8177eba8c424e52f319f02f691ea3480907d935461c9058066f1f00f935fc17fb33ddaae3e319a52084e31c77dea2008bc5875cadcb3ee57679fc23cf'
'151cc75bdd0f78b4f6e08ed942cb3db140ec103b3ade4388f4e39b3a4034542795b2105e7fb3016966c14eb05fdc8f952ee53518c2afe563addf7c1ce1def73c'
'b3874e7e7e5023e49e10cd3a6cf6a676b80a6c4951a5e6505c36b65070f03aae1a8b7d7eb56748984d0d19c5c9b1558c5b5736476368866db54e0f986c700a47'
'8821218c4b567b781e53236b778324b0750527389bdcc250bc1b26378a9311d5d8602c7381d5307ec79f7a0e9c330ea3791c87a3e91d4141ddde2b9c5ef44ddd'
'463fce484313c1ac3c0a7fff17928256701b388b627354ac6120dc8479969890ec11754ae05e939a3af3263efedf447050063c6a42c54381fe01aeb645a3a44b'
'a201a5257b1916e21b86936b75a8217d56a245b09ec80e62eee6bb8d3288a5023c2ba11ac86f03307e0ad01a1ad9216cfd2949fc72f15d931d0046bafc991eb8'
'3d54d139eaa5cef0b4960ab2a912ab76429bc59b727bf5fbf27fd9495c8b1631a33d85e7d3084044c07887d6353e8c3d0d3cc1ea1854b793669a4b9d14a956e3'
'2282de363c4da66b1fce97c9adb9a158e3fd4b5abff1c75695ca8ae144238a1ccbdc6fb6b637d4bbb11dcd6509f9797b66da71026b49a9b9ccda416dbf4bc71f'
Expand All @@ -61,7 +61,7 @@ sha512sums=('2cf06da4e6cd71ba1c656760f9f9466f7940405dd4777c2cd4ec36c0cc0dcad5cba
'cceb769c2e0fedbc527171557e5a6ce42ced7fc0f45ac0d74447a87d25a9d0fa77f5bd94f3935e8558ce37b6ed3364e00acaf541f3026ec40ac8861c03625775'
'f847db78936307b8eaffa8466d11d49a70311ebe3a33c777473a0575b9746aa57ccfacce12c584ebbb6c15c8803070c06643890090c1af0c7c97c8465b40325a'
'83e5478efb87b5f68e9b13a2ebfc101a748b9c0beec4c53060026b9ad7f8682e1f94f49df77160afcee41a20e014750293726abaf0bfdcce3f0175c393101ec6'
'c3bfa3b0957a7764b2404437846b3c2624194f5083a6225c1da59657046de441b535f88b3579513c8b238addc4515b6640ccc56f981a9eb4a54d0d80ec87c0df'
'bba40a68a95dfb9915c902d326122058a2dc3312a40193a5709c4cdddc306a0b76a713ab37ba8e9feb45c6e5048b29a59616e2b5fdee469b95e5a56815af70fb'
'394b2892013f83d81919fad7a1436680b63b5e83019874b6926d30ed0d856a9b4e69d398c8763d5ef3c8a83642e0e0b3bfb9cc4fff1c53a47fe293e0395b8627'
'c6fd801eec3940a73ba254e334e983ba2de1a1d31b75fe24c6b98d8e0b232e93fd3549288190cc212535b22041faea25892b8bc1ec044779bae5a3040a35177d'
'86b529b28a87bdd7b800cf80e9ceada76c0d78a59188beabc4148fbacf57807c3c0e110484fa593a0b54a5a9bf5549a4bfba148c5aa85849eae0ada998649e75'
Expand Down
31 changes: 24 additions & 7 deletions eos-translations/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
# Translations for the Welcome app

The `eos-translations` package contains translations mainly for the **Welcome** app, but also some other EndeavourOS apps.
The `eos-translations` package contains translations mainly for the **Welcome** app, but (to some degree) also other EndeavourOS apps.

Files that implement the actual translations:

File name | Description
:---- | :-------
:-------- | :----------
translation-*.bash | All language translation files.
translations.bash | Main script that implements how the translation files are used.
translations.bash | Main script that implements the translation mechanism.

## Translation reference

The English translation file, `translation-en.bash`, serves as the reference for all other translation files.

A translation needs to implement the things described below.

### _tr_lang
All translation files need to have variable `_tr_lang` set:
```
_tr_lang=xx (xx is a language acronym, for example "en" for English)
_tr_lang=xx # xx is a language acronym, for example "en" for English
```
Then there will be actual translation strings as lines of this form:
The value of `xx` above is case sensitive, and must be set according to the *file name* of a translation (e.g. `translation-`**en**`.bash`).

Note that many language *variations* are currently not implemented. The mechanism, however, is available for adding more variations. For a new variation the value of `_tr_lang` must be set accordingly (e.g. `_tr_lang=en_AU`).

### The translation strings
The actual translation strings will be implemented using the `_tr_add2` function:
```
_tr_add2 <unique-string-id> "<string-contents-in-your-language>"
```

Note that the string contents *must* be written inside quotes (because the string can include spaces or special characters).<br>
See also the examples below.

### Special features

A special marking
Expand All @@ -27,10 +41,13 @@ A special marking
%%s
```

inside the `<string-contents-in-your-language>` means the app using the string can replace **%%s** in the string with app specific contents, e.g. the name of the desktop environment. It resembles printf's %s formatting feature.
inside the `<string-contents-in-your-language>` means the app using the string can replace **%%s** in the string with app specific contents, e.g. the name of the desktop environment. It resembles printf's %s formatting feature.<br>For example (a shortened version of the actual definition):

```
_tr_add2 cal_info2 "Offline method gives you the %%s desktop.\n"
```

### Example:
## Example:

```
_tr_add2 nb_tab_GeneralInfo "General Info"
Expand Down
4 changes: 4 additions & 0 deletions eos-translations/translation-fr.bash
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,7 @@ _tr_add2 cal_info6 "\nAprès l'instalaltion, le système est à jou

# 25-aout-2023
_tr_add2 ins_pmtip2 "Partitionmanager permet l'examen et la gestion des partitionsd du disque et la structure"

# 16-sept-2023
_tr_add2 ins_arm_start "Image installateur EndeavourOS ARM"
_tr_add2 ins_arm_starttip "Démarre l'installation de l'édition EndeavourOS ARM"
4 changes: 4 additions & 0 deletions eos-translations/translation-ru.bash
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,7 @@ _tr_add2 ins_no_connection "Примечание: Подключени

# 2023-Aug-25
_tr_add2 ins_pmtip2 "Менеджер разделов позволяет просматривать и управлять разделами и структурой диска."

# 2023-Sep-16
_tr_add2 ins_arm_start "Установщик образа EndeavourOS ARM"
_tr_add2 ins_arm_starttip "Старт установки EndeavourOS ARM edition"

0 comments on commit b437a30

Please sign in to comment.