Add German translation
Series of Tubes now speaks German. site/i18n/de.js translates all 3,063 labels in informal "du". Networking terms that German engineers say in English stay English (Peering, Transit, Dark Fiber, Wave, Port, POP, IX, Route Server, LAG, PNI and so on); plain "fiber" is "Glasfaser" and "fiber pair" is "Faserpaar". RouteScript syntax stays English, as in the other languages. German is registered in the language list and the offline cache, so a German browser starts in German. Every per-language test now covers it, and the German style notes are in the add-strings skill and in the dictionary header.
This commit is contained in:
parent
8e36b22351
commit
1a0a70e575
13 changed files with 3099 additions and 10 deletions
|
|
@ -154,7 +154,7 @@
|
|||
|
||||
<script>
|
||||
// Language: the player's saved choice, else the browser's, else English. Non-English dictionaries load before the game.
|
||||
(function(){const langs=window.SOT_LANGS={en:'English',it:'Italiano',pt:'Português',fr:'Français',es:'Español'};let l=null;try{l=localStorage.getItem('sot-lang');}catch(e){}
|
||||
(function(){const langs=window.SOT_LANGS={en:'English',it:'Italiano',pt:'Português',fr:'Français',es:'Español',de:'Deutsch'};let l=null;try{l=localStorage.getItem('sot-lang');}catch(e){}
|
||||
const b=(navigator.language||'').slice(0,2).toLowerCase();if(!Object.hasOwn(langs,l))l=Object.hasOwn(langs,b)?b:'en';
|
||||
window.SOT_LANG=l;document.documentElement.lang=l;if(l!=='en')document.write('<script src="i18n/'+l+'.js?v=__VERSION__"><\/script>');})();
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue