Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FormDialogSelectCustomContent"/> class.
        /// </summary>
        public FormDialogSelectCustomContent()
        {
            InitializeComponent();

            DBLangEngine.DBName = "lang.sqlite";                // Do the VPKSoft.LangLib == translation

            DBLangEngine.AddNameSpace("VPKSoft.ImageButton");   // no localization from a foreign name space..
            DBLangEngine.AddNameSpace("VPKSoft.VisualListBox"); // no localization from a foreign name space..

            if (VPKSoft.LangLib.Utils.ShouldLocalize() != null)
            {
                DBLangEngine.InitalizeLanguage("vamp.Messages", VPKSoft.LangLib.Utils.ShouldLocalize(), false);
                return; // After localization don't do anything more.
            }

            UtilsMisc.ScaleToFitScreen(this);

            // this dialog doesn't require much localization..
            btOK.Text     = DBLangEngine.GetMessage("msgOK", "OK|As in an OK button");
            btCancel.Text = DBLangEngine.GetMessage("msgCancel", "Cancel|As in a Cancel button");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The constructor of the SelectSubtitleForm class.
        /// </summary>
        public FormSelectSubtitle()
        {
            InitializeComponent();
            Controls.Add(tlpMain);


            DBLangEngine.DBName = "lang.sqlite";                    // Do the VPKSoft.LangLib == translation

            DBLangEngine.AddNameSpace("VPKSoft.VisualFileBrowser"); // no localization from a foreign name space..

            if (VPKSoft.LangLib.Utils.ShouldLocalize() != null)
            {
                DBLangEngine.InitalizeLanguage("vamp.Messages", VPKSoft.LangLib.Utils.ShouldLocalize(), false);
                return; // After localization don't do anything more.
            }

            UtilsMisc.ScaleToFitScreen(this);

            DBLangEngine.InitalizeLanguage("vamp.Messages");

            btOK.Text     = DBLangEngine.GetMessage("msgOK", "OK|As in an OK button");
            btCancel.Text = DBLangEngine.GetMessage("msgCancel", "Cancel|As in a Cancel button");
        }