summaryrefslogtreecommitdiff
path: root/po/tizen2.3/CMakeLists.txt
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-02-01 14:10:33 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-02-01 14:10:33 +0900
commitd7efab678d65d5ea8c470d328427f24f4d683af9 (patch)
tree184c76feb27d8056dd39823d7b998fdf1681c80e /po/tizen2.3/CMakeLists.txt
parent335597a2db0a33a96684c052e4cf8a0736918fcf (diff)
downloaddownload-provider-tizen_2.3.tar.gz
download-provider-tizen_2.3.tar.bz2
download-provider-tizen_2.3.zip
Diffstat (limited to 'po/tizen2.3/CMakeLists.txt')
-rw-r--r--po/tizen2.3/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/po/tizen2.3/CMakeLists.txt b/po/tizen2.3/CMakeLists.txt
new file mode 100644
index 0000000..1ff1ce8
--- /dev/null
+++ b/po/tizen2.3/CMakeLists.txt
@@ -0,0 +1,30 @@
+# for i18n
+
+SET(POFILES
+ ar.po az.po bg.po ca.po cs.po da.po de.po el_GR.po en.po
+ en_PH.po en_US.po es_ES.po es_US.po et.po eu.po fi.po fr.po
+ fr_CA.po ga.po gl.po hi.po hr.po hu.po hy.po is.po it_IT.po
+ ja_JP.po ka.po kk.po ko_KR.po lt.po lv.po mk.po nb.po nl.po
+ pl.po pt_BR.po pt_PT.po ro.po ru_RU.po sk.po sl.po sr.po sv.po
+ tr_TR.po uk.po uz.po zh_CN.po zh_HK.po zh_TW.po)
+
+SET(MSGFMT "/usr/bin/msgfmt")
+
+FOREACH(pofile ${POFILES})
+ SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile})
+ MESSAGE("PO: ${pofile}")
+ GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE)
+ GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE)
+ SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${moFile}
+ COMMAND ${MSGFMT} -o ${moFile} ${absPofile}
+ DEPENDS ${absPofile}
+ )
+ INSTALL(FILES ${moFile}
+ DESTINATION ${LOCALE_DIR}/${lang}/LC_MESSAGES RENAME ${PKG_NAME}.mo)
+ SET(moFiles ${moFiles} ${moFile})
+ENDFOREACH(pofile)
+
+MESSAGE(".mo files: ${moFiles}")
+ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles})