Line
Link Here
|
0 |
-- powertop-2.5/src/lib.h |
0 |
++ powertop-2.5-nls/src/lib.h |
Lines 33-39
Link Here
|
33 |
#include "config.h" |
33 |
#include "config.h" |
34 |
#endif |
34 |
#endif |
35 |
|
35 |
|
|
|
36 |
#ifdef ENABLE_NLS |
36 |
#define _(STRING) gettext(STRING) |
37 |
#define _(STRING) gettext(STRING) |
|
|
38 |
#else |
39 |
#define _(STRING) (STRING) |
40 |
#endif |
37 |
|
41 |
|
38 |
#define POWERTOP_VERSION "v"PACKAGE_VERSION |
42 |
#define POWERTOP_VERSION "v"PACKAGE_VERSION |
39 |
#define POWERTOP_SHORT_VERSION PACKAGE_VERSION |
43 |
#define POWERTOP_SHORT_VERSION PACKAGE_VERSION |
40 |
-- powertop-2.5/src/main.cpp |
44 |
++ powertop-2.5-nls/src/main.cpp |
Lines 369-376
int main(int argc, char **argv)
Link Here
|
369 |
set_new_handler(out_of_memory); |
369 |
set_new_handler(out_of_memory); |
370 |
|
370 |
|
371 |
setlocale (LC_ALL, ""); |
371 |
setlocale (LC_ALL, ""); |
|
|
372 |
#ifdef ENABLE_NLS |
372 |
bindtextdomain (PACKAGE, LOCALEDIR); |
373 |
bindtextdomain (PACKAGE, LOCALEDIR); |
373 |
textdomain (PACKAGE); |
374 |
textdomain (PACKAGE); |
|
|
375 |
#endif |
374 |
|
376 |
|
375 |
while (1) { /* parse commandline options */ |
377 |
while (1) { /* parse commandline options */ |
376 |
c = getopt_long (argc, argv, "ch:C:i:t:uVw:q", long_options, &option_index); |
378 |
c = getopt_long (argc, argv, "ch:C:i:t:uVw:q", long_options, &option_index); |
377 |
-- powertop-2.5/src/report/report-maker.h |
379 |
++ powertop-2.5-nls/src/report/report-maker.h |
Lines 75-82
Link Here
|
75 |
#include <string> |
75 |
#include <string> |
76 |
|
76 |
|
77 |
/* Conditional gettext. We need original strings for CSV. */ |
77 |
/* Conditional gettext. We need original strings for CSV. */ |
|
|
78 |
#ifdef ENABLE_NLS |
78 |
#define __(STRING) \ |
79 |
#define __(STRING) \ |
79 |
((report.get_type() == REPORT_CSV) ? (STRING) : gettext(STRING)) |
80 |
((report.get_type() == REPORT_CSV) ? (STRING) : gettext(STRING)) |
|
|
81 |
#else |
82 |
#define __(STRING) (STRING) |
83 |
#endif |
84 |
|
80 |
|
85 |
|
81 |
#ifndef UNUSED |
86 |
#ifndef UNUSED |
82 |
#define UNUSED __attribute__((unused)) |
87 |
#define UNUSED __attribute__((unused)) |