#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 desc struct
#define const enum class

#define Run int main

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

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

      const 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;
}