Exemple #1
0
        private void Conditions_Load(object sender, EventArgs e)
        {
            Environment.SetEnvironmentVariable("lang", "id-ID");
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            LabelInletFlowRate.Text        = obj.resManage.GetString("InletFlowRate", obj.cultureInfo);
            LabelInletPressure.Text        = obj.resManage.GetString("InletPressure", obj.cultureInfo);
            LabelInletTemperature.Text     = obj.resManage.GetString("InletTemperature", obj.cultureInfo);
            LabelInletEnthalpy.Text        = obj.resManage.GetString("InletEnthalpy", obj.cultureInfo);
            LabelInletDensity.Text         = obj.resManage.GetString("InletDensity", obj.cultureInfo);
            LabelPressureDifferential.Text = obj.resManage.GetString("PressureDifferential", obj.cultureInfo);

            LabelInletFlowRateFlow.Text        = obj.resManage.GetString("InletFlowRate", obj.cultureInfo);
            LabelInletPressureFlow.Text        = obj.resManage.GetString("InletPressure", obj.cultureInfo);
            LabelInletTemperatureFlow.Text     = obj.resManage.GetString("InletTemperature", obj.cultureInfo);
            LabelInletEnthalpyFlow.Text        = obj.resManage.GetString("InletEnthalpy", obj.cultureInfo);
            LabelInletDesityFlow.Text          = obj.resManage.GetString("InletDensity", obj.cultureInfo);
            LabelPressureDifferentialFlow.Text = obj.resManage.GetString("PressureDifferential", obj.cultureInfo);

            LabelInletFlowRateBlock.Text        = obj.resManage.GetString("InletFlowRate", obj.cultureInfo);
            LabelInletPressureBlock.Text        = obj.resManage.GetString("InletPressure", obj.cultureInfo);
            LabelInletTemperatureBlock.Text     = obj.resManage.GetString("InletTemperature", obj.cultureInfo);
            LabelInletEnthalpyBlock.Text        = obj.resManage.GetString("InletEnthalpy", obj.cultureInfo);
            LabelInletDensityBlock.Text         = obj.resManage.GetString("InletDensity", obj.cultureInfo);
            LabelPressureDifferentialBlock.Text = obj.resManage.GetString("PressureDifferential", obj.cultureInfo);

            LabelSelectConditions.Text    = obj.resManage.GetString("SelectedConditions", obj.cultureInfo);
            LabelDescription.Text         = obj.resManage.GetString("Descriptions", obj.cultureInfo);
            LabelOperatingConditions.Text = obj.resManage.GetString("OperatingConditions", obj.cultureInfo);
            LabelButton.Text           = obj.resManage.GetString("Button", obj.cultureInfo);
            LabelDesignConditions.Text = obj.resManage.GetString("DesignCondition", obj.cultureInfo);
        }
Exemple #2
0
        private void Maintenance_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            label1.Text = obj.resManage.GetString("Maintenance", obj.cultureInfo);
        }
Exemple #3
0
        private void Fluids_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            labelFluids.Text          = obj.resManage.GetString("Fluids", obj.cultureInfo);
            labelSearch.Text          = obj.resManage.GetString("Search", obj.cultureInfo);
            labelSelectFluidType.Text = obj.resManage.GetString("SelectFluidType", obj.cultureInfo);
        }
Exemple #4
0
        private void Pipes_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            labelPipes.Text = obj.resManage.GetString("Pipes", obj.cultureInfo);
            labelSelectPipeCategory.Text = obj.resManage.GetString("SelectPipeCategory", obj.cultureInfo);
            labelSearch.Text             = obj.resManage.GetString("Search", obj.cultureInfo);
        }
Exemple #5
0
        private void Flanges_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            labelCode.Text = obj.resManage.GetString("Code", obj.cultureInfo);
            labelProjectPreferences.Text = obj.resManage.GetString("ProjectPreferences", obj.cultureInfo);
            labelFlangeType.Text         = obj.resManage.GetString("FlangeType", obj.cultureInfo);
            labelFlangeType2.Text        = obj.resManage.GetString("FlangeType", obj.cultureInfo);
            labelFlangeRating.Text       = obj.resManage.GetString("FlangeRating", obj.cultureInfo);
        }
