How it works ?
Language selection is simply made with the GET var lang. You can directly select a language by calling your app like this :
When loading the php/mypage.html, all translation will be automatically made :
- the label / option / th tags and title attributes
- the new l tag is an dedicated CYJS tag to specifiy a text to translate, refers to example pages
Internal CYJS vars
Default CYJS framework languages are defined in CYJS/js/lang.default.js. If you want to add your own language, juste add a new test in that file by duplicating the en part then adapt it. A language name should have only 2 characters. Predefined languages are english (en) and french (fr).
If you add a language, you must also create language files for integrated plugins, these are defined in CYJS/js/lang. You’ll see there that others languages are already available, just copy the english sets in your new language files by respecting filnames conventions.