Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Making MDN links dynamic to locale

2 views
Skip to first unread message

Nootan Ghimire

unread,
Sep 14, 2016, 2:34:56 PM9/14/16
to dev-l10n
Sorry for spamming the list with multiple consecutive emails.

But I was just wondering about this.

I also came across the following types of strings while localizing Firefox.

The ServiceWorker for scope ‘%1$S’ encountered an error decrypting a push
> message: ‘%2$S’. For help with encryption, please see
> https://developer.mozilla.org/en-US/docs/Web/API/Push_API/Using_the_Push_API#Encryption
>

So this string contains a link to MDN. If any locale already has their MDN
translated, then I guess they would translate the link to their
corresponding URL (or not?)

But for those locales who have not yet translated their MDN webpages will
obviously leave the link as it is (or in some cases, point to the locale
that closely matches theirs).

And when finally they translate MDN to their locale, they will probably
again need to search those links and change it to their locale in order to
make it more natural.

Instead of that, could we do some technical changes in future builds (I
guess which includes changing the codebase) so that `en-US` in the above
string will be a placeholder for locale code (defaults to en-US), so that
translation becomes a bit less redundant?

I don't know if this is a right place to drop this feedback, but I hope to
get some level of suggestion on this matter. :)

Thanks!
Nootan Ghimire
Localization Lead,
Mozilla Nepal
nootan....@gmail.com

Francesco Lodolo

unread,
Sep 14, 2016, 2:53:07 PM9/14/16
to Nootan Ghimire, dev-l10n
You can safely drop the en-US part, MDN will try to redirect the URL (in
the past I've some issues with it)
https://developer.mozilla.org/en-US/docs/Web/API/Push_API/Using_the_Push_API#Encryption
<https://developer.mozilla.org/en-US/docs/Web/API/Push_API/Using_the_Push_API#Encryption>

becomes
https://developer.mozilla.org/docs/Web/API/Push_API/Using_the_Push_API#Encryption

Francesco
> _______________________________________________
> dev-l10n mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-l10n
>
0 new messages