locale structure initialization and context menu creation