#31384: localize snowflake website -------------------------------------------------+------------------------- Reporter: emmapeel | Owner: cohosh Type: enhancement | Status: | needs_information Priority: Medium | Milestone: Component: Circumvention/Snowflake | Version: Severity: Normal | Resolution: Keywords: l10n, anti-censorship-roadmap- | Actual Points: september | Parent ID: | Points: Reviewer: | Sponsor: | Sponsor28 -------------------------------------------------+-------------------------
Comment (by dcf): Replying to [comment:10 cohosh]: > It won't work right now because I need to hook up the .js fill function, but this is an idea of what it looks like: https://github.com/cohosh/snowflake/tree/ticket31384 If you want to do it this way, I would suggest not doing {{{ <h2>__MSG_browser__</h2> }}} but instead something like {{{ <h2 data-msgid="__MSG_browser__">Browser</h2> }}} That way, a failure of the fill function, or a missing translation, will at least show English text rather than a raw message identifier. The [https://developer.mozilla.org/en- US/docs/Learn/HTML/Howto/Use_data_attributes data- attribute prefix] can be used to attach arbitrary information to HTML elements. {{{ __MSG_either__<a href="https://trac.torproject.org/projects/tor/register">__MSG_createAccount__</a> __MSG_or__ <a href="https://trac.torproject.org/projects/tor/login">log in</a> __MSG_usingShared__<b>cypherpunks</b> __MSG_withPassword__ <b>writecode</b>.</li> }}} I'm guessing that this kind of structure will be difficult to translate because the translator cannot change the order of the `<a></a>` and `<b></b>` fragments. It may be better to allow HTML in the replacement strings. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31384#comment:16> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs