├── .gitattributes ├── .gitignore ├── README.md ├── WordListTranslator.sln └── WordListTranslator ├── AdmAccessToken.cs ├── AdmAuthentication.cs ├── App.config ├── Program.cs ├── Properties └── AssemblyInfo.cs ├── Service References └── TranslateService │ ├── Reference.cs │ ├── Reference.svcmap │ ├── SoapService.wsdl │ ├── WordListTranslator.TranslateService.GetTranslationsResponse.datasource │ ├── WordListTranslator.TranslateService.TranslateArray2Response.datasource │ ├── WordListTranslator.TranslateService.TranslateArrayResponse.datasource │ ├── configuration.svcinfo │ ├── configuration91.svcinfo │ ├── soap.wsdl │ ├── soap.xsd │ ├── soap1.xsd │ ├── soap2.xsd │ └── soap3.xsd └── WordListTranslator.csproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | 11 | [Dd]ebug/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | [Bb]in/ 16 | [Oo]bj/ 17 | 18 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 19 | !packages/*/build/ 20 | 21 | # MSTest test Results 22 | [Tt]est[Rr]esult*/ 23 | [Bb]uild[Ll]og.* 24 | 25 | *_i.c 26 | *_p.c 27 | *.ilk 28 | *.meta 29 | *.obj 30 | *.pch 31 | *.pdb 32 | *.pgc 33 | *.pgd 34 | *.rsp 35 | *.sbr 36 | *.tlb 37 | *.tli 38 | *.tlh 39 | *.tmp 40 | *.tmp_proj 41 | *.log 42 | *.vspscc 43 | *.vssscc 44 | .builds 45 | *.pidb 46 | *.log 47 | *.scc 48 | 49 | # Visual C++ cache files 50 | ipch/ 51 | *.aps 52 | *.ncb 53 | *.opensdf 54 | *.sdf 55 | *.cachefile 56 | 57 | # Visual Studio profiler 58 | *.psess 59 | *.vsp 60 | *.vspx 61 | 62 | # Guidance Automation Toolkit 63 | *.gpState 64 | 65 | # ReSharper is a .NET coding add-in 66 | _ReSharper*/ 67 | *.[Rr]e[Ss]harper 68 | 69 | # TeamCity is a build add-in 70 | _TeamCity* 71 | 72 | # DotCover is a Code Coverage Tool 73 | *.dotCover 74 | 75 | # NCrunch 76 | *.ncrunch* 77 | .*crunch*.local.xml 78 | 79 | # Installshield output folder 80 | [Ee]xpress/ 81 | 82 | # DocProject is a documentation generator add-in 83 | DocProject/buildhelp/ 84 | DocProject/Help/*.HxT 85 | DocProject/Help/*.HxC 86 | DocProject/Help/*.hhc 87 | DocProject/Help/*.hhk 88 | DocProject/Help/*.hhp 89 | DocProject/Help/Html2 90 | DocProject/Help/html 91 | 92 | # Click-Once directory 93 | publish/ 94 | 95 | # Publish Web Output 96 | *.Publish.xml 97 | 98 | # NuGet Packages Directory 99 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line 100 | #packages/ 101 | 102 | # Windows Azure Build Output 103 | csx 104 | *.build.csdef 105 | 106 | # Windows Store app package directory 107 | AppPackages/ 108 | 109 | # Others 110 | sql/ 111 | *.Cache 112 | ClientBin/ 113 | [Ss]tyle[Cc]op.* 114 | ~$* 115 | *~ 116 | *.dbmdl 117 | *.[Pp]ublish.xml 118 | *.pfx 119 | *.publishsettings 120 | 121 | # RIA/Silverlight projects 122 | Generated_Code/ 123 | 124 | # Backup & report files from converting an old project file to a newer 125 | # Visual Studio version. Backup files are not needed, because we have git ;-) 126 | _UpgradeReport_Files/ 127 | Backup*/ 128 | UpgradeLog*.XML 129 | UpgradeLog*.htm 130 | 131 | # SQL Server files 132 | App_Data/*.mdf 133 | App_Data/*.ldf 134 | 135 | 136 | #LightSwitch generated files 137 | GeneratedArtifacts/ 138 | _Pvt_Extensions/ 139 | ModelManifest.xml 140 | 141 | # ========================= 142 | # Windows detritus 143 | # ========================= 144 | 145 | # Windows image file caches 146 | Thumbs.db 147 | ehthumbs.db 148 | 149 | # Folder config file 150 | Desktop.ini 151 | 152 | # Recycle Bin used on file shares 153 | $RECYCLE.BIN/ 154 | 155 | # Mac desktop service store files 156 | .DS_Store 157 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | WordListTranslator 2 | ================== 3 | 4 | 一个(使用Bing)可以将大量英文短语批量翻译成中文的工具 5 | 6 | ### 下载 ### 7 | 点这里下载最新版本:https://github.com/kaedei/WordListTranslater/releases 8 | 9 | ### 为什么写它 ### 10 | 一个Web项目要进行国际化,原来的英文版分支出了一个中文版。于是阿三领导扔给了我一个大概有8700行的Excel文件,里面有项目里所有的英文短语、句子,让我把它们翻译成中文(我是项目里唯一的中国程序员)。 11 | 12 | ### 怎么使用 ### 13 | * 1.此工具使用Access数据库,所以你的电脑上要[安装Access 2007的OLEDB驱动](http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe),当然自己去改app.config里面的连接字符串也可以。 14 | * 2.然后在Access数据库中新建个表,至少要包含三个列【自增长ID,需要翻译的,翻译之后的】,把需要翻译的英文导入到表中的【需要翻译的】列 15 | * 3.修改代码中的app.config文件,设置各种参数(一看即懂,不再详述),包括连接字符串、表名、列名等 16 | * 4.(可选)代码中使用了Bing Translate API,你可能需要自己填写client id和app key。当然用我的也可以,不过我不保证能一直可用。 17 | 18 | ### 这里有一个更详细的配置方法:http://blog.sina.com.cn/s/blog_58c506600101vneu.html ### 19 | 20 | ### 运行结果 ### 21 | 最终结果会存放在Access数据库里,可以随便拿来处理。 22 | -------------------------------------------------------------------------------- /WordListTranslator.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.40629.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordListTranslator", "WordListTranslator\WordListTranslator.csproj", "{DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B0C1E5A9-2767-43E6-84BC-364687060F67}" 9 | ProjectSection(SolutionItems) = preProject 10 | README.md = README.md 11 | EndProjectSection 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Any CPU = Debug|Any CPU 16 | Release|Any CPU = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D}.Release|Any CPU.Build.0 = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /WordListTranslator/AdmAccessToken.cs: -------------------------------------------------------------------------------- 1 | #region File Information 2 | // ******************** 3 | // Translator.cs 4 | // Solution: WordListTranslator 5 | // Project: WordListTranslator 6 | // 7 | // Created At: 2014-05-09 10:24 8 | // Created User: Qing Feng Xu 9 | // 10 | // 11 | // 12 | // ******************** 13 | #endregion 14 | 15 | using System.Diagnostics; 16 | using System.Runtime.Serialization; 17 | 18 | namespace WordListTranslator 19 | { 20 | [DataContract] 21 | public class AdmAccessToken 22 | { 23 | [DataMember] 24 | public string access_token { get; set; } 25 | [DataMember] 26 | public string token_type { get; set; } 27 | [DataMember] 28 | public string expires_in { get; set; } 29 | [DataMember] 30 | public string scope { get; set; } 31 | } 32 | } -------------------------------------------------------------------------------- /WordListTranslator/AdmAuthentication.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Net; 4 | using System.Runtime.Serialization.Json; 5 | using System.Text; 6 | using System.Threading; 7 | using System.Web; 8 | 9 | namespace WordListTranslator 10 | { 11 | public class AdmAuthentication 12 | { 13 | public static readonly string DatamarketAccessUri = "https://datamarket.accesscontrol.windows.net/v2/OAuth2-13"; 14 | private string clientId; 15 | private string clientSecret; 16 | private string request; 17 | private AdmAccessToken token; 18 | private Timer accessTokenRenewer; 19 | 20 | //Access token expires every 10 minutes. Renew it every 9 minutes only. 21 | private const int RefreshTokenDuration = 9; 22 | 23 | public AdmAuthentication(string clientId, string clientSecret) 24 | { 25 | this.clientId = clientId; 26 | this.clientSecret = clientSecret; 27 | //If clientid or client secret has special characters, encode before sending request 28 | this.request = string.Format("grant_type=client_credentials&client_id={0}&client_secret={1}&scope=http://api.microsofttranslator.com", HttpUtility.UrlEncode(clientId), HttpUtility.UrlEncode(clientSecret)); 29 | this.token = HttpPost(DatamarketAccessUri, this.request); 30 | //renew the token every specfied minutes 31 | accessTokenRenewer = new Timer(new TimerCallback(OnTokenExpiredCallback), this, TimeSpan.FromMinutes(RefreshTokenDuration), TimeSpan.FromMilliseconds(-1)); 32 | } 33 | 34 | public AdmAccessToken GetAccessToken() 35 | { 36 | return this.token; 37 | } 38 | 39 | 40 | private void RenewAccessToken() 41 | { 42 | AdmAccessToken newAccessToken = HttpPost(DatamarketAccessUri, this.request); 43 | //swap the new token with old one 44 | //Note: the swap is thread unsafe 45 | this.token = newAccessToken; 46 | Console.WriteLine(string.Format("Renewed token for user: {0} is: {1}", this.clientId, this.token.access_token)); 47 | } 48 | 49 | private void OnTokenExpiredCallback(object stateInfo) 50 | { 51 | try 52 | { 53 | RenewAccessToken(); 54 | } 55 | catch (Exception ex) 56 | { 57 | Console.WriteLine(string.Format("Failed renewing access token. Details: {0}", ex.Message)); 58 | } 59 | finally 60 | { 61 | try 62 | { 63 | accessTokenRenewer.Change(TimeSpan.FromMinutes(RefreshTokenDuration), TimeSpan.FromMilliseconds(-1)); 64 | } 65 | catch (Exception ex) 66 | { 67 | Console.WriteLine(string.Format("Failed to reschedule the timer to renew access token. Details: {0}", ex.Message)); 68 | } 69 | } 70 | } 71 | 72 | 73 | private AdmAccessToken HttpPost(string DatamarketAccessUri, string requestDetails) 74 | { 75 | //Prepare OAuth request 76 | WebRequest webRequest = WebRequest.Create(DatamarketAccessUri); 77 | webRequest.ContentType = "application/x-www-form-urlencoded"; 78 | webRequest.Method = "POST"; 79 | 80 | byte[] bytes = Encoding.ASCII.GetBytes(requestDetails); 81 | webRequest.ContentLength = bytes.Length; 82 | using (Stream outputStream = webRequest.GetRequestStream()) 83 | { 84 | outputStream.Write(bytes, 0, bytes.Length); 85 | } 86 | using (WebResponse webResponse = webRequest.GetResponse()) 87 | { 88 | DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(AdmAccessToken)); 89 | //Get deserialized object from JSON stream 90 | AdmAccessToken token = (AdmAccessToken)serializer.ReadObject(webResponse.GetResponseStream()); 91 | return token; 92 | } 93 | } 94 | } 95 | } -------------------------------------------------------------------------------- /WordListTranslator/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /WordListTranslator/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data.OleDb; 5 | using System.Threading.Tasks; 6 | 7 | namespace WordListTranslator 8 | { 9 | class Program 10 | { 11 | private static volatile int finishedCount = 0; 12 | static void Main(string[] args) 13 | { 14 | var cId = ConfigurationManager.AppSettings["IdColumn"]; 15 | var cFrom = ConfigurationManager.AppSettings["FromColumn"]; 16 | var cTo = ConfigurationManager.AppSettings["ToColumn"]; 17 | var tableName = ConfigurationManager.AppSettings["TableName"]; 18 | 19 | //填充需要翻译的 20 | var inputContent = FillTranslationList(tableName, cId, cFrom, cTo); 21 | 22 | //var listener = new HttpListener(); 23 | //listener.Prefixes.Add("http://127.0.0.1:23333/"); 24 | //listener.Start(); 25 | 26 | var clientId = ConfigurationManager.AppSettings["ClientId"]; 27 | var clientSecret = ConfigurationManager.AppSettings["ClientSecret"]; 28 | var auth = new AdmAuthentication(clientId, clientSecret); 29 | 30 | //翻译 31 | using (var connection = new OleDbConnection(ConfigurationManager.ConnectionStrings["Default"].ConnectionString)) 32 | { 33 | connection.Open(); 34 | Parallel.For(0, inputContent.Count, index => 35 | { 36 | TranslateAndSave(inputContent, index, auth, connection, tableName, cTo); 37 | }); 38 | } 39 | 40 | Console.WriteLine("按回车键退出"); 41 | Console.ReadLine(); 42 | } 43 | 44 | private static void TranslateAndSave(List> inputContent, int index, AdmAuthentication auth, OleDbConnection connection, 45 | string tableName, string cTo) 46 | { 47 | var id = inputContent[index].Item1; 48 | var text = inputContent[index].Item2; 49 | if (string.IsNullOrEmpty(text)) 50 | return; 51 | if (ContainsHtmlLabel(text)) 52 | { 53 | Console.WriteLine("({0}/{1}){2}\t{3}", ++finishedCount, inputContent.Count, text, text); 54 | } 55 | else 56 | { 57 | var client = new TranslateService.LanguageServiceClient(); 58 | try 59 | { 60 | var token = auth.GetAccessToken(); 61 | var fromLang = ConfigurationManager.AppSettings["FromLanguage"]; 62 | var toLang = ConfigurationManager.AppSettings["ToLanguage"]; 63 | //How to: https://msdn.microsoft.com/en-us/library/ff512437.aspx 64 | //maybe we can use TranslateArray here to get a better performance 65 | var result = client.Translate("Bearer " + token.access_token, 66 | text, fromLang, toLang, "text/plain", "general", null); 67 | using (var command = connection.CreateCommand()) 68 | { 69 | command.CommandText = string.Format(@"Update {0} Set {1}='{2}' Where ID={3}", 70 | tableName, cTo, result.Replace("'", "''"), id); 71 | command.ExecuteNonQuery(); 72 | } 73 | Console.WriteLine("({0}/{1}){2}\t{3}", ++finishedCount, inputContent.Count, text, result); 74 | } 75 | catch 76 | { 77 | Console.WriteLine("({0}/{1}){2}\t{3}", ++finishedCount, inputContent.Count, text, text); 78 | } 79 | } 80 | } 81 | 82 | /// 83 | /// 获取需要翻译的文本列表 84 | /// 85 | /// ID列名称 86 | /// 需要翻译的列名 87 | /// 数据库中的表名 88 | /// 把翻译后的结果放到哪个列 89 | private static List> FillTranslationList(string tableName, string cId, string cFrom, string cTo) 90 | { 91 | var inputContent = new List>(); 92 | using (var connection = new OleDbConnection(ConfigurationManager.ConnectionStrings["Default"].ConnectionString)) 93 | { 94 | connection.Open(); 95 | using (var command = new OleDbCommand(string.Format("Select [{0}],[{1}] From [{2}] Where [{3}] is NULL or [{3}]=''", cId, cFrom, tableName, cTo), 96 | connection)) 97 | { 98 | using (var reader = command.ExecuteReader()) 99 | { 100 | while (reader != null && reader.Read()) 101 | { 102 | try 103 | { 104 | inputContent.Add(new Tuple(reader.GetInt32(0), reader.GetString(1))); 105 | } 106 | catch 107 | { 108 | inputContent.Add(new Tuple(reader.GetInt32(0), "")); 109 | } 110 | } 111 | } 112 | } 113 | } 114 | return inputContent; 115 | } 116 | 117 | private static bool ContainsHtmlLabel(string text) 118 | { 119 | return (text.Contains("") || 120 | text.Contains("") || 121 | text.Contains("") || 122 | text.Contains("
") || 123 | text.Contains("class=") || 124 | text.Contains("href=") || 125 | text.Contains(" 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WordListTranslator.TranslateService { 12 | using System.Runtime.Serialization; 13 | using System; 14 | 15 | 16 | [System.Diagnostics.DebuggerStepThroughAttribute()] 17 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 18 | [System.Runtime.Serialization.DataContractAttribute(Name="TranslateOptions", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 19 | [System.SerializableAttribute()] 20 | public partial class TranslateOptions : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 21 | 22 | [System.NonSerializedAttribute()] 23 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 24 | 25 | [System.Runtime.Serialization.OptionalFieldAttribute()] 26 | private string CategoryField; 27 | 28 | [System.Runtime.Serialization.OptionalFieldAttribute()] 29 | private string ContentTypeField; 30 | 31 | [System.Runtime.Serialization.OptionalFieldAttribute()] 32 | private string GenderFromField; 33 | 34 | [System.Runtime.Serialization.OptionalFieldAttribute()] 35 | private string GenderToField; 36 | 37 | [System.Runtime.Serialization.OptionalFieldAttribute()] 38 | private bool IncludeMultipleMTAlternativesField; 39 | 40 | [System.Runtime.Serialization.OptionalFieldAttribute()] 41 | private string ProfanityActionField; 42 | 43 | [System.Runtime.Serialization.OptionalFieldAttribute()] 44 | private string ReservedFlagsField; 45 | 46 | [System.Runtime.Serialization.OptionalFieldAttribute()] 47 | private string StateField; 48 | 49 | [System.Runtime.Serialization.OptionalFieldAttribute()] 50 | private string UriField; 51 | 52 | [System.Runtime.Serialization.OptionalFieldAttribute()] 53 | private string UserField; 54 | 55 | [global::System.ComponentModel.BrowsableAttribute(false)] 56 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 57 | get { 58 | return this.extensionDataField; 59 | } 60 | set { 61 | this.extensionDataField = value; 62 | } 63 | } 64 | 65 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 66 | public string Category { 67 | get { 68 | return this.CategoryField; 69 | } 70 | set { 71 | if ((object.ReferenceEquals(this.CategoryField, value) != true)) { 72 | this.CategoryField = value; 73 | this.RaisePropertyChanged("Category"); 74 | } 75 | } 76 | } 77 | 78 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 79 | public string ContentType { 80 | get { 81 | return this.ContentTypeField; 82 | } 83 | set { 84 | if ((object.ReferenceEquals(this.ContentTypeField, value) != true)) { 85 | this.ContentTypeField = value; 86 | this.RaisePropertyChanged("ContentType"); 87 | } 88 | } 89 | } 90 | 91 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 92 | public string GenderFrom { 93 | get { 94 | return this.GenderFromField; 95 | } 96 | set { 97 | if ((object.ReferenceEquals(this.GenderFromField, value) != true)) { 98 | this.GenderFromField = value; 99 | this.RaisePropertyChanged("GenderFrom"); 100 | } 101 | } 102 | } 103 | 104 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 105 | public string GenderTo { 106 | get { 107 | return this.GenderToField; 108 | } 109 | set { 110 | if ((object.ReferenceEquals(this.GenderToField, value) != true)) { 111 | this.GenderToField = value; 112 | this.RaisePropertyChanged("GenderTo"); 113 | } 114 | } 115 | } 116 | 117 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 118 | public bool IncludeMultipleMTAlternatives { 119 | get { 120 | return this.IncludeMultipleMTAlternativesField; 121 | } 122 | set { 123 | if ((this.IncludeMultipleMTAlternativesField.Equals(value) != true)) { 124 | this.IncludeMultipleMTAlternativesField = value; 125 | this.RaisePropertyChanged("IncludeMultipleMTAlternatives"); 126 | } 127 | } 128 | } 129 | 130 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 131 | public string ProfanityAction { 132 | get { 133 | return this.ProfanityActionField; 134 | } 135 | set { 136 | if ((object.ReferenceEquals(this.ProfanityActionField, value) != true)) { 137 | this.ProfanityActionField = value; 138 | this.RaisePropertyChanged("ProfanityAction"); 139 | } 140 | } 141 | } 142 | 143 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 144 | public string ReservedFlags { 145 | get { 146 | return this.ReservedFlagsField; 147 | } 148 | set { 149 | if ((object.ReferenceEquals(this.ReservedFlagsField, value) != true)) { 150 | this.ReservedFlagsField = value; 151 | this.RaisePropertyChanged("ReservedFlags"); 152 | } 153 | } 154 | } 155 | 156 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 157 | public string State { 158 | get { 159 | return this.StateField; 160 | } 161 | set { 162 | if ((object.ReferenceEquals(this.StateField, value) != true)) { 163 | this.StateField = value; 164 | this.RaisePropertyChanged("State"); 165 | } 166 | } 167 | } 168 | 169 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 170 | public string Uri { 171 | get { 172 | return this.UriField; 173 | } 174 | set { 175 | if ((object.ReferenceEquals(this.UriField, value) != true)) { 176 | this.UriField = value; 177 | this.RaisePropertyChanged("Uri"); 178 | } 179 | } 180 | } 181 | 182 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 183 | public string User { 184 | get { 185 | return this.UserField; 186 | } 187 | set { 188 | if ((object.ReferenceEquals(this.UserField, value) != true)) { 189 | this.UserField = value; 190 | this.RaisePropertyChanged("User"); 191 | } 192 | } 193 | } 194 | 195 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 196 | 197 | protected void RaisePropertyChanged(string propertyName) { 198 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 199 | if ((propertyChanged != null)) { 200 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 201 | } 202 | } 203 | } 204 | 205 | [System.Diagnostics.DebuggerStepThroughAttribute()] 206 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 207 | [System.Runtime.Serialization.DataContractAttribute(Name="GetTranslationsResponse", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 208 | [System.SerializableAttribute()] 209 | public partial class GetTranslationsResponse : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 210 | 211 | [System.NonSerializedAttribute()] 212 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 213 | 214 | [System.Runtime.Serialization.OptionalFieldAttribute()] 215 | private string FromField; 216 | 217 | [System.Runtime.Serialization.OptionalFieldAttribute()] 218 | private string StateField; 219 | 220 | [System.Runtime.Serialization.OptionalFieldAttribute()] 221 | private WordListTranslator.TranslateService.TranslationMatch[] TranslationsField; 222 | 223 | [global::System.ComponentModel.BrowsableAttribute(false)] 224 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 225 | get { 226 | return this.extensionDataField; 227 | } 228 | set { 229 | this.extensionDataField = value; 230 | } 231 | } 232 | 233 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 234 | public string From { 235 | get { 236 | return this.FromField; 237 | } 238 | set { 239 | if ((object.ReferenceEquals(this.FromField, value) != true)) { 240 | this.FromField = value; 241 | this.RaisePropertyChanged("From"); 242 | } 243 | } 244 | } 245 | 246 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 247 | public string State { 248 | get { 249 | return this.StateField; 250 | } 251 | set { 252 | if ((object.ReferenceEquals(this.StateField, value) != true)) { 253 | this.StateField = value; 254 | this.RaisePropertyChanged("State"); 255 | } 256 | } 257 | } 258 | 259 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 260 | public WordListTranslator.TranslateService.TranslationMatch[] Translations { 261 | get { 262 | return this.TranslationsField; 263 | } 264 | set { 265 | if ((object.ReferenceEquals(this.TranslationsField, value) != true)) { 266 | this.TranslationsField = value; 267 | this.RaisePropertyChanged("Translations"); 268 | } 269 | } 270 | } 271 | 272 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 273 | 274 | protected void RaisePropertyChanged(string propertyName) { 275 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 276 | if ((propertyChanged != null)) { 277 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 278 | } 279 | } 280 | } 281 | 282 | [System.Diagnostics.DebuggerStepThroughAttribute()] 283 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 284 | [System.Runtime.Serialization.DataContractAttribute(Name="TranslationMatch", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 285 | [System.SerializableAttribute()] 286 | public partial class TranslationMatch : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 287 | 288 | [System.NonSerializedAttribute()] 289 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 290 | 291 | private int CountField; 292 | 293 | [System.Runtime.Serialization.OptionalFieldAttribute()] 294 | private string ErrorField; 295 | 296 | private int MatchDegreeField; 297 | 298 | [System.Runtime.Serialization.OptionalFieldAttribute()] 299 | private string MatchedOriginalTextField; 300 | 301 | private int RatingField; 302 | 303 | private string TranslatedTextField; 304 | 305 | [global::System.ComponentModel.BrowsableAttribute(false)] 306 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 307 | get { 308 | return this.extensionDataField; 309 | } 310 | set { 311 | this.extensionDataField = value; 312 | } 313 | } 314 | 315 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 316 | public int Count { 317 | get { 318 | return this.CountField; 319 | } 320 | set { 321 | if ((this.CountField.Equals(value) != true)) { 322 | this.CountField = value; 323 | this.RaisePropertyChanged("Count"); 324 | } 325 | } 326 | } 327 | 328 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 329 | public string Error { 330 | get { 331 | return this.ErrorField; 332 | } 333 | set { 334 | if ((object.ReferenceEquals(this.ErrorField, value) != true)) { 335 | this.ErrorField = value; 336 | this.RaisePropertyChanged("Error"); 337 | } 338 | } 339 | } 340 | 341 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 342 | public int MatchDegree { 343 | get { 344 | return this.MatchDegreeField; 345 | } 346 | set { 347 | if ((this.MatchDegreeField.Equals(value) != true)) { 348 | this.MatchDegreeField = value; 349 | this.RaisePropertyChanged("MatchDegree"); 350 | } 351 | } 352 | } 353 | 354 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 355 | public string MatchedOriginalText { 356 | get { 357 | return this.MatchedOriginalTextField; 358 | } 359 | set { 360 | if ((object.ReferenceEquals(this.MatchedOriginalTextField, value) != true)) { 361 | this.MatchedOriginalTextField = value; 362 | this.RaisePropertyChanged("MatchedOriginalText"); 363 | } 364 | } 365 | } 366 | 367 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 368 | public int Rating { 369 | get { 370 | return this.RatingField; 371 | } 372 | set { 373 | if ((this.RatingField.Equals(value) != true)) { 374 | this.RatingField = value; 375 | this.RaisePropertyChanged("Rating"); 376 | } 377 | } 378 | } 379 | 380 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 381 | public string TranslatedText { 382 | get { 383 | return this.TranslatedTextField; 384 | } 385 | set { 386 | if ((object.ReferenceEquals(this.TranslatedTextField, value) != true)) { 387 | this.TranslatedTextField = value; 388 | this.RaisePropertyChanged("TranslatedText"); 389 | } 390 | } 391 | } 392 | 393 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 394 | 395 | protected void RaisePropertyChanged(string propertyName) { 396 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 397 | if ((propertyChanged != null)) { 398 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 399 | } 400 | } 401 | } 402 | 403 | [System.Diagnostics.DebuggerStepThroughAttribute()] 404 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 405 | [System.Runtime.Serialization.DataContractAttribute(Name="Translation", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 406 | [System.SerializableAttribute()] 407 | public partial class Translation : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 408 | 409 | [System.NonSerializedAttribute()] 410 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 411 | 412 | private string OriginalTextField; 413 | 414 | [System.Runtime.Serialization.OptionalFieldAttribute()] 415 | private int RatingField; 416 | 417 | [System.Runtime.Serialization.OptionalFieldAttribute()] 418 | private int SequenceField; 419 | 420 | private string TranslatedTextField; 421 | 422 | [global::System.ComponentModel.BrowsableAttribute(false)] 423 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 424 | get { 425 | return this.extensionDataField; 426 | } 427 | set { 428 | this.extensionDataField = value; 429 | } 430 | } 431 | 432 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 433 | public string OriginalText { 434 | get { 435 | return this.OriginalTextField; 436 | } 437 | set { 438 | if ((object.ReferenceEquals(this.OriginalTextField, value) != true)) { 439 | this.OriginalTextField = value; 440 | this.RaisePropertyChanged("OriginalText"); 441 | } 442 | } 443 | } 444 | 445 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 446 | public int Rating { 447 | get { 448 | return this.RatingField; 449 | } 450 | set { 451 | if ((this.RatingField.Equals(value) != true)) { 452 | this.RatingField = value; 453 | this.RaisePropertyChanged("Rating"); 454 | } 455 | } 456 | } 457 | 458 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 459 | public int Sequence { 460 | get { 461 | return this.SequenceField; 462 | } 463 | set { 464 | if ((this.SequenceField.Equals(value) != true)) { 465 | this.SequenceField = value; 466 | this.RaisePropertyChanged("Sequence"); 467 | } 468 | } 469 | } 470 | 471 | [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)] 472 | public string TranslatedText { 473 | get { 474 | return this.TranslatedTextField; 475 | } 476 | set { 477 | if ((object.ReferenceEquals(this.TranslatedTextField, value) != true)) { 478 | this.TranslatedTextField = value; 479 | this.RaisePropertyChanged("TranslatedText"); 480 | } 481 | } 482 | } 483 | 484 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 485 | 486 | protected void RaisePropertyChanged(string propertyName) { 487 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 488 | if ((propertyChanged != null)) { 489 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 490 | } 491 | } 492 | } 493 | 494 | [System.Diagnostics.DebuggerStepThroughAttribute()] 495 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 496 | [System.Runtime.Serialization.DataContractAttribute(Name="TranslateArrayResponse", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 497 | [System.SerializableAttribute()] 498 | public partial class TranslateArrayResponse : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 499 | 500 | [System.NonSerializedAttribute()] 501 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 502 | 503 | [System.Runtime.Serialization.OptionalFieldAttribute()] 504 | private string ErrorField; 505 | 506 | [System.Runtime.Serialization.OptionalFieldAttribute()] 507 | private string FromField; 508 | 509 | [System.Runtime.Serialization.OptionalFieldAttribute()] 510 | private int[] OriginalTextSentenceLengthsField; 511 | 512 | [System.Runtime.Serialization.OptionalFieldAttribute()] 513 | private string StateField; 514 | 515 | [System.Runtime.Serialization.OptionalFieldAttribute()] 516 | private string TranslatedTextField; 517 | 518 | [System.Runtime.Serialization.OptionalFieldAttribute()] 519 | private int[] TranslatedTextSentenceLengthsField; 520 | 521 | [global::System.ComponentModel.BrowsableAttribute(false)] 522 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 523 | get { 524 | return this.extensionDataField; 525 | } 526 | set { 527 | this.extensionDataField = value; 528 | } 529 | } 530 | 531 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 532 | public string Error { 533 | get { 534 | return this.ErrorField; 535 | } 536 | set { 537 | if ((object.ReferenceEquals(this.ErrorField, value) != true)) { 538 | this.ErrorField = value; 539 | this.RaisePropertyChanged("Error"); 540 | } 541 | } 542 | } 543 | 544 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 545 | public string From { 546 | get { 547 | return this.FromField; 548 | } 549 | set { 550 | if ((object.ReferenceEquals(this.FromField, value) != true)) { 551 | this.FromField = value; 552 | this.RaisePropertyChanged("From"); 553 | } 554 | } 555 | } 556 | 557 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 558 | public int[] OriginalTextSentenceLengths { 559 | get { 560 | return this.OriginalTextSentenceLengthsField; 561 | } 562 | set { 563 | if ((object.ReferenceEquals(this.OriginalTextSentenceLengthsField, value) != true)) { 564 | this.OriginalTextSentenceLengthsField = value; 565 | this.RaisePropertyChanged("OriginalTextSentenceLengths"); 566 | } 567 | } 568 | } 569 | 570 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 571 | public string State { 572 | get { 573 | return this.StateField; 574 | } 575 | set { 576 | if ((object.ReferenceEquals(this.StateField, value) != true)) { 577 | this.StateField = value; 578 | this.RaisePropertyChanged("State"); 579 | } 580 | } 581 | } 582 | 583 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 584 | public string TranslatedText { 585 | get { 586 | return this.TranslatedTextField; 587 | } 588 | set { 589 | if ((object.ReferenceEquals(this.TranslatedTextField, value) != true)) { 590 | this.TranslatedTextField = value; 591 | this.RaisePropertyChanged("TranslatedText"); 592 | } 593 | } 594 | } 595 | 596 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 597 | public int[] TranslatedTextSentenceLengths { 598 | get { 599 | return this.TranslatedTextSentenceLengthsField; 600 | } 601 | set { 602 | if ((object.ReferenceEquals(this.TranslatedTextSentenceLengthsField, value) != true)) { 603 | this.TranslatedTextSentenceLengthsField = value; 604 | this.RaisePropertyChanged("TranslatedTextSentenceLengths"); 605 | } 606 | } 607 | } 608 | 609 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 610 | 611 | protected void RaisePropertyChanged(string propertyName) { 612 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 613 | if ((propertyChanged != null)) { 614 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 615 | } 616 | } 617 | } 618 | 619 | [System.Diagnostics.DebuggerStepThroughAttribute()] 620 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 621 | [System.Runtime.Serialization.DataContractAttribute(Name="TranslateArray2Response", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2")] 622 | [System.SerializableAttribute()] 623 | public partial class TranslateArray2Response : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { 624 | 625 | [System.NonSerializedAttribute()] 626 | private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 627 | 628 | [System.Runtime.Serialization.OptionalFieldAttribute()] 629 | private string AlignmentField; 630 | 631 | [System.Runtime.Serialization.OptionalFieldAttribute()] 632 | private string ErrorField; 633 | 634 | [System.Runtime.Serialization.OptionalFieldAttribute()] 635 | private string FromField; 636 | 637 | [System.Runtime.Serialization.OptionalFieldAttribute()] 638 | private int[] OriginalTextSentenceLengthsField; 639 | 640 | [System.Runtime.Serialization.OptionalFieldAttribute()] 641 | private string StateField; 642 | 643 | [System.Runtime.Serialization.OptionalFieldAttribute()] 644 | private string TranslatedTextField; 645 | 646 | [System.Runtime.Serialization.OptionalFieldAttribute()] 647 | private int[] TranslatedTextSentenceLengthsField; 648 | 649 | [global::System.ComponentModel.BrowsableAttribute(false)] 650 | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 651 | get { 652 | return this.extensionDataField; 653 | } 654 | set { 655 | this.extensionDataField = value; 656 | } 657 | } 658 | 659 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 660 | public string Alignment { 661 | get { 662 | return this.AlignmentField; 663 | } 664 | set { 665 | if ((object.ReferenceEquals(this.AlignmentField, value) != true)) { 666 | this.AlignmentField = value; 667 | this.RaisePropertyChanged("Alignment"); 668 | } 669 | } 670 | } 671 | 672 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 673 | public string Error { 674 | get { 675 | return this.ErrorField; 676 | } 677 | set { 678 | if ((object.ReferenceEquals(this.ErrorField, value) != true)) { 679 | this.ErrorField = value; 680 | this.RaisePropertyChanged("Error"); 681 | } 682 | } 683 | } 684 | 685 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 686 | public string From { 687 | get { 688 | return this.FromField; 689 | } 690 | set { 691 | if ((object.ReferenceEquals(this.FromField, value) != true)) { 692 | this.FromField = value; 693 | this.RaisePropertyChanged("From"); 694 | } 695 | } 696 | } 697 | 698 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 699 | public int[] OriginalTextSentenceLengths { 700 | get { 701 | return this.OriginalTextSentenceLengthsField; 702 | } 703 | set { 704 | if ((object.ReferenceEquals(this.OriginalTextSentenceLengthsField, value) != true)) { 705 | this.OriginalTextSentenceLengthsField = value; 706 | this.RaisePropertyChanged("OriginalTextSentenceLengths"); 707 | } 708 | } 709 | } 710 | 711 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 712 | public string State { 713 | get { 714 | return this.StateField; 715 | } 716 | set { 717 | if ((object.ReferenceEquals(this.StateField, value) != true)) { 718 | this.StateField = value; 719 | this.RaisePropertyChanged("State"); 720 | } 721 | } 722 | } 723 | 724 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 725 | public string TranslatedText { 726 | get { 727 | return this.TranslatedTextField; 728 | } 729 | set { 730 | if ((object.ReferenceEquals(this.TranslatedTextField, value) != true)) { 731 | this.TranslatedTextField = value; 732 | this.RaisePropertyChanged("TranslatedText"); 733 | } 734 | } 735 | } 736 | 737 | [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)] 738 | public int[] TranslatedTextSentenceLengths { 739 | get { 740 | return this.TranslatedTextSentenceLengthsField; 741 | } 742 | set { 743 | if ((object.ReferenceEquals(this.TranslatedTextSentenceLengthsField, value) != true)) { 744 | this.TranslatedTextSentenceLengthsField = value; 745 | this.RaisePropertyChanged("TranslatedTextSentenceLengths"); 746 | } 747 | } 748 | } 749 | 750 | public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 751 | 752 | protected void RaisePropertyChanged(string propertyName) { 753 | System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; 754 | if ((propertyChanged != null)) { 755 | propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); 756 | } 757 | } 758 | } 759 | 760 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 761 | [System.ServiceModel.ServiceContractAttribute(Namespace="http://api.microsofttranslator.com/V2", ConfigurationName="TranslateService.LanguageService")] 762 | public interface LanguageService { 763 | 764 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/AddTranslation", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationResponse")] 765 | void AddTranslation(string appId, string originalText, string translatedText, string from, string to, int rating, string contentType, string category, string user, string uri); 766 | 767 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/AddTranslation", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationResponse")] 768 | System.Threading.Tasks.Task AddTranslationAsync(string appId, string originalText, string translatedText, string from, string to, int rating, string contentType, string category, string user, string uri); 769 | 770 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/BreakSentences", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/BreakSentencesResponse")] 771 | int[] BreakSentences(string appId, string text, string language); 772 | 773 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/BreakSentences", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/BreakSentencesResponse")] 774 | System.Threading.Tasks.Task BreakSentencesAsync(string appId, string text, string language); 775 | 776 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Detect", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/DetectResponse")] 777 | string Detect(string appId, string text); 778 | 779 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Detect", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/DetectResponse")] 780 | System.Threading.Tasks.Task DetectAsync(string appId, string text); 781 | 782 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/DetectArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/DetectArrayResponse")] 783 | string[] DetectArray(string appId, string[] texts); 784 | 785 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/DetectArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/DetectArrayResponse")] 786 | System.Threading.Tasks.Task DetectArrayAsync(string appId, string[] texts); 787 | 788 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetAppIdToken", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetAppIdTokenResponse")] 789 | string GetAppIdToken(string appId, int minRatingRead, int maxRatingWrite, int expireSeconds); 790 | 791 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetAppIdToken", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetAppIdTokenResponse")] 792 | System.Threading.Tasks.Task GetAppIdTokenAsync(string appId, int minRatingRead, int maxRatingWrite, int expireSeconds); 793 | 794 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguageNames", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguageNamesResponse")] 795 | string[] GetLanguageNames(string appId, string locale, string[] languageCodes, bool useSpokenVariant); 796 | 797 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguageNames", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguageNamesResponse")] 798 | System.Threading.Tasks.Task GetLanguageNamesAsync(string appId, string locale, string[] languageCodes, bool useSpokenVariant); 799 | 800 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForSpeak", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForSpeakRespons" + 801 | "e")] 802 | string[] GetLanguagesForSpeak(string appId); 803 | 804 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForSpeak", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForSpeakRespons" + 805 | "e")] 806 | System.Threading.Tasks.Task GetLanguagesForSpeakAsync(string appId); 807 | 808 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForTranslate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForTranslateRes" + 809 | "ponse")] 810 | string[] GetLanguagesForTranslate(string appId); 811 | 812 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForTranslate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetLanguagesForTranslateRes" + 813 | "ponse")] 814 | System.Threading.Tasks.Task GetLanguagesForTranslateAsync(string appId); 815 | 816 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetTranslations", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsResponse")] 817 | WordListTranslator.TranslateService.GetTranslationsResponse GetTranslations(string appId, string text, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options); 818 | 819 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetTranslations", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsResponse")] 820 | System.Threading.Tasks.Task GetTranslationsAsync(string appId, string text, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options); 821 | 822 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse")] 823 | string Translate(string appId, string text, string from, string to, string contentType, string category, string reservedFlags); 824 | 825 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse")] 826 | System.Threading.Tasks.Task TranslateAsync(string appId, string text, string from, string to, string contentType, string category, string reservedFlags); 827 | 828 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationArrayResponse" + 829 | "")] 830 | void AddTranslationArray(string appId, WordListTranslator.TranslateService.Translation[] translations, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 831 | 832 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/AddTranslationArrayResponse" + 833 | "")] 834 | System.Threading.Tasks.Task AddTranslationArrayAsync(string appId, WordListTranslator.TranslateService.Translation[] translations, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 835 | 836 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsArrayRespons" + 837 | "e")] 838 | WordListTranslator.TranslateService.GetTranslationsResponse[] GetTranslationsArray(string appId, string[] texts, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options); 839 | 840 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/GetTranslationsArrayRespons" + 841 | "e")] 842 | System.Threading.Tasks.Task GetTranslationsArrayAsync(string appId, string[] texts, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options); 843 | 844 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Speak", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/SpeakResponse")] 845 | string Speak(string appId, string text, string language, string format, string options); 846 | 847 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Speak", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/SpeakResponse")] 848 | System.Threading.Tasks.Task SpeakAsync(string appId, string text, string language, string format, string options); 849 | 850 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateArrayResponse")] 851 | WordListTranslator.TranslateService.TranslateArrayResponse[] TranslateArray(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 852 | 853 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateArrayResponse")] 854 | System.Threading.Tasks.Task TranslateArrayAsync(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 855 | 856 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray2", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray2Response")] 857 | WordListTranslator.TranslateService.TranslateArray2Response[] TranslateArray2(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 858 | 859 | [System.ServiceModel.OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray2", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateArray2Response")] 860 | System.Threading.Tasks.Task TranslateArray2Async(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options); 861 | } 862 | 863 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 864 | public interface LanguageServiceChannel : WordListTranslator.TranslateService.LanguageService, System.ServiceModel.IClientChannel { 865 | } 866 | 867 | [System.Diagnostics.DebuggerStepThroughAttribute()] 868 | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] 869 | public partial class LanguageServiceClient : System.ServiceModel.ClientBase, WordListTranslator.TranslateService.LanguageService { 870 | 871 | public LanguageServiceClient() { 872 | } 873 | 874 | public LanguageServiceClient(string endpointConfigurationName) : 875 | base(endpointConfigurationName) { 876 | } 877 | 878 | public LanguageServiceClient(string endpointConfigurationName, string remoteAddress) : 879 | base(endpointConfigurationName, remoteAddress) { 880 | } 881 | 882 | public LanguageServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 883 | base(endpointConfigurationName, remoteAddress) { 884 | } 885 | 886 | public LanguageServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 887 | base(binding, remoteAddress) { 888 | } 889 | 890 | public void AddTranslation(string appId, string originalText, string translatedText, string from, string to, int rating, string contentType, string category, string user, string uri) { 891 | base.Channel.AddTranslation(appId, originalText, translatedText, from, to, rating, contentType, category, user, uri); 892 | } 893 | 894 | public System.Threading.Tasks.Task AddTranslationAsync(string appId, string originalText, string translatedText, string from, string to, int rating, string contentType, string category, string user, string uri) { 895 | return base.Channel.AddTranslationAsync(appId, originalText, translatedText, from, to, rating, contentType, category, user, uri); 896 | } 897 | 898 | public int[] BreakSentences(string appId, string text, string language) { 899 | return base.Channel.BreakSentences(appId, text, language); 900 | } 901 | 902 | public System.Threading.Tasks.Task BreakSentencesAsync(string appId, string text, string language) { 903 | return base.Channel.BreakSentencesAsync(appId, text, language); 904 | } 905 | 906 | public string Detect(string appId, string text) { 907 | return base.Channel.Detect(appId, text); 908 | } 909 | 910 | public System.Threading.Tasks.Task DetectAsync(string appId, string text) { 911 | return base.Channel.DetectAsync(appId, text); 912 | } 913 | 914 | public string[] DetectArray(string appId, string[] texts) { 915 | return base.Channel.DetectArray(appId, texts); 916 | } 917 | 918 | public System.Threading.Tasks.Task DetectArrayAsync(string appId, string[] texts) { 919 | return base.Channel.DetectArrayAsync(appId, texts); 920 | } 921 | 922 | public string GetAppIdToken(string appId, int minRatingRead, int maxRatingWrite, int expireSeconds) { 923 | return base.Channel.GetAppIdToken(appId, minRatingRead, maxRatingWrite, expireSeconds); 924 | } 925 | 926 | public System.Threading.Tasks.Task GetAppIdTokenAsync(string appId, int minRatingRead, int maxRatingWrite, int expireSeconds) { 927 | return base.Channel.GetAppIdTokenAsync(appId, minRatingRead, maxRatingWrite, expireSeconds); 928 | } 929 | 930 | public string[] GetLanguageNames(string appId, string locale, string[] languageCodes, bool useSpokenVariant) { 931 | return base.Channel.GetLanguageNames(appId, locale, languageCodes, useSpokenVariant); 932 | } 933 | 934 | public System.Threading.Tasks.Task GetLanguageNamesAsync(string appId, string locale, string[] languageCodes, bool useSpokenVariant) { 935 | return base.Channel.GetLanguageNamesAsync(appId, locale, languageCodes, useSpokenVariant); 936 | } 937 | 938 | public string[] GetLanguagesForSpeak(string appId) { 939 | return base.Channel.GetLanguagesForSpeak(appId); 940 | } 941 | 942 | public System.Threading.Tasks.Task GetLanguagesForSpeakAsync(string appId) { 943 | return base.Channel.GetLanguagesForSpeakAsync(appId); 944 | } 945 | 946 | public string[] GetLanguagesForTranslate(string appId) { 947 | return base.Channel.GetLanguagesForTranslate(appId); 948 | } 949 | 950 | public System.Threading.Tasks.Task GetLanguagesForTranslateAsync(string appId) { 951 | return base.Channel.GetLanguagesForTranslateAsync(appId); 952 | } 953 | 954 | public WordListTranslator.TranslateService.GetTranslationsResponse GetTranslations(string appId, string text, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options) { 955 | return base.Channel.GetTranslations(appId, text, from, to, maxTranslations, options); 956 | } 957 | 958 | public System.Threading.Tasks.Task GetTranslationsAsync(string appId, string text, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options) { 959 | return base.Channel.GetTranslationsAsync(appId, text, from, to, maxTranslations, options); 960 | } 961 | 962 | public string Translate(string appId, string text, string from, string to, string contentType, string category, string reservedFlags) { 963 | return base.Channel.Translate(appId, text, from, to, contentType, category, reservedFlags); 964 | } 965 | 966 | public System.Threading.Tasks.Task TranslateAsync(string appId, string text, string from, string to, string contentType, string category, string reservedFlags) { 967 | return base.Channel.TranslateAsync(appId, text, from, to, contentType, category, reservedFlags); 968 | } 969 | 970 | public void AddTranslationArray(string appId, WordListTranslator.TranslateService.Translation[] translations, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 971 | base.Channel.AddTranslationArray(appId, translations, from, to, options); 972 | } 973 | 974 | public System.Threading.Tasks.Task AddTranslationArrayAsync(string appId, WordListTranslator.TranslateService.Translation[] translations, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 975 | return base.Channel.AddTranslationArrayAsync(appId, translations, from, to, options); 976 | } 977 | 978 | public WordListTranslator.TranslateService.GetTranslationsResponse[] GetTranslationsArray(string appId, string[] texts, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options) { 979 | return base.Channel.GetTranslationsArray(appId, texts, from, to, maxTranslations, options); 980 | } 981 | 982 | public System.Threading.Tasks.Task GetTranslationsArrayAsync(string appId, string[] texts, string from, string to, int maxTranslations, WordListTranslator.TranslateService.TranslateOptions options) { 983 | return base.Channel.GetTranslationsArrayAsync(appId, texts, from, to, maxTranslations, options); 984 | } 985 | 986 | public string Speak(string appId, string text, string language, string format, string options) { 987 | return base.Channel.Speak(appId, text, language, format, options); 988 | } 989 | 990 | public System.Threading.Tasks.Task SpeakAsync(string appId, string text, string language, string format, string options) { 991 | return base.Channel.SpeakAsync(appId, text, language, format, options); 992 | } 993 | 994 | public WordListTranslator.TranslateService.TranslateArrayResponse[] TranslateArray(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 995 | return base.Channel.TranslateArray(appId, texts, from, to, options); 996 | } 997 | 998 | public System.Threading.Tasks.Task TranslateArrayAsync(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 999 | return base.Channel.TranslateArrayAsync(appId, texts, from, to, options); 1000 | } 1001 | 1002 | public WordListTranslator.TranslateService.TranslateArray2Response[] TranslateArray2(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 1003 | return base.Channel.TranslateArray2(appId, texts, from, to, options); 1004 | } 1005 | 1006 | public System.Threading.Tasks.Task TranslateArray2Async(string appId, string[] texts, string from, string to, WordListTranslator.TranslateService.TranslateOptions options) { 1007 | return base.Channel.TranslateArray2Async(appId, texts, from, to, options); 1008 | } 1009 | } 1010 | } 1011 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/Reference.svcmap: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | true 6 | true 7 | 8 | false 9 | false 10 | false 11 | 12 | 13 | true 14 | Auto 15 | true 16 | true 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/SoapService.wsdl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/WordListTranslator.TranslateService.GetTranslationsResponse.datasource: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | WordListTranslator.TranslateService.GetTranslationsResponse, Service References.TranslateService.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/WordListTranslator.TranslateService.TranslateArray2Response.datasource: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | WordListTranslator.TranslateService.TranslateArray2Response, Service References.TranslateService.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/WordListTranslator.TranslateService.TranslateArrayResponse.datasource: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | WordListTranslator.TranslateService.TranslateArrayResponse, Service References.TranslateService.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/configuration.svcinfo: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/configuration91.svcinfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | BasicHttpBinding_LanguageService 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | StrongWildcard 29 | 30 | 31 | 32 | 33 | 34 | 65536 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement 44 | 45 | 46 | 0 47 | 48 | 49 | 0 50 | 51 | 52 | 0 53 | 54 | 55 | 0 56 | 57 | 58 | 0 59 | 60 | 61 | System.Text.UTF8Encoding 62 | 63 | 64 | Buffered 65 | 66 | 67 | 68 | 69 | 70 | Text 71 | 72 | 73 | System.ServiceModel.Configuration.BasicHttpSecurityElement 74 | 75 | 76 | None 77 | 78 | 79 | System.ServiceModel.Configuration.HttpTransportSecurityElement 80 | 81 | 82 | None 83 | 84 | 85 | None 86 | 87 | 88 | System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement 89 | 90 | 91 | Never 92 | 93 | 94 | TransportSelected 95 | 96 | 97 | (Collection) 98 | 99 | 100 | 101 | 102 | 103 | System.ServiceModel.Configuration.BasicHttpMessageSecurityElement 104 | 105 | 106 | UserName 107 | 108 | 109 | Default 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | http://api.microsofttranslator.com/V2/soap.svc 119 | 120 | 121 | 122 | 123 | 124 | basicHttpBinding 125 | 126 | 127 | BasicHttpBinding_LanguageService 128 | 129 | 130 | TranslateService.LanguageService 131 | 132 | 133 | System.ServiceModel.Configuration.AddressHeaderCollectionElement 134 | 135 | 136 | <Header /> 137 | 138 | 139 | System.ServiceModel.Configuration.IdentityElement 140 | 141 | 142 | System.ServiceModel.Configuration.UserPrincipalNameElement 143 | 144 | 145 | 146 | 147 | 148 | System.ServiceModel.Configuration.ServicePrincipalNameElement 149 | 150 | 151 | 152 | 153 | 154 | System.ServiceModel.Configuration.DnsElement 155 | 156 | 157 | 158 | 159 | 160 | System.ServiceModel.Configuration.RsaElement 161 | 162 | 163 | 164 | 165 | 166 | System.ServiceModel.Configuration.CertificateElement 167 | 168 | 169 | 170 | 171 | 172 | System.ServiceModel.Configuration.CertificateReferenceElement 173 | 174 | 175 | My 176 | 177 | 178 | LocalMachine 179 | 180 | 181 | FindBySubjectDistinguishedName 182 | 183 | 184 | 185 | 186 | 187 | False 188 | 189 | 190 | BasicHttpBinding_LanguageService 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/soap.wsdl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/soap.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/soap1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/soap2.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | -------------------------------------------------------------------------------- /WordListTranslator/Service References/TranslateService/soap3.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | -------------------------------------------------------------------------------- /WordListTranslator/WordListTranslator.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {DE37C1B8-E41C-4912-9AE4-2F22C6BBFD6D} 8 | Exe 9 | Properties 10 | WordListTranslator 11 | WordListTranslator 12 | v4.5 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | True 53 | True 54 | Reference.svcmap 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | Designer 63 | 64 | 65 | Designer 66 | 67 | 68 | Designer 69 | 70 | 71 | Designer 72 | 73 | 74 | 75 | Reference.svcmap 76 | 77 | 78 | Reference.svcmap 79 | 80 | 81 | Reference.svcmap 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | WCF Proxy Generator 99 | Reference.cs 100 | 101 | 102 | 103 | 110 | --------------------------------------------------------------------------------