general: Rename "application" to "app"

Several places in Shell use the word "application". However,"app"
is a more common term nowadays, so update strings accordingly.

https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6202

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2614>
This commit is contained in:
sunflowerskater 2022-12-16 18:33:10 -03:00 committed by Marge Bot
parent e8c6cc3761
commit 2d00320a4b
14 changed files with 34 additions and 32 deletions

View File

@ -6,39 +6,39 @@
package="gnome-shell"> package="gnome-shell">
<KeyListEntry name="switch-to-application-1" <KeyListEntry name="switch-to-application-1"
description="Activate favorite application 1" description="Activate favorite app 1"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-2" <KeyListEntry name="switch-to-application-2"
description="Activate favorite application 2" description="Activate favorite app 2"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-3" <KeyListEntry name="switch-to-application-3"
description="Activate favorite application 3" description="Activate favorite app 3"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-4" <KeyListEntry name="switch-to-application-4"
description="Activate favorite application 4" description="Activate favorite app 4"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-5" <KeyListEntry name="switch-to-application-5"
description="Activate favorite application 5" description="Activate favorite app 5"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-6" <KeyListEntry name="switch-to-application-6"
description="Activate favorite application 6" description="Activate favorite app 6"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-7" <KeyListEntry name="switch-to-application-7"
description="Activate favorite application 7" description="Activate favorite app 7"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-8" <KeyListEntry name="switch-to-application-8"
description="Activate favorite application 8" description="Activate favorite app 8"
hidden="true"/> hidden="true"/>
<KeyListEntry name="switch-to-application-9" <KeyListEntry name="switch-to-application-9"
description="Activate favorite application 9" description="Activate favorite app 9"
hidden="true"/> hidden="true"/>
</KeyListEntries> </KeyListEntries>

View File

@ -15,10 +15,10 @@
description="Show the overview"/> description="Show the overview"/>
<KeyListEntry name="toggle-application-view" <KeyListEntry name="toggle-application-view"
description="Show all applications"/> description="Show all apps"/>
<KeyListEntry name="open-application-menu" <KeyListEntry name="open-application-menu"
description="Open the application menu"/> description="Open the app menu"/>
</KeyListEntries> </KeyListEntries>

View File

