Merge lp:~linuxjedi/drizzle/trunk-translation-bugs into lp:drizzle/7.0

Proposed by Andrew Hutchings
Status: Merged
Approved by: Brian Aker
Approved revision: 2069
Merged at revision: 2071
Proposed branch: lp:~linuxjedi/drizzle/trunk-translation-bugs
Merge into: lp:drizzle/7.0
Diff against target: 1369 lines (+300/-292)
18 files modified
client/drizzle.cc (+57/-57)
client/drizzledump.cc (+56/-48)
drizzled/drizzled.cc (+104/-104)
drizzled/main.cc (+2/-2)
plugin/logging_gearman/logging_gearman.cc (+2/-2)
plugin/logging_query/logging_query.cc (+6/-6)
plugin/logging_stats/logging_stats.cc (+4/-4)
plugin/memcached_query_cache/memcached_qc.cc (+3/-3)
plugin/memcached_stats/memcached_stats.cc (+1/-1)
plugin/multi_thread/multi_thread.cc (+1/-1)
plugin/myisam/ha_myisam.cc (+2/-2)
plugin/mysql_protocol/mysql_protocol.cc (+9/-9)
plugin/mysql_unix_socket_protocol/protocol.cc (+3/-3)
plugin/pbms/src/parameters_ms.cc (+12/-12)
plugin/rabbitmq/rabbitmq_log.cc (+8/-8)
plugin/syslog/module.cc (+9/-9)
plugin/transaction_log/module.cc (+7/-7)
plugin/transaction_log/utilities/transaction_reader.cc (+14/-14)
To merge this branch: bzr merge lp:~linuxjedi/drizzle/trunk-translation-bugs
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+45747@code.launchpad.net

Description of the change

