From 31e540e128572fb9f6a9643bbe0e568a6b317a61 Mon Sep 17 00:00:00 2001 From: abakkk Date: Mon, 1 Apr 2019 21:05:18 +0200 Subject: [PATCH] i18n --- locale/draw-on-your-screen.pot | 8 +++++--- prefs.js | 16 ++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/locale/draw-on-your-screen.pot b/locale/draw-on-your-screen.pot index 3743240..7082c32 100644 --- a/locale/draw-on-your-screen.pot +++ b/locale/draw-on-your-screen.pot @@ -296,7 +296,9 @@ msgstr "" msgid "Smooth stroke during the drawing process" msgstr "" -msgid "You can also smooth the stroke afterward\nSee" +msgid "" +"You can also smooth the stroke afterward\n" +"See “%s”" msgstr "" msgid "Change the style" @@ -306,9 +308,9 @@ msgid "See stylesheet.css" msgstr "" msgid "" -"Note: When you save elements made with eraser in a SVG file,\n" +"Note: When you save elements made with eraser in a SVG file,\n" "they are colored with background color, transparent if it is disabled.\n" -"(See \"Add a drawing background\" or edit the SVG file afterwards)" +"(See “%s” or edit the SVG file afterwards)" msgstr "" diff --git a/prefs.js b/prefs.js index 0ec0c3f..3520eea 100644 --- a/prefs.js +++ b/prefs.js @@ -152,19 +152,19 @@ var AboutPage = new GObject.Class({ let rightBox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL }); let leftLabel = new Gtk.Label({ wrap: true, valign: 1, halign: 2, justify: 1, use_markup: true, label: "" + _GTK("Created by") + "" }); let rightLabel = new Gtk.Label({ wrap: true, valign: 1, halign: 1, justify: 0, use_markup: true, label: "Abakkk" }); - leftBox.pack_start(leftLabel, true, true, 0); - rightBox.pack_start(rightLabel, true, true, 0); + leftBox.pack_start(leftLabel, false, false, 0); + rightBox.pack_start(rightLabel, false, false, 0); creditBox.pack_start(leftBox, true, true, 5); creditBox.pack_start(rightBox, true, true, 5); vbox.add(creditBox); if (_("Translators") != "Translators") { - leftBox.pack_start(new Gtk.Label(), true, true, 0); - rightBox.pack_start(new Gtk.Label(), true, true, 0); + leftBox.pack_start(new Gtk.Label(), false, false, 0); + rightBox.pack_start(new Gtk.Label(), false, false, 0); leftLabel = new Gtk.Label({ wrap: true, valign: 1, halign: 2, justify: 1, use_markup: true, label: "" + _GTK("Translated by") + "" }); rightLabel = new Gtk.Label({ wrap: true, valign: 1, halign: 1, justify: 0, use_markup: true, label: "" + _("Translators") + "" }); - leftBox.pack_start(leftLabel, true, true, 0); - rightBox.pack_start(rightLabel, true, true, 0); + leftBox.pack_start(leftLabel, false, false, 0); + rightBox.pack_start(rightLabel, false, false, 0); } } @@ -287,7 +287,7 @@ var PrefsPage = new GObject.Class({ let smoothBox = new Gtk.Box({ margin: MARGIN }); let smoothLabelBox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL }); let smoothLabel1 = new Gtk.Label({label: _("Smooth stroke during the drawing process")}); - let smoothLabel2 = new Gtk.Label({ use_markup: true, halign: 1, label: "" + _("You can also smooth the stroke afterward\nSee") + " \"" + _("Smooth last brushstroke") + "\"" }); + let smoothLabel2 = new Gtk.Label({ use_markup: true, halign: 1, label: "" + _("You can also smooth the stroke afterward\nSee “%s”").format(_("Smooth last brushstroke")) + "" }); smoothLabel1.set_halign(1); smoothLabel2.get_style_context().add_class("dim-label"); smoothLabelBox.pack_start(smoothLabel1, true, true, 0); @@ -313,7 +313,7 @@ var PrefsPage = new GObject.Class({ let noteBox = new Gtk.Box({ margin_top: MARGIN, margin_left: MARGIN, margin_right: MARGIN, margin_bottom:MARGIN }); let noteLabel = new Gtk.Label({ use_markup: true, - label: _("Note: When you save elements made with eraser in a SVG file,\nthey are colored with background color, transparent if it is disabled.\n(See \"Add a drawing background\" or edit the SVG file afterwards)") + label: _("Note: When you save elements made with eraser in a SVG file,\nthey are colored with background color, transparent if it is disabled.\n(See “%s” or edit the SVG file afterwards)").format(_("Add a drawing background")) }); noteLabel.set_halign(1); noteLabel.get_style_context().add_class("dim-label");