Esempio n. 1
0
        private static string ReplaceLocale_SA1340(string text, string lang)
        {
            var origin = GlobalVars.BaseLocale;

            return(text
                   .Replace(WestwindHelper.GetWord("article.code", "Product", origin), WestwindHelper.GetWord("article.code", "Product", lang))
                   .Replace(WestwindHelper.GetWord("appendix.appendix1", "Product", origin), WestwindHelper.GetWord("appendix.appendix1", "Product", lang))
                   .Replace(WestwindHelper.GetWord("appendix.appendix2", "Product", origin), WestwindHelper.GetWord("appendix.appendix2", "Product", lang))
                   .Replace(WestwindHelper.GetWord("appendix.appendix3", "Product", origin), WestwindHelper.GetWord("appendix.appendix3", "Product", lang))
                   .Replace(WestwindHelper.GetWord("inventory.bfQty", "Product", origin), WestwindHelper.GetWord("inventory.bfQty", "Product", lang))
                   .Replace(WestwindHelper.GetWord("inventory.bfAmount", "Product", origin), WestwindHelper.GetWord("inventory.bfAmount", "Product", lang))
                   .Replace(WestwindHelper.GetWord("inventory.cdQty", "Product", origin), WestwindHelper.GetWord("inventory.cdQty", "Product", lang))
                   .Replace(WestwindHelper.GetWord("inventory.cdAmount", "Product", origin), WestwindHelper.GetWord("inventory.cdAmount", "Product", lang))
                   .Replace(WestwindHelper.GetWord("transaction.date", "Transaction", origin), WestwindHelper.GetWord("transaction.date", "Transaction", lang))
                   .Replace(WestwindHelper.GetWord("glossary.year", "General", origin), WestwindHelper.GetWord("glossary.year", "General", lang))
                   .Replace(WestwindHelper.GetWord("glossary.month", "General", origin), WestwindHelper.GetWord("glossary.month", "General", lang))
                   .Replace(WestwindHelper.GetWord("glossary.day", "General", origin), WestwindHelper.GetWord("glossary.day", "General", lang))
                   .Replace(WestwindHelper.GetWord("transaction.type", "Transaction", origin), WestwindHelper.GetWord("transaction.type", "Transaction", lang))
                   .Replace(WestwindHelper.GetWord("transaction.cost", "Transaction", origin), WestwindHelper.GetWord("transaction.cost", "Transaction", lang))
                   .Replace(WestwindHelper.GetWord("transaction.number", "Transaction", origin), WestwindHelper.GetWord("transaction.number", "Transaction", lang))
                   .Replace(WestwindHelper.GetWord("workplace", "Model", origin), WestwindHelper.GetWord("workplace", "Model", lang))
                   .Replace(WestwindHelper.GetWord("glossary.sequencyNumber", "General", origin), WestwindHelper.GetWord("glossary.sequencyNumber", "General", lang))
                   .Replace(WestwindHelper.GetWord("article.description", "Product", origin), WestwindHelper.GetWord("article.description", "Product", lang))
                   );
        }
Esempio n. 2
0
 /// <summary>
 /// fill the combobox with Yes/No/Empty, localized.
 /// triStat = true: with empty item, false: without empty item.
 /// </summary>
 /// <param name="cbo"></param>
 /// <param name="triState"></param>
 public static void FillSimpleYesNo(ref Gizmox.WebGUI.Forms.ComboBox cbo, bool triState = false)
 {
     cbo.Items.Clear();
     if (triState)
     {
         cbo.Items.Add(string.Empty);
     }
     cbo.Items.Add(string.Format("{0}", WestwindHelper.GetWord("dialog.no", "General")));
     cbo.Items.Add(string.Format("{0}", WestwindHelper.GetWord("dialog.yes", "General")));
     cbo.SelectedIndex = 0;
 }