Cleaned translate instructions
This commit is contained in:
parent
6090be2de2
commit
63cdf7c77e
|
@ -1,22 +1,8 @@
|
|||
// This text is a template of translation list.
|
||||
|
||||
// pre: ll_CC, locale name, examples: en_US, zh_CN
|
||||
// 1. Copy and rename to ll_CC.js, translate these words.
|
||||
// 2. in js/init.js:
|
||||
// Add '.translations('ll_CC', translations.ll_CC)' before '.determinePreferredLanguage();'
|
||||
// 3. in index.html
|
||||
// Add '<script src="js/translate/ll_CC.js"></script>' after '<script src="js/libs/angular-translate.js"></script>'
|
||||
// 4. To add Language to changeLanguage button, see "{{ 'Language' | translate }}" in index.html.
|
||||
// flag-icon usage:
|
||||
// https://github.com/lipis/flag-icon-css
|
||||
// 5. Browser determining preferred language automatically.
|
||||
// http://angular-translate.github.io/docs/en/#/guide/07_multi-language
|
||||
|
||||
if(typeof translations == 'undefined'){
|
||||
translations = {};
|
||||
}
|
||||
|
||||
translations.fr_FR = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
|
||||
translations.fr_FR = {
|
||||
// header
|
||||
'Search': 'Rechercher',
|
||||
// Nav menu
|
||||
|
|
Loading…
Reference in New Issue
Block a user