Add Brazilian Portuguese language to phabricator
Description
Revisions and Commits
Related Objects
- Mentioned In
- T248902: Translation of phabricator iwas not deployed correctly in Brazilian Portuguese
T244634: Add Turkish (tr) language to Phabricator - Mentioned Here
- rPHTR244773670a3c: Fixed locale code mapping between Phabricator and translatewiki.
rPHAB2f93ce4c25be: Don't show "Limited" or "Test" translations unless an install is in developer…
rPHTR7a91b1b79c72: Localisation updates from https://translatewiki.net.
Event Timeline
Removing Language-Team as this has nothing to do with the Language Team (see description) and it is up to each team what they plan to work on
@Eduaddad: Do you plan to work on fixing this task, as you increased the priority of this task?
Ah, thank you for that! :) I'm not sure how the process works to deploy translations, to be honest. :-/
The translations get uploaded periodically from translatewiki.net and then I compile and deploy them with the next phabricator deployment window. All together it usually takes a week or more to make it's way into production.
I see a lot of pt-br strings in rPHTR7a91b1b79c72: Localisation updates from https://translatewiki.net. and that will be deployed with the next phabricator update.
pt-br locale will be added when rPHTR76bb64361cec: Updated translations and added Brazilian Portuguese (pt-br) is deployed.
@Eduaddad: Yes, obviously it is. Is anything unclear?
(I'm not sure what is the intention behind asking the same question again and again.)
FWIW I don't manage Phabricator translations so I cannot do anything to speed up or slow down the process. I shall note however that I can't see T215697#5359784. It appears as {C2} to me (like Tasks and Objects I am not allowed to see). I thought I should mention it. Regards.
Phabricator has its own updating/deployment process which is different from the regular language updates Wikimedia wikis do get.
Mentioned in SAL (#wikimedia-operations) [2019-08-15T00:03:20Z] <twentyafterfour> starting phabricator upgrade to 2019-08-14/1 refs T215697
This is published but phabricator doesn't show the language because it currently has less than 500 strings translated.
Is it checking those 500 strings in some specific module? If so, I would like to document this on the project page.
It just checks how many strings are in a given locale and arbitrarily hides them when there are less than 512 total strings.
This is the upstream change: rPHAB2f93ce4c25be: Don't show "Limited" or "Test" translations unless an install is in developer…
See line 78:
if ($size > 512 || $is_english) { $type = 'normal'; } else { $type = 'limited'; }
I think for this install it might make sense to change the threshold to something quite a lot smaller than 512.
As for the number of translations on translatewiki.net, perhaps some of them aren't making it through the conversion to phabricator translation classes?
https://translatewiki.net/w/i.php?title=Special:MessageGroupStats&language=fi&group=phabricator#sortable:3=desc Hungary is available in Phabricator settings, but many languages above it are not.
It is important to investigate why, because this could mean that some translator effort is wasted and we care a lot about not doing that.
$ find . -name "pt-br.json" | xargs cat | grep : | wc -l 1987 $ find . -name "*PtBr.php" | xargs cat | grep '=>' | wc -l 1926
I see one problem - in the locales definition I see the language code listed as pt-br but in the translation classes it's pt_Br.
Ok this should be fixed by rPHTR244773670a3c: Fixed locale code mapping between Phabricator and translatewiki.
I should be able to get the patch deployed tomorrow (Wednesday August 20th at approximately Midnight UTC)
Brazilian Portuguese translation was not placed correctly
https://translatewiki.net/wiki/Phabricator:phabricator-core-3e89e386c610bfba/pt-br
https://translatewiki.net/wiki/Phabricator:phabricator-core-4dc26af4d57c1c28/pt-br
(some translations were not placed)
@Eduaddad: What do you mean by 100% added? I added all the translations that were available as of Wednesday, you can see all of the changes in this commit: rPHTR244773670a3c
because I think a lot of translation is missing or I did the translation in the wrong place
https://translatewiki.net/wiki/Phabricator:phabricator-maniphest-9d0e05d653ce25e7/pt-br or https://translatewiki.net/wiki/Phabricator:phabricator-core-ca7bc5316dc2df09/pt-br and other translations are not on the site
(most translations done in January, February and March are not here)
https://translatewiki.net/wiki/Phabricator:phabricator-core-6993a16188fa7ba4/pt-br
I'm not sure what could be the problem, I'll double check that I didn't miss anything.
I realize that some of my translations were not placed
Thank you so much for verifying the implementation
the error still continues
translations translated before March and April 2019 are not here
https://translatewiki.net/wiki/Phabricator:phabricator-core-b0dd737a679b9166/pt-br
Would it be worth closing this issue as resolved, as Brazilian Portuguese is now available in Phab? Then for any remaining issues, one or more separate issues can be opened that contain more details not related directly to adding generic pt-br support.
the language is in error and the translations were done but are still in English in Phabricator