Exemple #6
0
        private void comboBoxUiLanguage_SelectedIndexChanged(object sender, EventArgs e)
        {
            string     selected = comboBoxUiLanguage.Text;
            LangObject obj;

            switch (selected)
            {
            case "French":
                Environment.SetEnvironmentVariable("lang", "fr-FR");
                obj = languageChange.start("fr-FR");
                break;

            case "Indonesia":
                Environment.SetEnvironmentVariable("lang", "id-ID");
                obj = languageChange.start("id-ID");
                break;

            case "Chinese":
                Environment.SetEnvironmentVariable("lang", "ii-CN");
                obj = languageChange.start("ii-CN");
                break;

            case "Japan":
                Environment.SetEnvironmentVariable("lang", "ja-JP");
                obj = languageChange.start("ja-JP");
                break;

            default:
                Environment.SetEnvironmentVariable("lang", "en-US");
                obj = languageChange.start("en-US");
                break;
            }
            this.ChangeLanguageNow();
        }
Exemple #7
0
        public void changeNavLang()
        {
            string relang = Environment.GetEnvironmentVariable("lang");
            var    obj    = languageChange.start(relang);

            /*Project Tab Button Language Change*/

            buttonUserSetting.Text = obj.resManage.GetString("UserSettings", obj.cultureInfo);
            buttonNew.Text         = obj.resManage.GetString("New", obj.cultureInfo);
            buttonNew2.Text        = obj.resManage.GetString("New", obj.cultureInfo);
            buttonCopy.Text        = obj.resManage.GetString("Copy", obj.cultureInfo);
            buttonLink.Text        = obj.resManage.GetString("Link", obj.cultureInfo);
            buttonSave.Text        = obj.resManage.GetString("Save", obj.cultureInfo);
            buttonUnlink.Text      = obj.resManage.GetString("Unlink", obj.cultureInfo);
            buttonSaveas.Text      = obj.resManage.GetString("SaveAs", obj.cultureInfo);
            buttonDelete.Text      = obj.resManage.GetString("Delete", obj.cultureInfo);
            buttonDelete2.Text     = obj.resManage.GetString("Delete", obj.cultureInfo);
            buttonRestore.Text     = obj.resManage.GetString("Restore", obj.cultureInfo);
            buttonImport.Text      = obj.resManage.GetString("Import", obj.cultureInfo);
            buttonExport.Text      = obj.resManage.GetString("Export", obj.cultureInfo);
            buttonPreferences.Text = obj.resManage.GetString("Preferences", obj.cultureInfo);
            buttonOpen.Text        = obj.resManage.GetString("Open", obj.cultureInfo);
        }
Exemple #8
0
        private void Calculators_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            buttonActuators.Text      = obj.resManage.GetString("Actuator", obj.cultureInfo);
            buttonDesuperheating.Text = obj.resManage.GetString("Desuperheating", obj.cultureInfo);
            buttonFavorites.Text      = obj.resManage.GetString("Favorites", obj.cultureInfo);
            buttonFluids.Text         = obj.resManage.GetString("Fluids", obj.cultureInfo);
            buttonGeneral.Text        = obj.resManage.GetString("General", obj.cultureInfo);
            buttonValveDesing.Text    = obj.resManage.GetString("ValveDesing", obj.cultureInfo);
            labelFavorite.Text        = obj.resManage.GetString("Favorites", obj.cultureInfo);
            labelSearch.Text          = obj.resManage.GetString("Search", obj.cultureInfo);
            labelSeatLeak.Text        = obj.resManage.GetString("SeatLeakage", obj.cultureInfo);
            labelCalculator.Text      = obj.resManage.GetString("Calculator", obj.cultureInfo);
        }
Exemple #9
0
        private void Products_Load(object sender, EventArgs e)
        {
            string lang = Environment.GetEnvironmentVariable("lang");
            var    obj  = languageChange.start(lang);

            /* Change to default Language */
            labelProductLiterature.Text = obj.resManage.GetString("ProductLiterature", obj.cultureInfo);
            labelSelectProduct.Text     = obj.resManage.GetString("SelectProduct", obj.cultureInfo);
            labelSelectProductType.Text = obj.resManage.GetString("SelectProductType", obj.cultureInfo);
            labelSearch.Text            = obj.resManage.GetString("Search", obj.cultureInfo);

            buttonBrochure.Text       = obj.resManage.GetString("Brochure", obj.cultureInfo);
            buttonInstallBase.Text    = obj.resManage.GetString("InstallBase", obj.cultureInfo);
            buttonPresentations.Text  = obj.resManage.GetString("Presentations", obj.cultureInfo);
            buttonLeadTimes.Text      = obj.resManage.GetString("LeadTimes", obj.cultureInfo);
            buttonSuccessStories.Text = obj.resManage.GetString("SuccessStories", obj.cultureInfo);
            buttonCompetiton.Text     = obj.resManage.GetString("Competiton", obj.cultureInfo);
        }
