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

Minor localization bugs #3087

Open
cangareijo opened this issue Nov 7, 2023 · 4 comments
Open

Minor localization bugs #3087

cangareijo opened this issue Nov 7, 2023 · 4 comments
Labels
bug Issue that describes a problem with a feature that doesn't work as expected.

Comments

@cangareijo
Copy link

cangareijo commented Nov 7, 2023

https://tatoeba.org/wall/show_message/40270

In the Interlingua (ia) localization of the web interface, the "show {number} more translations" button always appears as "monstrar 1 altere traduction" no matter how many altere traductiones there actually are to show. It appears that the same also happens with br, gos, zza, pt-br, tl, kab, and bal locales. But I don't know these languages so I can't tell for sure.

Looking at it I also noticed that the page title on sentence pages renders incorrectly with pt-br, but this is a simple error in the PO file (field names got translated: "{frase} - {idioma} exemplo de frase"); and for the same reason the button to show more translations in the el locale correctly chooses the plural form but doesn't show the {αριθμός} in it.

@cangareijo cangareijo added the bug Issue that describes a problem with a feature that doesn't work as expected. label Nov 7, 2023
@Yorwba
Copy link
Contributor

Yorwba commented Nov 7, 2023

The number of translations is incorrectly displayed for some languages because CakePHP uses a hardcoded mapping of language codes to plural rules.

@jiru
Copy link
Member

jiru commented Nov 12, 2023

We ran into a similar problems in the past for Arabic.
There was a first attempt to fix the problem for all languages in cakephp/cakephp#5348 but it was rejected. Then we run into the same problem again for Turkish in #1866, which was fixed it in cakephp/cakephp#13209. I guess this is not the end...

@cangareijo
Copy link
Author

cangareijo commented Nov 12, 2023

Why not just use parentheses? When I download something with my browser, the message I get is something like "Falta(m) 5 minuto(s)", equivalent to "5 minute(s) remaining". Other Romance languages do the same thing, not just for number but also for gender.

@jiru
Copy link
Member

jiru commented Nov 18, 2023

Because we care about languages. Technology should adapt to natural languages, not the opposite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue that describes a problem with a feature that doesn't work as expected.
Projects
None yet
Development

No branches or pull requests

3 participants