Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何更改DBML(facebook)首选语言?_C#_Asp.net_Facebook_Fbml - Fatal编程技术网

C# 如何更改DBML(facebook)首选语言?

C# 如何更改DBML(facebook)首选语言?,c#,asp.net,facebook,fbml,C#,Asp.net,Facebook,Fbml,我想改写FB的首选语言;例如: public static string ScriptUrl { get { string name = System.Threading.Thread.CurrentThread.CurrentCulture.Name; switch (System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName)

我想改写FB的首选语言;例如:

public static string ScriptUrl
{
    get
    {
        string name = System.Threading.Thread.CurrentThread.CurrentCulture.Name;

            switch (System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName)
            {
                case "en":
                    //
                    //  Facebook has no en-CA script so we use en-US
                    //
                    name = "en_US";
                    break;
                //case "fr":
                //    name = "fr_CA";
                //    break;

                default:
                    name = name.Replace("-", "_");
                    break;
            }

            return "connect.facebook.net/" + name + "/all.js#xfbml=1";
        }
    }

我该怎么做呢?

看来你走对了。您可以通过替换
http://connect.facebook.net/en_US/all.js