Commits

Zhang Huangbin committed 0594d43

New translation: Korean (ko_KR). Thanks Bosung Lee <bs.lee _at_ innogrid.com>.

  • Participants
  • Parent commits c89e52f

Comments (0)

Files changed (3)

+= 0.2.2 =
+    * New or updated translations:
+        + Korean (ko_KR). Thanks Bosung Lee <bs.lee _at_ innogrid.com>.
+
 = 0.2.1 =
     * Improvements:
         + [ldap] Able to manage first/last name in user/admin profile page.

File i18n/iredadmin.po

 msgstr ""
 "Project-Id-Version: PROJECT VERSION\n"
 "Report-Msgid-Bugs-To: zhb@iredmail.org\n"
-"POT-Creation-Date: 2013-03-03 12:11+0800\n"
+"POT-Creation-Date: 2013-04-22 10:51+0800\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"

File i18n/translation.sh

 POFILE="${DOMAIN}.po"
 AVAILABLE_LANGS="$(ls -d *_*)"
 
-extractLastest()
+extract_latest()
 {
     # Extract strings from template files.
     echo "* Extract localizable messages from template files to ${POFILE}..."
         .. >/dev/null
 }
 
-updatePO()
+update_po()
 {
     # Update PO files.
     echo "* Update existing new translations catalog based on ${POFILE}..."
     done
 }
 
-convertPO2MO()
+convert_po_to_mo()
 {
     echo "* Convert translation catalogs into binary MO files..."
     for lang in ${LANGUAGES}
     do
         echo "  + Converting ${lang}..."
         msgfmt --statistics -c ${lang}/LC_MESSAGES/${DOMAIN}.po -o ${lang}/LC_MESSAGES/${DOMAIN}.mo
-        #python msgfmt.py ${lang}/LC_MESSAGES/${DOMAIN}.po
     done
 }
 
 if [ X"${ACTIONORLANG}" == X"all" -o X"${ACTIONORLANG}" == X"" ]; then
     export LANGUAGES="${AVAILABLE_LANGS}"
 else
-    export LANGUAGES="${ACTIONORLANG}"
+    export LANGUAGES="$(basename ${ACTIONORLANG})"
 fi
 
-extractLastest && \
-updatePO && \
-convertPO2MO
+extract_latest && \
+update_po && \
+convert_po_to_mo