Dash:
[t2.git] / package / base / eject / no-i18n.patch
blob18206bab439bb04b43d5a2eaf5536d31ff34d956
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../eject/no-i18n.patch
5 # Copyright (C) 2007 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 uClibC and dietlibc without add-on libraries do not have i18n.
19 - Rene Rebe <rene@exactcode.de>
21 --- eject-2.1.0/i18n.h.vanilla 2007-01-15 10:20:57.000000000 +0000
22 +++ eject-2.1.0/i18n.h 2007-01-15 10:25:54.000000000 +0000
23 @@ -7,8 +7,15 @@
24 µ{¦¡°ê»Ú¤Æ³]­p: Á±X¤¤
27 +#include <stdlib.h> /* uClibC / dietlibc defines */
29 #ifndef __i18n__
30 #define __i18n__
31 +#if defined (__UCLIBC__) || defined (__dietlibc__)
32 + #define _(str) (str)
33 + #define N_(str) (str)
34 + #define I18NCODE
35 +#else
36 #define PKG "eject"
37 #define LOCALEDIR "/usr/share/locale"
39 @@ -20,4 +27,5 @@
41 void i18n_init (void);
42 #endif
43 +#endif