summaryrefslogtreecommitdiff
path: root/tumbler
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2021-12-18 10:51:51 +0100
committerGaël Bonithon <gael@xfce.org>2021-12-18 16:55:43 +0100
commita7b8e250400d556156c6211e7939adb19aec280b (patch)
tree9c08f84087cb3d4800ce26ae6fae2c4d5fa49525 /tumbler
parent3a04fa615cd7d9fce538304da24484ef2819a0e8 (diff)
downloadtumbler-a7b8e250400d556156c6211e7939adb19aec280b.tar.gz
Do not translate warning messages
Completes d6aeb7d65acf6e41738c78b9d137fab3502d1c58.
Diffstat (limited to 'tumbler')
-rw-r--r--tumbler/tumbler-cache-plugin.c6
-rw-r--r--tumbler/tumbler-error.h7
-rw-r--r--tumbler/tumbler-provider-plugin.c6
3 files changed, 13 insertions, 6 deletions
diff --git a/tumbler/tumbler-cache-plugin.c b/tumbler/tumbler-cache-plugin.c
index 6a010e6..76989e9 100644
--- a/tumbler/tumbler-cache-plugin.c
+++ b/tumbler/tumbler-cache-plugin.c
@@ -29,6 +29,7 @@
#include <tumbler/tumbler-cache.h>
#include <tumbler/tumbler-cache-plugin.h>
+#include <tumbler/tumbler-error.h>
@@ -142,7 +143,7 @@ tumbler_cache_plugin_load (GTypeModule *type_module)
}
else
{
- g_warning (_("Cache plugin \"%s\" lacks required symbols"), type_module->name);
+ g_warning (TUMBLER_WARNING_PLUGIN_LACKS_SYMBOLS, type_module->name);
g_module_close (plugin->library);
plugin->library = NULL;
return FALSE;
@@ -150,8 +151,7 @@ tumbler_cache_plugin_load (GTypeModule *type_module)
}
else
{
- g_warning (_("Failed to load the cache plugin \"%s\": %s"), type_module->name,
- g_module_error ());
+ g_warning (TUMBLER_WARNING_LOAD_PLUGIN_FAILED, type_module->name, g_module_error ());
return FALSE;
}
}
diff --git a/tumbler/tumbler-error.h b/tumbler/tumbler-error.h
index d988ad4..036a7b8 100644
--- a/tumbler/tumbler-error.h
+++ b/tumbler/tumbler-error.h
@@ -45,6 +45,13 @@ G_BEGIN_DECLS
#define TUMBLER_ERROR_MESSAGE_NO_THUMB_OF_THUMB _("The file \"%s\" is a thumbnail itself")
#define TUMBLER_ERROR_MESSAGE_NO_THUMBNAILER _("No thumbnailer available for \"%s\"")
#define TUMBLER_ERROR_MESSAGE_SHUT_DOWN _("The thumbnailer service is shutting down")
+#define TUMBLER_ERROR_MESSAGE_UNSUPPORTED_FLAVOR _("Unsupported thumbnail flavor requested")
+
+#define TUMBLER_WARNING_VERSION_MISMATCH "Version mismatch: %s"
+#define TUMBLER_WARNING_MALFORMED_FILE "Malformed file \"%s\": %s"
+#define TUMBLER_WARNING_LOAD_FILE_FAILED "Failed to load the file \"%s\": %s"
+#define TUMBLER_WARNING_LOAD_PLUGIN_FAILED "Failed to load plugin \"%s\": %s"
+#define TUMBLER_WARNING_PLUGIN_LACKS_SYMBOLS "Plugin \"%s\" lacks required symbols"
typedef enum /*< enum >*/
{
diff --git a/tumbler/tumbler-provider-plugin.c b/tumbler/tumbler-provider-plugin.c
index 5decad0..6b2cca2 100644
--- a/tumbler/tumbler-provider-plugin.c
+++ b/tumbler/tumbler-provider-plugin.c
@@ -28,6 +28,7 @@
#include <gmodule.h>
#include "tumbler/tumbler-provider-plugin.h"
+#include <tumbler/tumbler-error.h>
@@ -132,7 +133,7 @@ tumbler_provider_plugin_load (GTypeModule *type_module)
}
else
{
- g_warning (_("Plugin \"%s\" lacks required symbols."), type_module->name);
+ g_warning (TUMBLER_WARNING_PLUGIN_LACKS_SYMBOLS, type_module->name);
g_module_close (plugin->library);
plugin->library = NULL;
return FALSE;
@@ -140,8 +141,7 @@ tumbler_provider_plugin_load (GTypeModule *type_module)
}
else
{
- g_warning (_("Failed to load plugin \"%s\": %s"), type_module->name,
- g_module_error ());
+ g_warning (TUMBLER_WARNING_LOAD_PLUGIN_FAILED, type_module->name, g_module_error ());
return FALSE;
}
}