1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

wmaker: add missing source files for translation

As pointed by the new script, a number of source file were not included in
the list of files to check for translations.

Took opportunity to make translatable a few of the messages.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-01-20 22:03:51 +01:00
committed by Carlos R. Mafra
parent 6000af3828
commit 609b3c29a6
4 changed files with 56 additions and 18 deletions

View File

@@ -131,13 +131,13 @@ static void x_reset_modifier_mapping(Display * display)
inline void modwarn(const char *key_name, int old_mod, const char *other_key)
{
wwarning("key %s (0x%x) generates %s, which is generated by %s",
wwarning(_("key %s (0x%x) generates %s, which is generated by %s"),
key_name, code, index_to_name(old_mod), other_key);
}
inline void modbarf(const char *key_name, const char *other_mod)
{
wwarning("key %s (0x%x) generates %s, which is nonsensical",
wwarning(_("key %s (0x%x) generates %s, which is nonsensical"),
key_name, code, other_mod);
}
@@ -150,7 +150,7 @@ static void x_reset_modifier_mapping(Display * display)
inline void store_modifier(const char *key_name, int *old_mod)
{
if (*old_mod && *old_mod != modifier_index)
wwarning("key %s (0x%x) generates both %s and %s, which is nonsensical",
wwarning(_("key %s (0x%x) generates both %s and %s, which is nonsensical"),
key_name, code, index_to_name(*old_mod), index_to_name(modifier_index));
if (modifier_index == ShiftMapIndex) {
modbarf(key_name, "ModShift");
@@ -298,7 +298,7 @@ const char *wXModifierToShortcutLabel(int mask)
if (mask == MetaMask)
return "M+";
wwarning("Can't convert keymask %d to shortcut label", mask);
wwarning(_("Can't convert keymask 0x%04X to a shortcut label"), mask);
return NULL;
}