Skip to content

Same results for pt and pt-PT #215

@tamslinn

Description

@tamslinn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions