Skip to content

Commit

Permalink
[pt] pre reform locales added (pt-AO and pt-MZ)
Browse files Browse the repository at this point in the history
* basic support for alternate AOs added;
* Angola, Mozambique and Cape Verde locales added
- users wishing to maintain older compound rules may use this language
variants;
* TODO activate separate grammar.xml and hunspell checker for preAO.
* TODO add changes to core MessageBundle.properties
  • Loading branch information
TiagoSantos committed Nov 9, 2016
1 parent 22f382b commit 7c6b766
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public String getShortCode() {

@Override
public String[] getCountries() {
return new String[]{"AO", "MZ"};
return new String[]{"CV"};
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Note: post an pre reform are not listed here, see https://github.com/languagetool-org/languagetool/issues/96
languageClasses=org.languagetool.language.Portuguese,org.languagetool.language.PortugalPortuguese,org.languagetool.language.BrazilianPortuguese
languageClasses=org.languagetool.language.Portuguese,org.languagetool.language.PortugalPortuguese,org.languagetool.language.BrazilianPortuguese,org.languagetool.language.AngolaPortuguese,org.languagetool.language.MozambiquePortuguese
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,13 @@ moreInfo = Mais informa\u00e7\u00e3o\:

pt = Portugu\u00eas

pt-BR = Portugu\u00eas (Brasil)
pt-AO = Portugu\u00eas (Angola preAO)

This comment has been minimized.

Copy link
@danielnaber

danielnaber Nov 9, 2016

Member

This will not work, these changes will get lost with the next i18n update. Instead, to change the translation, you need an account on https://www.transifex.com and work there. To change the keys, you'll need to change MessageBundle.en and MessageBundle_en.properties git. This will then (a day or so later) show up on transifex.

This comment has been minimized.

Copy link
@TiagoSantos81

TiagoSantos81 Nov 9, 2016

Author Contributor

I saw the warning in the header, but it was the way I found to show show it in my local build. I have a trasifex account so it is no issue, but can I was avoiding edits outside PT. Can I edit MessageBundle.en?

This comment has been minimized.

Copy link
@danielnaber

danielnaber Nov 9, 2016

Member

Yes, feel free to edit the English original.

This comment has been minimized.

Copy link
@TiagoSantos81

TiagoSantos81 Nov 9, 2016

Author Contributor

Thanks. Cheers!


pt-PT = Portugu\u00eas (Portugal)
pt-MZ = Portugu\u00eas (Mo\u00e7ambique preAO)

pt-BR = Portugu\u00eas (Brasil posAO)

pt-PT = Portugu\u00eas (Portugal posAO)

guiWarning = Aten\u00e7\u00e3o

Expand Down

0 comments on commit 7c6b766

Please sign in to comment.