public string WrGetTranslation(string CultureFr, string CultureId, string CultureTo, string InStr, string dbConnectionString, string dbPassword)
        {
            string OutStr = string.Empty;

            if (InStr != string.Empty)
            {
                using (Access3.WebAccess dac = new Access3.WebAccess())
                {
                    OutStr = dac.WrGetMemTranslate(InStr, CultureId, dbConnectionString, dbPassword);
                }
                if (OutStr == string.Empty)
                {
                    string TrlCode;
                    // Translation by google ajax:
                    if (CultureTo == "zh-CN")
                    {
                        TrlCode = "en|zh-CN";
                    }
                    else
                    {
                        TrlCode = CultureFr.Substring(0, 2) + "|" + CultureTo.Substring(0, 2);
                    }
                    OutStr = WrGenericTranslate("GA", TrlCode, InStr, dbConnectionString, dbPassword).Trim();       // Expired Dec 2011.
                    if (OutStr == string.Empty)
                    {
                        OutStr = WrGenericTranslate("GB", TrlCode, InStr, dbConnectionString, dbPassword).Trim();   // Paid translation.
                    }
                    if (OutStr == string.Empty)
                    {
                        // Translation by google ordinary:
                        if (CultureTo == "zh-CN")
                        {
                            TrlCode = "sl=en&tl=zh-CN";
                        }
                        else
                        {
                            TrlCode = "sl=" + CultureFr.Substring(0, 2) + "&tl=" + CultureTo.Substring(0, 2);
                        }
                        OutStr = WrGenericTranslate("GG", TrlCode, InStr, dbConnectionString, dbPassword).Trim();     // Obsolete.
                    }
                    if (OutStr == string.Empty)
                    {
                        ApplicationAssert.CheckCondition(false, "WrGetTranslation", "", "\"" + InStr + "\" cannot be translated. Please investigate and try again.");
                    }
                    else
                    {
                        OutStr = OutStr.Replace("\\u0026", "&");
                        OutStr = OutStr.Replace("'", "'");
                        OutStr = OutStr.Replace(""", "\"");
                    }
                }
            }
            return(OutStr);
        }