title: Delphi: How to localize description for a menu shortcut?
body: <p>Is there a way to get a localized description of a shortcut like <kbd>Ctrl</kbd>+<kbd>Z</kbd> so that I get "<kbd>Ctrl</kbd>+<kbd>Z</kbd>" if the app runs on an English system and "<kbd>Strg</kbd>+<kbd>Z</kbd>" on a German system?</p>
  
  <p>The VCL function ShortCutToText isn't internationalized. The API function GetKeyNameText is a bit better but still not perfect: If one switches the regional settings of a German XP to English (US), it still produces German texts. Besides the results are in CAPITALS which is ugly.</p>
  
  <p><strong>Clarification:</strong> I know how I can replace ShortCutToText or the Smkc* resource strings with customized versions. But to use that I need the translated strings. And I would like to get these from the OS (or similar).</p>
  
  <p><strong>Update:</strong> It looks like Microsoft expects developers to do the translation on their own - see 2. in <a href="http://msdn.microsoft.com/en-us/library/aa278904%28VS.60%29.aspx" rel="nofollow">Associating a Menu Item with an Accelerator Key</a>. Quote:</p>
  
  <blockquote>
    <p>For example, to assign CTRL+O to the Open command on the File menu,
    you modify the menu item’s caption so that it looks like this:</p>
    
    <p>Open\tCtrl+O</p>
    
    <p>The menu item in the Menu editor is updated to reflect the new caption
    as you type it.</p>
  </blockquote>
  
  <p>Note that the shortcut is manually appended to the caption.</p>