Re: Release notes translation



Here is a very simplified implementation of the previous suggestion:

<script type="text/_javascript_">
window._onload_ = function() {

    var ln = window.navigator.language||navigator.browserLanguage;
    window.location.href = "" href="https://help.gnome.org/misc/release-notes/41.0/">https://help.gnome.org/misc/release-notes/41.0/' + ln;
 
}
</script>

Maybe someone with more experience in JS could review/check it, but I think it's a first step.

El lun, 27 sept 2021 a las 9:22, Daniel Mustieles García (<daniel mustieles gmail com>) escribió:
A quick search in stackoverflow returned this:

https://stackoverflow.com/questions/53468548/detect-language-with-_javascript_-and-redirect-to-another-page

With a very simple modification in the language-based redirection it could do the trick

Hope it helps :-)

Regards

El vie, 24 sept 2021 a las 10:49, Alexandre Franke (<afranke gnome org>) escribió:
On Fri, Sep 24, 2021 at 9:16 AM Rafael Fontenelle <rafaelff gnome org> wrote:
> It doesn't seem to have language selector or browser content negotiation for switching languages manually or automatically, but the translation is there. It is a new implementation, to be improved.

Help with that is welcome:
https://gitlab.gnome.org/Teams/Engagement/release-notes/-/issues/34

--
Alexandre Franke
GNOME Hacker
_______________________________________________
gnome-i18n mailing list
gnome-i18n gnome org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]