Exemple #10
0
        private void Actuation_Load(object sender, EventArgs e)
        {
            Environment.SetEnvironmentVariable("lang", "ii-CN");
            //Environment.SetEnvironmentVariable("lang", "id-ID");
            var lang = Environment.GetEnvironmentVariable("lang");
            /* replace label text to language setting*/
            var obj = languageChange.start(lang);

            LabelForceDefinition.Text   = obj.resManage.GetString("ForceDefinition", obj.cultureInfo);
            LabelCoeff.Text             = obj.resManage.GetString("CoeffOfFriction", obj.cultureInfo);
            LabelValvePlugSize.Text     = obj.resManage.GetString("ValvePlugSize", obj.cultureInfo);
            LabelLeakageClass.Text      = obj.resManage.GetString("LeakageClass", obj.cultureInfo);
            LabelStemOrientation.Text   = obj.resManage.GetString("StemOrientation", obj.cultureInfo);
            LabelPlugDiameter.Text      = obj.resManage.GetString("PlugDiameter", obj.cultureInfo);
            LabelMeanContact.Text       = obj.resManage.GetString("MeanSeatContactDiameter", obj.cultureInfo);
            LabelValvePlugType.Text     = obj.resManage.GetString("ValvePlugType", obj.cultureInfo);
            LabelMeanWidth.Text         = obj.resManage.GetString("MeanSeatWidth", obj.cultureInfo);
            LabelPlugSeal.Text          = obj.resManage.GetString("PlugSealDiameter", obj.cultureInfo);
            LabelStem.Text              = obj.resManage.GetString("StemDiameter", obj.cultureInfo);
            LabelActual.Text            = obj.resManage.GetString("ActualValueDiameter", obj.cultureInfo);
            LabelPlugDiam.Text          = obj.resManage.GetString("PlugSealDiameter", obj.cultureInfo);
            LabelCoeff.Text             = obj.resManage.GetString("CoeffOfFriction", obj.cultureInfo);
            LabelSeal.Text              = obj.resManage.GetString("SealLenght", obj.cultureInfo);
            LabelPacking.Text           = obj.resManage.GetString("PackingMaterial", obj.cultureInfo);
            LabelFric.Text              = obj.resManage.GetString("CoeffOfFriction", obj.cultureInfo);
            LabelPack.Text              = obj.resManage.GetString("PackingLenght", obj.cultureInfo);
            LabelPlugWeight.Text        = obj.resManage.GetString("PlugWeight", obj.cultureInfo);
            LabelPressureOverPlug.Text  = obj.resManage.GetString("PressureOverPlug", obj.cultureInfo);
            LabelPressureUnderPlug.Text = obj.resManage.GetString("PressureUnderPlug", obj.cultureInfo);
            LabelHydraulicRunning.Text  = obj.resManage.GetString("HydraulicForceRunning", obj.cultureInfo);
            LabelHydraulicSeated.Text   = obj.resManage.GetString("HydraulicForceSeated", obj.cultureInfo);

            LabelForceRunning.Text   = obj.resManage.GetString("ForceToLiftRunning", obj.cultureInfo);
            LabelForceSeat.Text      = obj.resManage.GetString("ForceToLiftFromSeat", obj.cultureInfo);
            LabelForceClose.Text     = obj.resManage.GetString("ForceToCloseRunning", obj.cultureInfo);
            LabelForceCloseSeat.Text = obj.resManage.GetString("ForceToCloseOnSeat", obj.cultureInfo);
            LabelThrustSeat.Text     = obj.resManage.GetString("ThrustRequiredToSeat", obj.cultureInfo);
            LabelRequiredPLI.Text    = obj.resManage.GetString("RequiredSeatPLI", obj.cultureInfo);
            LabelCriticalForce.Text  = obj.resManage.GetString("CriticalForces", obj.cultureInfo);
        }