Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
3720eaf0
Commit
3720eaf0
authored
Feb 11, 2000
by
Sven Neumann
Browse files
spit out warnings when hitting a bad translation
--Sven
parent
642c927b
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
3720eaf0
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
...
...
app/gui/menus.c
View file @
3720eaf0
...
...
@@ -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
;
...
...
app/menus.c
View file @
3720eaf0
...
...
@@ -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
;
...
...
app/menus/menus.c
View file @
3720eaf0
...
...
@@ -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
;
...
...
app/widgets/gimpitemfactory.c
View file @
3720eaf0
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment