Skip to content

Commit 921a5c0

Browse files
emansijezeripath
andauthored
European Portuguese translation (#11568) (#11778)
This PR includes the modifications necessary to make use of the European Portuguese translation from the default setting. Co-authored-by: zeripath <[email protected]>
1 parent 0ad4083 commit 921a5c0

File tree

5 files changed

+58
-8
lines changed

5 files changed

+58
-8
lines changed

custom/conf/app.ini.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ JWT_SECRET=Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
937937
MAX_TOKEN_LENGTH=32767
938938

939939
[i18n]
940-
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
941-
NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
940+
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
941+
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,한국어
942942

943943
; Used for datetimepicker
944944
[i18n.datelang]
@@ -955,6 +955,7 @@ uk-UA = uk
955955
ja-JP = ja
956956
es-ES = es
957957
pt-BR = pt-BR
958+
pt-PT = pt
958959
pl-PL = pl
959960
bg-BG = bg
960961
it-IT = it

docs/config.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,50 @@ languages:
312312
url: https://discourse.gitea.io/
313313
weight: 80
314314
pre: group
315+
316+
pt-pt:
317+
weight: 6
318+
languageName: Português de Portugal
319+
menu:
320+
page:
321+
- name: Página inicial
322+
url: https://gitea.io/pt-pt/
323+
weight: 10
324+
pre: home
325+
- name: Documentação
326+
url: /pt-pt/
327+
weight: 20
328+
pre: question
329+
post: active
330+
- name: API
331+
url: https://try.gitea.io/api/swagger
332+
weight: 45
333+
pre: plug
334+
- name: Blog
335+
url: https://blog.gitea.io/
336+
weight: 30
337+
pre: rss
338+
- name: Código-fonte
339+
url: https://code.gitea.io/
340+
weight: 40
341+
pre: code
342+
- name: Tradução
343+
url: https://crowdin.com/project/gitea
344+
weight: 41
345+
pre: language
346+
- name: Descarregamentos
347+
url: https://dl.gitea.io/
348+
weight: 50
349+
pre: download
350+
- name: GitHub
351+
url: https://github.com/go-gitea/
352+
weight: 60
353+
pre: github
354+
- name: Discussão no Discord
355+
url: https://discord.gg/Gitea
356+
weight: 70
357+
pre: comment
358+
- name: Fórum
359+
url: https://discourse.gitea.io/
360+
weight: 80
361+
pre: group

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,8 @@ NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false`
605605

606606
## i18n (`i18n`)
607607

608-
- `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
609-
- `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
608+
- `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
609+
- `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
610610

611611
### i18n - Datepicker Language (`i18n.datelang`)
612612
Maps locales to the languages used by the datepicker plugin
@@ -623,6 +623,7 @@ Maps locales to the languages used by the datepicker plugin
623623
- `ja-JP`: **ja**
624624
- `es-ES`: **es**
625625
- `pt-BR`: **pt-BR**
626+
- `pt-PT`: **pt**
626627
- `pl-PL`: **pl**
627628
- `bg-BG`: **bg**
628629
- `it-IT`: **it**

modules/setting/setting.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,15 +1003,15 @@ func NewContext() {
10031003
if len(Langs) == 0 {
10041004
Langs = []string{
10051005
"en-US", "zh-CN", "zh-HK", "zh-TW", "de-DE", "fr-FR", "nl-NL", "lv-LV",
1006-
"ru-RU", "uk-UA", "ja-JP", "es-ES", "pt-BR", "pl-PL", "bg-BG", "it-IT",
1007-
"fi-FI", "tr-TR", "cs-CZ", "sr-SP", "sv-SE", "ko-KR"}
1006+
"ru-RU", "uk-UA", "ja-JP", "es-ES", "pt-BR", "pt-PT", "pl-PL", "bg-BG",
1007+
"it-IT", "fi-FI", "tr-TR", "cs-CZ", "sr-SP", "sv-SE", "ko-KR"}
10081008
}
10091009
Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
10101010
if len(Names) == 0 {
10111011
Names = []string{"English", "简体中文", "繁體中文(香港)", "繁體中文(台灣)", "Deutsch",
10121012
"français", "Nederlands", "latviešu", "русский", "Українська", "日本語",
1013-
"español", "português do Brasil", "polski", "български", "italiano",
1014-
"suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"}
1013+
"español", "português do Brasil", "Português de Portugal", "polski", "български",
1014+
"italiano", "suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"}
10151015
}
10161016
dateLangs = Cfg.Section("i18n.datelang").KeysHash()
10171017

options/locale/TRANSLATORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Damaris Padieu <damizx AT hotmail DOT fr>
2525
Daniel Speichert <daniel AT speichert DOT pl>
2626
David Yzaguirre <dvdyzag AT gmail DOT com>
2727
Dmitriy Nogay <me AT catwhocode DOT ga>
28+
Emanuel Angelo <emanuel DOT angelo AT gmail DOT com>
2829
Enrico Testori hypertesto AT gmail DOT com
2930
Ezequiel Gonzalez Rial <gonrial AT gmail DOT com>
3031
Gabriel Dugny <gabriel DOT dugny AT gmail DOT com>

0 commit comments

Comments
 (0)