Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The result of the translation is showing Portuguese (Portugal) instead of Portuguese (Brazil) #997

Open
3 tasks done
lbarrios1 opened this issue Nov 2, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@lbarrios1
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you checked the FAQ (#6)?

  • I have checked the FAQ

Are you using the latest Zotero and the latest plugin?

  • I have confirmed I'm using the latest Zotero and the latest plugin

Environment

OS: Windows 11 Home
Zotero Version: 7.0.9 (64-bit)
Plugin Version: 2.0.5

Describe the bug

I configured the plugin to translate from English (United States) to Portuguese (Brazil). However, the translation result is showing as Portuguese (Portugal).

This is proven by testing the Google Translate tool itself, which shows the difference in spelling between Portuguese (Brazilian) and Portuguese (Portugal) words.

Debug Output

debug output.txt

Anything else?

print4
print3
print2
print1

@lbarrios1 lbarrios1 added the bug Something isn't working label Nov 2, 2024
@windingwind
Copy link
Owner

Thanks for the debug log. Seems like Google Translate has its own language code for this language. I will try to fix, also PR is always welcome.

Copy link

🚀 This ticket has been resolved in v2.0.8. See Release v2.0.8 for release notes.

@windingwind
Copy link
Owner

Google Translate uses pt for Portuguese (Brazil), instead of pt-BR, and pt-PT for Portuguese (Portugal). It should be fine if you choose the option Portuguese if you are on old versions.

The latest release should fix this.

@lbarrios1
Copy link
Author

@windingwind, thank you for your attention on this matter.

I'm afraid that the bug is still not fixed.

I updated the plugin to the most updated version (2.0.12).

It doesn't matter if I choose Google (API) engine or other engine (e.g., DeepL (Free Plan)), and it doesn't matter if I choose 'Portuguese' or 'Portuguese (Brazil)' as output languages, the result of the translation is still showing in Portuguese (Portugal).

zotero-print1

zotero-print2

zotero-print3

debug output.txt

windingwind added a commit that referenced this issue Dec 10, 2024
Copy link

🚀 This ticket has been resolved in v2.0.13. See Release v2.0.13 for release notes.

@windingwind
Copy link
Owner

Thanks for the feedback.

For Google, I really have no idea what's going on there. Since this is a somehow hacked version of the API used by the Google Translate website, there are a lot of guesses that Google provides degraded results on purpose for this kind of usage.

The issue with DeepL and DeepLX should be fixed now. Please try again.

@windingwind windingwind reopened this Dec 10, 2024
@windingwind
Copy link
Owner

I keep this issue open for now:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants