Permalink
Browse files

Merge pull request #1 from aspotashev/master

Install translations via CMake
  • Loading branch information...
2 parents 2fe1d5c + 2e6661e commit 2d47ef9cd225ea7c9efdb3da316ea1e7dbdfa4a4 Kasper Laudrup committed Jul 6, 2011
Showing with 8 additions and 1 deletion.
  1. +5 −0 CMakeLists.txt
  2. +1 −1 po/CMakeLists.txt
  3. BIN po/ru.gmo
  4. +2 −0 po/ru/CMakeLists.txt
  5. 0 po/{ru.po → ru/creox.po}
View
5 CMakeLists.txt
@@ -25,3 +25,8 @@ add_subdirectory(icons)
# The documentation
add_subdirectory(doc)
+
+# Translations
+find_package(Msgfmt REQUIRED)
+find_package(Gettext REQUIRED)
+add_subdirectory(po)
View
2 po/CMakeLists.txt
@@ -1 +1 @@
-# XXX: Handle translations
+add_subdirectory(ru)
View
BIN po/ru.gmo
Binary file not shown.
View
2 po/ru/CMakeLists.txt
@@ -0,0 +1,2 @@
+file(GLOB _po_files *.po)
+GETTEXT_PROCESS_PO_FILES(ru ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files})
View
0 po/ru.po → po/ru/creox.po
File renamed without changes.

0 comments on commit 2d47ef9

Please sign in to comment.