summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-17 20:13:59 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-17 20:13:59 +0000
commitc2b2d45bd62ce410ba7ca8ac920d340b9ed1a527 (patch)
tree0d8256390680d8b7c34b9e294d9749e69db195c8 /src/core
parentfe5c94b050650c8b8f20278ea413fb1cc8d093dc (diff)
downloadirssi-c2b2d45bd62ce410ba7ca8ac920d340b9ed1a527.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/args.c10
-rw-r--r--src/core/net-disconnect.c4
-rw-r--r--src/core/network.c8
-rw-r--r--src/core/settings.c33
4 files changed, 25 insertions, 30 deletions
diff --git a/src/core/args.c b/src/core/args.c
index 9359b7b5..093a8d56 100644
--- a/src/core/args.c
+++ b/src/core/args.c
@@ -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);
}
diff --git a/src/core/net-disconnect.c b/src/core/net-disconnect.c
index 9f477fb5..b0e9535b 100644
--- a/src/core/net-disconnect.c
+++ b/src/core/net-disconnect.c
@@ -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;
diff --git a/src/core/network.c b/src/core/network.c
index 5315d063..4fc06c05 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -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 */
diff --git a/src/core/settings.c b/src/core/settings.c
index 5c8d17d2..0169b268 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -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);