summaryrefslogtreecommitdiff
path: root/popup-wifidirect/po/CMakeLists.txt
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:20 (GMT)
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:20 (GMT)
commitd78b6a702fb987794bfb8e272e58e423ae584300 (patch)
tree499ded173b92d92d374878c04d9c4b0c789c6d9c /popup-wifidirect/po/CMakeLists.txt
parentfd9be1d338e467f59738b0e7b5a728928023973e (diff)
downloadug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.zip
ug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.tar.gz
ug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.tar.bz2
apply FSL(Flora Software License)
Diffstat (limited to 'popup-wifidirect/po/CMakeLists.txt')
-rw-r--r--popup-wifidirect/po/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/popup-wifidirect/po/CMakeLists.txt b/popup-wifidirect/po/CMakeLists.txt
new file mode 100644
index 0000000..18bb472
--- /dev/null
+++ b/popup-wifidirect/po/CMakeLists.txt
@@ -0,0 +1,24 @@
+# for i18n
+
+SET(POFILES en.po en_GB.po ko_KR.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 /opt/apps/org.tizen.wifi-direct-popup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
+ SET(moFiles ${moFiles} ${moFile})
+ENDFOREACH(pofile)
+
+MESSAGE(".mo files: ${moFiles}")
+ADD_CUSTOM_TARGET(pop_po ALL DEPENDS ${moFiles})