Fix intl domain
Add intl domain for drizzledump
Fix boost::program_options translation output

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'client/drizzle.cc'
2--- client/drizzle.cc 2011-01-04 22:06:30 +0000
3+++ client/drizzle.cc 2011-01-10 20:36:11 +0000
4@@ -1280,122 +1280,122 @@
5 # if defined(HAVE_LOCALE_H)
6 setlocale(LC_ALL, "");
7 # endif
8- bindtextdomain("drizzle", LOCALEDIR);
9- textdomain("drizzle");
10+ bindtextdomain("drizzle7", LOCALEDIR);
11+ textdomain("drizzle7");
12 #endif
13
14- po::options_description commandline_options(N_("Options used only in command line"));
15+ po::options_description commandline_options(_("Options used only in command line"));
16 commandline_options.add_options()
17- ("help,?",N_("Displays this help and exit."))
18- ("batch,B",N_("Don't use history file. Disable interactive behavior. (Enables --silent)"))
19+ ("help,?",_("Displays this help and exit."))
20+ ("batch,B",_("Don't use history file. Disable interactive behavior. (Enables --silent)"))
21 ("column-type-info", po::value<bool>(&column_types_flag)->default_value(false)->zero_tokens(),
22- N_("Display column type information."))
23+ _("Display column type information."))
24 ("comments,c", po::value<bool>(&preserve_comments)->default_value(false)->zero_tokens(),
25- N_("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments"))
26+ _("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments"))
27 ("vertical,E", po::value<bool>(&vertical)->default_value(false)->zero_tokens(),
28- N_("Print the output of a query (rows) vertically."))
29+ _("Print the output of a query (rows) vertically."))
30 ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(),
31- N_("Continue even if we get an sql error."))
32+ _("Continue even if we get an sql error."))
33 ("named-commands,G", po::value<bool>(&named_cmds)->default_value(false)->zero_tokens(),
34- N_("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter."))
35+ _("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter."))
36 ("no-beep,b", po::value<bool>(&opt_nobeep)->default_value(false)->zero_tokens(),
37- N_("Turn off beep on error."))
38- ("disable-line-numbers", N_("Do not write line numbers for errors."))
39- ("disable-column-names", N_("Do not write column names in results."))
40+ _("Turn off beep on error."))
41+ ("disable-line-numbers", _("Do not write line numbers for errors."))
42+ ("disable-column-names", _("Do not write column names in results."))
43 ("skip-column-names,N",
44- N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."))
45+ _("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."))
46 ("set-variable,O", po::value<string>(),
47- N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."))
48+ _("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."))
49 ("table,t", po::value<bool>(&output_tables)->default_value(false)->zero_tokens(),
50- N_("Output in table format."))
51+ _("Output in table format."))
52 ("safe-updates,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(),
53- N_("Only allow UPDATE and DELETE that uses keys."))
54+ _("Only allow UPDATE and DELETE that uses keys."))
55 ("i-am-a-dummy,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(),
56- N_("Synonym for option --safe-updates, -U."))
57+ _("Synonym for option --safe-updates, -U."))
58 ("verbose,v", po::value<string>(&opt_verbose)->default_value(""),
59- N_("-v vvv implies that verbose= 3, Used to specify verbose"))
60- ("version,V", N_("Output version information and exit."))
61+ _("-v vvv implies that verbose= 3, Used to specify verbose"))
62+ ("version,V", _("Output version information and exit."))
63 ("secure-auth", po::value<bool>(&opt_secure_auth)->default_value(false)->zero_tokens(),
64- N_("Refuse client connecting to server if it uses old (pre-4.1.1) protocol"))
65+ _("Refuse client connecting to server if it uses old (pre-4.1.1) protocol"))
66 ("show-warnings", po::value<bool>(&show_warnings)->default_value(false)->zero_tokens(),
67- N_("Show warnings after every statement."))
68+ _("Show warnings after every statement."))
69 ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(0),
70- N_("Number of lines before each import progress report."))
71+ _("Number of lines before each import progress report."))
72 ("ping", po::value<bool>(&opt_ping)->default_value(false)->zero_tokens(),
73- N_("Ping the server to check if it's alive."))
74+ _("Ping the server to check if it's alive."))
75 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),
76- N_("Configuration file defaults are not used if no-defaults is set"))
77+ _("Configuration file defaults are not used if no-defaults is set"))
78 ;
79
80- po::options_description drizzle_options(N_("Options specific to the drizzle client"));
81+ po::options_description drizzle_options(_("Options specific to the drizzle client"));
82 drizzle_options.add_options()
83 ("disable-auto-rehash,A",
84- N_("Disable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time."))
85+ _("Disable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time."))
86 ("auto-vertical-output", po::value<bool>(&auto_vertical_output)->default_value(false)->zero_tokens(),
87- N_("Automatically switch to vertical output mode if the result is wider than the terminal width."))
88+ _("Automatically switch to vertical output mode if the result is wider than the terminal width."))
89 ("database,D", po::value<string>(&current_db)->default_value(""),
90- N_("Database to use."))
91+ _("Database to use."))
92 ("default-character-set",po::value<string>(),
93- N_("(not used)"))
94+ _("(not used)"))
95 ("delimiter", po::value<string>(&delimiter_str)->default_value(";"),
96- N_("Delimiter to be used."))
97+ _("Delimiter to be used."))
98 ("execute,e", po::value<string>(),
99- N_("Execute command and quit. (Disables --force and history file)"))
100+ _("Execute command and quit. (Disables --force and history file)"))
101 ("local-infile", po::value<bool>(&opt_local_infile)->default_value(false)->zero_tokens(),
102- N_("Enable LOAD DATA LOCAL INFILE."))
103+ _("Enable LOAD DATA LOCAL INFILE."))
104 ("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(),
105- N_("Flush buffer after each query."))
106+ _("Flush buffer after each query."))
107 ("sigint-ignore", po::value<bool>(&opt_sigint_ignore)->default_value(false)->zero_tokens(),
108- N_("Ignore SIGINT (CTRL-C)"))
109+ _("Ignore SIGINT (CTRL-C)"))
110 ("one-database,o", po::value<bool>(&one_database)->default_value(false)->zero_tokens(),
111- N_("Only update the default database. This is useful for skipping updates to other database in the update log."))
112+ _("Only update the default database. This is useful for skipping updates to other database in the update log."))
113 ("pager", po::value<string>(),
114- N_("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default."))
115+ _("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default."))
116 ("disable-pager", po::value<bool>(&opt_nopager)->default_value(false)->zero_tokens(),
117- N_("Disable pager and print to stdout. See interactive help (\\h) also."))
118+ _("Disable pager and print to stdout. See interactive help (\\h) also."))
119 ("prompt", po::value<string>(&current_prompt)->default_value(""),
120- N_("Set the drizzle prompt to this value."))
121+ _("Set the drizzle prompt to this value."))
122 ("quick,q", po::value<bool>(&quick)->default_value(false)->zero_tokens(),
123- N_("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file."))
124+ _("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file."))
125 ("raw,r", po::value<bool>(&opt_raw_data)->default_value(false)->zero_tokens(),
126- N_("Write fields without conversion. Used with --batch."))
127- ("disable-reconnect", N_("Do not reconnect if the connection is lost."))
128+ _("Write fields without conversion. Used with --batch."))
129+ ("disable-reconnect", _("Do not reconnect if the connection is lost."))
130 ("shutdown", po::value<bool>()->zero_tokens(),
131- N_("Shutdown the server"))
132- ("silent,s", N_("Be more silent. Print results with a tab as separator, each row on new line."))
133+ _("Shutdown the server"))
134+ ("silent,s", _("Be more silent. Print results with a tab as separator, each row on new line."))
135 ("tee", po::value<string>(),
136- N_("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default."))
137+ _("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default."))
138 ("disable-tee", po::value<bool>()->default_value(false)->zero_tokens(),
139- N_("Disable outfile. See interactive help (\\h) also."))
140+ _("Disable outfile. See interactive help (\\h) also."))
141 ("connect-timeout", po::value<uint32_t>(&opt_connect_timeout)->default_value(0)->notifier(&check_timeout_value),
142- N_("Number of seconds before connection timeout."))
143+ _("Number of seconds before connection timeout."))
144 ("max-input-line", po::value<uint32_t>(&opt_max_input_line)->default_value(16*1024L*1024L)->notifier(&check_max_input_line),
145- N_("Max length of input line"))
146+ _("Max length of input line"))
147 ("select-limit", po::value<uint32_t>(&select_limit)->default_value(1000L),
148- N_("Automatic limit for SELECT when using --safe-updates"))
149+ _("Automatic limit for SELECT when using --safe-updates"))
150 ("max-join-size", po::value<uint32_t>(&max_join_size)->default_value(1000000L),
151- N_("Automatic limit for rows in a join when using --safe-updates"))
152+ _("Automatic limit for rows in a join when using --safe-updates"))
153 ;
154
155- po::options_description client_options(N_("Options specific to the client"));
156+ po::options_description client_options(_("Options specific to the client"));
157 client_options.add_options()
158 ("host,h", po::value<string>(&current_host)->default_value("localhost"),
159- N_("Connect to host"))
160+ _("Connect to host"))
161 ("password,P", po::value<string>(&current_password)->default_value(PASSWORD_SENTINEL),
162- N_("Password to use when connecting to server. If password is not given it's asked from the tty."))
163+ _("Password to use when connecting to server. If password is not given it's asked from the tty."))
164 ("port,p", po::value<uint32_t>()->default_value(0),
165- N_("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, built-in default"))
166+ _("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, built-in default"))
167 #ifdef DRIZZLE_ADMIN_TOOL
168 ("user,u", po::value<string>(&current_user)->default_value("root"),
169 #else
170 ("user,u", po::value<string>(&current_user)->default_value(""),
171 #endif
172- N_("User for login if not current user."))
173+ _("User for login if not current user."))
174 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
175- N_("The protocol of connection (mysql or drizzle)."))
176+ _("The protocol of connection (mysql or drizzle)."))
177 ;
178
179- po::options_description long_options(N_("Allowed Options"));
180+ po::options_description long_options(_("Allowed Options"));
181 long_options.add(commandline_options).add(drizzle_options).add(client_options);
182
183 std::string system_config_dir_drizzle(SYSCONFDIR);
184
185=== modified file 'client/drizzledump.cc'
186--- client/drizzledump.cc 2010-12-06 12:40:05 +0000
187+++ client/drizzledump.cc 2011-01-10 20:36:11 +0000
188@@ -472,99 +472,107 @@
189 {
190 int exit_code;
191
192- po::options_description commandline_options(N_("Options used only in command line"));
193+#if defined(ENABLE_NLS)
194+# if defined(HAVE_LOCALE_H)
195+ setlocale(LC_ALL, "");
196+# endif
197+ bindtextdomain("drizzle7", LOCALEDIR);
198+ textdomain("drizzle7");
199+#endif
200+
201+ po::options_description commandline_options(_("Options used only in command line"));
202 commandline_options.add_options()
203 ("all-databases,A", po::value<bool>(&opt_alldbs)->default_value(false)->zero_tokens(),
204- N_("Dump all the databases. This will be same as --databases with all databases selected."))
205+ _("Dump all the databases. This will be same as --databases with all databases selected."))
206 ("all-tablespaces,Y", po::value<bool>(&opt_alltspcs)->default_value(false)->zero_tokens(),
207- N_("Dump all the tablespaces."))
208+ _("Dump all the tablespaces."))
209 ("complete-insert,c", po::value<bool>(&opt_complete_insert)->default_value(false)->zero_tokens(),
210- N_("Use complete insert statements."))
211+ _("Use complete insert statements."))
212 ("flush-logs,F", po::value<bool>(&flush_logs)->default_value(false)->zero_tokens(),
213- N_("Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be flushed for each database dumped. The exception is when using --lock-all-tables in this case the logs will be flushed only once, corresponding to the moment all tables are locked. So if you want your dump and the log flush to happen at the same exact moment you should use --lock-all-tables or --flush-logs"))
214+ _("Flush logs file in server before starting dump. Note that if you dump many databases at once (using the option --databases= or --all-databases), the logs will be flushed for each database dumped. The exception is when using --lock-all-tables in this case the logs will be flushed only once, corresponding to the moment all tables are locked. So if you want your dump and the log flush to happen at the same exact moment you should use --lock-all-tables or --flush-logs"))
215 ("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(),
216- N_("Continue even if we get an sql-error."))
217- ("help,?", N_("Display this help message and exit."))
218+ _("Continue even if we get an sql-error."))
219+ ("help,?", _("Display this help message and exit."))
220 ("lock-all-tables,x", po::value<bool>(&opt_lock_all_tables)->default_value(false)->zero_tokens(),
221- N_("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction off."))
222+ _("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction off."))
223 ("single-transaction", po::value<bool>(&opt_single_transaction)->default_value(false)->zero_tokens(),
224- N_("Creates a consistent snapshot by dumping all tables in a single transaction. Works ONLY for tables stored in storage engines which support multiversioning (currently only InnoDB does); the dump is NOT guaranteed to be consistent for other storage engines. While a --single-transaction dump is in process, to ensure a valid dump file (correct table contents), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them."))
225+ _("Creates a consistent snapshot by dumping all tables in a single transaction. Works ONLY for tables stored in storage engines which support multiversioning (currently only InnoDB does); the dump is NOT guaranteed to be consistent for other storage engines. While a --single-transaction dump is in process, to ensure a valid dump file (correct table contents), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them."))
226 ("skip-opt",
227- N_("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert and --disable-keys."))
228- ("tables", N_("Overrides option --databases (-B)."))
229+ _("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert and --disable-keys."))
230+ ("tables", _("Overrides option --databases (-B)."))
231 ("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(10000),
232- N_("Number of rows before each output progress report (requires --verbose)."))
233+ _("Number of rows before each output progress report (requires --verbose)."))
234 ("verbose,v", po::value<bool>(&verbose)->default_value(false)->zero_tokens(),
235- N_("Print info about the various stages."))
236- ("version,V", N_("Output version information and exit."))
237- ("skip-comments", N_("Turn off Comments"))
238- ("skip-create", N_("Turn off create-options"))
239- ("skip-extended-insert", N_("Turn off extended-insert"))
240- ("skip-dump-date",N_( "Turn off dump date at the end of the output"))
241- ("no-defaults", N_("Do not read from the configuration files"))
242+ _("Print info about the various stages."))
243+ ("version,V", _("Output version information and exit."))
244+ ("skip-comments", _("Turn off Comments"))
245+ ("skip-create", _("Turn off create-options"))
246+ ("skip-extended-insert", _("Turn off extended-insert"))
247+ ("skip-dump-date", _( "Turn off dump date at the end of the output"))
248+ ("no-defaults", _("Do not read from the configuration files"))
249 ;
250
251- po::options_description dump_options(N_("Options specific to the drizzle client"));
252+ po::options_description dump_options(_("Options specific to the drizzle client"));
253 dump_options.add_options()
254 ("add-drop-database", po::value<bool>(&opt_drop_database)->default_value(false)->zero_tokens(),
255- N_("Add a 'DROP DATABASE' before each create."))
256- ("skip-drop-table", N_("Do not add a 'drop table' before each create."))
257+ _("Add a 'DROP DATABASE' before each create."))
258+ ("skip-drop-table", _("Do not add a 'drop table' before each create."))
259 ("compact", po::value<bool>(&opt_compact)->default_value(false)->zero_tokens(),
260- N_("Give less verbose output (useful for debugging). Disables structure comments and header/footer constructs. Enables options --skip-add-drop-table --no-set-names --skip-disable-keys"))
261+ _("Give less verbose output (useful for debugging). Disables structure comments and header/footer constructs. Enables options --skip-add-drop-table --no-set-names --skip-disable-keys"))
262 ("databases,B", po::value<bool>(&opt_databases)->default_value(false)->zero_tokens(),
263- N_("To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output."))
264+ _("To dump several databases. Note the difference in usage; In this case no tables are given. All name arguments are regarded as databasenames. 'USE db_name;' will be included in the output."))
265 ("skip-disable-keys,K",
266- N_("'ALTER TABLE tb_name DISABLE KEYS; and 'ALTER TABLE tb_name ENABLE KEYS; will not be put in the output."))
267+ _("'ALTER TABLE tb_name DISABLE KEYS;' and 'ALTER TABLE tb_name ENABLE KEYS;' will not be put in the output."))
268 ("ignore-table", po::value<string>(),
269- N_("Do not dump the specified table. To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names, e.g. --ignore-table=database.table"))
270+ _("Do not dump the specified table. To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names, e.g. --ignore-table=database.table"))
271 ("insert-ignore", po::value<bool>(&opt_ignore)->default_value(false)->zero_tokens(),
272- N_("Insert rows with INSERT IGNORE."))
273+ _("Insert rows with INSERT IGNORE."))
274 ("no-autocommit", po::value<bool>(&opt_autocommit)->default_value(false)->zero_tokens(),
275- N_("Wrap a table's data in START TRANSACTION/COMMIT statements."))
276+ _("Wrap a table's data in START TRANSACTION/COMMIT statements."))
277 ("no-create-db,n", po::value<bool>(&opt_create_db)->default_value(false)->zero_tokens(),
278- N_("'CREATE DATABASE IF NOT EXISTS db_name;' will not be put in the output. The above line will be added otherwise, if --databases or --all-databases option was given."))
279+ _("'CREATE DATABASE IF NOT EXISTS db_name;' will not be put in the output. The above line will be added otherwise, if --databases or --all-databases option was given."))
280 ("no-data,d", po::value<bool>(&opt_no_data)->default_value(false)->zero_tokens(),
281- N_("No row information."))
282+ _("No row information."))
283 ("replace", po::value<bool>(&opt_replace_into)->default_value(false)->zero_tokens(),
284- N_("Use REPLACE INTO instead of INSERT INTO."))
285+ _("Use REPLACE INTO instead of INSERT INTO."))
286 ("destination-type", po::value<string>()->default_value("stdout"),
287- N_("Where to send output to (stdout|database"))
288+ _("Where to send output to (stdout|database"))
289 ("destination-host", po::value<string>(&opt_destination_host)->default_value("localhost"),
290- N_("Hostname for destination db server (requires --destination-type=database)"))
291+ _("Hostname for destination db server (requires --destination-type=database)"))
292 ("destination-port", po::value<uint16_t>(&opt_destination_port)->default_value(4427),
293- N_("Port number for destination db server (requires --destination-type=database)"))
294+ _("Port number for destination db server (requires --destination-type=database)"))
295 ("destination-user", po::value<string>(&opt_destination_user),
296- N_("User name for destination db server (resquires --destination-type=database)"))
297+ _("User name for destination db server (resquires --destination-type=database)"))
298 ("destination-password", po::value<string>(&opt_destination_password),
299- N_("Password for destination db server (requires --destination-type=database)"))
300+ _("Password for destination db server (requires --destination-type=database)"))
301 ("destination-database", po::value<string>(&opt_destination_database),
302- N_("The database in the destination db server (requires --destination-type=database, not for use with --all-databases)"))
303+ _("The database in the destination db server (requires --destination-type=database, not for use with --all-databases)"))
304 ;
305
306- po::options_description client_options(N_("Options specific to the client"));
307+ po::options_description client_options(_("Options specific to the client"));
308 client_options.add_options()
309 ("host,h", po::value<string>(&current_host)->default_value("localhost"),
310- N_("Connect to host."))
311+ _("Connect to host."))
312 ("password,P", po::value<string>(&password)->default_value(PASSWORD_SENTINEL),
313- N_("Password to use when connecting to server. If password is not given it's solicited on the tty."))
314+ _("Password to use when connecting to server. If password is not given it's solicited on the tty."))
315 ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0),
316- N_("Port number to use for connection."))
317+ _("Port number to use for connection."))
318 ("user,u", po::value<string>(&current_user)->default_value(""),
319- N_("User for login if not current user."))
320+ _("User for login if not current user."))
321 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
322- N_("The protocol of connection (mysql or drizzle)."))
323+ _("The protocol of connection (mysql or drizzle)."))
324 ;
325
326- po::options_description hidden_options(N_("Hidden Options"));
327+ po::options_description hidden_options(_("Hidden Options"));
328 hidden_options.add_options()
329- ("database-used", po::value<vector<string> >(), N_("Used to select the database"))
330- ("Table-used", po::value<vector<string> >(), N_("Used to select the tables"))
331+ ("database-used", po::value<vector<string> >(), _("Used to select the database"))
332+ ("Table-used", po::value<vector<string> >(), _("Used to select the tables"))
333 ;
334
335- po::options_description all_options(N_("Allowed Options + Hidden Options"));
336+ po::options_description all_options(_("Allowed Options + Hidden Options"));
337 all_options.add(commandline_options).add(dump_options).add(client_options).add(hidden_options);
338
339- po::options_description long_options(N_("Allowed Options"));
340+ po::options_description long_options(_("Allowed Options"));
341 long_options.add(commandline_options).add(dump_options).add(client_options);
342
343 std::string system_config_dir_dump(SYSCONFDIR);
344
345=== modified file 'drizzled/drizzled.cc'
346--- drizzled/drizzled.cc 2010-12-30 17:09:51 +0000
347+++ drizzled/drizzled.cc 2011-01-10 20:36:11 +0000
348@@ -597,12 +597,12 @@
349 initgroups((char*) user, user_info_arg->pw_gid);
350 if (setgid(user_info_arg->pw_gid) == -1)
351 {
352- sql_perror(N_("Set process group ID failed"));
353+ sql_perror(_("Set process group ID failed"));
354 unireg_abort(1);
355 }
356 if (setuid(user_info_arg->pw_uid) == -1)
357 {
358- sql_perror(N_("Set process user ID failed"));
359+ sql_perror(_("Set process user ID failed"));
360 unireg_abort(1);
361 }
362 }
363@@ -614,7 +614,7 @@
364 {
365 if ((chroot(path) == -1) || !chdir("/"))
366 {
367- sql_perror(N_("Process chroot failed"));
368+ sql_perror(_("Process chroot failed"));
369 unireg_abort(1);
370 }
371 }
372@@ -734,7 +734,7 @@
373 global_system_variables.auto_increment_increment= 1;
374 if (in_auto_increment_increment < 1 || in_auto_increment_increment > UINT64_MAX)
375 {
376- cout << N_("Error: Invalid Value for auto_increment_increment");
377+ cout << _("Error: Invalid Value for auto_increment_increment");
378 exit(-1);
379 }
380 global_system_variables.auto_increment_increment= in_auto_increment_increment;
381@@ -745,7 +745,7 @@
382 global_system_variables.auto_increment_offset= 1;
383 if (in_auto_increment_offset < 1 || in_auto_increment_offset > UINT64_MAX)
384 {
385- cout << N_("Error: Invalid Value for auto_increment_offset");
386+ cout << _("Error: Invalid Value for auto_increment_offset");
387 exit(-1);
388 }
389 global_system_variables.auto_increment_offset= in_auto_increment_offset;
390@@ -756,7 +756,7 @@
391 global_system_variables.completion_type= 0;
392 if (in_completion_type > 2)
393 {
394- cout << N_("Error: Invalid Value for completion_type");
395+ cout << _("Error: Invalid Value for completion_type");
396 exit(-1);
397 }
398 global_system_variables.completion_type= in_completion_type;
399@@ -768,7 +768,7 @@
400 global_system_variables.div_precincrement= 4;
401 if (in_div_precincrement > DECIMAL_MAX_SCALE)
402 {
403- cout << N_("Error: Invalid Value for div-precision-increment");
404+ cout << _("Error: Invalid Value for div-precision-increment");
405 exit(-1);
406 }
407 global_system_variables.div_precincrement= in_div_precincrement;
408@@ -779,7 +779,7 @@
409 global_system_variables.group_concat_max_len= 1024;
410 if (in_group_concat_max_len > ULONG_MAX || in_group_concat_max_len < 4)
411 {
412- cout << N_("Error: Invalid Value for group_concat_max_len");
413+ cout << _("Error: Invalid Value for group_concat_max_len");
414 exit(-1);
415 }
416 global_system_variables.group_concat_max_len= in_group_concat_max_len;
417@@ -790,7 +790,7 @@
418 global_system_variables.join_buff_size= (128*1024L);
419 if (in_join_buffer_size < IO_SIZE*2 || in_join_buffer_size > ULONG_MAX)
420 {
421- cout << N_("Error: Invalid Value for join_buffer_size");
422+ cout << _("Error: Invalid Value for join_buffer_size");
423 exit(-1);
424 }
425 in_join_buffer_size-= in_join_buffer_size % IO_SIZE;
426@@ -802,7 +802,7 @@
427 global_system_variables.max_allowed_packet= (64*1024*1024L);
428 if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L)
429 {
430- cout << N_("Error: Invalid Value for max_allowed_packet");
431+ cout << _("Error: Invalid Value for max_allowed_packet");
432 exit(-1);
433 }
434 in_max_allowed_packet-= in_max_allowed_packet % 1024;
435@@ -814,7 +814,7 @@
436 max_connect_errors= MAX_CONNECT_ERRORS;
437 if (in_max_connect_errors < 1 || in_max_connect_errors > ULONG_MAX)
438 {
439- cout << N_("Error: Invalid Value for max_connect_errors");
440+ cout << _("Error: Invalid Value for max_connect_errors");
441 exit(-1);
442 }
443 max_connect_errors= in_max_connect_errors;
444@@ -825,7 +825,7 @@
445 global_system_variables.max_error_count= DEFAULT_ERROR_COUNT;
446 if (in_max_error_count > 65535)
447 {
448- cout << N_("Error: Invalid Value for max_error_count");
449+ cout << _("Error: Invalid Value for max_error_count");
450 exit(-1);
451 }
452 global_system_variables.max_error_count= in_max_error_count;
453@@ -836,7 +836,7 @@
454 global_system_variables.max_heap_table_size= (16*1024*1024L);
455 if (in_max_heap_table_size < 16384 || in_max_heap_table_size > MAX_MEM_TABLE_SIZE)
456 {
457- cout << N_("Error: Invalid Value for max_heap_table_size");
458+ cout << _("Error: Invalid Value for max_heap_table_size");
459 exit(-1);
460 }
461 in_max_heap_table_size-= in_max_heap_table_size % 1024;
462@@ -848,7 +848,7 @@
463 global_system_variables.min_examined_row_limit= 0;
464 if (in_min_examined_row_limit > ULONG_MAX)
465 {
466- cout << N_("Error: Invalid Value for min_examined_row_limit");
467+ cout << _("Error: Invalid Value for min_examined_row_limit");
468 exit(-1);
469 }
470 global_system_variables.min_examined_row_limit= in_min_examined_row_limit;
471@@ -859,7 +859,7 @@
472 global_system_variables.max_join_size= INT32_MAX;
473 if ((uint64_t)in_max_join_size < 1 || (uint64_t)in_max_join_size > INT32_MAX)
474 {
475- cout << N_("Error: Invalid Value for max_join_size");
476+ cout << _("Error: Invalid Value for max_join_size");
477 exit(-1);
478 }
479 global_system_variables.max_join_size= in_max_join_size;
480@@ -870,7 +870,7 @@
481 global_system_variables.max_length_for_sort_data= 1024;
482 if (in_max_length_for_sort_data < 4 || in_max_length_for_sort_data > 8192*1024L)
483 {
484- cout << N_("Error: Invalid Value for max_length_for_sort_data");
485+ cout << _("Error: Invalid Value for max_length_for_sort_data");
486 exit(-1);
487 }
488 global_system_variables.max_length_for_sort_data= in_max_length_for_sort_data;
489@@ -881,7 +881,7 @@
490 global_system_variables.max_seeks_for_key= ULONG_MAX;
491 if (in_max_seeks_for_key < 1 || in_max_seeks_for_key > ULONG_MAX)
492 {
493- cout << N_("Error: Invalid Value for max_seeks_for_key");
494+ cout << _("Error: Invalid Value for max_seeks_for_key");
495 exit(-1);
496 }
497 global_system_variables.max_seeks_for_key= in_max_seeks_for_key;
498@@ -892,7 +892,7 @@
499 global_system_variables.max_sort_length= 1024;
500 if ((int64_t)in_max_sort_length < 4 || (int64_t)in_max_sort_length > 8192*1024L)
501 {
502- cout << N_("Error: Invalid Value for max_sort_length");
503+ cout << _("Error: Invalid Value for max_sort_length");
504 exit(-1);
505 }
506 global_system_variables.max_sort_length= in_max_sort_length;
507@@ -903,7 +903,7 @@
508 global_system_variables.optimizer_search_depth= 0;
509 if (in_optimizer_search_depth > MAX_TABLES + 2)
510 {
511- cout << N_("Error: Invalid Value for optimizer_search_depth");
512+ cout << _("Error: Invalid Value for optimizer_search_depth");
513 exit(-1);
514 }
515 global_system_variables.optimizer_search_depth= in_optimizer_search_depth;
516@@ -914,7 +914,7 @@
517 global_system_variables.preload_buff_size= (32*1024L);
518 if (in_preload_buff_size < 1024 || in_preload_buff_size > 1024*1024*1024L)
519 {
520- cout << N_("Error: Invalid Value for preload_buff_size");
521+ cout << _("Error: Invalid Value for preload_buff_size");
522 exit(-1);
523 }
524 global_system_variables.preload_buff_size= in_preload_buff_size;
525@@ -925,7 +925,7 @@
526 global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE;
527 if (in_query_alloc_block_size < 1024)
528 {
529- cout << N_("Error: Invalid Value for query_alloc_block_size");
530+ cout << _("Error: Invalid Value for query_alloc_block_size");
531 exit(-1);
532 }
533 in_query_alloc_block_size-= in_query_alloc_block_size % 1024;
534@@ -937,7 +937,7 @@
535 global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE;
536 if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE)
537 {
538- cout << N_("Error: Invalid Value for query_prealloc_size");
539+ cout << _("Error: Invalid Value for query_prealloc_size");
540 exit(-1);
541 }
542 in_query_prealloc_size-= in_query_prealloc_size % 1024;
543@@ -949,7 +949,7 @@
544 global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE;
545 if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE)
546 {
547- cout << N_("Error: Invalid Value for range_alloc_block_size");
548+ cout << _("Error: Invalid Value for range_alloc_block_size");
549 exit(-1);
550 }
551 in_range_alloc_block_size-= in_range_alloc_block_size % 1024;
552@@ -961,7 +961,7 @@
553 global_system_variables.read_buff_size= (128*1024L);
554 if (in_read_buff_size < IO_SIZE*2 || in_read_buff_size > INT32_MAX)
555 {
556- cout << N_("Error: Invalid Value for read_buff_size");
557+ cout << _("Error: Invalid Value for read_buff_size");
558 exit(-1);
559 }
560 in_read_buff_size-= in_read_buff_size % IO_SIZE;
561@@ -973,7 +973,7 @@
562 global_system_variables.read_rnd_buff_size= (256*1024L);
563 if (in_read_rnd_buff_size < 64 || in_read_rnd_buff_size > UINT32_MAX)
564 {
565- cout << N_("Error: Invalid Value for read_rnd_buff_size");
566+ cout << _("Error: Invalid Value for read_rnd_buff_size");
567 exit(-1);
568 }
569 global_system_variables.read_rnd_buff_size= in_read_rnd_buff_size;
570@@ -984,7 +984,7 @@
571 global_system_variables.sortbuff_size= MAX_SORT_MEMORY;
572 if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY)
573 {
574- cout << N_("Error: Invalid Value for sort_buff_size");
575+ cout << _("Error: Invalid Value for sort_buff_size");
576 exit(-1);
577 }
578 global_system_variables.sortbuff_size= in_sortbuff_size;
579@@ -995,7 +995,7 @@
580 table_def_size= 128;
581 if (in_table_def_size < 1 || in_table_def_size > 512*1024L)
582 {
583- cout << N_("Error: Invalid Value for table_def_size");
584+ cout << _("Error: Invalid Value for table_def_size");
585 exit(-1);
586 }
587 table_def_size= in_table_def_size;
588@@ -1006,7 +1006,7 @@
589 table_cache_size= TABLE_OPEN_CACHE_DEFAULT;
590 if (in_table_cache_size < TABLE_OPEN_CACHE_MIN || in_table_cache_size > 512*1024L)
591 {
592- cout << N_("Error: Invalid Value for table_cache_size");
593+ cout << _("Error: Invalid Value for table_cache_size");
594 exit(-1);
595 }
596 table_cache_size= in_table_cache_size;
597@@ -1017,7 +1017,7 @@
598 table_lock_wait_timeout= 50;
599 if (in_table_lock_wait_timeout < 1 || in_table_lock_wait_timeout > 1024*1024*1024)
600 {
601- cout << N_("Error: Invalid Value for table_lock_wait_timeout");
602+ cout << _("Error: Invalid Value for table_lock_wait_timeout");
603 exit(-1);
604 }
605 table_lock_wait_timeout= in_table_lock_wait_timeout;
606@@ -1033,7 +1033,7 @@
607 global_system_variables.tmp_table_size= 16*1024*1024L;
608 if (in_tmp_table_size < 1024 || in_tmp_table_size > MAX_MEM_TABLE_SIZE)
609 {
610- cout << N_("Error: Invalid Value for table_lock_wait_timeout");
611+ cout << _("Error: Invalid Value for table_lock_wait_timeout");
612 exit(-1);
613 }
614 global_system_variables.tmp_table_size= in_tmp_table_size;
615@@ -1044,7 +1044,7 @@
616 global_system_variables.transaction_message_threshold= 1024*1024;
617 if ((int64_t) in_transaction_message_threshold < 128*1024 || (int64_t)in_transaction_message_threshold > 1024*1024)
618 {
619- cout << N_("Error: Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes");
620+ cout << _("Error: Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes");
621 exit(-1);
622 }
623 global_system_variables.transaction_message_threshold= in_transaction_message_threshold;
624@@ -1158,138 +1158,138 @@
625
626 config_options.add_options()
627 ("help,?", po::value<bool>(&opt_help)->default_value(false)->zero_tokens(),
628- N_("Display this help and exit."))
629+ _("Display this help and exit."))
630 ("no-defaults", po::value<bool>()->default_value(false)->zero_tokens(),
631- N_("Configuration file defaults are not used if no-defaults is set"))
632+ _("Configuration file defaults are not used if no-defaults is set"))
633 ("defaults-file", po::value<vector<string> >()->composing()->notifier(&compose_defaults_file_list),
634- N_("Configuration file to use"))
635+ _("Configuration file to use"))
636 ("config-dir", po::value<fs::path>(&system_config_dir),
637- N_("Base location for config files"))
638+ _("Base location for config files"))
639 ("plugin-dir", po::value<fs::path>(&plugin_dir)->notifier(&notify_plugin_dir),
640- N_("Directory for plugins."))
641+ _("Directory for plugins."))
642 ;
643
644 plugin_load_options.add_options()
645 ("plugin-add", po::value<vector<string> >()->composing()->notifier(&compose_plugin_add),
646- N_("Optional comma separated list of plugins to load at startup in addition "
647+ _("Optional comma separated list of plugins to load at startup in addition "
648 "to the default list of plugins. "
649 "[for example: --plugin_add=crc32,logger_gearman]"))
650 ("plugin-remove", po::value<vector<string> >()->composing()->notifier(&compose_plugin_remove),
651- N_("Optional comma separated list of plugins to not load at startup. Effectively "
652+ _("Optional comma separated list of plugins to not load at startup. Effectively "
653 "removes a plugin from the list of plugins to be loaded. "
654 "[for example: --plugin_remove=crc32,logger_gearman]"))
655 ("plugin-load", po::value<string>()->notifier(&notify_plugin_load)->default_value(PANDORA_PLUGIN_LIST),
656- N_("Optional comma separated list of plugins to load at starup instead of "
657+ _("Optional comma separated list of plugins to load at starup instead of "
658 "the default plugin load list. "
659 "[for example: --plugin_load=crc32,logger_gearman]"))
660 ;
661
662 long_options.add_options()
663 ("auto-increment-increment", po::value<uint64_t>(&global_system_variables.auto_increment_increment)->default_value(1)->notifier(&check_limits_aii),
664- N_("Auto-increment columns are incremented by this"))
665+ _("Auto-increment columns are incremented by this"))
666 ("auto-increment-offset", po::value<uint64_t>(&global_system_variables.auto_increment_offset)->default_value(1)->notifier(&check_limits_aio),
667- N_("Offset added to Auto-increment columns. Used when auto-increment-increment != 1"))
668+ _("Offset added to Auto-increment columns. Used when auto-increment-increment != 1"))
669 ("basedir,b", po::value<fs::path>(&basedir),
670- N_("Path to installation directory. All paths are usually resolved "
671+ _("Path to installation directory. All paths are usually resolved "
672 "relative to this."))
673 ("chroot,r", po::value<string>(),
674- N_("Chroot drizzled daemon during startup."))
675+ _("Chroot drizzled daemon during startup."))
676 ("collation-server", po::value<string>(),
677- N_("Set the default collation."))
678+ _("Set the default collation."))
679 ("completion-type", po::value<uint32_t>(&global_system_variables.completion_type)->default_value(0)->notifier(&check_limits_completion_type),
680- N_("Default completion type."))
681- ("core-file", N_("Write core on errors."))
682+ _("Default completion type."))
683+ ("core-file", _("Write core on errors."))
684 ("datadir", po::value<fs::path>(&data_home),
685- N_("Path to the database root."))
686+ _("Path to the database root."))
687 ("default-storage-engine", po::value<string>(),
688- N_("Set the default storage engine for tables."))
689+ _("Set the default storage engine for tables."))
690 ("default-time-zone", po::value<string>(),
691- N_("Set the default time zone."))
692+ _("Set the default time zone."))
693 ("exit-info,T", po::value<long>(),
694- N_("Used for debugging; Use at your own risk!"))
695+ _("Used for debugging; Use at your own risk!"))
696 ("gdb", po::value<bool>(&opt_debugging)->default_value(false)->zero_tokens(),
697- N_("Set up signals usable for debugging"))
698+ _("Set up signals usable for debugging"))
699 ("lc-time-name", po::value<string>(),
700- N_("Set the language used for the month names and the days of the week."))
701+ _("Set the language used for the month names and the days of the week."))
702 ("log-warnings,W", po::value<bool>(&global_system_variables.log_warnings)->default_value(false)->zero_tokens(),
703- N_("Log some not critical warnings to the log file."))
704+ _("Log some not critical warnings to the log file."))
705 ("pid-file", po::value<fs::path>(&pid_file),
706- N_("Pid file used by drizzled."))
707+ _("Pid file used by drizzled."))
708 ("port-open-timeout", po::value<uint32_t>(&drizzled_bind_timeout)->default_value(0),
709- N_("Maximum time in seconds to wait for the port to become free. "))
710+ _("Maximum time in seconds to wait for the port to become free. "))
711 ("replicate-query", po::value<bool>(&global_system_variables.replicate_query)->default_value(false)->zero_tokens(),
712- N_("Include the SQL query in replicated protobuf messages."))
713+ _("Include the SQL query in replicated protobuf messages."))
714 ("secure-file-priv", po::value<fs::path>(&secure_file_priv)->notifier(expand_secure_file_priv),
715- N_("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "
716+ _("Limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() to files "
717 "within specified directory"))
718 ("server-id", po::value<uint32_t>(&server_id)->default_value(0),
719- N_("Uniquely identifies the server instance in the community of "
720+ _("Uniquely identifies the server instance in the community of "
721 "replication partners."))
722 ("skip-stack-trace",
723- N_("Don't print a stack trace on failure."))
724+ _("Don't print a stack trace on failure."))
725 ("symbolic-links,s", po::value<bool>(&internal::my_use_symdir)->default_value(IF_PURIFY(false,true))->zero_tokens(),
726- N_("Enable symbolic link support."))
727+ _("Enable symbolic link support."))
728 ("timed-mutexes", po::value<bool>(&internal::timed_mutexes)->default_value(false)->zero_tokens(),
729- N_("Specify whether to time mutexes (only InnoDB mutexes are currently "
730+ _("Specify whether to time mutexes (only InnoDB mutexes are currently "
731 "supported)"))
732 ("tmpdir,t", po::value<string>(),
733- N_("Path for temporary files."))
734+ _("Path for temporary files."))
735 ("transaction-isolation", po::value<string>(),
736- N_("Default transaction isolation level."))
737+ _("Default transaction isolation level."))
738 ("transaction-message-threshold", po::value<size_t>(&global_system_variables.transaction_message_threshold)->default_value(1024*1024)->notifier(&check_limits_transaction_message_threshold),
739- N_("Max message size written to transaction log, valid values 131072 - 1048576 bytes."))
740+ _("Max message size written to transaction log, valid values 131072 - 1048576 bytes."))
741 ("user,u", po::value<string>(),
742- N_("Run drizzled daemon as user."))
743+ _("Run drizzled daemon as user."))
744 ("version,V",
745- N_("Output version information and exit."))
746+ _("Output version information and exit."))
747 ("back-log", po::value<back_log_constraints>(&back_log),
748- N_("The number of outstanding connection requests Drizzle can have. This "
749+ _("The number of outstanding connection requests Drizzle can have. This "
750 "comes into play when the main Drizzle thread gets very many connection "
751 "requests in a very short time."))
752 ("bulk-insert-buffer-size",
753 po::value<uint64_t>(&global_system_variables.bulk_insert_buff_size)->default_value(8192*1024),
754- N_("Size of tree cache used in bulk insert optimization. Note that this is "
755+ _("Size of tree cache used in bulk insert optimization. Note that this is "
756 "a limit per thread!"))
757 ("div-precision-increment", po::value<uint32_t>(&global_system_variables.div_precincrement)->default_value(4)->notifier(&check_limits_dpi),
758- N_("Precision of the result of '/' operator will be increased on that "
759+ _("Precision of the result of '/' operator will be increased on that "
760 "value."))
761 ("group-concat-max-len", po::value<uint64_t>(&global_system_variables.group_concat_max_len)->default_value(1024)->notifier(&check_limits_gcml),
762- N_("The maximum length of the result of function group_concat."))
763+ _("The maximum length of the result of function group_concat."))
764 ("join-buffer-size", po::value<uint64_t>(&global_system_variables.join_buff_size)->default_value(128*1024L)->notifier(&check_limits_join_buffer_size),
765- N_("The size of the buffer that is used for full joins."))
766+ _("The size of the buffer that is used for full joins."))
767 ("join-heap-threshold",
768 po::value<uint64_t>()->default_value(0),
769- N_("A global cap on the amount of memory that can be allocated by session join buffers (0 means unlimited)"))
770+ _("A global cap on the amount of memory that can be allocated by session join buffers (0 means unlimited)"))
771 ("max-allowed-packet", po::value<uint32_t>(&global_system_variables.max_allowed_packet)->default_value(64*1024*1024L)->notifier(&check_limits_map),
772- N_("Max packetlength to send/receive from to server."))
773+ _("Max packetlength to send/receive from to server."))
774 ("max-connect-errors", po::value<uint64_t>(&max_connect_errors)->default_value(MAX_CONNECT_ERRORS)->notifier(&check_limits_mce),
775- N_("If there is more than this number of interrupted connections from a "
776+ _("If there is more than this number of interrupted connections from a "
777 "host this host will be blocked from further connections."))
778 ("max-error-count", po::value<uint64_t>(&global_system_variables.max_error_count)->default_value(DEFAULT_ERROR_COUNT)->notifier(&check_limits_max_err_cnt),
779- N_("Max number of errors/warnings to store for a statement."))
780+ _("Max number of errors/warnings to store for a statement."))
781 ("max-heap-table-size", po::value<uint64_t>(&global_system_variables.max_heap_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_mhts),
782- N_("Don't allow creation of heap tables bigger than this."))
783+ _("Don't allow creation of heap tables bigger than this."))
784 ("max-join-size", po::value<drizzled::ha_rows>(&global_system_variables.max_join_size)->default_value(INT32_MAX)->notifier(&check_limits_max_join_size),
785- N_("Joins that are probably going to read more than max_join_size records "
786+ _("Joins that are probably going to read more than max_join_size records "
787 "return an error."))
788 ("max-length-for-sort-data", po::value<uint64_t>(&global_system_variables.max_length_for_sort_data)->default_value(1024)->notifier(&check_limits_mlfsd),
789- N_("Max number of bytes in sorted records."))
790+ _("Max number of bytes in sorted records."))
791 ("max-seeks-for-key", po::value<uint64_t>(&global_system_variables.max_seeks_for_key)->default_value(ULONG_MAX)->notifier(&check_limits_msfk),
792- N_("Limit assumed max number of seeks when looking up rows based on a key"))
793+ _("Limit assumed max number of seeks when looking up rows based on a key"))
794 ("max-sort-length", po::value<size_t>(&global_system_variables.max_sort_length)->default_value(1024)->notifier(&check_limits_max_sort_length),
795- N_("The number of bytes to use when sorting BLOB or TEXT values "
796+ _("The number of bytes to use when sorting BLOB or TEXT values "
797 "(only the first max_sort_length bytes of each value are used; the "
798 "rest are ignored)."))
799 ("max-write-lock-count", po::value<uint64_t>(&max_write_lock_count)->default_value(UINT64_MAX),
800- N_("After this many write locks, allow some read locks to run in between."))
801+ _("After this many write locks, allow some read locks to run in between."))
802 ("min-examined-row-limit", po::value<uint64_t>(&global_system_variables.min_examined_row_limit)->default_value(0)->notifier(&check_limits_merl),
803- N_("Don't log queries which examine less than min_examined_row_limit "
804+ _("Don't log queries which examine less than min_examined_row_limit "
805 "rows to file."))
806 ("disable-optimizer-prune",
807- N_("Do not apply any heuristic(s) during query optimization to prune, "
808+ _("Do not apply any heuristic(s) during query optimization to prune, "
809 "thus perform an exhaustive search from the optimizer search space."))
810 ("optimizer-search-depth", po::value<uint32_t>(&global_system_variables.optimizer_search_depth)->default_value(0)->notifier(&check_limits_osd),
811- N_("Maximum depth of search performed by the query optimizer. Values "
812+ _("Maximum depth of search performed by the query optimizer. Values "
813 "larger than the number of relations in a query result in better query "
814 "plans, but take longer to compile a query. Smaller values than the "
815 "number of tables in a relation result in faster optimization, but may "
816@@ -1298,52 +1298,52 @@
817 "optimizer will switch to the original find_best (used for "
818 "testing/comparison)."))
819 ("preload-buffer-size", po::value<uint64_t>(&global_system_variables.preload_buff_size)->default_value(32*1024L)->notifier(&check_limits_pbs),
820- N_("The size of the buffer that is allocated when preloading indexes"))
821+ _("The size of the buffer that is allocated when preloading indexes"))
822 ("query-alloc-block-size",
823 po::value<uint32_t>(&global_system_variables.query_alloc_block_size)->default_value(QUERY_ALLOC_BLOCK_SIZE)->notifier(&check_limits_qabs),
824- N_("Allocation block size for query parsing and execution"))
825+ _("Allocation block size for query parsing and execution"))
826 ("query-prealloc-size",
827 po::value<uint32_t>(&global_system_variables.query_prealloc_size)->default_value(QUERY_ALLOC_PREALLOC_SIZE)->notifier(&check_limits_qps),
828- N_("Persistent buffer for query parsing and execution"))
829+ _("Persistent buffer for query parsing and execution"))
830 ("range-alloc-block-size",
831 po::value<size_t>(&global_system_variables.range_alloc_block_size)->default_value(RANGE_ALLOC_BLOCK_SIZE)->notifier(&check_limits_rabs),
832- N_("Allocation block size for storing ranges during optimization"))
833+ _("Allocation block size for storing ranges during optimization"))
834 ("read-buffer-size",
835 po::value<uint32_t>(&global_system_variables.read_buff_size)->default_value(128*1024L)->notifier(&check_limits_read_buffer_size),
836- N_("Each thread that does a sequential scan allocates a buffer of this "
837+ _("Each thread that does a sequential scan allocates a buffer of this "
838 "size for each table it scans. If you do many sequential scans, you may "
839 "want to increase this value."))
840 ("read-buffer-threshold",
841 po::value<uint64_t>()->default_value(0),
842- N_("A global cap on the size of read-buffer-size (0 means unlimited)"))
843+ _("A global cap on the size of read-buffer-size (0 means unlimited)"))
844 ("read-rnd-buffer-size",
845 po::value<uint32_t>(&global_system_variables.read_rnd_buff_size)->default_value(256*1024L)->notifier(&check_limits_read_rnd_buffer_size),
846- N_("When reading rows in sorted order after a sort, the rows are read "
847+ _("When reading rows in sorted order after a sort, the rows are read "
848 "through this buffer to avoid a disk seeks. If not set, then it's set "
849 "to the value of record_buffer."))
850 ("read-rnd-threshold",
851 po::value<uint64_t>()->default_value(0),
852- N_("A global cap on the size of read-rnd-buffer-size (0 means unlimited)"))
853+ _("A global cap on the size of read-rnd-buffer-size (0 means unlimited)"))
854 ("scheduler", po::value<string>(),
855- N_("Select scheduler to be used (by default multi-thread)."))
856+ _("Select scheduler to be used (by default multi-thread)."))
857 ("sort-buffer-size",
858 po::value<size_t>(&global_system_variables.sortbuff_size)->default_value(MAX_SORT_MEMORY)->notifier(&check_limits_sort_buffer_size),
859- N_("Each thread that needs to do a sort allocates a buffer of this size."))
860+ _("Each thread that needs to do a sort allocates a buffer of this size."))
861 ("sort-heap-threshold",
862 po::value<uint64_t>()->default_value(0),
863- N_("A global cap on the amount of memory that can be allocated by session sort buffers (0 means unlimited)"))
864+ _("A global cap on the amount of memory that can be allocated by session sort buffers (0 means unlimited)"))
865 ("table-definition-cache", po::value<size_t>(&table_def_size)->default_value(128)->notifier(&check_limits_tdc),
866- N_("The number of cached table definitions."))
867+ _("The number of cached table definitions."))
868 ("table-open-cache", po::value<uint64_t>(&table_cache_size)->default_value(TABLE_OPEN_CACHE_DEFAULT)->notifier(&check_limits_toc),
869- N_("The number of cached open tables."))
870+ _("The number of cached open tables."))
871 ("table-lock-wait-timeout", po::value<uint64_t>(&table_lock_wait_timeout)->default_value(50)->notifier(&check_limits_tlwt),
872- N_("Timeout in seconds to wait for a table level lock before returning an "
873+ _("Timeout in seconds to wait for a table level lock before returning an "
874 "error. Used only if the connection has active cursors."))
875 ("thread-stack", po::value<size_t>(&my_thread_stack_size)->default_value(DEFAULT_THREAD_STACK)->notifier(&check_limits_thread_stack),
876- N_("The stack size for each thread."))
877+ _("The stack size for each thread."))
878 ("tmp-table-size",
879 po::value<uint64_t>(&global_system_variables.tmp_table_size)->default_value(16*1024*1024L)->notifier(&check_limits_tmp_table_size),
880- N_("If an internal in-memory temporary table exceeds this size, Drizzle will"
881+ _("If an internal in-memory temporary table exceeds this size, Drizzle will"
882 " automatically convert it to an on-disk MyISAM table."))
883 ;
884
885@@ -2234,7 +2234,7 @@
886 (vm["sort-heap-threshold"].as<uint64_t>() <
887 global_system_variables.sortbuff_size))
888 {
889- cout << N_("Error: sort-heap-threshold cannot be less than sort-buffer-size") << endl;
890+ cout << _("Error: sort-heap-threshold cannot be less than sort-buffer-size") << endl;
891 exit(-1);
892 }
893
894@@ -2247,7 +2247,7 @@
895 (vm["join-heap-threshold"].as<uint64_t>() <
896 global_system_variables.join_buff_size))
897 {
898- cout << N_("Error: join-heap-threshold cannot be less than join-buffer-size") << endl;
899+ cout << _("Error: join-heap-threshold cannot be less than join-buffer-size") << endl;
900 exit(-1);
901 }
902
903@@ -2260,7 +2260,7 @@
904 (vm["read-rnd-threshold"].as<uint64_t>() <
905 global_system_variables.read_rnd_buff_size))
906 {
907- cout << N_("Error: read-rnd-threshold cannot be less than read-rnd-buffer-size") << endl;
908+ cout << _("Error: read-rnd-threshold cannot be less than read-rnd-buffer-size") << endl;
909 exit(-1);
910 }
911
912@@ -2273,7 +2273,7 @@
913 (vm["read-buffer-threshold"].as<uint64_t>() <
914 global_system_variables.read_buff_size))
915 {
916- cout << N_("Error: read-buffer-threshold cannot be less than read-buffer-size") << endl;
917+ cout << _("Error: read-buffer-threshold cannot be less than read-buffer-size") << endl;
918 exit(-1);
919 }
920
921
922=== modified file 'drizzled/main.cc'
923--- drizzled/main.cc 2010-12-30 15:27:27 +0000
924+++ drizzled/main.cc 2011-01-10 20:36:11 +0000
925@@ -221,8 +221,8 @@
926 # if defined(HAVE_LOCALE_H)
927 setlocale(LC_ALL, "");
928 # endif
929- bindtextdomain("drizzle", LOCALEDIR);
930- textdomain("drizzle");
931+ bindtextdomain("drizzle7", LOCALEDIR);
932+ textdomain("drizzle7");
933 #endif
934
935 module::Registry &modules= module::Registry::singleton();
936
937=== modified file 'plugin/logging_gearman/logging_gearman.cc'
938--- plugin/logging_gearman/logging_gearman.cc 2011-01-01 03:24:09 +0000
939+++ plugin/logging_gearman/logging_gearman.cc 2011-01-10 20:36:11 +0000
940@@ -299,10 +299,10 @@
941 {
942 context("host",
943 po::value<std::string>()->default_value("localhost"),
944- N_("Hostname for logging to a Gearman server"));
945+ _("Hostname for logging to a Gearman server"));
946 context("function",
947 po::value<std::string>()->default_value("drizzlelog"),
948- N_("Gearman Function to send logging to"));
949+ _("Gearman Function to send logging to"));
950 }
951
952 } /* namespace drizzle_plugin */
953
954=== modified file 'plugin/logging_query/logging_query.cc'
955--- plugin/logging_query/logging_query.cc 2010-12-31 21:25:11 +0000
956+++ plugin/logging_query/logging_query.cc 2011-01-10 20:36:11 +0000
957@@ -316,22 +316,22 @@
958 {
959 context("enable",
960 po::value<bool>(&sysvar_logging_query_enable)->default_value(false)->zero_tokens(),
961- N_("Enable logging to CSV file"));
962+ _("Enable logging to CSV file"));
963 context("filename",
964 po::value<string>(),
965- N_("File to log to"));
966+ _("File to log to"));
967 context("pcre",
968 po::value<string>()->default_value(""),
969- N_("PCRE to match the query against"));
970+ _("PCRE to match the query against"));
971 context("threshold-slow",
972 po::value<uint32_constraint>(&sysvar_logging_query_threshold_slow)->default_value(0),
973- N_("Threshold for logging slow queries, in microseconds"));
974+ _("Threshold for logging slow queries, in microseconds"));
975 context("threshold-big-resultset",
976 po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_resultset)->default_value(0),
977- N_("Threshold for logging big queries, for rows returned"));
978+ _("Threshold for logging big queries, for rows returned"));
979 context("threshold-big-examined",
980 po::value<uint32_constraint>(&sysvar_logging_query_threshold_big_examined)->default_value(0),
981- N_("Threshold for logging big queries, for rows examined"));
982+ _("Threshold for logging big queries, for rows examined"));
983 }
984
985 } /* namespace drizzle_plugin */
986
987=== modified file 'plugin/logging_stats/logging_stats.cc'
988--- plugin/logging_stats/logging_stats.cc 2011-01-01 01:54:09 +0000
989+++ plugin/logging_stats/logging_stats.cc 2011-01-10 20:36:11 +0000
990@@ -370,14 +370,14 @@
991 {
992 context("max-user-count",
993 po::value<max_user_count_constraint>(&sysvar_logging_stats_max_user_count)->default_value(500),
994- N_("Max number of users that will be logged"));
995+ _("Max number of users that will be logged"));
996 context("bucket-count",
997 po::value<bucket_count_constraint>(&sysvar_logging_stats_bucket_count)->default_value(10),
998- N_("Max number of range locks to use for Scoreboard"));
999+ _("Max number of range locks to use for Scoreboard"));
1000 context("scoreboard-size",
1001 po::value<scoreboard_size_constraint>(&sysvar_logging_stats_scoreboard_size)->default_value(2000),
1002- N_("Max number of concurrent sessions that will be logged"));
1003- context("disable", N_("Enable Logging Statistics Collection"));
1004+ _("Max number of concurrent sessions that will be logged"));
1005+ context("disable", _("Enable Logging Statistics Collection"));
1006 }
1007
1008 DRIZZLE_DECLARE_PLUGIN
1009
1010=== modified file 'plugin/memcached_query_cache/memcached_qc.cc'
1011--- plugin/memcached_query_cache/memcached_qc.cc 2010-12-18 04:43:40 +0000
1012+++ plugin/memcached_query_cache/memcached_qc.cc 2011-01-10 20:36:11 +0000
1013@@ -385,13 +385,13 @@
1014 {
1015 context("servers",
1016 po::value<string>()->default_value("127.0.0.1:11211"),
1017- N_("List of memcached servers."));
1018+ _("List of memcached servers."));
1019 context("expiry",
1020 po::value<uint64_constraint>(&expiry_time)->default_value(1000),
1021- N_("Expiry time of memcached entries"));
1022+ _("Expiry time of memcached entries"));
1023 context("enable",
1024 po::value<bool>(&sysvar_memcached_qc_enable)->default_value(false)->zero_tokens(),
1025- N_("Enable Memcached Query Cache"));
1026+ _("Enable Memcached Query Cache"));
1027 }
1028
1029 DRIZZLE_DECLARE_PLUGIN
1030
1031=== modified file 'plugin/memcached_stats/memcached_stats.cc'
1032--- plugin/memcached_stats/memcached_stats.cc 2010-12-18 04:43:40 +0000
1033+++ plugin/memcached_stats/memcached_stats.cc 2011-01-10 20:36:11 +0000
1034@@ -84,7 +84,7 @@
1035 {
1036 context("servers",
1037 po::value<std::string>()->default_value(""),
1038- N_("List of memcached servers."));
1039+ _("List of memcached servers."));
1040 }
1041
1042 } /* namespace drizzle_plugin */
1043
1044=== modified file 'plugin/multi_thread/multi_thread.cc'
1045--- plugin/multi_thread/multi_thread.cc 2011-01-08 18:21:31 +0000
1046+++ plugin/multi_thread/multi_thread.cc 2011-01-10 20:36:11 +0000
1047@@ -208,7 +208,7 @@
1048 {
1049 context("max-threads",
1050 po::value<max_threads_constraint>(&max_threads)->default_value(2048),
1051- N_("Maximum number of user threads available."));
1052+ _("Maximum number of user threads available."));
1053 }
1054
1055 DRIZZLE_DECLARE_PLUGIN
1056
1057=== modified file 'plugin/myisam/ha_myisam.cc'
1058--- plugin/myisam/ha_myisam.cc 2010-12-18 10:19:12 +0000
1059+++ plugin/myisam/ha_myisam.cc 2011-01-10 20:36:11 +0000
1060@@ -1503,10 +1503,10 @@
1061 {
1062 context("max-sort-file-size",
1063 po::value<uint64_t>(&max_sort_file_size)->default_value(INT32_MAX),
1064- N_("Don't use the fast sort index method to created index if the temporary file would get bigger than this."));
1065+ _("Don't use the fast sort index method to created index if the temporary file would get bigger than this."));
1066 context("sort-buffer-size",
1067 po::value<sort_buffer_constraint>(&sort_buffer_size)->default_value(8192*1024),
1068- N_("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE."));
1069+ _("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE."));
1070 }
1071
1072
1073
1074=== modified file 'plugin/mysql_protocol/mysql_protocol.cc'
1075--- plugin/mysql_protocol/mysql_protocol.cc 2011-01-04 04:05:27 +0000
1076+++ plugin/mysql_protocol/mysql_protocol.cc 2011-01-10 20:36:11 +0000
1077@@ -1011,32 +1011,32 @@
1078 {
1079 context("port",
1080 po::value<port_constraint>(&port)->default_value(3306),
1081- N_("Port number to use for connection or 0 for default to with MySQL "
1082+ _("Port number to use for connection or 0 for default to with MySQL "
1083 "protocol."));
1084 context("connect-timeout",
1085 po::value<timeout_constraint>(&connect_timeout)->default_value(10),
1086- N_("Connect Timeout."));
1087+ _("Connect Timeout."));
1088 context("read-timeout",
1089 po::value<timeout_constraint>(&read_timeout)->default_value(30),
1090- N_("Read Timeout."));
1091+ _("Read Timeout."));
1092 context("write-timeout",
1093 po::value<timeout_constraint>(&write_timeout)->default_value(60),
1094- N_("Write Timeout."));
1095+ _("Write Timeout."));
1096 context("retry-count",
1097 po::value<retry_constraint>(&retry_count)->default_value(10),
1098- N_("Retry Count."));
1099+ _("Retry Count."));
1100 context("buffer-length",
1101 po::value<buffer_constraint>(&buffer_length)->default_value(16384),
1102- N_("Buffer length."));
1103+ _("Buffer length."));
1104 context("bind-address",
1105 po::value<string>()->default_value(""),
1106- N_("Address to bind to."));
1107+ _("Address to bind to."));
1108 context("max-connections",
1109 po::value<uint32_t>(&ListenMySQLProtocol::mysql_counters->max_connections)->default_value(1000),
1110- N_("Maximum simultaneous connections."));
1111+ _("Maximum simultaneous connections."));
1112 context("admin-ip-addresses",
1113 po::value<vector<string> >()->composing()->notifier(&ClientMySQLProtocol::mysql_compose_ip_addresses),
1114- N_("A restrictive IP address list for incoming admin connections."));
1115+ _("A restrictive IP address list for incoming admin connections."));
1116 }
1117
1118 static int mysql_protocol_connection_count_func(drizzle_show_var *var, char *buff)
1119
1120=== modified file 'plugin/mysql_unix_socket_protocol/protocol.cc'
1121--- plugin/mysql_unix_socket_protocol/protocol.cc 2010-12-13 14:34:37 +0000
1122+++ plugin/mysql_unix_socket_protocol/protocol.cc 2011-01-10 20:36:11 +0000
1123@@ -165,12 +165,12 @@
1124 {
1125 context("path",
1126 po::value<fs::path>()->default_value(DRIZZLE_UNIX_SOCKET_PATH),
1127- N_("Path used for MySQL UNIX Socket Protocol."));
1128+ _("Path used for MySQL UNIX Socket Protocol."));
1129 context("clobber",
1130- N_("Clobber socket file if one is there already."));
1131+ _("Clobber socket file if one is there already."));
1132 context("max-connections",
1133 po::value<uint32_t>(&Protocol::mysql_unix_counters->max_connections)->default_value(1000),
1134- N_("Maximum simultaneous connections."));
1135+ _("Maximum simultaneous connections."));
1136 }
1137
1138 } /* namespace mysql_unix_socket_protocol */
1139
1140=== modified file 'plugin/pbms/src/parameters_ms.cc'
1141--- plugin/pbms/src/parameters_ms.cc 2010-12-18 04:43:40 +0000
1142+++ plugin/pbms/src/parameters_ms.cc 2011-01-10 20:36:11 +0000
1143@@ -423,42 +423,42 @@
1144 {
1145 context("port",
1146 po::value<port_constraint>(&pbms_port_number)->default_value(DEFAULT_PBMS_PORT),
1147- N_("Port number to use for connection or 0 for default PBMS port "));
1148+ _("Port number to use for connection or 0 for default PBMS port "));
1149 context("repository-threshold",
1150 po::value<std::string>(&my_repository_threshold)->default_value(MS_REPO_THRESHOLD_DEF),
1151- N_("The maximum size of a BLOB repository file."));
1152+ _("The maximum size of a BLOB repository file."));
1153 context("temp-log-threshold",
1154 po::value<std::string>(&my_temp_log_threshold)->default_value(MS_TEMP_LOG_THRESHOLD_DEF),
1155- N_("The maximum size of a temorary BLOB log file."));
1156+ _("The maximum size of a temorary BLOB log file."));
1157 context("http-metadata-headers",
1158 po::value<std::string>(&my_http_metadata_headers)->default_value(MS_HTTP_METADATA_HEADERS_DEF),
1159- N_("A ':' delimited list of metadata header names to be used to initialize "
1160+ _("A ':' delimited list of metadata header names to be used to initialize "
1161 "the pbms_metadata_header table when a database is created."));
1162 context("garbage-threshold",
1163 po::value<percent_constraint>(&my_garbage_threshold)->default_value(MS_DEFAULT_GARBAGE_LEVEL),
1164- N_("The percentage of garbage in a repository file before it is compacted."));
1165+ _("The percentage of garbage in a repository file before it is compacted."));
1166 context("temp-blob-timeout",
1167 po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_TEMP_LOG_WAIT),
1168- N_("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database."));
1169+ _("The timeout, in seconds, for temporary BLOBs. Uploaded blob data is removed after this time, unless committed to the database."));
1170 context("max-keep-alive",
1171 po::value<uint32_nonzero_constraint>(&my_temp_blob_timeout)->default_value(MS_DEFAULT_KEEP_ALIVE),
1172- N_("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection."));
1173+ _("The timeout, in milli-seconds, before the HTTP server will close an inactive HTTP connection."));
1174 context("next-backup-db-id",
1175 po::value<uint32_nonzero_constraint>(&my_backup_db_id)->default_value(1),
1176- N_("The next backup ID to use when backing up a PBMS database."));
1177+ _("The next backup ID to use when backing up a PBMS database."));
1178 context("watch-tables",
1179 po::value<std::string>(&my_table_list)->default_value("*"),
1180- N_("A comma delimited list of tables to watch of the format: <database>.<table>, ..."));
1181+ _("A comma delimited list of tables to watch of the format: <database>.<table>, ..."));
1182 context("watch-disable",
1183- N_("Enable PBMS daemon Insert/Update/Delete event scanning"));
1184+ _("Enable PBMS daemon Insert/Update/Delete event scanning"));
1185
1186 context("before-insert-position",
1187 po::value<before_position_constraint>(&my_before_insert_position)->default_value(1),
1188- N_("Before insert row event observer call position"));
1189+ _("Before insert row event observer call position"));
1190
1191 context("before-update-position",
1192 po::value<before_position_constraint>(&my_before_update_position)->default_value(1),
1193- N_("Before update row event observer call position"));
1194+ _("Before update row event observer call position"));
1195
1196 }
1197 #endif
1198
1199=== modified file 'plugin/rabbitmq/rabbitmq_log.cc'
1200--- plugin/rabbitmq/rabbitmq_log.cc 2010-12-05 20:05:39 +0000
1201+++ plugin/rabbitmq/rabbitmq_log.cc 2011-01-10 20:36:11 +0000
1202@@ -152,28 +152,28 @@
1203 {
1204 context("host",
1205 po::value<string>()->default_value("localhost"),
1206- N_("Host name to connect to"));
1207+ _("Host name to connect to"));
1208 context("port",
1209 po::value<port_constraint>(&sysvar_rabbitmq_port)->default_value(5672),
1210- N_("Port to connect to"));
1211+ _("Port to connect to"));
1212 context("virtualhost",
1213 po::value<string>()->default_value("/"),
1214- N_("RabbitMQ virtualhost"));
1215+ _("RabbitMQ virtualhost"));
1216 context("username",
1217 po::value<string>()->default_value("guest"),
1218- N_("RabbitMQ username"));
1219+ _("RabbitMQ username"));
1220 context("password",
1221 po::value<string>()->default_value("guest"),
1222- N_("RabbitMQ password"));
1223+ _("RabbitMQ password"));
1224 context("use-replicator",
1225 po::value<string>()->default_value("default_replicator"),
1226- N_("Name of the replicator plugin to use (default='default_replicator')"));
1227+ _("Name of the replicator plugin to use (default='default_replicator')"));
1228 context("exchange",
1229 po::value<string>()->default_value("ReplicationExchange"),
1230- N_("Name of RabbitMQ exchange to publish to"));
1231+ _("Name of RabbitMQ exchange to publish to"));
1232 context("routingkey",
1233 po::value<string>()->default_value("ReplicationRoutingKey"),
1234- N_("Name of RabbitMQ routing key to use"));
1235+ _("Name of RabbitMQ routing key to use"));
1236 }
1237
1238 } /* namespace drizzle_plugin */
1239
1240=== modified file 'plugin/syslog/module.cc'
1241--- plugin/syslog/module.cc 2010-12-03 19:56:07 +0000
1242+++ plugin/syslog/module.cc 2011-01-10 20:36:11 +0000
1243@@ -92,31 +92,31 @@
1244 {
1245 context("ident",
1246 po::value<string>()->default_value("drizzled"),
1247- N_("Syslog Ident"));
1248+ _("Syslog Ident"));
1249 context("facility",
1250 po::value<string>()->default_value("local0"),
1251- N_("Syslog Facility"));
1252+ _("Syslog Facility"));
1253 context("logging-enable",
1254 po::value<bool>(&sysvar_logging_enable)->default_value(false)->zero_tokens(),
1255- N_("Enable logging to syslog of the query log"));
1256+ _("Enable logging to syslog of the query log"));
1257 context("logging-priority",
1258 po::value<string>()->default_value("warning"),
1259- N_("Syslog Priority of query logging"));
1260+ _("Syslog Priority of query logging"));
1261 context("logging-threshold-slow",
1262 po::value<uint64_constraint>(&sysvar_logging_threshold_slow)->default_value(0),
1263- N_("Threshold for logging slow queries, in microseconds"));
1264+ _("Threshold for logging slow queries, in microseconds"));
1265 context("logging-threshold-big-resultset",
1266 po::value<uint64_constraint>(&sysvar_logging_threshold_big_resultset)->default_value(0),
1267- N_("Threshold for logging big queries, for rows returned"));
1268+ _("Threshold for logging big queries, for rows returned"));
1269 context("logging-threshold-big-examined",
1270 po::value<uint64_constraint>(&sysvar_logging_threshold_big_examined)->default_value(0),
1271- N_("Threshold for logging big queries, for rows examined"));
1272+ _("Threshold for logging big queries, for rows examined"));
1273 context("errmsg-enable",
1274 po::value<bool>(&sysvar_errmsg_enable)->default_value(false)->zero_tokens(),
1275- N_("Enable logging to syslog of the error messages"));
1276+ _("Enable logging to syslog of the error messages"));
1277 context("errmsg-priority",
1278 po::value<string>()->default_value("warning"),
1279- N_("Syslog Priority of error messages"));
1280+ _("Syslog Priority of error messages"));
1281 }
1282
1283 } /* namespace drizzle_plugin */
1284
1285=== modified file 'plugin/transaction_log/module.cc'
1286--- plugin/transaction_log/module.cc 2010-12-18 04:43:40 +0000
1287+++ plugin/transaction_log/module.cc 2011-01-10 20:36:11 +0000
1288@@ -255,25 +255,25 @@
1289 {
1290 context("truncate-debug",
1291 po::value<bool>(&sysvar_transaction_log_truncate_debug)->default_value(false)->zero_tokens(),
1292- N_("DEBUGGING - Truncate transaction log"));
1293+ _("DEBUGGING - Truncate transaction log"));
1294 context("enable-checksum",
1295 po::value<bool>(&sysvar_transaction_log_checksum_enabled)->default_value(false)->zero_tokens(),
1296- N_("Enable CRC32 Checksumming of each written transaction log entry"));
1297+ _("Enable CRC32 Checksumming of each written transaction log entry"));
1298 context("enable",
1299 po::value<bool>(&sysvar_transaction_log_enabled)->default_value(false)->zero_tokens(),
1300- N_("Enable transaction log"));
1301+ _("Enable transaction log"));
1302 context("file",
1303 po::value<string>(&sysvar_transaction_log_file)->default_value(DEFAULT_LOG_FILE_PATH),
1304- N_("Path to the file to use for transaction log"));
1305+ _("Path to the file to use for transaction log"));
1306 context("use-replicator",
1307 po::value<string>(&sysvar_transaction_log_use_replicator)->default_value(DEFAULT_USE_REPLICATOR),
1308- N_("Name of the replicator plugin to use (default='default_replicator')"));
1309+ _("Name of the replicator plugin to use (default='default_replicator')"));
1310 context("flush-frequency",
1311 po::value<flush_constraint>(&sysvar_transaction_log_flush_frequency)->default_value(0),
1312- N_("0 == rely on operating system to sync log file (default), 1 == sync file at each transaction write, 2 == sync log file once per second"));
1313+ _("0 == rely on operating system to sync log file (default), 1 == sync file at each transaction write, 2 == sync log file once per second"));
1314 context("num-write-buffers",
1315 po::value<write_buffers_constraint>(&sysvar_transaction_log_num_write_buffers)->default_value(8),
1316- N_("Number of slots for in-memory write buffers (default=8)."));
1317+ _("Number of slots for in-memory write buffers (default=8)."));
1318 }
1319
1320 DRIZZLE_PLUGIN(init, NULL, init_options);
1321
1322=== modified file 'plugin/transaction_log/utilities/transaction_reader.cc'
1323--- plugin/transaction_log/utilities/transaction_reader.cc 2010-12-18 04:43:40 +0000
1324+++ plugin/transaction_log/utilities/transaction_reader.cc 2011-01-10 20:36:11 +0000
1325@@ -469,30 +469,30 @@
1326 */
1327 po::options_description desc("Program options");
1328 desc.add_options()
1329- ("help", N_("Display help and exit"))
1330- ("use-innodb-replication-log", N_("Read from the innodb transaction log"))
1331+ ("help", _("Display help and exit"))
1332+ ("use-innodb-replication-log", _("Read from the innodb transaction log"))
1333 ("user,u", po::value<string>(&current_user)->default_value(""),
1334- N_("User for login if not current user."))
1335+ _("User for login if not current user."))
1336 ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0),
1337- N_("Port number to use for connection."))
1338+ _("Port number to use for connection."))
1339 ("password,P", po::value<string>(&opt_password)->default_value(""),
1340- N_("Password to use when connecting to server"))
1341+ _("Password to use when connecting to server"))
1342 ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
1343- N_("The protocol of connection (mysql or drizzle)."))
1344- ("checksum", N_("Perform checksum"))
1345- ("ignore-events", N_("Ignore event messages"))
1346- ("input-file", po::value< vector<string> >(), N_("Transaction log file"))
1347- ("raw", N_("Print raw Protobuf messages instead of SQL"))
1348+ _("The protocol of connection (mysql or drizzle)."))
1349+ ("checksum", _("Perform checksum"))
1350+ ("ignore-events", _("Ignore event messages"))
1351+ ("input-file", po::value< vector<string> >(), _("Transaction log file"))
1352+ ("raw", _("Print raw Protobuf messages instead of SQL"))
1353 ("start-pos",
1354 po::value<int>(&opt_start_pos),
1355- N_("Start reading from the given file position"))
1356+ _("Start reading from the given file position"))
1357 ("start-transaction-id",
1358 po::value<uint64_t>(&opt_start_transaction_id),
1359- N_("Only output for the given transaction ID and later"))
1360+ _("Only output for the given transaction ID and later"))
1361 ("transaction-id",
1362 po::value<uint64_t>(&opt_transaction_id),
1363- N_("Only output for the given transaction ID"))
1364- ("summarize", N_("Summarize message contents"));
1365+ _("Only output for the given transaction ID"))
1366+ ("summarize", _("Summarize message contents"));
1367
1368 /*
1369 * We allow one positional argument that will be transaction file name

Subscribers

People subscribed via source and target branches