From 35fe34ac854237c5616fd39c799eead282658667 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Wed, 31 Dec 2014 01:08:56 +0100 Subject: [PATCH] =?utf8?q?Renamed=20"Aper=C3=A7u"=20into=20"Mini-Preview"?= =?utf8?q?=20in=20visible=20places?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Having an thing whose name requires special UTF-8 character to be properly displayed is a source of portability problem (including xgettext issue reported by Alwin); Considering also that this french word is only understood (sparesely) in Great Britain, but not by international english speaking community; This patch then replace it by the "Mini-Preview" suggested by Yuri Tarasievich, which is more likely to be understood. Signed-off-by: Christophe CURIS --- WPrefs.app/Icons.c | 10 +++++----- src/WindowMaker.h | 2 +- src/actions.c | 2 +- src/balloon.c | 2 +- src/icon.h | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/WPrefs.app/Icons.c b/WPrefs.app/Icons.c index 5c33f5d4..76ed866a 100644 --- a/WPrefs.app/Icons.c +++ b/WPrefs.app/Icons.c @@ -93,7 +93,7 @@ typedef struct _Panel { } _Panel; /* - * Minimum size for an Apercu: + * Minimum size for a Mini-Preview: * This value is actually twice the size of the minimum icon size choosable. * We set the slider min to taht number minus one, because when set to this * value WPrefs will consider that the user wants the feature turned off. @@ -197,7 +197,7 @@ static void showData(_Panel * panel) i = 9; WMSetPopUpButtonSelectedItem(panel->sizeP, i); - /* Apercu */ + /* Mini-Previews for Icons */ b = GetBoolForKey("MiniwindowApercuBalloons"); if (b) { i = GetIntegerForKey("ApercuSize"); @@ -339,13 +339,13 @@ static void createPanel(Panel * p) WMMapSubwidgets(panel->sizeF); - /***************** Apercu ****************/ + /***************** Mini-Previews ****************/ panel->apercu.frame = WMCreateFrame(panel->box); WMResizeWidget(panel->apercu.frame, 156, 52); WMMoveWidget(panel->apercu.frame, 124, 168); - WMSetFrameTitle(panel->apercu.frame, _("Miniwindow aperçus")); + WMSetFrameTitle(panel->apercu.frame, _("Mini-Previews for Icons")); - WMSetBalloonTextForView(_("The Aperçu provides a small view of the content of the\n" + WMSetBalloonTextForView(_("The Mini-Preview provides a small view of the content of the\n" "window when the mouse is placed over the icon."), WMWidgetView(panel->apercu.frame)); diff --git a/src/WindowMaker.h b/src/WindowMaker.h index e954ee83..ec95075c 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -446,7 +446,7 @@ extern struct WPreferences { char cycle_ignore_minimized; /* Ignore minimized windows when cycling */ char strict_windoze_cycle; /* don't close switch panel when shift is released */ char panel_only_open; /* Only open the switch panel; don't switch */ - int apercu_size; /* Size of apercu preview in pixels */ + int apercu_size; /* Size of Mini-Previews in pixels */ /* All delays here are in ms. 0 means instant auto-action. */ int clip_auto_raise_delay; /* Delay after which the clip will be raised when entered */ diff --git a/src/actions.c b/src/actions.c index 03807fc7..c4656460 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1151,7 +1151,7 @@ void wIconifyWindow(WWindow *wwin) set_icon_apercu(wwin->icon, apercu); RReleaseImage(apercu); } else { - wwarning("window apercu creation failed"); + wwarning(_("window mini-preview creation failed")); } } } diff --git a/src/balloon.c b/src/balloon.c index 25998e1f..8d883d93 100644 --- a/src/balloon.c +++ b/src/balloon.c @@ -458,7 +458,7 @@ static void showBalloon(WScreen *scr) } if (wPreferences.miniwin_apercu_balloon && scr->balloon->apercu != None) - /* used to display either the apercu alone or the apercu and the title */ + /* used to display either the mini-preview alone or the mini-preview with the title */ showApercu(scr, x, y, scr->balloon->text, scr->balloon->apercu); else showText(scr, x, y, scr->balloon->h, w, scr->balloon->text); diff --git a/src/icon.h b/src/icon.h index 80e9acf9..14db37e1 100644 --- a/src/icon.h +++ b/src/icon.h @@ -29,7 +29,7 @@ #define TILE_CLIP 1 #define TILE_DRAWER 2 -/* This is the border, in pixel, drawn around an Aperçu */ +/* This is the border, in pixel, drawn around a Mini-Preview */ #define APERCU_BORDER 1 typedef struct WIcon { -- 2.11.4.GIT