Skip to content

Commit

Permalink
Merge pull request #14947 from opf/fix/portuguese-locales
Browse files Browse the repository at this point in the history
Separate pt-BR and pt-PT through a crowdin custom mapping
  • Loading branch information
oliverguenther authored Mar 8, 2024
2 parents eb03e32 + 5e2aa05 commit 2140555
Show file tree
Hide file tree
Showing 108 changed files with 146 additions and 8,323 deletions.
4 changes: 3 additions & 1 deletion config/constants/settings/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ class Definition
},
available_languages: {
format: :array,
default: %w[en de fr es pt it zh-CN ko ru].freeze,
# Manually managed list with languages that have ~50+ translation ratio in Crowdin
# https://crowdin.com/project/openproject
default: %w[ca cs de el en es fr hu id it ja ko lt nl no pl pt-BR pt-PT ro ru sk sl sv tr uk zh-CN zh-TW].freeze,
allowed: -> { Redmine::I18n.all_languages }
},
avatar_link_expiry_seconds: {
Expand Down
1,325 changes: 0 additions & 1,325 deletions config/locales/crowdin/js-pt.yml

This file was deleted.

472 changes: 0 additions & 472 deletions config/locales/crowdin/pt.seeders.yml

This file was deleted.

3,409 changes: 0 additions & 3,409 deletions config/locales/crowdin/pt.yml

This file was deleted.

2 changes: 1 addition & 1 deletion config/locales/generated/af.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ckb-IR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/eo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/fil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/hi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/hr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/kk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/lt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/lv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/mn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/ne.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
2 changes: 1 addition & 1 deletion config/locales/generated/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
14 changes: 14 additions & 0 deletions config/locales/generated/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file has been generated by script/i18n/generate_languages_translations.
# Please do not edit directly.
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
# and most extensive standard repository of locale data available.
---
pt-BR:
cldr:
language_name: Português do brasil
14 changes: 14 additions & 0 deletions config/locales/generated/pt-PT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file has been generated by script/i18n/generate_languages_translations.
# Please do not edit directly.
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
# and most extensive standard repository of locale data available.
---
pt-PT:
cldr:
language_name: Português europeu
2 changes: 1 addition & 1 deletion config/locales/generated/ro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# To update this file, run script/i18n/generate_languages_translations.
#
# The translations come from version 42 of the Unicode CLDR project .
# The translations come from version 44 of the Unicode CLDR project.
#
# The Unicode Common Locale Data Repository (CLDR) provides key building
# blocks for software to support the world's languages, with the largest
Expand Down
Loading

0 comments on commit 2140555

Please sign in to comment.