Hi Manuela,
thank you very much for the Portuguese (Portugal) translations!
Piotr Drąg commented that he thinks using pt_PT for Portuguese in
Portugal is wrong and just pt should be used:
https://github.com/mike-fabian/ibus-typing-booster/pull/59
https://github.com/mike-fabian/ibus-typing-booster/pull/59#issuecomment-5...
If he is right, we should ask the weblate admin to move Manuela’s
translation from pt_PT to pt so that nothing gets lost.
On Fedora (I tried this on my F31 system), the majority of Portuguese
translations seems to live in pt or pt_BR (although there are a few in pt_PT):
$ ls /usr/share/locale/pt/LC_MESSAGES/ | wc
957 957 19184
$ ls /usr/share/locale/pt_BR/LC_MESSAGES/ | wc
1006 1006 19852
$ ls /usr/share/locale/pt_PT/LC_MESSAGES/ | wc
3 3 28
$ rpm -qf /usr/share/locale/pt_PT/LC_MESSAGES/*
audacity-2.3.2-2.fc31.x86_64
git-core-2.23.0-1.fc31.x86_64
tilix-1.9.3-2.fc31.x86_64
$
As there are only very few translations in pt_PT, this is probably a
mistake and probably the policy on Fedora is that Portuguese (Portugal)
translations should be stored in pt.
If they are stored in pt, this has the effect that they are also used as
a fallback if a user runs in pt_BR.UTF-8 locale but Brazilian Portuguese
translations are not available. I don’t know whether it is reasonable to
fall back to Portuguese Portuguese from Brazilian Portuguese, depends on
how similar these language variants still are.
By the way, CLDR does it the other way round, they fall back to
Brazilian Portuguese if another variant of Portuguese cannot be found.
See:
https://github.com/unicode-org/cldr/blob/master/common/main/pt_BR.xml
This file is basically empty and thus just falls back to
https://github.com/unicode-org/cldr/blob/master/common/main/pt.xml
Whereas
https://github.com/unicode-org/cldr/blob/master/common/main/pt_PT.xml
contains stuff which is different in Portuguese Portuguese from
Brazilian Portuguese.
But on Fedora (and probably most other Linux systems), it seems like pt
is used for Portuguese Portuguese.
Is there an “offical” policy?
What shall we do?
--
Mike FABIAN <mfabian(a)redhat.com>
睡眠不足はいい仕事の敵だ。