Skip to content

Commit

Permalink
makepot: Include Translators comments for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Jan 11, 2023
1 parent c8b2cef commit 52eef87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions files/usr/share/cinnamon/applets/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ NMDevice.prototype = {
if (active) {
title = active._name;
} else {
/* TRANSLATORS: this is the indication that a connection for another logged in user is active,
/* Translators: this is the indication that a connection for another logged in user is active,
and we cannot access its settings (including the name) */
title = _("Connected (private)");
}
Expand Down Expand Up @@ -1551,7 +1551,7 @@ NMDeviceWireless.prototype = {
let name;
let ssid = NM.utils_ssid_to_utf8(apObj.ssid.get_data());
if (ssid) {
/* TRANSLATORS: this the automatic wireless connection name (including the network name) */
/* Translators: this the automatic wireless connection name (including the network name) */
name = _("Auto %s").format(ssid);
} else
name = _("Auto wireless");
Expand Down
4 changes: 2 additions & 2 deletions files/usr/share/cinnamon/applets/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class CinnamonPowerApplet extends Applet.TextIconApplet {
status = ngettext("Charging - %d hour until fully charged", "Charging - %d hours until fully charged", hours).format(hours);
}
else {
/* TRANSLATORS: this is a time string, as in "%d hours %d minutes remaining" */
/* Translators: this is a time string, as in "%d hours %d minutes remaining" */
let template = _("Charging - %d %s %d %s until fully charged");
status = template.format (hours, ngettext("hour", "hours", hours), minutes, ngettext("minute", "minutes", minutes));
}
Expand All @@ -450,7 +450,7 @@ class CinnamonPowerApplet extends Applet.TextIconApplet {
status = ngettext("Using battery power - %d hour remaining", "Using battery power - %d hours remaining", hours).format(hours);
}
else {
/* TRANSLATORS: this is a time string, as in "%d hours %d minutes remaining" */
/* Translators: this is a time string, as in "%d hours %d minutes remaining" */
let template = _("Using battery power - %d %s %d %s remaining");
status = template.format (hours, ngettext("hour", "hours", hours), minutes, ngettext("minute", "minutes", minutes));
}
Expand Down
2 changes: 1 addition & 1 deletion makepot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot src/*.c src

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

xgettext --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
xgettext -cTranslators --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
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/*
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/applets/
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/desklets/
Expand Down

0 comments on commit 52eef87

Please sign in to comment.