Add Swabian dialect.
This commit is contained in:
parent
22f923e68e
commit
da12b1a4e8
@ -13,6 +13,7 @@
|
||||
<script type="text/javascript" src="jquery.min.js"></script>
|
||||
<script type="text/javascript" src="qlock.core.js"></script>
|
||||
<script type="text/javascript" src="qlock.de.js"></script>
|
||||
<script type="text/javascript" src="qlock.d3.js"></script>
|
||||
<script type="text/javascript" src="qlock.en.js"></script>
|
||||
<script type="text/javascript" src="qlock.fr.js"></script>
|
||||
<script type="text/javascript" src="qlock.es.js"></script>
|
||||
|
78
qlock.d3.js
Normal file
78
qlock.d3.js
Normal file
@ -0,0 +1,78 @@
|
||||
// QLOCKTWO Swabian-German Localization
|
||||
// after the official QlockTwo at http://qlocktwo.com/
|
||||
// Script written by Markus Birth <markus@birth-online.de>
|
||||
|
||||
var qlockLangSwabian = {
|
||||
'langCode': 'd3',
|
||||
'language': 'Swabian-German',
|
||||
|
||||
'lines': [
|
||||
"ESKISCHFUNK",
|
||||
"DREIVIERTLA",
|
||||
"ZEHNBIEFÜNF",
|
||||
"NACHGERTVOR",
|
||||
"HALBXFÜNFEI",
|
||||
"OISECHSELFE",
|
||||
"ZWOIEACHTED",
|
||||
"DREIEZWÖLFE",
|
||||
"ZEHNEUNEUHL",
|
||||
"SIEBNEVIERE"
|
||||
],
|
||||
|
||||
'pre': 'ES ISCH ',
|
||||
|
||||
'first': [
|
||||
"",
|
||||
"FÜNF NACH ",
|
||||
"ZEHN NACH ",
|
||||
"VIERTL ",
|
||||
"ZEHN VOR HALB ",
|
||||
"FÜNF VOR HALB ",
|
||||
"HALB ",
|
||||
"FÜNF NACH HALB ",
|
||||
"ZEHN NACH HALB ",
|
||||
"DREIVIERTL ",
|
||||
"ZEHN VOR ",
|
||||
"FÜNF VOR "
|
||||
],
|
||||
|
||||
'second': [
|
||||
"ZWÖLFE",
|
||||
"OIS",
|
||||
"ZWOIE",
|
||||
"DREIE",
|
||||
"VIERE",
|
||||
"FÜNFE",
|
||||
"SECHSE",
|
||||
"SIEBN",
|
||||
"ACHTE",
|
||||
"NEUNE",
|
||||
"ZEHNE",
|
||||
"ELFE"
|
||||
],
|
||||
|
||||
/**
|
||||
* @param {Date} time
|
||||
* @type String
|
||||
*/
|
||||
'makeSentence': function( time ) {
|
||||
var h = time.getHours();
|
||||
var m = time.getMinutes();
|
||||
|
||||
var h12 = h%12;
|
||||
var m5 = Math.floor( m/5 );
|
||||
if (m5 >= 3) {
|
||||
h12 += 1;
|
||||
if (h12 > 11) h12=0;
|
||||
}
|
||||
|
||||
var sentence = this.pre + this.first[m5] + this.second[h12];
|
||||
// if (m5 == 0) {
|
||||
// sentence = sentence.replace( /OIS/i, 'EI' );
|
||||
// }
|
||||
return sentence;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
qlockTwo.availLangs.push( qlockLangSwabian );
|
Loading…
x
Reference in New Issue
Block a user