Skip to content

Commit 52eef87

Browse files
committed
makepot: Include Translators comments for JS
1 parent c8b2cef commit 52eef87

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ NMDevice.prototype = {
642642
if (active) {
643643
title = active._name;
644644
} else {
645-
/* TRANSLATORS: this is the indication that a connection for another logged in user is active,
645+
/* Translators: this is the indication that a connection for another logged in user is active,
646646
and we cannot access its settings (including the name) */
647647
title = _("Connected (private)");
648648
}
@@ -1551,7 +1551,7 @@ NMDeviceWireless.prototype = {
15511551
let name;
15521552
let ssid = NM.utils_ssid_to_utf8(apObj.ssid.get_data());
15531553
if (ssid) {
1554-
/* TRANSLATORS: this the automatic wireless connection name (including the network name) */
1554+
/* Translators: this the automatic wireless connection name (including the network name) */
15551555
name = _("Auto %s").format(ssid);
15561556
} else
15571557
name = _("Auto wireless");

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class CinnamonPowerApplet extends Applet.TextIconApplet {
429429
status = ngettext("Charging - %d hour until fully charged", "Charging - %d hours until fully charged", hours).format(hours);
430430
}
431431
else {
432-
/* TRANSLATORS: this is a time string, as in "%d hours %d minutes remaining" */
432+
/* Translators: this is a time string, as in "%d hours %d minutes remaining" */
433433
let template = _("Charging - %d %s %d %s until fully charged");
434434
status = template.format (hours, ngettext("hour", "hours", hours), minutes, ngettext("minute", "minutes", minutes));
435435
}
@@ -450,7 +450,7 @@ class CinnamonPowerApplet extends Applet.TextIconApplet {
450450
status = ngettext("Using battery power - %d hour remaining", "Using battery power - %d hours remaining", hours).format(hours);
451451
}
452452
else {
453-
/* TRANSLATORS: this is a time string, as in "%d hours %d minutes remaining" */
453+
/* Translators: this is a time string, as in "%d hours %d minutes remaining" */
454454
let template = _("Using battery power - %d %s %d %s remaining");
455455
status = template.format (hours, ngettext("hour", "hours", hours), minutes, ngettext("minute", "minutes", minutes));
456456
}

makepot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot src/*.c src
66

77
find files/usr/share/cinnamon -name "*.ui.h" -exec xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing {} \;
88

9-
xgettext --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
9+
xgettext -cTranslators --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
1010
xgettext -c --language=Python --keyword=_ --output=cinnamon.pot --join-existing generate_additional_files.py files/usr/share/cinnamon/*/*.py files/usr/share/cinnamon/*/*/*.py files/usr/bin/*
1111
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/applets/
1212
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/desklets/

0 commit comments

Comments
 (0)