@ -1149,7 +1149,7 @@ var BaseAppView = GObject.registerClass({
if (this._items.has(id)) if (this._items.has(id))
this._items.get(id).navigate_focus(null, St.DirectionType.TAB_FORWARD, false); this._items.get(id).navigate_focus(null, St.DirectionType.TAB_FORWARD, false);
else else
log(`No such application ${id}`); log(`No such app ${id}`);
} }
selectApp(id) { selectApp(id) {

View File

@ -39,7 +39,7 @@ var CloseDialog = GObject.registerClass({
/* Translators: %s is an application name */ /* Translators: %s is an application name */
let title = _("“%s” is not responding.").format(windowApp.get_name()); let title = _("“%s” is not responding.").format(windowApp.get_name());
let description = _('You may choose to wait a short while for it to ' + let description = _('You may choose to wait a short while for it to ' +
'continue or force the application to quit entirely.'); 'continue or force the app to quit entirely.');
return new Dialog.MessageDialogContent({ title, description }); return new Dialog.MessageDialogContent({ title, description });
} }

View File

@ -68,7 +68,7 @@ function startAppForMount(app, mount) {
retval = app.launch(files, retval = app.launch(files,
global.create_app_launch_context(0, -1)); global.create_app_launch_context(0, -1));
} catch (e) { } catch (e) {
log(`Unable to launch the application ${app.get_name()}: ${e}`); log(`Unable to launch the app ${app.get_name()}: ${e}`);
} }
return retval; return retval;

View File

@ -202,7 +202,7 @@ class ShowAppsIcon extends DashItemContainer {
toggle_mode: true, toggle_mode: true,
}); });
this._iconActor = null; this._iconActor = null;
this.icon = new IconGrid.BaseIcon(_('Show Applications'), { this.icon = new IconGrid.BaseIcon(_('Show Apps'), {
setSizeManually: true, setSizeManually: true,
showLabel: false, showLabel: false,
createIcon: this._createIcon.bind(this), createIcon: this._createIcon.bind(this),
@ -248,7 +248,7 @@ class ShowAppsIcon extends DashItemContainer {
if (canRemove) if (canRemove)
this.setLabelText(_('Unpin')); this.setLabelText(_('Unpin'));
else else
this.setLabelText(_("Show Applications")); this.setLabelText(_('Show Apps'));
} }
handleDragOver(source, _actor, _x, _y, _time) { handleDragOver(source, _actor, _x, _y, _time) {

View File

@ -75,8 +75,8 @@ var InhibitShortcutsDialog = GObject.registerClass({
title: _('Allow inhibiting shortcuts'), title: _('Allow inhibiting shortcuts'),
description: name description: name
/* Translators: %s is an application name like "Settings" */ /* Translators: %s is an application name like "Settings" */
? _('The application %s wants to inhibit shortcuts').format(name) ? _('The app %s wants to inhibit shortcuts').format(name)
: _('An application wants to inhibit shortcuts'), : _('An app wants to inhibit shortcuts'),
}); });
let restoreAccel = this._getRestoreAccel(); let restoreAccel = this._getRestoreAccel();

View File

@ -284,7 +284,7 @@ function _initializeUI() {
messageTray.add(source); messageTray.add(source);
const notification = new MessageTray.Notification(source, const notification = new MessageTray.Notification(source,
_('System was put in unsafe mode'), _('System was put in unsafe mode'),
_('Applications now have unrestricted access')); _('Apps now have unrestricted access'));
notification.addAction(_('Undo'), notification.addAction(_('Undo'),
() => (global.context.unsafe_mode = false)); () => (global.context.unsafe_mode = false));
notification.setTransient(true); notification.setTransient(true);

View File

@ -597,7 +597,7 @@ class GtkNotificationDaemonAppSource extends MessageTray.Source {
const params = target ? [target] : []; const params = target ? [target] : [];
app.ActivateActionAsync(actionId, params, getPlatformData()); app.ActivateActionAsync(actionId, params, getPlatformData());
} catch (error) { } catch (error) {
logError(error, 'Failed to activate application proxy'); logError(error, 'Failed to activate app proxy');
} }
Main.overview.hide(); Main.overview.hide();
Main.panel.closeCalendar(); Main.panel.closeCalendar();
@ -608,7 +608,7 @@ class GtkNotificationDaemonAppSource extends MessageTray.Source {
const app = await this._createApp(); const app = await this._createApp();
app.ActivateAsync(getPlatformData()); app.ActivateAsync(getPlatformData());
} catch (error) { } catch (error) {
logError(error, 'Failed to open application proxy'); logError(error, 'Failed to open app proxy');
} }
Main.overview.hide(); Main.overview.hide();
Main.panel.closeCalendar(); Main.panel.closeCalendar();

View File

@ -405,7 +405,7 @@ class ControlsManager extends St.Widget {
Main.ctrlAltTabManager.addGroup( Main.ctrlAltTabManager.addGroup(
this.appDisplay, this.appDisplay,
_('Applications'), _('Apps'),
'view-app-grid-symbolic', { 'view-app-grid-symbolic', {
proxy: this, proxy: this,
focusCallback: () => { focusCallback: () => {

View File

@ -150,10 +150,10 @@ var ActionComboBox = GObject.registerClass({
this._editMenuManager.addMenu(this._editMenu); this._editMenuManager.addMenu(this._editMenu);
this._actionLabels = new Map(); this._actionLabels = new Map();
this._actionLabels.set(GDesktopEnums.PadButtonAction.NONE, _("Application defined")); this._actionLabels.set(GDesktopEnums.PadButtonAction.NONE, _('App defined'));
this._actionLabels.set(GDesktopEnums.PadButtonAction.HELP, _("Show on-screen help")); this._actionLabels.set(GDesktopEnums.PadButtonAction.HELP, _('Show on-screen help'));
this._actionLabels.set(GDesktopEnums.PadButtonAction.SWITCH_MONITOR, _("Switch monitor")); this._actionLabels.set(GDesktopEnums.PadButtonAction.SWITCH_MONITOR, _('Switch monitor'));
this._actionLabels.set(GDesktopEnums.PadButtonAction.KEYBINDING, _("Assign keystroke")); this._actionLabels.set(GDesktopEnums.PadButtonAction.KEYBINDING, _('Assign keystroke'));
this._buttonItems = []; this._buttonItems = [];

View File

@ -268,8 +268,9 @@ var ScreenShield = class extends Signals.EventEmitter {
// //
// XXX: another option is to kick the user into the gdm login // XXX: another option is to kick the user into the gdm login
// screen, where we're not affected by grabs // screen, where we're not affected by grabs
Main.notifyError(_("Unable to lock"), Main.notifyError(
_("Lock was blocked by an application")); _('Unable to lock'),
_('Lock was blocked by an app'));
return; return;
} }
@ -665,8 +666,9 @@ var ScreenShield = class extends Signals.EventEmitter {
// Warn the user if we can't become modal // Warn the user if we can't become modal
if (!this._becomeModal()) { if (!this._becomeModal()) {
Main.notifyError(_("Unable to lock"), Main.notifyError(
_("Lock was blocked by an application")); _('Unable to lock'),
_('Lock was blocked by an app'));
return; return;
} }

View File

@ -160,7 +160,7 @@ var GnomeShell = class {
invocation.return_error_literal( invocation.return_error_literal(
Gio.DBusError, Gio.DBusError,
Gio.DBusError.FILE_NOT_FOUND, Gio.DBusError.FILE_NOT_FOUND,
`No application with ID ${id}`); `No app with ID ${id}`);
return; return;
} }

View File

@ -1,5 +1,5 @@
# ![logo] GNOME Extensions # ![logo] GNOME Extensions
GNOME Extensions is a small application for managing GNOME Shell GNOME Extensions is a small app for managing GNOME Shell
extensions. It is usually built as part of gnome-shell, but can be extensions. It is usually built as part of gnome-shell, but can be
used as a stand-alone project as well. used as a stand-alone project as well.