Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from aspotashev/master

Install translations via CMake
  • Loading branch information...
commit 2d47ef9cd225ea7c9efdb3da316ea1e7dbdfa4a4 2 parents 2fe1d5c + 2e6661e
Kasper Laudrup authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.