{"id":6250,"date":"2020-04-10T15:38:08","date_gmt":"2020-04-10T12:38:08","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6250"},"modified":"2020-04-10T15:38:08","modified_gmt":"2020-04-10T12:38:08","slug":"keyboard-shortcut-restoring-shortcut-cut-short-when-localized-2","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/04\/10\/keyboard-shortcut-restoring-shortcut-cut-short-when-localized-2\/","title":{"rendered":"Keyboard shortcut restoring shortcut cut short when localized"},"content":{"rendered":"<h3 data-sourcepos=\"6:1-6:20\">Affected version<\/h3>\n<p dir=\"auto\" data-sourcepos=\"8:1-8:200\">I&#8217;m using Ubuntu 20.04 and Wayland, with gnome-shell currently at version 3.36.1-4ubuntu1. (<a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/gnome-shell\/+bug\/1871868\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">I originally filed this on Launchpad<\/a>.)<\/p>\n<h3 data-sourcepos=\"10:1-10:15\"><a id=\"user-content-bug-summary\" class=\"anchor\" href=\"#bug-summary\" aria-hidden=\"true\"><\/a>Bug summary<\/h3>\n<p dir=\"auto\" data-sourcepos=\"12:1-12:167\">When trying to start a virtual machine with Gnome Boxes, I get a prompt about keyboard shortcuts. The prompt text is localized, but translated back to English it says:<\/p>\n<pre class=\"code highlight js-syntax-highlight plaintext white\"><code><span id=\"LC1\" class=\"line\" lang=\"plaintext\">Boxes wants to inhibit shortcuts<\/span>\r\n<span id=\"LC2\" class=\"line\" lang=\"plaintext\"><\/span>\r\n<span id=\"LC3\" class=\"line\" lang=\"plaintext\">You can restore shortcuts by pressing Super+Escape.<\/span><\/code><\/pre>\n<p dir=\"auto\" data-sourcepos=\"18:1-18:31\">In my locale (Finnish), it says<\/p>\n<pre class=\"code highlight js-syntax-highlight plaintext white\"><code><span id=\"LC1\" class=\"line\" lang=\"plaintext\">Sovellus Boksit haluaa rajoittaa pikan\u00e4pp\u00e4inten toimintaa.<\/span>\r\n<span id=\"LC2\" class=\"line\" lang=\"plaintext\"><\/span>\r\n<span id=\"LC3\" class=\"line\" lang=\"plaintext\">Voit palauttaa pikan\u00e4pp\u00e4inten toiminnan painamalla Super...<\/span><\/code><\/pre>\n<p dir=\"auto\" data-sourcepos=\"24:1-24:25\">(sic; see attached photo)<\/p>\n<p dir=\"auto\" data-sourcepos=\"26:1-26:89\">So the actual key combination is truncated, defeating the point of that part of the text.<\/p>\n<p dir=\"auto\" data-sourcepos=\"28:1-28:388\">This isn&#8217;t a localization error (AFAICT, based on the <a href=\"https:\/\/translations.launchpad.net\/ubuntu\/focal\/+source\/gnome-shell\/+pots\/gnome-shell\/fi\/+translate?batch=10&amp;show=all&amp;search=pikan%C3%A4pp%C3%A4inten\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">translation source<\/a>). Rather, it&#8217;s caused by the text being forced to fit on a single line of an arbitrarily fixed width, instead of wrapping to span as many lines as needed.<\/p>\n<h3 data-sourcepos=\"30:1-30:14\"><a id=\"user-content-screenshot\" class=\"anchor\" href=\"#screenshot\" aria-hidden=\"true\"><\/a>Screenshot<\/h3>\n<p dir=\"auto\" data-sourcepos=\"32:1-32:81\"><a class=\"no-attachment-icon gfm\" href=\"\/GNOME\/gnome-shell\/uploads\/ee315403765cffb7c13566867985ab0f\/20200409_180221.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"gfm js-lazy-loaded qa-js-lazy-loaded\" src=\"http:\/\/mummila.net\/kommentit\/files\/2020\/04\/20200409_180221-scaled.jpg\" alt=\"20200409_180221\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(I originally filed this on Launchpad.)<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[3406,7983,2679],"class_list":["post-6250","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-gnome","tag-launchpad","tag-ubuntu","sijainti-gnome-gitlab"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6250"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6250\/revisions"}],"predecessor-version":[{"id":6253,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6250\/revisions\/6253"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}