Bug 1510411
Summary: | Mark "PrintScreen" translatable as "Ctrl+Alt+Fx" keys | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xiaodai Wang <xiaodwan> |
Component: | virt-viewer | Assignee: | Virt Viewer Maint <virt-viewer-maint> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.5 | CC: | cfergeau, dblechte, elima, juzhou, mxie, mzhan, tzheng, victortoso |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virt-viewer-5.0-12.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 13:07:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Xiaodai Wang
2017-11-07 10:54:17 UTC
Is this bug about marking the "PrintScreen" string as translatable in virt-viewer? (currently it cannot be translated, contrary to "Ctrl+Alt+f10") Or is this about removing the translatable marker from "Ctrl+Alt+fxx"? Imo we should go for the former: diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index af3441f..6f07091 100644 --- a/src/virt-viewer-window.c +++ b/src/virt-viewer-window.c @@ -557,7 +557,7 @@ static const struct keyComboDef keyCombos[] = { { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F11, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F11"), NULL}, { { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_F12, GDK_KEY_VoidSymbol }, N_("Ctrl+Alt+F12"), NULL}, { { GDK_KEY_VoidSymbol }, "" , NULL}, - { { GDK_KEY_Print, GDK_KEY_VoidSymbol }, "_PrintScreen", NULL}, + { { GDK_KEY_Print, GDK_KEY_VoidSymbol }, N_("_PrintScreen"), NULL}, }; static guint
> - { { GDK_KEY_Print, GDK_KEY_VoidSymbol }, "_PrintScreen", NULL},
> + { { GDK_KEY_Print, GDK_KEY_VoidSymbol }, N_("_PrintScreen"), NULL},
> };
>
> static guint
Yes, i want to mark as above. I used to misunderstand the meaning of N_().
Patch sent upstream https://www.redhat.com/archives/virt-tools-list/2018-January/msg00008.html Since code change is included in latest version virt-viewer-5.0-13.el7.x86_64, I move this bug from ON_QA to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:2229 |