Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d29b67e9 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

add translations for browser outdated + switch to t method

parent 7942f4c8
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@ function showBrowserCompatibilityWarning() {
        container = document.getElementById('main');
    container.innerHTML =
        '<div class="passwords-browser-compatibility">' +
        '<h1 class="title">Your Browser is outdated</h1>' +
        '<div class="message">Your browser is outdated and does not provide the necessary functionality to display this page.' +
        '<br>Please check if an update is available for your browser or choose a modern and compatible browser from the list below.' +
        '<h1 class="title">'+t('passwords', 'Your Browser is outdated')+'</h1>' +
        '<div class="message">'+t('passwords', 'Your browser is outdated and does not provide the necessary functionality to display this page.') +
        '<br>'+t('passwords', 'Please check if an update is available for your browser or choose a modern and compatible browser from the list below.') +
        '</div><div class="browser">' +
        '<a target="_blank" rel="noreferrer noopener" href="https://www.mozilla.org/firefox/new/" style="background-image: url(' + imgpath + 'firefox.png)">Firefox</a>' +
        '<a target="_blank" rel="noreferrer noopener" href="https://vivaldi.com/download/" style="background-image: url(' + imgpath + 'vivaldi.png)">Vivaldi</a>' +
@@ -55,10 +55,10 @@ function showWebAssemblyCompatibilityWarning() {
        container = document.getElementById('main');
    container.innerHTML =
        '<div class="passwords-browser-compatibility passwords-jit-compatibility">' +
        '<div class="message"><img class="warning-icon" src="' + imgpath +'"/>'+OC.L10N.translate('passwords', 'To view this website properly, please enable Javascript JIT.') +
        '<div class="message"><img class="warning-icon" src="' + imgpath +'"/>'+t('passwords', 'To view this website properly, please enable Javascript JIT.') +
        '</div><div class="info" >' +
        '<h3 class="howto">' + OC.L10N.translate('passwords', 'How to enable it') + '</h3>' +
        '<p>' + OC.L10N.translate('passwords', 'JavaScript JIT might be disabled in your browser in order to render web content in a more secure configuration. You can always enable Javascript JIT in the settings, depending on your web browser.') + '</p><br />' +
        '<h3 class="howto">' + t('passwords', 'How to enable it') + '</h3>' +
        '<p>' + t('passwords', 'JavaScript JIT might be disabled in your browser in order to render web content in a more secure configuration. You can always enable Javascript JIT in the settings, depending on your web browser.') + '</p><br />' +
        '</div></div>';
    container.setAttribute('class', '');

@@ -66,8 +66,8 @@ function showWebAssemblyCompatibilityWarning() {
}

function checkSystem() {
    if(!isWebAssemblyEnable()) showWebAssemblyCompatibilityWarning();
    else if(!isCompatibleBrowser()) showBrowserCompatibilityWarning();
   // if(!isWebAssemblyEnable()) showWebAssemblyCompatibilityWarning();
    if(!isCompatibleBrowser()) showBrowserCompatibilityWarning();
}

window.addEventListener('DOMContentLoaded', checkSystem, false);
+5 −0
Original line number Diff line number Diff line
OC.L10N.register(
    "passwords",
    {
        "Your Browser is outdated": "Votre navigateur n'est pas à jour",
        "Your browser is outdated and does not provide the necessary functionality to display this page.": "Votre navigateur n'est pas assez récent et ne fourni pas les fonctionnalités nécessaires pour afficher cette page.",
        "To view this website properly, please enable Javascript JIT.": "Pour afficher ce site correctement, veuillez activer Javascript JIT.",
        "How to enable it": "Comment l'activer",
        "Please check if an update is available for your browser or choose a modern and compatible browser from the list below.": "Vérifiez si des mise à jours sont disponibles ou choisissez un navigateur moderne et compatible dans la liste ci-dessous",
        "JavaScript JIT might be disabled in your browser in order to render web content in a more secure configuration. You can always enable Javascript JIT in the settings, depending on your web browser.": "JavaScript JIT est désactivé par défaut sur le navigateur pour de manière plus sécurisée. Vous pouvez toujours réactiver JavaScript JIT dans les paramètres. <br /><br /><p><b>Étapes pour le navigateur eOS:</b> Appuyez sur l'icone à 3 points en haut à gauche puis:<div class=\"quote\">Paramètres  > paramètres Site</div>Puis, activez <b>Javascript JIT</b> en bas de la liste.</p>"
	},
"nplurals=2; plural=(n != 1);");