European Portuguese translation (#11568)
This PR includes the modifications necessary to make use of the European Portuguese translation from the default setting.
This commit is contained in:
parent
2c5b3c72e8
commit
a39557f8fb
|
@ -947,8 +947,8 @@ JWT_SECRET=Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
|
||||||
MAX_TOKEN_LENGTH=32767
|
MAX_TOKEN_LENGTH=32767
|
||||||
|
|
||||||
[i18n]
|
[i18n]
|
||||||
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
|
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
|
||||||
NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
|
NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
|
||||||
|
|
||||||
; Used for datetimepicker
|
; Used for datetimepicker
|
||||||
[i18n.datelang]
|
[i18n.datelang]
|
||||||
|
@ -965,6 +965,7 @@ uk-UA = uk
|
||||||
ja-JP = ja
|
ja-JP = ja
|
||||||
es-ES = es
|
es-ES = es
|
||||||
pt-BR = pt-BR
|
pt-BR = pt-BR
|
||||||
|
pt-PT = pt
|
||||||
pl-PL = pl
|
pl-PL = pl
|
||||||
bg-BG = bg
|
bg-BG = bg
|
||||||
it-IT = it
|
it-IT = it
|
||||||
|
|
|
@ -312,3 +312,50 @@ languages:
|
||||||
url: https://discourse.gitea.io/
|
url: https://discourse.gitea.io/
|
||||||
weight: 80
|
weight: 80
|
||||||
pre: group
|
pre: group
|
||||||
|
|
||||||
|
pt-pt:
|
||||||
|
weight: 6
|
||||||
|
languageName: Português de Portugal
|
||||||
|
menu:
|
||||||
|
page:
|
||||||
|
- name: Página inicial
|
||||||
|
url: https://gitea.io/pt-pt/
|
||||||
|
weight: 10
|
||||||
|
pre: home
|
||||||
|
- name: Documentação
|
||||||
|
url: /pt-pt/
|
||||||
|
weight: 20
|
||||||
|
pre: question
|
||||||
|
post: active
|
||||||
|
- name: API
|
||||||
|
url: https://try.gitea.io/api/swagger
|
||||||
|
weight: 45
|
||||||
|
pre: plug
|
||||||
|
- name: Blog
|
||||||
|
url: https://blog.gitea.io/
|
||||||
|
weight: 30
|
||||||
|
pre: rss
|
||||||
|
- name: Código-fonte
|
||||||
|
url: https://code.gitea.io/
|
||||||
|
weight: 40
|
||||||
|
pre: code
|
||||||
|
- name: Tradução
|
||||||
|
url: https://crowdin.com/project/gitea
|
||||||
|
weight: 41
|
||||||
|
pre: language
|
||||||
|
- name: Descarregamentos
|
||||||
|
url: https://dl.gitea.io/
|
||||||
|
weight: 50
|
||||||
|
pre: download
|
||||||
|
- name: GitHub
|
||||||
|
url: https://github.com/go-gitea/
|
||||||
|
weight: 60
|
||||||
|
pre: github
|
||||||
|
- name: Discussão no Discord
|
||||||
|
url: https://discord.gg/Gitea
|
||||||
|
weight: 70
|
||||||
|
pre: comment
|
||||||
|
- name: Fórum
|
||||||
|
url: https://discourse.gitea.io/
|
||||||
|
weight: 80
|
||||||
|
pre: group
|
||||||
|
|
|
@ -611,8 +611,8 @@ NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false`
|
||||||
|
|
||||||
## i18n (`i18n`)
|
## i18n (`i18n`)
|
||||||
|
|
||||||
- `LANGS`: **en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR**: List of locales shown in language selector
|
- `LANGS`: **en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR**: List of locales shown in language selector
|
||||||
- `NAMES`: **English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어**: Visible names corresponding to the locales
|
- `NAMES`: **English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어**: Visible names corresponding to the locales
|
||||||
|
|
||||||
### i18n - Datepicker Language (`i18n.datelang`)
|
### i18n - Datepicker Language (`i18n.datelang`)
|
||||||
Maps locales to the languages used by the datepicker plugin
|
Maps locales to the languages used by the datepicker plugin
|
||||||
|
@ -629,6 +629,7 @@ Maps locales to the languages used by the datepicker plugin
|
||||||
- `ja-JP`: **ja**
|
- `ja-JP`: **ja**
|
||||||
- `es-ES`: **es**
|
- `es-ES`: **es**
|
||||||
- `pt-BR`: **pt-BR**
|
- `pt-BR`: **pt-BR**
|
||||||
|
- `pt-PT`: **pt**
|
||||||
- `pl-PL`: **pl**
|
- `pl-PL`: **pl**
|
||||||
- `bg-BG`: **bg**
|
- `bg-BG`: **bg**
|
||||||
- `it-IT`: **it**
|
- `it-IT`: **it**
|
||||||
|
|
|
@ -1003,15 +1003,15 @@ func NewContext() {
|
||||||
if len(Langs) == 0 {
|
if len(Langs) == 0 {
|
||||||
Langs = []string{
|
Langs = []string{
|
||||||
"en-US", "zh-CN", "zh-HK", "zh-TW", "de-DE", "fr-FR", "nl-NL", "lv-LV",
|
"en-US", "zh-CN", "zh-HK", "zh-TW", "de-DE", "fr-FR", "nl-NL", "lv-LV",
|
||||||
"ru-RU", "uk-UA", "ja-JP", "es-ES", "pt-BR", "pl-PL", "bg-BG", "it-IT",
|
"ru-RU", "uk-UA", "ja-JP", "es-ES", "pt-BR", "pt-PT", "pl-PL", "bg-BG",
|
||||||
"fi-FI", "tr-TR", "cs-CZ", "sr-SP", "sv-SE", "ko-KR"}
|
"it-IT", "fi-FI", "tr-TR", "cs-CZ", "sr-SP", "sv-SE", "ko-KR"}
|
||||||
}
|
}
|
||||||
Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
|
Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
|
||||||
if len(Names) == 0 {
|
if len(Names) == 0 {
|
||||||
Names = []string{"English", "简体中文", "繁體中文(香港)", "繁體中文(台灣)", "Deutsch",
|
Names = []string{"English", "简体中文", "繁體中文(香港)", "繁體中文(台灣)", "Deutsch",
|
||||||
"français", "Nederlands", "latviešu", "русский", "Українська", "日本語",
|
"français", "Nederlands", "latviešu", "русский", "Українська", "日本語",
|
||||||
"español", "português do Brasil", "polski", "български", "italiano",
|
"español", "português do Brasil", "Português de Portugal", "polski", "български",
|
||||||
"suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"}
|
"italiano", "suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"}
|
||||||
}
|
}
|
||||||
dateLangs = Cfg.Section("i18n.datelang").KeysHash()
|
dateLangs = Cfg.Section("i18n.datelang").KeysHash()
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ Damaris Padieu <damizx AT hotmail DOT fr>
|
||||||
Daniel Speichert <daniel AT speichert DOT pl>
|
Daniel Speichert <daniel AT speichert DOT pl>
|
||||||
David Yzaguirre <dvdyzag AT gmail DOT com>
|
David Yzaguirre <dvdyzag AT gmail DOT com>
|
||||||
Dmitriy Nogay <me AT catwhocode DOT ga>
|
Dmitriy Nogay <me AT catwhocode DOT ga>
|
||||||
|
Emanuel Angelo <emanuel DOT angelo AT gmail DOT com>
|
||||||
Enrico Testori hypertesto AT gmail DOT com
|
Enrico Testori hypertesto AT gmail DOT com
|
||||||
Ezequiel Gonzalez Rial <gonrial AT gmail DOT com>
|
Ezequiel Gonzalez Rial <gonrial AT gmail DOT com>
|
||||||
Gabriel Dugny <gabriel DOT dugny AT gmail DOT com>
|
Gabriel Dugny <gabriel DOT dugny AT gmail DOT com>
|
||||||
|
|
Loading…
Reference in New Issue