diff --git a/webinstall/cibuild.html b/webinstall/cibuild.html index 4f41c1a..78ce76d 100644 --- a/webinstall/cibuild.html +++ b/webinstall/cibuild.html @@ -1,5 +1,5 @@ - + @@ -83,4 +83,4 @@ - \ No newline at end of file + diff --git a/webinstall/cibuild.js b/webinstall/cibuild.js index 26443b0..690da1d 100644 --- a/webinstall/cibuild.js +++ b/webinstall/cibuild.js @@ -867,5 +867,27 @@ class PipelineInfo{ buildSelectors(ROOT_PATH,structure.config.children,true); if (! isRunning()) findPipeline(); updateStatus(); + const translationCheck=()=>{ + const lang = document.documentElement.lang; + if (lang != "en"){ + alert( + "This page will not work correctly with translation enabled" + ); + } + } + // Works at least for Chrome, Firefox, Safari and probably more. Not Microsoft + // Edge though. They're special. + // Yell at clouds if a translator doesn't change it + const observer = new MutationObserver(() => { + translationCheck(); + }); + observer.observe(document.documentElement, { + attributes: true, + attributeFilter: ['lang'], + childList: false, + characterData: false, + }); + translationCheck(); + } })(); \ No newline at end of file