mirror of
1
Fork 0

[I18N] add [common] as first line

To keep weblate happy as it would otherwise be duplicating the content
to all sections.

See https://github.com/WeblateOrg/weblate/issues/10831 for more information.

(cherry picked from commit 5ffc10a00e)
(cherry picked from commit 96d10e793b)
This commit is contained in:
Earl Warren 2024-01-21 19:35:58 +00:00
parent 20b5ca1e6c
commit 34d21f6bc2
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
29 changed files with 32 additions and 1 deletions

View File

@ -54,7 +54,10 @@ func (store *localeStore) AddLocaleByIni(langName, langDesc string, source, more
for _, section := range iniFile.Sections() { for _, section := range iniFile.Sections() {
for _, key := range section.Keys() { for _, key := range section.Keys() {
var trKey string var trKey string
if section.Name() == "" || section.Name() == "DEFAULT" { // see https://codeberg.org/forgejo/discussions/issues/104
// https://github.com/WeblateOrg/weblate/issues/10831
// for an explanation of why "common" is an alternative
if section.Name() == "" || section.Name() == "DEFAULT" || section.Name() == "common" {
trKey = key.Name() trKey = key.Name()
} else { } else {
trKey = section.Name() + "." + key.Name() trKey = section.Name() + "." + key.Name()

View File

@ -1,3 +1,4 @@
[common]
home=Domů home=Domů
dashboard=Přehled dashboard=Přehled
explore=Procházet explore=Procházet

View File

@ -1,3 +1,4 @@
[common]
home=Startseite home=Startseite
dashboard=Übersicht dashboard=Übersicht
explore=Erkunden explore=Erkunden

View File

@ -1,3 +1,4 @@
[common]
home=Αρχική home=Αρχική
dashboard=Κεντρικός Πίνακας dashboard=Κεντρικός Πίνακας
explore=Εξερεύνηση explore=Εξερεύνηση

View File

@ -1,3 +1,4 @@
[common]
home = Home home = Home
dashboard = Dashboard dashboard = Dashboard
explore = Explore explore = Explore

View File

@ -1,3 +1,4 @@
[common]
home=Inicio home=Inicio
dashboard=Panel de control dashboard=Panel de control
explore=Explorar explore=Explorar

View File

@ -1,3 +1,4 @@
[common]
home=خانه home=خانه
dashboard=میز کار dashboard=میز کار
explore=گشت‌و‌گذار explore=گشت‌و‌گذار

View File

@ -1,3 +1,4 @@
[common]
home=Etusivu home=Etusivu
dashboard=Kojelauta dashboard=Kojelauta
explore=Tutki explore=Tutki

View File

@ -1,3 +1,4 @@
[common]
home=Accueil home=Accueil
dashboard=Tableau de bord dashboard=Tableau de bord
explore=Explorateur explore=Explorateur

View File

@ -1,3 +1,4 @@
[common]
home=Főoldal home=Főoldal
dashboard=Műszerfal dashboard=Műszerfal
explore=Felfedezés explore=Felfedezés

View File

@ -1,3 +1,4 @@
[common]
home=Beranda home=Beranda
dashboard=Dasbor dashboard=Dasbor
explore=Jelajahi explore=Jelajahi

View File

@ -1,3 +1,4 @@
[common]
home=Forsíða home=Forsíða
dashboard=Stjórnborð dashboard=Stjórnborð
explore=Vafra explore=Vafra

View File

@ -1,3 +1,4 @@
[common]
home=Home home=Home
dashboard=Pannello di controllo dashboard=Pannello di controllo
explore=Esplora explore=Esplora

View File

@ -1,3 +1,4 @@
[common]
home=ホーム home=ホーム
dashboard=ダッシュボード dashboard=ダッシュボード
explore=エクスプローラー explore=エクスプローラー

View File

@ -1,3 +1,4 @@
[common]
home= home=
dashboard=대시보드 dashboard=대시보드
explore=탐색 explore=탐색

View File

@ -1,3 +1,4 @@
[common]
home=Sākums home=Sākums
dashboard=Infopanelis dashboard=Infopanelis
explore=Izpētīt explore=Izpētīt

View File

@ -1,3 +1,4 @@
[common]
home=Beginscherm home=Beginscherm
dashboard=Overzicht dashboard=Overzicht
explore=Verkennen explore=Verkennen

View File

@ -1,3 +1,4 @@
[common]
home=Strona główna home=Strona główna
dashboard=Pulpit dashboard=Pulpit
explore=Odkrywaj explore=Odkrywaj

View File

@ -1,3 +1,4 @@
[common]
home=Inicio home=Inicio
dashboard=Painel dashboard=Painel
explore=Explorar explore=Explorar

View File

@ -1,3 +1,4 @@
[common]
home=Página inicial home=Página inicial
dashboard=Painel de controlo dashboard=Painel de controlo
explore=Explorar explore=Explorar

View File

@ -1,3 +1,4 @@
[common]
home=Главная home=Главная
dashboard=Панель управления dashboard=Панель управления
explore=Обзор explore=Обзор

View File

@ -1,3 +1,4 @@
[common]
home=මුල් පිටුව home=මුල් පිටුව
dashboard=උපකරණ පුවරුව dashboard=උපකරණ පුවරුව
explore=ගවේෂණය explore=ගවේෂණය

View File

@ -1,3 +1,4 @@
[common]
home=Domov home=Domov
dashboard=Nástenka dashboard=Nástenka
explore=Preskúmať explore=Preskúmať

View File

@ -1,3 +1,4 @@
[common]
home=Startsida home=Startsida
dashboard=Instrumentpanel dashboard=Instrumentpanel
explore=Utforska explore=Utforska

View File

@ -1,3 +1,4 @@
[common]
home=Ana Sayfa home=Ana Sayfa
dashboard=Pano dashboard=Pano
explore=Keşfet explore=Keşfet

View File

@ -1,3 +1,4 @@
[common]
home=Головна home=Головна
dashboard=Панель управління dashboard=Панель управління
explore=Огляд explore=Огляд

View File

@ -1,3 +1,4 @@
[common]
home=首页 home=首页
dashboard=首页 dashboard=首页
explore=探索 explore=探索

View File

@ -1,3 +1,4 @@
[common]
home=首頁 home=首頁
dashboard=控制面版 dashboard=控制面版
explore=探索 explore=探索

View File

@ -1,3 +1,4 @@
[common]
home=首頁 home=首頁
dashboard=資訊主頁 dashboard=資訊主頁
explore=探索 explore=探索