Skip to content

Commit

Permalink
Use the function ngettext directly
Browse files Browse the repository at this point in the history
With this change the plural strings are generated in the potfile
  • Loading branch information
xalt7x authored and 3v1n0 committed Oct 12, 2023
1 parent 3a76b43 commit d118bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {Extension} from './dependencies/shell/extensions/extension.js';

// Use __ () and N__() for the extension gettext domain, and reuse
// the shell domain with the default _() and N_()
const {gettext: __, ngettext: N__} = Extension;
const {gettext: __, ngettext} = Extension;

const DBusMenu = await DBusMenuUtils.haveDBusMenu();

Expand Down Expand Up @@ -1199,7 +1199,7 @@ const DockAppIconMenu = class DockAppIconMenu extends PopupMenu.PopupMenu {
if (this._source.windowsCount === 1) {
this._quitMenuItem.label.set_text(_('Quit'));
} else {
this._quitMenuItem.label.set_text(N__(
this._quitMenuItem.label.set_text(ngettext(
'Quit %d Window', 'Quit %d Windows', this._source.windowsCount).format(
this._source.windowsCount));
}
Expand Down

0 comments on commit d118bd3

Please sign in to comment.