tazweb diff doc/tazweb.html @ rev 191

lib/helper.sh: use plural forms, update pot and po files; doc/tazweb.html: auto-detection user/system language (works in TazWeb now).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 15 05:53:39 2017 +0200 (2017-03-15)
parents 25fecd52f7d4
children
line diff
     1.1 --- a/doc/tazweb.html	Mon Apr 04 02:43:23 2011 +0200
     1.2 +++ b/doc/tazweb.html	Wed Mar 15 05:53:39 2017 +0200
     1.3 @@ -1,1 +1,17 @@
     1.4 -tazweb.en.html
     1.5 \ No newline at end of file
     1.6 +<!DOCTYPE html>
     1.7 +<script>
     1.8 +var uilang = navigator.language || navigator.userLanguage;
     1.9 +var lang = uilang.split('-')[0];
    1.10 +switch (lang) {
    1.11 +	case 'de':
    1.12 +	case 'es':
    1.13 +	case 'fr':
    1.14 +	case 'pt':
    1.15 +	case 'ru':
    1.16 +		found = lang;
    1.17 +		break;
    1.18 +	default:
    1.19 +		found = 'en';
    1.20 +}
    1.21 +window.location = 'tazweb.' + found + '.html';
    1.22 +</script>