Line 0
Link Here
|
|
|
1 |
--- src/mp3splt.c.orig 2010-02-18 04:23:39.000000000 +0800 |
2 |
+++ src/mp3splt.c 2010-03-14 02:36:52.000000000 +0800 |
3 |
@@ -54,7 +54,11 @@ |
4 |
#define MP3SPLT_CDDBFILE "query.cddb" |
5 |
|
6 |
#define MP3SPLT_GETTEXT_DOMAIN "mp3splt" |
7 |
+#ifdef ENABLE_NLS |
8 |
#define _(STR) gettext(STR) |
9 |
+#else |
10 |
+#define _(STR) STR |
11 |
+#endif |
12 |
|
13 |
//in case of STDIN/STDOUT usage, we change the console file handle |
14 |
//-yeah indeed, global variables might suck |
15 |
@@ -1801,9 +1805,11 @@ |
16 |
//main program starts here |
17 |
int main(int argc, char **orig_argv) |
18 |
{ |
19 |
+#ifdef ENABLE_NLS |
20 |
//gettext |
21 |
setlocale(LC_ALL, ""); |
22 |
textdomain(MP3SPLT_GETTEXT_DOMAIN); |
23 |
+#endif |
24 |
|
25 |
console_out = stdout; |
26 |
console_err = stderr; |
27 |
@@ -1814,6 +1820,7 @@ |
28 |
|
29 |
main_data *data = create_main_struct(argc, orig_argv); |
30 |
|
31 |
+#ifdef ENABLE_NLS |
32 |
#ifdef __WIN32__ |
33 |
char mp3splt_uninstall_file[2048] = { '\0' }; |
34 |
DWORD dwType, dwSize = sizeof(mp3splt_uninstall_file) - 1; |
35 |
@@ -1873,6 +1880,7 @@ |
36 |
#endif |
37 |
|
38 |
bind_textdomain_codeset(MP3SPLT_GETTEXT_DOMAIN, "UTF-8"); |
39 |
+#endif |
40 |
|
41 |
data->state = mp3splt_new_state(&err); |
42 |
process_confirmation_error(err, data); |