Mercurial > geeqie.yaz
comparison src/ui_fileops.c @ 989:50e1f5e54c1a
Fix untranslated messages. French translation and POTFILES.in were updated.
author | zas_ |
---|---|
date | Sun, 24 Aug 2008 13:22:08 +0000 |
parents | 5049449ad841 |
children | 070bfc3591bc |
comparison
equal
deleted
inserted
replaced
988:788eaa70a5c4 | 989:50e1f5e54c1a |
---|---|
89 lc = getenv("LANG"); | 89 lc = getenv("LANG"); |
90 bf = getenv("G_BROKEN_FILENAMES"); | 90 bf = getenv("G_BROKEN_FILENAMES"); |
91 warned_user = TRUE; | 91 warned_user = TRUE; |
92 | 92 |
93 string = g_string_new(""); | 93 string = g_string_new(""); |
94 g_string_append(string, "One or more filenames are not encoded with the preferred locale character set.\n"); | 94 g_string_append(string, _("One or more filenames are not encoded with the preferred locale character set.\n")); |
95 g_string_append_printf(string, "Operations on, and display of these files with %s may not succeed.\n\n", PACKAGE); | 95 g_string_append_printf(string, _("Operations on, and display of these files with %s may not succeed.\n"), PACKAGE); |
96 g_string_append(string, "If your filenames are not encoded in utf-8, try setting\n"); | 96 g_string_append(string, "\n"); |
97 g_string_append(string, "the environment variable G_BROKEN_FILENAMES=1\n"); | 97 g_string_append(string, _("If your filenames are not encoded in utf-8, try setting the environment variable G_BROKEN_FILENAMES=1\n")); |
98 g_string_append_printf(string, "It appears G_BROKEN_FILENAMES is %s%s\n\n", | 98 if (bf) |
99 (bf) ? "set to " : "not set.", (bf) ? bf : ""); | 99 g_string_append_printf(string, _("It appears G_BROKEN_FILENAMES is set to %s\n"), bf); |
100 g_string_append_printf(string, "The locale appears to be set to \"%s\"\n(set by the LANG environment variable)\n", (lc) ? lc : "undefined"); | 100 else |
101 g_string_append(string, _("It appears G_BROKEN_FILENAMES is not set\n")); | |
102 g_string_append(string, "\n"); | |
103 g_string_append_printf(string, _("The locale appears to be set to \"%s\"\n(set by the LANG environment variable)\n"), (lc) ? lc : "undefined"); | |
101 if (lc && (strstr(lc, "UTF-8") || strstr(lc, "utf-8"))) | 104 if (lc && (strstr(lc, "UTF-8") || strstr(lc, "utf-8"))) |
102 { | 105 { |
103 gchar *name; | 106 gchar *name; |
104 name = g_convert(path, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); | 107 name = g_convert(path, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); |
105 string = g_string_append(string, "\nPreferred encoding appears to be UTF-8, however the file:\n"); | 108 string = g_string_append(string, _("\nPreferred encoding appears to be UTF-8, however the file:\n")); |
106 g_string_append_printf(string, "\"%s\"\n%s encoded in valid UTF-8.\n", | 109 g_string_append_printf(string, "\"%s\"\n", (name) ? name : _("[name not displayable]")); |
107 (name) ? name : "[name not displayable]", | 110 |
108 (g_utf8_validate(path, -1, NULL)) ? "is": "is NOT"); | 111 if (g_utf8_validate(path, -1, NULL)) |
112 g_string_append_printf(string, _("\"%s\" is encoded in valid UTF-8."), (name) ? name : _("[name not displayable]")); | |
113 else | |
114 g_string_append_printf(string, _("\"%s\" is not encoded in valid UTF-8."), (name) ? name : _("[name not displayable]")); | |
115 g_string_append(string, "\n"); | |
109 g_free(name); | 116 g_free(name); |
110 } | 117 } |
111 | 118 |
112 gd = generic_dialog_new("Filename encoding locale mismatch", | 119 gd = generic_dialog_new(_("Filename encoding locale mismatch"), |
113 GQ_WMCLASS, "locale warning", NULL, TRUE, NULL, NULL); | 120 GQ_WMCLASS, "locale warning", NULL, TRUE, NULL, NULL); |
114 generic_dialog_add_button(gd, GTK_STOCK_CLOSE, NULL, NULL, TRUE); | 121 generic_dialog_add_button(gd, GTK_STOCK_CLOSE, NULL, NULL, TRUE); |
115 | 122 |
116 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_WARNING, | 123 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_WARNING, |
117 "Filename encoding locale mismatch", string->str); | 124 _("Filename encoding locale mismatch"), string->str); |
118 | 125 |
119 gtk_widget_show(gd->dialog); | 126 gtk_widget_show(gd->dialog); |
120 | 127 |
121 g_string_free(string, TRUE); | 128 g_string_free(string, TRUE); |
122 } | 129 } |