Changeset 56547456e406341caca65cfab1abe64869a0ffa0

Show
Ignore:
Timestamp:
02/21/09 14:57:20 (3 years ago)
Author:
Leo Antunes <leo@…>
Children:
0dcf20b290d256e042d559c2d8b8cdaf18ba6c13
Parents:
826d0d375e42d8e4018950dd84b37689b3f666fa
git-committer:
Leo Antunes <leo@…> (02/21/09 14:57:20)
Message:

fix gettext detection

i18n/CMakeLists.txt, CMakeLists.txt: move -DENABLE_NLS from i18n to root
i18n.h: remove cast to const to avoid warnings

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r826d0d3 r5654745  
    2121 
    2222find_package(Gettext) 
    23 add_subdirectory(i18n) 
     23if(GETTEXT_FOUND) 
     24        add_definitions(-DENABLE_NLS) 
     25        add_subdirectory(i18n) 
     26endif() 
    2427 
    2528include(FeatureSummary) 
  • i18n.h

    r826d0d3 r5654745  
    2525#       include <libintl.h> 
    2626#       include <locale.h> 
    27 #       define _(String) ((const char *)dgettext(PACKAGE, String)) 
     27#       define _(String) dgettext(PACKAGE, String) 
    2828#       define gettext_noop(String) String 
    2929#       define N_(String) gettext_noop (String) 
  • i18n/CMakeLists.txt

    r7bfa81d r5654745  
    1 if(GETTEXT_FOUND) 
    2         add_definitions(-DENABLE_NLS) 
    3         GETTEXT_CREATE_TRANSLATIONS(pidgin-awayonlock.pot ALL pt_BR.po) 
    4 endif() 
     1GETTEXT_CREATE_TRANSLATIONS(pidgin-awayonlock.pot ALL pt_BR.po)