Open hangy opened 4 years ago
Basically, we've tried handing over responsability of translating links to translators, but the current system is very error prone, and we pedaled back. Also, URLs are forever. Thus the more centralized solution.
There's a proposal to solve URLs in static content, which would be a lifechanger for me, and improve the feeling of localisation by enabling stable, translated urls in a reliable way (and we could extend that to common.pot). https://github.com/openfoodfacts/openfoodfacts-server/issues/1818
Stale issue message
The nginx config for off contains 4 country specific links to a French donation page https://github.com/openfoodfacts/openfoodfacts-server/blob/cb03bcc799f3e9fa2218cf3bfcc009ddbdce0e4d/conf/nginx/sites-available/off#L111-L114 and a link to the worldwide English donation page https://github.com/openfoodfacts/openfoodfacts-server/blob/cb03bcc799f3e9fa2218cf3bfcc009ddbdce0e4d/conf/nginx/sites-available/off#L115, and also contains a bunch of language/country(?) specific location directives https://github.com/openfoodfacts/openfoodfacts-server/blob/cb03bcc799f3e9fa2218cf3bfcc009ddbdce0e4d/conf/nginx/sites-available/off#L211-L264 for donation pages
Additionally, the redirects are not even synced for several domains, as seen here https://github.com/openfoodfacts/openfoodfacts-server/blob/cb03bcc799f3e9fa2218cf3bfcc009ddbdce0e4d/conf/nginx/sites-available/off#L362-L363 https://github.com/openfoodfacts/openfoodfacts-server/blob/cb03bcc799f3e9fa2218cf3bfcc009ddbdce0e4d/conf/nginx/sites-available/off#L542-L543
In my opinion, the nginx configuration is a really bad place to put this configuration for several reasons
/html
directory in the git repository - inconsistent behaviourdon
subdomain be used for the Frenchdonne
URL instead of the Englishdonate
page?donnez.openfoodfacts.org
instead offr.openfoodfacts.org/donate
(orfr.openfoodfacts.org/donnez
if you must). If a shorter URL is required, an actual URL shortener could be used instead.