Permalink
Browse files

fix -qt i18n

  • Loading branch information...
yuyichao authored and kuromabo committed Jan 25, 2013
1 parent 4df2f57 commit d4874f9f0ac5de439543297b2b548b21b6b849d0
Showing with 7 additions and 0 deletions.
  1. +3 −0 CMakeLists.txt
  2. +1 −0 qt/config.h.in
  3. +3 −0 qt/main.cpp
@@ -57,6 +57,9 @@ function(hotot_convert_flags __flags_var __defs_var)
COMPILE_FLAGS "${_old_flags}"
COMPILE_DEFINITIONS "${_old_defs}")
endfunction()
if(NOT DEFINED LOCALEDIR)
set(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
endif()

##################### GTK Version ######################
if(WITH_GTK OR WITH_GTK2 OR WITH_GTK3)
@@ -1 +1,2 @@
#define PREFIX "@CMAKE_INSTALL_PREFIX@"
#define LOCALEDIR "@LOCALEDIR@"
@@ -89,7 +89,10 @@ int main(int argc, char *argv[])
KApplication a;
#else
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MAC)
setlocale(LC_ALL, "");
bindtextdomain("hotot", LOCALEDIR);
bind_textdomain_codeset("hotot", "UTF-8");
textdomain("hotot");
#endif
#ifdef MEEGO_EDITION_HARMATTAN
MApplication a(argc, argv);

0 comments on commit d4874f9

Please sign in to comment.