Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: src/common/tuklib_gettext.h

Issue 7109015: Update XZ Utils to 5.0.3 (in deps) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/common/sysdefs.h ('k') | src/common/tuklib_mbstr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /////////////////////////////////////////////////////////////////////////////// 1 ///////////////////////////////////////////////////////////////////////////////
2 // 2 //
3 /// \file tuklib_gettext.h 3 /// \file tuklib_gettext.h
4 /// \brief Wrapper for gettext and friends 4 /// \brief Wrapper for gettext and friends
5 // 5 //
6 // Author: Lasse Collin 6 // Author: Lasse Collin
7 // 7 //
8 // This file has been put into the public domain. 8 // This file has been put into the public domain.
9 // You can do whatever you want with this file. 9 // You can do whatever you want with this file.
10 // 10 //
(...skipping 15 matching lines...) Expand all
26 26
27 #if TUKLIB_GETTEXT 27 #if TUKLIB_GETTEXT
28 # include <libintl.h> 28 # include <libintl.h>
29 # define tuklib_gettext_init(package, localedir) \ 29 # define tuklib_gettext_init(package, localedir) \
30 do { \ 30 do { \
31 setlocale(LC_ALL, ""); \ 31 setlocale(LC_ALL, ""); \
32 bindtextdomain(package, localedir); \ 32 bindtextdomain(package, localedir); \
33 textdomain(package); \ 33 textdomain(package); \
34 } while (0) 34 } while (0)
35 # define _(msgid) gettext(msgid) 35 # define _(msgid) gettext(msgid)
36 # define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n)
37 #else 36 #else
38 # define tuklib_gettext_init(package, localedir) \ 37 # define tuklib_gettext_init(package, localedir) \
39 setlocale(LC_ALL, "") 38 setlocale(LC_ALL, "")
40 # define _(msgid) (msgid) 39 # define _(msgid) (msgid)
41 #» define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2)) 40 #» define ngettext(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2))
42 #endif 41 #endif
42 #define N_(msgid) msgid
43 43
44 #endif 44 #endif
OLDNEW
« no previous file with comments | « src/common/sysdefs.h ('k') | src/common/tuklib_mbstr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698