[openstreetmap/openstreetmap-website] Separate Translatable Messages for Privacy Policy Link in Signup Form (PR #4936)

Emin Kocan notifications at github.com
Mon Jul 1 16:40:33 UTC 2024


#### Background

This PR addresses the need for distinct translatable messages for the privacy policy link in different contexts within the signup form mentioned in #4773 , enhancing localization and ensuring accurate translations.

In the signup form, the privacy_policy_link and its respective label were reused in two different sentences (in email help HTML and by signing up HTML messages). Different contexts may require distinct translations due to language-specific rules, such as declension.

#### Changes:
- Added separate translation keys for the privacy policy link in the email_help and by_signing_up sections.
- Updated the form to use these new translation keys, ensuring the correct link label is used in each context.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4936

-- Commit Summary --

  * separate translatable messages for privacy policy link in sign up form

-- File Changes --

    M app/views/users/new.html.erb (20)
    M config/locales/en.yml (19)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4936.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4936.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4936
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4936 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240701/1d18af6c/attachment-0001.htm>


More information about the rails-dev mailing list