-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Keep the same UI language after clicking showing products from the whole world #1437
Comments
Related code: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/lib/ProductOpener/Display.pm#L4035 $request_ref->{world_current_link} needs to be built with the $lc language code instead of "en", and then the subdomain needs to be world-[language code].openfoodfacts.org (e.g. world-de.openfoodfacts.org ) |
@stephanegigandet I've gone through the whole page but couldn't find the "Entsprechende Produkte aus der ganzen Welt ansehen" (Show respective products from the whole world) sentence. So I'm unable to tackle the issue. |
@Fienne most of the time, we use ids for messages to handle translation. The sentence here is in "po/common/de.po" and it has id "view_products_from_the_entire_world" that you may find in the code (or a template). But starting from the link might be difficult, because you have then to understand where the router will route the request. So @stephanegigandet already points to the right point in code. See #1437 (comment) |
Keep the same UI language after clicking showing products from the whole world Fixes #1437
Summary:
https://de.openfoodfacts.org changes to https://world.openfoodfacts.org, but better would be https://world-de.openfoodfacts.org
Steps to reproduce:
Expected behavior:
It should show international products with labels in the language previously chosen (supposedly for good reason).
Observed behavior:
It shows international products, but with English labels.
The text was updated successfully, but these errors were encountered: