From f0ef2198c5ab37ef58b5eb4991b59273c00a9a3d Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 11 Oct 2016 10:55:37 +0200 Subject: [PATCH] wizard: make page 065 translatable we should use here the translation for plural or singular, everything else makes it hard to translate This commit also adds the file to POTFILES so it gets recognized by the pot file --- po/POTFILES.in | 1 + src/modules/wizard/page_065.c | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 890250eb3..d21ce424b 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -283,6 +283,7 @@ src/modules/wizard/page_030.c src/modules/wizard/page_040.c src/modules/wizard/page_050.c src/modules/wizard/page_060.c +src/modules/wizard/page_065.c src/modules/wizard/page_070.c src/modules/wizard/page_080.c src/modules/wizard/page_090.c diff --git a/src/modules/wizard/page_065.c b/src/modules/wizard/page_065.c index c279a3c81..f6dc475c5 100644 --- a/src/modules/wizard/page_065.c +++ b/src/modules/wizard/page_065.c @@ -107,14 +107,23 @@ wizard_page_show(E_Wizard_Page *pg EINA_UNUSED) ob = elm_label_add(o); elm_object_style_set(ob, "default/left"); - snprintf(buf, sizeof(buf), _("Enlightenment sets default mouse bindings for objects.
" - "These bindings provide three operations on click:
" - "* Move (left button)
" - "* Resize (middle/wheel button)
" - "* Open Menu (right button)
" - "The default key%s which must be held to activate these bindings
" - "is '%s'. Configure the modifiers for this binding below."), - num > 1 ? "s" : "", eina_strbuf_string_get(sbuf)); + snprintf(buf, sizeof(buf), P_("Enlightenment sets default mouse bindings for objects.
" + "These bindings provide three operations on click:
" + "* Move (left button)
" + "* Resize (middle/wheel button)
" + "* Open Menu (right button)
" + "The default key which must be held to activate these bindings
" + "is '%s'. Configure the modifiers for this binding below.", + + "Enlightenment sets default mouse bindings for objects.
" + "These bindings provide three operations on click:
" + "* Move (left button)
" + "* Resize (middle/wheel button)
" + "* Open Menu (right button)
" + "The default keys which must be held to activate these bindings
" + "is '%s'. Configure the modifiers for this binding below.", + num) + , eina_strbuf_string_get(sbuf)); elm_object_text_set(ob, buf); evas_object_show(ob); E_ALIGN(ob, 0, 0.5);