-
Notifications
You must be signed in to change notification settings - Fork 522
How to create a language pack?
Step 1: Copy the template files, translate views.json and context.json.
Step 2: After complete the translation, create a zip file, copy the files into the zip file, rename the file extension from .zip
to .koala-locales
.
For Linux/OS X, you can create the zip file form the command line.
- Go to the template directory
cd ~/template_dir
- Run
zip -r language_name.koala-locales *
Step 3: Done. Drag and drop the zip file into the Koala window to install the new language pack. After installation, switch to this language, test and ensure there are no errors.
The language pack information.
{
"languageName": "", // The language name.
"languageCode": "", // Language code. e.g "en_us".
// The translator info.
"translator": {
"name": "",
"email": "",
"web": ""
},
"koalaVersion": "", // Corresponding koala version.
"updatedDate": "" // Updated date, format: yyyy-MM-dd.
}
The two files is the content need to be translated.
Tips:
-
${1|2|...}
This kind of similar character is a placeholder, don't delete them. - Note punctuation writing, sometimes need to be combined with a backslash.
- If some of the fields you do not know how to translate, it does not matter, comment it, the program will use the default value.
/* START Navbar style+layout changed 260422*/ .navbar-collapse ul.nav.navbar-nav > li { width: 150px; border-bottom: 2px solid #b2b2b2; height: 70px; } .navbar-collapse ul.nav.navbar-nav > li.active { height: 70px; border-bottom: 3px solid #257FA6 !important; } .navbar-collapse ul.nav li a { font-size: 16px !important; font-family: 'Open Sans' !important; color: #2c2c2c !important; height: 54px; border-right: 2px solid #b2b2b2; text-align: center; padding: 10px 18px !impo