[gnome-maps] Fix translator comments
- From: Piotr DrÄ…g <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Fix translator comments
- Date: Sun, 19 Feb 2017 22:51:59 +0000 (UTC)
commit e9ac199a263097c68f5442ecfee93ed134790452
Author: Piotr DrÄ…g <piotrdrag gmail com>
Date: Sun Feb 19 23:51:30 2017 +0100
Fix translator comments
They need to be exactly one line above a string to show up in .po files.
src/transitLegRow.js | 6 +++---
src/transitOptionsPanel.js | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/transitLegRow.js b/src/transitLegRow.js
index 29fff78..b69129b 100644
--- a/src/transitLegRow.js
+++ b/src/transitLegRow.js
@@ -127,10 +127,10 @@ const TransitLegRow = new Lang.Class({
headsignLabel.label =
'<span size="small">%s</span>'.format(this._leg.headsign);
} else if (!this._leg.transit) {
- /* Translators: this is a format string indicating walking a certain
- * distance, with the distance expression being the %s placeholder
- */
let label =
+ /* Translators: this is a format string indicating walking a certain
+ * distance, with the distance expression being the %s placeholder
+ */
_("Walk %s").format(Utils.prettyDistance(this._leg.distance));
headsignLabel.label =
'<span size="small">%s</span>'.format(label);
diff --git a/src/transitOptionsPanel.js b/src/transitOptionsPanel.js
index ac5e95b..44a0d53 100644
--- a/src/transitOptionsPanel.js
+++ b/src/transitOptionsPanel.js
@@ -133,11 +133,11 @@ const TransitOptionsPanel = new Lang.Class({
},
_updateTransitDateButton: function(date) {
- /*
- * Translators: this is a format string giving the equivalent to
- * "may 29" according to the current locale's convensions.
- */
this._transitDateButton.label =
+ /*
+ * Translators: this is a format string giving the equivalent to
+ * "may 29" according to the current locale's convensions.
+ */
date.format(C_("month-day-date", "%b %e"));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]