1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05: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)
(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 _, key := range section.Keys() {
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()
} else {
trKey = section.Name() + "." + key.Name()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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