summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/extension.cpp')
-rw-r--r--src/extension/extension.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index 9089dc950..96652c272 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -540,6 +540,11 @@ const char *Extension::get_translation(const char *msgid, const char *msgctxt) {
return msgid;
}
+ if (!strcmp(msgid, "")) {
+ g_warning("Attempting to translate an empty string in extension '%s', which is not supported.", _id);
+ return msgid;
+ }
+
if (msgctxt) {
return g_dpgettext2(_translationdomain, msgctxt, msgid);
} else {