Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DO NOT MERGE --- TESTING! | Anton L. Šijanec | 2020-05-12 | 1 | -3/+7 |
| | |||||
* | chats.js not done yet | Anton L. Šijanec | 2020-04-05 | 1 | -3/+23 |
| | |||||
* | teachers.js, absences.js: uporabljajo gsec.js; gsec.js: spremembe apija | Anton Luka Šijanec | 2020-03-21 | 1 | -2/+21 |
| | |||||
* | 1.0.12-beta: podpora za jezike | Anton Luka Šijanec | 2020-03-10 | 1 | -3/+5 |
| | |||||
* | za narediti jezike | Anton Luka Šijanec | 2020-03-06 | 1 | -2/+7 |
| | |||||
* | meals.js fix - still timing issues | Anton Luka Šijanec | 2020-03-06 | 1 | -3/+14 |
| | |||||
* | deleted cache file | Anton Luka Šijanec | 2020-03-06 | 1 | -0/+0 |
| | |||||
* | all js files updated with i18n, not tested yet | Anton Luka Šijanec | 2020-03-06 | 2 | -0/+4 |
| | |||||
* | deleting save files | Anton Luka Šijanec | 2020-03-06 | 2 | -686/+0 |
| | |||||
* | neki i18n js | Anton Luka Šijanec | 2020-03-06 | 3 | -1/+699 |
| | |||||
* | added i18n, converted HTML files, TODO: js UI responses, TODO: translations | Anton Luka Šijanec | 2020-03-05 | 1 | -0/+391 |
So basically, multilanguage support from an JavaScript object. - only slovenian and english - no change language UI yet - only HTML strings are actually translated \- all text is translated, but javascript M.toast and other similar stuff does not pass trough s(), d(), S() and D() functions yet - how to i18n: - add a string to js/lang/bundle.js TO ALL LANGUAGES (translation mgmt sys will have to be created) - HTML: create <x-??></x-??> tags, where 1st ? tells wether to just output the string (s) without dot suffix or (d) to try and append a . (for sentences and paragraphs) if it is not there yet. second ? tells wether to leave lowercase strings (l) or (u) to force the first character of the string be uppercase (capitalize()). - put the key of your string as the innerHTML of the x-?? element. - JS: S("key") and D("key") return capitalized, s() and d() do not change case. |