mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-02 20:04:15 +01:00
WPrefs: fix list of source files for translation
A few files were missing from the list of sources files to be translated. Took opportunity to make a few strings translatable. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
609b3c29a6
commit
d6abbafeef
@@ -559,10 +559,10 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
|||||||
if (path) {
|
if (path) {
|
||||||
timage = RLoadImage(rc, path, 0);
|
timage = RLoadImage(rc, path, 0);
|
||||||
if (!timage)
|
if (!timage)
|
||||||
wwarning("could not load file '%s': %s", path, RMessageForError(RErrorCode));
|
wwarning(_("could not load file '%s': %s"), path, RMessageForError(RErrorCode));
|
||||||
wfree(path);
|
wfree(path);
|
||||||
} else {
|
} else {
|
||||||
wwarning("could not find file '%s' for %s of texture", str, type);
|
wwarning(_("could not find file '%s' for texture type %s"), str, type);
|
||||||
timage = NULL;
|
timage = NULL;
|
||||||
}
|
}
|
||||||
if (!timage) {
|
if (!timage) {
|
||||||
@@ -610,7 +610,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
|||||||
style = RHorizontalGradient;
|
style = RHorizontalGradient;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wwarning("unknow direction in '%s', falling back to diagonal", type);
|
wwarning(_("unknow direction in '%s', falling back to diagonal"), type);
|
||||||
case 'D':
|
case 'D':
|
||||||
style = RDiagonalGradient;
|
style = RDiagonalGradient;
|
||||||
break;
|
break;
|
||||||
@@ -636,7 +636,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
|||||||
style = RHorizontalGradient;
|
style = RHorizontalGradient;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wwarning("unknow direction in '%s', falling back to diagonal", type);
|
wwarning(_("unknow direction in '%s', falling back to diagonal"), type);
|
||||||
case 'D':
|
case 'D':
|
||||||
style = RDiagonalGradient;
|
style = RDiagonalGradient;
|
||||||
break;
|
break;
|
||||||
@@ -670,7 +670,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
|||||||
style = RHorizontalGradient;
|
style = RHorizontalGradient;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wwarning("unknow direction in '%s', falling back to diagonal", type);
|
wwarning(_("unknow direction in '%s', falling back to diagonal"), type);
|
||||||
case 'D':
|
case 'D':
|
||||||
style = RDiagonalGradient;
|
style = RDiagonalGradient;
|
||||||
break;
|
break;
|
||||||
@@ -717,7 +717,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wwarning("type '%s' in not a supported type for a texture", type);
|
wwarning(_("type '%s' in not a supported type for a texture"), type);
|
||||||
RReleaseImage(timage);
|
RReleaseImage(timage);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
@@ -1085,7 +1085,7 @@ static void deleteTexture(WMWidget * w, void *data)
|
|||||||
WMReleasePropList(titem->prop);
|
WMReleasePropList(titem->prop);
|
||||||
if (titem->path) {
|
if (titem->path) {
|
||||||
if (remove(titem->path) < 0 && errno != ENOENT) {
|
if (remove(titem->path) < 0 && errno != ENOENT) {
|
||||||
werror("could not remove file %s", titem->path);
|
werror(_("could not remove file %s"), titem->path);
|
||||||
}
|
}
|
||||||
wfree(titem->path);
|
wfree(titem->path);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ POTFILES = \
|
|||||||
$(top_srcdir)/WPrefs.app/Focus.c \
|
$(top_srcdir)/WPrefs.app/Focus.c \
|
||||||
$(top_srcdir)/WPrefs.app/FontSimple.c \
|
$(top_srcdir)/WPrefs.app/FontSimple.c \
|
||||||
$(top_srcdir)/WPrefs.app/Icons.c \
|
$(top_srcdir)/WPrefs.app/Icons.c \
|
||||||
$(top_srcdir)/WPrefs.app/KeyboardSettings.c \
|
|
||||||
$(top_srcdir)/WPrefs.app/KeyboardShortcuts.c \
|
$(top_srcdir)/WPrefs.app/KeyboardShortcuts.c \
|
||||||
$(top_srcdir)/WPrefs.app/Menu.c \
|
$(top_srcdir)/WPrefs.app/Menu.c \
|
||||||
$(top_srcdir)/WPrefs.app/MenuPreferences.c \
|
$(top_srcdir)/WPrefs.app/MenuPreferences.c \
|
||||||
@@ -23,11 +22,18 @@ POTFILES = \
|
|||||||
$(top_srcdir)/WPrefs.app/Paths.c \
|
$(top_srcdir)/WPrefs.app/Paths.c \
|
||||||
$(top_srcdir)/WPrefs.app/Preferences.c \
|
$(top_srcdir)/WPrefs.app/Preferences.c \
|
||||||
$(top_srcdir)/WPrefs.app/TexturePanel.c \
|
$(top_srcdir)/WPrefs.app/TexturePanel.c \
|
||||||
$(top_srcdir)/WPrefs.app/Themes.c \
|
|
||||||
$(top_srcdir)/WPrefs.app/WPrefs.c \
|
$(top_srcdir)/WPrefs.app/WPrefs.c \
|
||||||
$(top_srcdir)/WPrefs.app/WindowHandling.c \
|
$(top_srcdir)/WPrefs.app/WindowHandling.c \
|
||||||
$(top_srcdir)/WPrefs.app/Workspace.c \
|
$(top_srcdir)/WPrefs.app/Workspace.c \
|
||||||
$(top_srcdir)/WPrefs.app/main.c
|
$(top_srcdir)/WPrefs.app/double.c \
|
||||||
|
$(top_srcdir)/WPrefs.app/editmenu.c \
|
||||||
|
$(top_srcdir)/WPrefs.app/main.c \
|
||||||
|
$(top_srcdir)/WPrefs.app/xmodifier.c
|
||||||
|
|
||||||
|
# not_yet_fully_implemented
|
||||||
|
# $(top_srcdir)/WPrefs.app/KeyboardSettings.c \
|
||||||
|
# $(top_srcdir)/WPrefs.app/Themes.c \
|
||||||
|
#
|
||||||
|
|
||||||
SUFFIXES = .po .mo
|
SUFFIXES = .po .mo
|
||||||
|
|
||||||
|
|||||||
@@ -122,21 +122,21 @@ static void x_reset_modifier_mapping(Display * display)
|
|||||||
XModifierKeymap *x_modifier_keymap;
|
XModifierKeymap *x_modifier_keymap;
|
||||||
|
|
||||||
#define modwarn(name,old,other) \
|
#define modwarn(name,old,other) \
|
||||||
wwarning ("%s (0x%x) generates %s, which is generated by %s.", \
|
wwarning(_("%s (0x%x) generates %s which is generated by %s"), \
|
||||||
name, code, index_to_name (old), other)
|
name, code, index_to_name (old), other)
|
||||||
|
|
||||||
#define modbarf(name,other) \
|
#define modbarf(name,other) \
|
||||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
wwarning(_("%s (0x%x) generates %s which is nonsensical"), \
|
||||||
name, code, other)
|
name, code, other)
|
||||||
|
|
||||||
#define check_modifier(name,mask) \
|
#define check_modifier(name,mask) \
|
||||||
if ((1<<modifier_index) != mask) \
|
if ((1<<modifier_index) != mask) \
|
||||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
wwarning(_("%s (0x%x) generates %s which is nonsensical"), \
|
||||||
name, code, index_to_name (modifier_index))
|
name, code, index_to_name (modifier_index))
|
||||||
|
|
||||||
#define store_modifier(name,old) \
|
#define store_modifier(name,old) \
|
||||||
if (old && old != modifier_index) \
|
if (old && old != modifier_index) \
|
||||||
wwarning ("%s (0x%x) generates both %s and %s, which is nonsensical.", \
|
wwarning(_("%s (0x%x) generates both %s and %s which is nonsensical"), \
|
||||||
name, code, index_to_name (old), \
|
name, code, index_to_name (old), \
|
||||||
index_to_name (modifier_index)); \
|
index_to_name (modifier_index)); \
|
||||||
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
||||||
@@ -157,7 +157,7 @@ static void x_reset_modifier_mapping(Display * display)
|
|||||||
|
|
||||||
x_modifier_keymap = XGetModifierMapping(display);
|
x_modifier_keymap = XGetModifierMapping(display);
|
||||||
if (x_modifier_keymap == NULL) {
|
if (x_modifier_keymap == NULL) {
|
||||||
wwarning("XGetModifierMapping returned NULL, there is no modifiers or no memory.\n");
|
wwarning(_("XGetModifierMapping returned NULL, there is no modifiers or no memory"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -265,8 +265,8 @@ static void x_reset_modifier_mapping(Display * display)
|
|||||||
else if (mode_bit == alt_bit)
|
else if (mode_bit == alt_bit)
|
||||||
warn = "Alt", alt_bit = 0;
|
warn = "Alt", alt_bit = 0;
|
||||||
if (warn) {
|
if (warn) {
|
||||||
wwarning("%s is being used for both Mode_switch and %s.",
|
wwarning(_("%s is being used for both %s and %s"),
|
||||||
index_to_name(mode_bit), warn);
|
index_to_name(mode_bit), "Mode_switch", warn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user