You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to generate translations for both Portuguese (Brazil) and Portuguese (Portugal).
I checked the output of the supported languages command and it lists pt and pt-PT.
However both targets seem to produce the same output. Example below:
> $tr->setTarget('pt');
> echo $tr->translate('The photo that you recently uploaded');
A foto que você enviou recentemente⏎
> $tr->setTarget('pt-PT');
> echo $tr->translate('The photo that you recently uploaded');
A foto que você enviou recentemente⏎
The direct output from the google translate web interface for pt-PT is different to pt - it looks like using pt-PT in this library is just using reverting to pt
As pt-PT is listed in the supported languages, is this correct or is there something I need to do to enable it? Thanks
The text was updated successfully, but these errors were encountered:
Sorry but pt-BR gives exactly the same output too. I should have said that originally.
> $tr->setTarget('pt');
> echo $tr->translate('The photo that you recently uploaded');
A foto que você enviou recentemente⏎
> $tr->setTarget('pt-BR');
> echo $tr->translate('The photo that you recently uploaded');
A foto que você enviou recentemente⏎
> $tr->setTarget('pt-PT');
> echo $tr->translate('The photo that you recently uploaded');
A foto que você enviou recentemente⏎
(When I checked the translations at https://translate.google.com, it was showing the code pt in the url when you choose 'Portueguese (Brazil)' as the target so I assumed google was using pt as an alias for pt-BR rather than pt-PT)
Also the output of all the commands above is what translate.google.com returns for Portuguese (Brazil), not Portuguese (Portugal)
Hi, I am trying to generate translations for both Portuguese (Brazil) and Portuguese (Portugal).
I checked the output of the supported languages command and it lists pt and pt-PT.
However both targets seem to produce the same output. Example below:
The direct output from the google translate web interface for
pt-PT
is different topt
- it looks like usingpt-PT
in this library is just using reverting topt
As pt-PT is listed in the supported languages, is this correct or is there something I need to do to enable it? Thanks
The text was updated successfully, but these errors were encountered: