Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

[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)
This commit is contained in:
Earl Warren 2024-01-21 19:35:58 +00:00
parent 1e3c6af5fe
commit 96d10e793b
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=探索