Changeset 56547456e406341caca65cfab1abe64869a0ffa0
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r826d0d3
|
r5654745
|
|
| 21 | 21 | |
| 22 | 22 | find_package(Gettext) |
| 23 | | add_subdirectory(i18n) |
| | 23 | if(GETTEXT_FOUND) |
| | 24 | add_definitions(-DENABLE_NLS) |
| | 25 | add_subdirectory(i18n) |
| | 26 | endif() |
| 24 | 27 | |
| 25 | 28 | include(FeatureSummary) |
-
|
r826d0d3
|
r5654745
|
|
| 25 | 25 | # include <libintl.h> |
| 26 | 26 | # include <locale.h> |
| 27 | | # define _(String) ((const char *)dgettext(PACKAGE, String)) |
| | 27 | # define _(String) dgettext(PACKAGE, String) |
| 28 | 28 | # define gettext_noop(String) String |
| 29 | 29 | # define N_(String) gettext_noop (String) |
-
|
r7bfa81d
|
r5654745
|
|
| 1 | | if(GETTEXT_FOUND) |
| 2 | | add_definitions(-DENABLE_NLS) |
| 3 | | GETTEXT_CREATE_TRANSLATIONS(pidgin-awayonlock.pot ALL pt_BR.po) |
| 4 | | endif() |
| | 1 | GETTEXT_CREATE_TRANSLATIONS(pidgin-awayonlock.pot ALL pt_BR.po) |