windowMenu: Add context to screenshot action
The string "Take Screenshot" is used both by the action in the window menu and the screenshot/recording toggle in the UI. However in some languages, it would be best to use different strings for the two use cases. Address this by adding context to the window menu string, so it can be differentiated from the string in the screenshot UI. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7979 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3503>
This commit is contained in:

committed by
Marge Bot

parent
33e1d42820
commit
8694f891ad
@ -25,7 +25,7 @@ export class WindowMenu extends PopupMenu.PopupMenu {
|
||||
let item;
|
||||
|
||||
// Translators: entry in the window right click menu.
|
||||
item = this.addAction(_('Take Screenshot'), async () => {
|
||||
item = this.addAction(C_('window-menu', 'Take Screenshot'), async () => {
|
||||
try {
|
||||
const actor = window.get_compositor_private();
|
||||
const content = actor.paint_to_content(null);
|
||||
|
Reference in New Issue
Block a user