mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Getting rid of gettext, moved some _(..) texts to themes and left some error
messages hard coded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fe5c94b050
commit
c2b2d45bd6
28 changed files with 61 additions and 950 deletions
|
|
@ -52,12 +52,10 @@ void args_execute(int argc, char *argv[])
|
|||
while ((nextopt = poptGetNextOpt(con)) > 0) ;
|
||||
|
||||
if (nextopt != -1) {
|
||||
printf(_("Error on option %s: %s.\n"
|
||||
"Run '%s --help' to see a full list of "
|
||||
"available command line options.\n"),
|
||||
poptBadOption(con, 0),
|
||||
poptStrerror(nextopt),
|
||||
argv[0]);
|
||||
printf("Error on option %s: %s.\n"
|
||||
"Run '%s --help' to see a full list of "
|
||||
"available command line options.\n",
|
||||
poptBadOption(con, 0), poptStrerror(nextopt), argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ void net_disconnect_deinit(void)
|
|||
} else if (first) {
|
||||
/* Display the text when we have already waited
|
||||
for a while */
|
||||
printf(_("Please wait, waiting for servers to close "
|
||||
"connections..\n"));
|
||||
printf("Please wait, waiting for servers to close "
|
||||
"connections..\n");
|
||||
fflush(stdout);
|
||||
|
||||
first = 0;
|
||||
|
|
|
|||
|
|
@ -540,13 +540,13 @@ const char *net_gethosterror(int error)
|
|||
#else
|
||||
switch (error) {
|
||||
case HOST_NOT_FOUND:
|
||||
return _("Host not found");
|
||||
return "Host not found";
|
||||
case NO_ADDRESS:
|
||||
return _("No IP address found for name");
|
||||
return "No IP address found for name";
|
||||
case NO_RECOVERY:
|
||||
return _("A non-recovable name server error occurred");
|
||||
return "A non-recovable name server error occurred";
|
||||
case TRY_AGAIN:
|
||||
return _("A temporary error on an authoritative name server");
|
||||
return "A temporary error on an authoritative name server";
|
||||
}
|
||||
|
||||
/* unknown error */
|
||||
|
|
|
|||
|
|
@ -367,8 +367,8 @@ void settings_check_module(const char *module)
|
|||
if (node == NULL) return;
|
||||
|
||||
errors = g_string_new(NULL);
|
||||
g_string_sprintf(errors, _("Unknown settings in configuration "
|
||||
"file for module %s:"), module);
|
||||
g_string_sprintf(errors, "Unknown settings in configuration "
|
||||
"file for module %s:", module);
|
||||
|
||||
count = 0;
|
||||
for (tmp = node->value; tmp != NULL; tmp = tmp->next) {
|
||||
|
|
@ -511,7 +511,7 @@ static CONFIG_REC *parse_configfile(const char *fname)
|
|||
config = config_open(path, -1);
|
||||
if (config == NULL) {
|
||||
last_config_error_msg =
|
||||
g_strdup_printf(_("Error opening configuration file %s: %s"),
|
||||
g_strdup_printf("Error opening configuration file %s: %s",
|
||||
path, g_strerror(errno));
|
||||
config = config_open(NULL, -1);
|
||||
}
|
||||
|
|
@ -536,12 +536,11 @@ static void init_configfile(void)
|
|||
if (stat(str, &statbuf) != 0) {
|
||||
/* ~/.irssi not found, create it. */
|
||||
if (mkpath(str, 0700) != 0) {
|
||||
g_error(_("Couldn't create %s directory"), str);
|
||||
g_error("Couldn't create %s directory", str);
|
||||
}
|
||||
} else if (!S_ISDIR(statbuf.st_mode)) {
|
||||
g_error(_("%s is not a directory.\n"
|
||||
"You should remove it with command: rm ~/.irssi"),
|
||||
str);
|
||||
g_error("%s is not a directory.\n"
|
||||
"You should remove it with command: rm ~/.irssi", str);
|
||||
}
|
||||
g_free(str);
|
||||
|
||||
|
|
@ -551,8 +550,8 @@ static void init_configfile(void)
|
|||
/* any errors? */
|
||||
if (config_last_error(mainconfig) != NULL) {
|
||||
last_config_error_msg =
|
||||
g_strdup_printf(_("Ignored errors in configuration "
|
||||
"file:\n%s"),
|
||||
g_strdup_printf("Ignored errors in configuration "
|
||||
"file:\n%s",
|
||||
config_last_error(mainconfig));
|
||||
}
|
||||
|
||||
|
|
@ -576,7 +575,7 @@ int settings_reread(const char *fname)
|
|||
}
|
||||
|
||||
if (config_last_error(tempconfig) != NULL) {
|
||||
str = g_strdup_printf(_("Errors in configuration file:\n%s"),
|
||||
str = g_strdup_printf("Errors in configuration file:\n%s",
|
||||
config_last_error(tempconfig));
|
||||
signal_emit("gui dialog", 2, "error", str);
|
||||
g_free(str);
|
||||
|
|
@ -606,8 +605,7 @@ int settings_save(const char *fname)
|
|||
irssi_config_save_state(fname);
|
||||
config_last_modifycounter = mainconfig->modifycounter;
|
||||
if (error) {
|
||||
str = g_strdup_printf(_("Couldn't save "
|
||||
"configuration file: %s"),
|
||||
str = g_strdup_printf("Couldn't save configuration file: %s",
|
||||
config_last_error(mainconfig));
|
||||
signal_emit("gui dialog", 2, "error", str);
|
||||
g_free(str);
|
||||
|
|
@ -627,12 +625,11 @@ static void sig_autosave(void)
|
|||
settings_save(NULL);
|
||||
else {
|
||||
fname = g_strconcat(mainconfig->fname, ".autosave", NULL);
|
||||
str = g_strdup_printf(_("Configuration file was modified "
|
||||
"while irssi was running. Saving "
|
||||
"configuration to file '%s' instead. "
|
||||
"Use /SAVE or /RELOAD to get rid of "
|
||||
"this message."),
|
||||
fname);
|
||||
str = g_strdup_printf("Configuration file was modified "
|
||||
"while irssi was running. Saving "
|
||||
"configuration to file '%s' instead. "
|
||||
"Use /SAVE or /RELOAD to get rid of "
|
||||
"this message.", fname);
|
||||
signal_emit("gui dialog", 2, "warning", str);
|
||||
g_free(str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue