#include <OS2.h>
#include "Lange.h"

#define size_of(x) ( sizeof (x) )
#define array_size(x) ( sizeof (x) )
#define array_length(x) ( sizeof (x) / sizeof (x[0]) )

#define const struct /*cs-data-types*/
#define set enum class /*cs-values*/

#define Run int main

namespace APP
{
  const STR
  {
    set NLS
    {
      FILE_NAME = "Strings.nls"
    };

    const USB_DOCK_WINDOW
    {
      set TITLE_BAR
      {
        TEXT = "USB Dock" 
      };

      set MENU_BAR
      {
        // ...
      };
    };
  };
}

Run ()
{
  ...

  LANGE Lange = {0}; LangeLoadLanguage (APP::STR::NLS::FILE_NAME, 0, &Lange);

  ...

  {
    CHAR Title[MAX_TITLE_LENGTH] = ""; LangeGetString (Lange, APP::STR::USB_DOCK_WINDOW::TITLE_BAR::TEXT, Title, array_size (Title));

    WinSetWindowText (Frame_window, Title);
  }

  ...

  return 0;
}