Skip to content

Commit

Permalink
Weblate translation update (#5636)
Browse files Browse the repository at this point in the history
* Translated using Weblate (Swedish)

Currently translated at 100.0% (1175 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/sv/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (1175 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/et/

* Added translation using Weblate (Slovak)

* Translated using Weblate (Slovak)

Currently translated at 1.9% (23 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/sk/

* Added translation using Weblate (Vietnamese)

* Translated using Weblate (Vietnamese)

Currently translated at 9.4% (111 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/vi/

* Translated using Weblate (Czech)

Currently translated at 100.0% (1175 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/cs/

* Translated using Weblate (German)

Currently translated at 87.4% (1028 of 1175 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/de/

* Translated using Weblate (French)

Currently translated at 100.0% (1179 of 1179 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (1179 of 1179 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hant/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1181 of 1181 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hans/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (1181 of 1181 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hant/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (1181 of 1181 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/et/

* Translated using Weblate (French)

Currently translated at 100.0% (1181 of 1181 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (1181 of 1181 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hant/

* Translated using Weblate (Czech)

Currently translated at 99.3% (1175 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/cs/

* Translated using Weblate (Czech)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/cs/

* Translated using Weblate (French)

Currently translated at 100.0% (1183 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Polish)

Currently translated at 83.8% (992 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/pl/

* Translated using Weblate (Vietnamese)

Currently translated at 14.1% (167 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/vi/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1183 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hans/

* Translated using Weblate (Turkish)

Currently translated at 72.6% (859 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Turkish)

Currently translated at 82.3% (974 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (German)

Currently translated at 87.1% (1031 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/de/

* Translated using Weblate (Dutch)

Currently translated at 69.7% (825 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/nl/

* Translated using Weblate (Turkish)

Currently translated at 85.4% (1011 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Dutch)

Currently translated at 70.4% (834 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/nl/

* Translated using Weblate (Turkish)

Currently translated at 87.2% (1032 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Turkish)

Currently translated at 87.2% (1032 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Norwegian Nynorsk)

Currently translated at 14.7% (174 of 1183 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/nn/

* Translated using Weblate (French)

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Korean)

Currently translated at 99.5% (1179 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/ko/

* Translated using Weblate (Turkish)

Currently translated at 91.0% (1078 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hans/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hant/

* Translated using Weblate (Turkish)

Currently translated at 93.3% (1105 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (French)

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Ukrainian)

Currently translated at 18.7% (222 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 29.3% (348 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 60.3% (714 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/uk/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/sv/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1184 of 1184 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hans/

* Translated using Weblate (German)

Currently translated at 87.5% (1037 of 1185 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/de/

* Translated using Weblate (English (United States))

Currently translated at 1.3% (16 of 1185 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/en_US/

* Translated using Weblate (Spanish)

Currently translated at 97.6% (1157 of 1185 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/es/

* Translated using Weblate (French)

Currently translated at 100.0% (1192 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/fr/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1192 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hans/

* Translated using Weblate (Czech)

Currently translated at 99.9% (1191 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/cs/

* Translated using Weblate (Ukrainian)

Currently translated at 88.2% (1052 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/uk/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1192 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/sv/

* Translated using Weblate (German)

Currently translated at 100.0% (1192 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/de/

* Translated using Weblate (Chinese (Traditional Han script))

Currently translated at 100.0% (1192 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/zh_Hant/

* Translated using Weblate (Slovak)

Currently translated at 2.4% (29 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/sk/

* Translated using Weblate (Japanese)

Currently translated at 83.8% (999 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/ja/

* Translated using Weblate (Latvian)

Currently translated at 9.4% (113 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/lv/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 19.0% (227 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/nb_NO/

* Translated using Weblate (Turkish)

Currently translated at 92.7% (1105 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/tr/

* Translated using Weblate (Polish)

Currently translated at 83.8% (1000 of 1192 strings)

Translation: stash/stash
Translate-URL: https://translate.codeberg.org/projects/stash/stash/pl/

* Add instructions to merge codeberg translations

* Rename locale files to correct format

* Add new locales to dropdown list

* Fix error when selecting nn-NO locale

---------

Co-authored-by: AlpacaSerious <[email protected]>
Co-authored-by: Zesty6249 <[email protected]>
Co-authored-by: rodopd <[email protected]>
Co-authored-by: namphongbody <[email protected]>
Co-authored-by: NymeriaCZ <[email protected]>
Co-authored-by: upstairs <[email protected]>
Co-authored-by: doodoo <[email protected]>
Co-authored-by: TWNO1 <[email protected]>
Co-authored-by: wql219 <[email protected]>
Co-authored-by: Larsluph <[email protected]>
Co-authored-by: danny60718 <[email protected]>
Co-authored-by: k1ngt0ng <[email protected]>
Co-authored-by: slickdaddy <[email protected]>
Co-authored-by: Vistaus <[email protected]>
Co-authored-by: throbbing <[email protected]>
Co-authored-by: yec <[email protected]>
Co-authored-by: orders-pawl <[email protected]>
Co-authored-by: Mila_42 <[email protected]>
Co-authored-by: murgleburgle <[email protected]>
Co-authored-by: DJSweder <[email protected]>
Co-authored-by: debate <[email protected]>
Co-authored-by: abev66 <[email protected]>
Co-authored-by: pipo <[email protected]>
Co-authored-by: ikayaki <[email protected]>
Co-authored-by: Marky05 <[email protected]>
Co-authored-by: lexiconi <[email protected]>
Co-authored-by: LauraS <[email protected]>
  • Loading branch information
28 people authored Jan 30, 2025
1 parent 3078cb3 commit d95e357
Show file tree
Hide file tree
Showing 25 changed files with 2,989 additions and 435 deletions.
14 changes: 13 additions & 1 deletion ui/v2.5/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ const AppContainer: React.FC<React.PropsWithChildren<{}>> = PatchFunction(
}
) as React.FC;

function translateLanguageLocale(l: string) {
// intl doesn't support all locales, so we need to map some to supported ones
switch (l) {
case "nn-NO":
// use other Norwegian locale for intl
return "nb-NO";
default:
return l;
}
}

export const App: React.FC = () => {
const config = useConfiguration();
const [saveUI] = useConfigureUI();
Expand All @@ -110,6 +121,7 @@ export const App: React.FC = () => {

const language =
config.data?.configuration?.interface?.language ?? defaultLocale;
const intlLanguage = translateLanguageLocale(language);

// use en-GB as default messages if any messages aren't found in the chosen language
const [messages, setMessages] = useState<{}>();
Expand Down Expand Up @@ -279,7 +291,7 @@ export const App: React.FC = () => {
<ErrorBoundary>
{messages ? (
<IntlProvider
locale={language}
locale={intlLanguage}
messages={messages}
formats={intlFormats}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,28 @@ export const SettingsInterfacePanel: React.FC = PatchComponent(
<option value="fa-IR">فارسی (ایران) (Preview)</option>
<option value="fi-FI">Suomi</option>
<option value="fr-FR">Français (France)</option>
<option value="hi-IN">हिन्दी (Preview)</option>
<option value="hr-HR">Hrvatski (Preview)</option>
<option value="id-ID">Indonesian (Preview)</option>
<option value="hu-HU">Magyar (Preview)</option>
<option value="it-IT">Italiano</option>
<option value="ja-JP">日本語 (日本)</option>
<option value="ko-KR">한국어 (대한민국)</option>
<option value="lv-LV">Latviešu (Preview)</option>
<option value="nb-NO">Norsk bokmål (Preview)</option>
<option value="nn-NO">Nynorsk (Preview)</option>
<option value="nl-NL">Nederlands (Nederland)</option>
<option value="pl-PL">Polski</option>
<option value="pt-BR">Português (Brasil)</option>
<option value="ro-RO">Română (Preview)</option>
<option value="ru-RU">Русский (Россия)</option>
<option value="es-ES">Español (España)</option>
<option value="sk-SK">Slovenčina (Preview)</option>
<option value="sv-SE">Svenska</option>
<option value="tr-TR">Türkçe (Türkiye)</option>
<option value="th-TH">ภาษาไทย (Preview)</option>
<option value="uk-UA">Ukrainian (Preview)</option>
<option value="th-TH">ภาษาไทย (ไทย)</option>
<option value="uk-UA">Ukrainian (Україна)</option>
<option value="vi-VN">Tiếng Việt (Preview)</option>
<option value="zh-TW">繁體中文 (台灣)</option>
<option value="zh-CN">简体中文 (中国)</option>
</SelectSetting>
Expand Down
27 changes: 26 additions & 1 deletion ui/v2.5/src/locales/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
Use `en-GB.json` by default. This should have _all_ message IDs in it. Only add to other json files if the value is different to `en-GB` since it will fall back to use it if the message ID is not found in the chosen language.

Try to keep message IDs in alphabetical order for ease of reference.
Try to keep message IDs in alphabetical order for ease of reference.

# Merging translations from Codeberg Weblate

1. (**first time only**) Add remote for the Codeberg Weblate repository:
```bash
git remote add weblate_codeberg https://translate.codeberg.org/git/stash/stash/
```
2. (optional) Lock the Weblate repository.
3. Fetch the Weblate repository:
```bash
git fetch weblate_codeberg develop
```
4. Create and/or checkout a branch to hold the Weblate translations:
```bash
git checkout -b codeberg_weblate
```
5. Reset the branch to the Weblate repository's `develop` branch:
```bash
git reset --hard weblate_codeberg/develop
```
6. Push the branch to your github account:
```bash
git push origin codeberg_weblate
```
7. Create a pull request to merge the Weblate translations into the main repository.
57 changes: 41 additions & 16 deletions ui/v2.5/src/locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@
"show_male_label": "Ukázat mužské účinkující",
"source": "Zdroj",
"mark_organized_desc": "Po kliknutí na tlačítko Uložit okamžitě označte scénu jako Uspořádanou.",
"mark_organized_label": "Označit jako Uspořádané při uložení"
"mark_organized_label": "Označit jako Uspořádané při uložení",
"errors": {
"blacklist_duplicate": "Duplikovat položku blacklistu"
}
},
"noun_query": "Dotaz",
"results": {
Expand Down Expand Up @@ -533,7 +536,7 @@
"transcodes": "Transkódy scén"
},
"generate_sprites_during_scan_tooltip": "Sada obrázků zobrazená pod videopřehrávačem pro snadnou navigaci.",
"generate_video_covers_during_scan": "Generuj obaly scén",
"generate_video_covers_during_scan": "Generovat obaly scén",
"anonymise_database": "Vytvoří kopii databáze do adresáře záloh, anonymizuje všechna citlivá data. To pak může být poskytnuto ostatním pro účely odstraňování problémů a debuggování. Původní databáze se nemění. Anonymizovaná databáze používá formát názvu souboru {filename_format}.",
"optimise_database": "Pokusit se zlepšit výkon analyzováním a opětovným sestavením celého databázového souboru.",
"generate_clip_previews_during_scan": "Generování náhledů pro obrázkové klipy",
Expand All @@ -542,7 +545,7 @@
"rescan_tooltip": "Znovu skenovat každý soubor v cestě. Používá se k vynucení aktualizace metadat souboru a opětovnému skenování zip souborů."
},
"tools": {
"scene_duplicate_checker": "Kontrola na duplikaci scén",
"scene_duplicate_checker": "Detektor duplicitních scén",
"scene_filename_parser": {
"add_field": "Přidat pole",
"capitalize_title": "Převést titul na kapitálky",
Expand All @@ -558,7 +561,7 @@
"whitespace_chars": "Whitespace znaky",
"whitespace_chars_desc": "Tyto znaky v názvu budou nahrazeny prázdným znakem (mezerou)"
},
"scene_tools": "Nástroje scény"
"scene_tools": "Nástroje pro scény"
},
"ui": {
"abbreviate_counters": {
Expand Down Expand Up @@ -606,17 +609,17 @@
"star_precision": {
"label": "Přesnost hvězd hodnocení",
"options": {
"full": "Plná",
"full": "Plné",
"half": "Poloviční",
"quarter": "Čtvrtinová",
"tenth": "Desetina"
"quarter": "Čtvrtinové",
"tenth": "Desetiné"
}
},
"type": {
"label": "Typ hodnocení",
"options": {
"decimal": "Desetinný",
"stars": "Hvězdy"
"decimal": "Desetinné",
"stars": "Hvězdičky"
}
}
},
Expand Down Expand Up @@ -987,7 +990,8 @@
"required": "${path} je vyžadované pole",
"unique": "${path} musí být jedinečná",
"blank": "${path} nesmí být prázdná",
"date_invalid_form": "${path} musí být ve formátu YYYY-MM-DD (Rok-Měsíc-Den)"
"date_invalid_form": "${path} musí být ve formátu YYYY-MM-DD (Rok-Měsíc-Den)",
"end_time_before_start_time": "Čas ukončení musí být větší nebo roven času zahájení"
},
"type": "Typ",
"twitter": "Twitter",
Expand Down Expand Up @@ -1165,7 +1169,9 @@
"errors": {
"something_went_wrong_description": "Pokud to vypadá na problém s vašemi vstupy, pokračujte kliknutím na tlačítko Zpět a opravte je. Jinak upozorněte na chybu na {githubLink} nebo vyhledejte pomoc na {discordLink}.",
"something_went_wrong": "Ach ne! Něco se pokazilo!",
"something_went_wrong_while_setting_up_your_system": "Při nastavování systému se něco pokazilo. Zde je chyba, kterou jsme obdrželi: {error}"
"something_went_wrong_while_setting_up_your_system": "Při nastavování systému se něco pokazilo. Zde je chyba, kterou jsme obdrželi: {error}",
"unable_to_retrieve_system_status": "Nelze načíst stav systému: {error}",
"unexpected_error": "Došlo k neočekávané chybě: {error}"
},
"folder": {
"up_dir": "Nahoru o adresář",
Expand Down Expand Up @@ -1226,7 +1232,13 @@
"header": "Chyba",
"loading_type": "Chyba při načítání {type}",
"invalid_javascript_string": "Neplatný kód javascriptu : {error}",
"invalid_json_string": "Neplatný string JSON: {error}"
"invalid_json_string": "Neplatný string JSON: {error}",
"custom_fields": {
"field_name_required": "Název pole je povinný",
"field_name_whitespace": "Název pole nesmí obsahovat mezery ani na začátku ani na konci",
"duplicate_field": "Název pole musí být jedinečný",
"field_name_length": "Název pole musí být kratší než 65 znaků"
}
},
"eye_color": "Barva očí",
"fake_tits": "Falešná prsa",
Expand Down Expand Up @@ -1256,7 +1268,8 @@
"isMissing": "Chybí",
"last_played_at": "Naposledy přehráno",
"loading": {
"generic": "Načítání…"
"generic": "Načítání…",
"plugins": "Znovu načíst pluginy…"
},
"library": "Knihovna",
"marker_count": "Počet Značek",
Expand Down Expand Up @@ -1336,7 +1349,7 @@
"primary_file": "Primární soubor",
"primary_tag": "Primární tag",
"queue": "Fronta",
"random": "Náhodný",
"random": "Náhodně",
"last_o_at": "Poslední O",
"o_history": "Historie O",
"odate_recorded_no": "Žádný Datum O Nezaznamenán",
Expand Down Expand Up @@ -1369,7 +1382,7 @@
"scene_updated_at": "Scéna aktualizována",
"scenes": "Scény",
"scenes_updated_at": "Scéna aktualizována",
"second": "Druhá",
"second": "Sekunda",
"seconds": "Sekund",
"settings": "Nastavení",
"empty_server": "Chcete-li na této stránce zobrazit doporučení, přidejte na svůj server nějaké scény.",
Expand Down Expand Up @@ -1491,5 +1504,17 @@
"sub_group_count": "Počet podskupin",
"include_sub_studio_content": "Zahrnout obsah podstudií",
"include_sub_tag_content": "Zahrnout obsah podtagů",
"include_sub_groups": "Zahrnout podskupiny"
"include_sub_groups": "Zahrnout podskupiny",
"time_end": "Čas ukončení",
"criterion_modifier_values": {
"any": "Jakýkoli",
"any_of": "Jakýkoli z",
"none": "Žádný",
"only": "Pouze"
},
"custom_fields": {
"title": "Uživatelská pole",
"value": "Hodnota",
"field": "Pole"
}
}
Loading

0 comments on commit d95e357

Please sign in to comment.