dash: Use pin instead of favorites
Use the term 'pin' for adding new items to the dash Note that this is only a string change. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4976 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2136>
This commit is contained in:
parent
f094b6ddd6
commit
a67877f520
@ -161,7 +161,7 @@ class AppFavorites {
|
|||||||
|
|
||||||
let app = Shell.AppSystem.get_default().lookup_app(appId);
|
let app = Shell.AppSystem.get_default().lookup_app(appId);
|
||||||
|
|
||||||
let msg = _("%s has been added to your favorites.").format(app.get_name());
|
let msg = _('%s has been pinned to the dash.').format(app.get_name());
|
||||||
Main.overview.setMessage(msg, {
|
Main.overview.setMessage(msg, {
|
||||||
forFeedback: true,
|
forFeedback: true,
|
||||||
undoCallback: () => this._removeFavorite(appId),
|
undoCallback: () => this._removeFavorite(appId),
|
||||||
@ -194,7 +194,7 @@ class AppFavorites {
|
|||||||
if (!this._removeFavorite(appId))
|
if (!this._removeFavorite(appId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let msg = _("%s has been removed from your favorites.").format(app.get_name());
|
let msg = _('%s has been unpinned from the dash.').format(app.get_name());
|
||||||
Main.overview.setMessage(msg, {
|
Main.overview.setMessage(msg, {
|
||||||
forFeedback: true,
|
forFeedback: true,
|
||||||
undoCallback: () => this._addFavorite(appId, pos),
|
undoCallback: () => this._addFavorite(appId, pos),
|
||||||
|
@ -160,8 +160,8 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
const { id } = this._app;
|
const { id } = this._app;
|
||||||
this._toggleFavoriteItem.label.text = this._appFavorites.isFavorite(id)
|
this._toggleFavoriteItem.label.text = this._appFavorites.isFavorite(id)
|
||||||
? _('Remove from Favorites')
|
? _('Unpin')
|
||||||
: _('Add to Favorites');
|
: _('Pin to Dash');
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateGpuItem() {
|
_updateGpuItem() {
|
||||||
|
@ -242,7 +242,7 @@ class ShowAppsIcon extends DashItemContainer {
|
|||||||
this._iconActor.set_hover(canRemove);
|
this._iconActor.set_hover(canRemove);
|
||||||
|
|
||||||
if (canRemove)
|
if (canRemove)
|
||||||
this.setLabelText(_("Remove from Favorites"));
|
this.setLabelText(_('Unpin'));
|
||||||
else
|
else
|
||||||
this.setLabelText(_("Show Applications"));
|
this.setLabelText(_("Show Applications"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user