Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weblate translation update #5636

Merged
merged 62 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
2a08179
Translated using Weblate (Swedish)
Oct 10, 2024
13d3516
Translated using Weblate (Estonian)
Oct 13, 2024
dce4a9e
Added translation using Weblate (Slovak)
Oct 14, 2024
a5d5a0c
Translated using Weblate (Slovak)
Oct 14, 2024
b63cac0
Added translation using Weblate (Vietnamese)
Oct 24, 2024
1af6c53
Translated using Weblate (Vietnamese)
Oct 24, 2024
4358215
Translated using Weblate (Czech)
Oct 27, 2024
de99a75
Translated using Weblate (German)
Oct 27, 2024
dad9982
Translated using Weblate (French)
Oct 30, 2024
13f9a97
Translated using Weblate (Chinese (Traditional Han script))
Nov 1, 2024
002fdba
Translated using Weblate (Chinese (Simplified Han script))
wql219 Nov 3, 2024
409e6f4
Translated using Weblate (Chinese (Traditional Han script))
Nov 4, 2024
924ec29
Translated using Weblate (Estonian)
Nov 5, 2024
240d817
Translated using Weblate (French)
Nov 6, 2024
16348c7
Translated using Weblate (Chinese (Traditional Han script))
Nov 5, 2024
ab95e5b
Translated using Weblate (Czech)
Nov 7, 2024
855d445
Translated using Weblate (Czech)
Nov 9, 2024
4af6828
Translated using Weblate (French)
Nov 8, 2024
5c6a953
Translated using Weblate (Polish)
Nov 10, 2024
cad507b
Translated using Weblate (Vietnamese)
Nov 10, 2024
1d70c8c
Translated using Weblate (Chinese (Simplified Han script))
wql219 Nov 11, 2024
aed1e9a
Translated using Weblate (Turkish)
Nov 11, 2024
631402b
Translated using Weblate (Turkish)
Nov 12, 2024
22254ad
Translated using Weblate (German)
Nov 13, 2024
3e54e7a
Translated using Weblate (Dutch)
Nov 14, 2024
c1f1bf0
Translated using Weblate (Turkish)
Nov 14, 2024
dbaf2d5
Translated using Weblate (Dutch)
Nov 15, 2024
4c331f1
Translated using Weblate (Turkish)
Nov 15, 2024
8b69c27
Translated using Weblate (Turkish)
Nov 17, 2024
60f6f3c
Translated using Weblate (Norwegian Nynorsk)
Nov 21, 2024
4b387a7
Translated using Weblate (French)
Nov 22, 2024
d9f8027
Translated using Weblate (Korean)
Nov 25, 2024
8fa60b8
Translated using Weblate (Turkish)
Nov 25, 2024
d844673
Translated using Weblate (Chinese (Simplified Han script))
wql219 Nov 24, 2024
44893f0
Translated using Weblate (Chinese (Traditional Han script))
Nov 25, 2024
2dbc10f
Translated using Weblate (Turkish)
Nov 25, 2024
470f475
Translated using Weblate (French)
Nov 30, 2024
75a485e
Translated using Weblate (Ukrainian)
Nov 30, 2024
e999517
Translated using Weblate (Ukrainian)
Nov 30, 2024
b2d21e5
Translated using Weblate (Ukrainian)
Dec 1, 2024
bb7c4d9
Translated using Weblate (Swedish)
Dec 2, 2024
39a0366
Translated using Weblate (Chinese (Simplified Han script))
wql219 Dec 2, 2024
f74ea16
Translated using Weblate (German)
Dec 2, 2024
adff9a5
Translated using Weblate (English (United States))
Dec 2, 2024
6c947a8
Translated using Weblate (Spanish)
Dec 2, 2024
67ab804
Translated using Weblate (French)
Dec 3, 2024
47de14f
Translated using Weblate (Chinese (Simplified Han script))
wql219 Dec 3, 2024
8d7a9b1
Translated using Weblate (Czech)
Dec 4, 2024
e70010d
Translated using Weblate (Ukrainian)
Dec 10, 2024
302d1cb
Translated using Weblate (Swedish)
Dec 12, 2024
3c86e97
Translated using Weblate (German)
Dec 17, 2024
d72a4a9
Translated using Weblate (Chinese (Traditional Han script))
Dec 19, 2024
6dc1a8d
Translated using Weblate (Slovak)
Dec 22, 2024
1fbdf8d
Translated using Weblate (Japanese)
Jan 18, 2025
0e731a6
Translated using Weblate (Latvian)
Jan 19, 2025
d9ceb4d
Translated using Weblate (Norwegian Bokmål)
Jan 21, 2025
ab54d64
Translated using Weblate (Turkish)
Jan 25, 2025
e90717b
Translated using Weblate (Polish)
Jan 29, 2025
87d542c
Add instructions to merge codeberg translations
WithoutPants Jan 30, 2025
9ba7b3a
Rename locale files to correct format
WithoutPants Jan 30, 2025
ad13d21
Add new locales to dropdown list
WithoutPants Jan 30, 2025
a83eb5c
Fix error when selecting nn-NO locale
WithoutPants Jan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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