diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-09-22 12:19:52 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-09-22 13:14:11 +0200 |
commit | f05f355ba5390f4d686aa3028a292daca7ad0352 (patch) | |
tree | 93c3c9116a6152be849cb5fabf90742c58ad1b64 /vncviewer | |
parent | dc96cb4d17d04ac5444a9eb8926b6bc9f24b41fc (diff) | |
download | tigervnc-f05f355ba5390f4d686aa3028a292daca7ad0352.tar.gz tigervnc-f05f355ba5390f4d686aa3028a292daca7ad0352.zip |
Make some log messages more sane for translators
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/Viewport.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 32ed543c..887195dd 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -684,8 +684,10 @@ int Viewport::handleSystemEvent(void *event, void *data) if (keyCode == 0x00) { keyCode = MapVirtualKey(vKey, MAPVK_VK_TO_VSC); if (keyCode == 0x00) { - vlog.error(_("No scan code for %svirtual key 0x%02x"), - isExtended?"extended ":"", (int)vKey); + if (isExtended) + vlog.error(_("No scan code for extended virtual key 0x%02x"), (int)vKey); + else + vlog.error(_("No scan code for virtual key 0x%02x"), (int)vKey); return 1; } } @@ -695,8 +697,10 @@ int Viewport::handleSystemEvent(void *event, void *data) keySym = win32_vkey_to_keysym(vKey, isExtended); if (keySym == NoSymbol) { - vlog.error(_("No symbol for %svirtual key 0x%02x"), - isExtended?"extended ":"", (int)vKey); + if (isExtended) + vlog.error(_("No symbol for extended virtual key 0x%02x"), (int)vKey); + else + vlog.error(_("No symbol for virtual key 0x%02x"), (int)vKey); return 1; } |