Commit 3720eaf0 authored by Sven Neumann's avatar Sven Neumann
Browse files

spit out warnings when hitting a bad translation


--Sven
parent 642c927b
Fri Feb 11 12:40:18 CET 2000 Sven Neumann <sven@gimp.org>
* app/menus.c: Spit out warnings instead of silently ignoring
bad translations for menupaths. Should help to correct the
message catalogs.
2000-02-11 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
 
* plug-ins/gap/gap_decode_xanim.c
......
......@@ -1770,6 +1770,8 @@ menu_translate (const gchar *path,
translation = gettext (menupath);
if (*translation == '/')
retval = translation;
else
g_warning ("bad translation for menupath: %s", menupath);
i = 0;
while (i < n_plugin_domains && !strcmp (path, retval) && factory)
......@@ -1788,6 +1790,8 @@ menu_translate (const gchar *path,
if (strncmp (factory, translation, strlen (factory)) == 0)
retval = translation + strlen (factory);
else
g_warning ("bad translation for menupath: %s", menupath);
}
return retval;
......
......@@ -1770,6 +1770,8 @@ menu_translate (const gchar *path,
translation = gettext (menupath);
if (*translation == '/')
retval = translation;
else
g_warning ("bad translation for menupath: %s", menupath);
i = 0;
while (i < n_plugin_domains && !strcmp (path, retval) && factory)
......@@ -1788,6 +1790,8 @@ menu_translate (const gchar *path,
if (strncmp (factory, translation, strlen (factory)) == 0)
retval = translation + strlen (factory);
else
g_warning ("bad translation for menupath: %s", menupath);
}
return retval;
......
......@@ -1770,6 +1770,8 @@ menu_translate (const gchar *path,
translation = gettext (menupath);
if (*translation == '/')
retval = translation;
else
g_warning ("bad translation for menupath: %s", menupath);
i = 0;
while (i < n_plugin_domains && !strcmp (path, retval) && factory)
......@@ -1788,6 +1790,8 @@ menu_translate (const gchar *path,
if (strncmp (factory, translation, strlen (factory)) == 0)
retval = translation + strlen (factory);
else
g_warning ("bad translation for menupath: %s", menupath);
}
return retval;
......
......@@ -1770,6 +1770,8 @@ menu_translate (const gchar *path,
translation = gettext (menupath);
if (*translation == '/')
retval = translation;
else
g_warning ("bad translation for menupath: %s", menupath);
i = 0;
while (i < n_plugin_domains && !strcmp (path, retval) && factory)
......@@ -1788,6 +1790,8 @@ menu_translate (const gchar *path,
if (strncmp (factory, translation, strlen (factory)) == 0)
retval = translation + strlen (factory);
else
g_warning ("bad translation for menupath: %s", menupath);
}
return retval;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment