Commit 41f16493 authored by Jim Nelson's avatar Jim Nelson

Compile and install .po files: Closes #5767

However, this does not install the files in a local locale/ directory,
meaning that Geary must be run from the install directory to test
translations.
parent 0da99f78
......@@ -120,6 +120,7 @@ add_custom_target(
add_subdirectory(desktop)
add_subdirectory(help)
add_subdirectory(icons)
add_subdirectory(po)
add_subdirectory(sql)
add_subdirectory(src)
add_subdirectory(theming)
......
......@@ -151,7 +151,7 @@ IF(XGETTEXT_FOUND)
SET(_lang ${_currentLang})
GET_FILENAME_COMPONENT(_absFile ${_currentLang}.po ABSOLUTE)
GET_FILENAME_COMPONENT(_abs_PATH ${_absFile} PATH)
SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.mo)
#MESSAGE("_absFile=${_absFile} _abs_PATH=${_abs_PATH} _lang=${_lang} curr_bin=${CMAKE_CURRENT_BINARY_DIR}")
ADD_CUSTOM_COMMAND(
......
include(Translations)
set(TRANSLATED
ca_ES
ca
de
el_GR
en_CA
en_GB
eo
es
es_ES
fi
fr
he
id
km_KH
nb
nl_NL
pl
pt
pt_BR
ro_RO
sl
sr
sv
tr_TR
uk
vi
zh_CN
zh_TW
)
add_translations_directory("geary")
add_translations_catalog(".")
IF (XGETTEXT_FOUND)
GETTEXT_CREATE_TRANSLATIONS(${GETTEXT_PACKAGE}.pot ALL ${TRANSLATED}
COMMENT "Creating translations.")
ELSE ()
message(STATUS "xgettext not found")
ENDIF()
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -10,7 +10,7 @@
# Vincenzo Cerminara <rebek994@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: Geary\n"
"Project-Id-Version: geary-0.2.0\n"
"Report-Msgid-Bugs-To: http://redmine.yorba.org/projects/geary\n"
"POT-Creation-Date: 2012-09-05 12:06-0700\n"
"PO-Revision-Date: 2012-09-11 17:15+0000\n"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -471,9 +471,8 @@ include(GSettings)
add_schemas(geary ${GSETTINGS_DIR})
IF (XGETTEXT_FOUND)
GETTEXT_CREATE_POT(${GETTEXT_PACKAGE}.pot OPTION ${XGETTEXT_OPTIONS} SRC ${CLIENT_SRC} ${ENGINE_SRC} ${COMMON_SRC} GLADE ${GLADE_FILES})
GETTEXT_CREATE_TRANSLATIONS(${GETTEXT_PACKAGE}.pot ALL ${TRANSLATED}
COMMENT "Creating translations.")
GETTEXT_CREATE_POT(${GETTEXT_PACKAGE}.pot OPTION ${XGETTEXT_OPTIONS} SRC ${CLIENT_SRC} ${ENGINE_SRC} ${COMMON_SRC} GLADE ${GLADE_FILES}
COMMENT "Creating POT.")
ELSE ()
message(STATUS "xgettext not found")
ENDIF()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment