Translation issue, Please use Translate v2

Dec 22, 2011 at 6:20 AM

Great tool, it took me a while to learn it, but it's already saving me a good time. 

One issue with the translation though:

After adding new files and selecting automatic translation, the following message was added to all entries in the new files:

# Please use Translate v2.  See http://code.google.com/apis/language/translate/overview.html

So it seems you're using google, and the API has changed :D

Coordinator
Dec 22, 2011 at 8:05 AM
Edited Dec 22, 2011 at 8:18 AM

I've just uploaded a new version (2.2.0.9) that covers this change. Please be aware that you have to purchase an API key from Google to continue using Google Translate.

Dec 26, 2011 at 2:12 PM

Thanks for the quick answer.

I have subscribed to one Microsoft Translator API key, and tried with both "Client ID" and "Client Secret", even though the interface mentions "App ID". Nevertheless, none worked, this is the expcetion I received:

 

System.Exception

-----------------

ArgumentException: Invalid appId
Parameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444

-----------------

at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 240
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.GetSourceLanguages(String appID) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 64
   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.InitiallyFillLists() in C:\P\Zeta Resource Editor\Source\Main\UI\Translation\QuickTranslationForm.cs:line 88
   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.QuickTranslationForm_Load(Object sender, EventArgs e) in C:\P\Zeta Resource Editor\Source\Main\UI\Translation\QuickTranslationForm.cs:line 206
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)
   at ZetaResourceEditor.UI.Helper.Base.FormBase.OnLoad(EventArgs e) in C:\P\Zeta Resource Editor\Source\Main\UI\Helper\Base\FormBase.cs:line 57
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Exception
{
 Message="ArgumentException: Invalid appId\\r\\nParameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444",
 Data=
 [
 ]
,
 InnerException=SoapHeaderException
 {
  Actor="",
  Code=XmlQualifiedName
  {
   Namespace="http://schemas.xmlsoap.org/soap/envelope/",
   Name="Client",
   IsEmpty=False
  },
  Detail=null,
  Lang="en-US",
  Node="",
  Role="",
  SubCode=null,
  Message="ArgumentException: Invalid appId\\r\\nParameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444",
  Data=
  [
  ]
,
  InnerException=null,
  TargetSite=RuntimeMethodInfo: ReadResponse,
  StackTrace="   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\\r\\n   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.com.microsofttranslator.api.SoapService.GetLanguagesForTranslate(String appId) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Web References\\com.microsofttranslator.api\\Reference.cs:line 401\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass3.<GetSourceLanguages>b__1() in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 67\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 235",
  HelpLink=null,
  Source="System.Web.Services"
 },
 TargetSite=RuntimeMethodInfo: protectWSCall,
 StackTrace="   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 240\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.GetSourceLanguages(String appID) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 64\\r\\n   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.InitiallyFillLists() in C:\\P\\Zeta Resource Editor\\Source\\Main\\UI\\Translation\\QuickTranslationForm.cs:line 88\\r\\n   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.QuickTranslationForm_Load(Object sender, EventArgs e) in C:\\P\\Zeta Resource Editor\\Source\\Main\\UI\\Translation\\QuickTranslationForm.cs:line 206\\r\\n   at System.Windows.Forms.Form.OnLoad(EventArgs e)\\r\\n   at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)\\r\\n   at ZetaResourceEditor.UI.Helper.Base.FormBase.OnLoad(EventArgs e) in C:\\P\\Zeta Resource Editor\\Source\\Main\\UI\\Helper\\Base\\FormBase.cs:line 57\\r\\n   at System.Windows.Forms.Form.OnCreateControl()\\r\\n   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\\r\\n   at System.Windows.Forms.Control.CreateControl()\\r\\n   at System.Windows.Forms.Control.WmShowWindow(Message& m)\\r\\n   at System.Windows.Forms.Control.WndProc(Message& m)\\r\\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\\r\\n   at System.Windows.Forms.ContainerControl.WndProc(Message& m)\\r\\n   at System.Windows.Forms.Form.WmShowWindow(Message& m)\\r\\n   at System.Windows.Forms.Form.WndProc(Message& m)\\r\\n   at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)\\r\\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\\r\\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\\r\\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)",
 HelpLink=null,
 Source="ZetaResourceEditor.RuntimeBusinessLogic"
}
 -->ArgumentException: Invalid appId
Parameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444System.Web.Services.Protocols.SoapHeaderException

-----------------

ArgumentException: Invalid appId
Parameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444

-----------------

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at ZetaResourceEditor.RuntimeBusinessLogic.com.microsofttranslator.api.SoapService.GetLanguagesForTranslate(String appId) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Web References\com.microsofttranslator.api\Reference.cs:line 401
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass3.<GetSourceLanguages>b__1() in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 67
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 235

SoapHeaderException
{
 Actor="",
 Code=XmlQualifiedName
 {
  Namespace="http://schemas.xmlsoap.org/soap/envelope/",
  Name="Client",
  IsEmpty=False
 },
 Detail=null,
 Lang="en-US",
 Node="",
 Role="",
 SubCode=null,
 Message="ArgumentException: Invalid appId\\r\\nParameter name: appId : ID=3644.V2_Soap.GetLanguagesForTranslate.34E7C444",
 Data=
 [
 ]
,
 InnerException=null,
 TargetSite=RuntimeMethodInfo: ReadResponse,
 StackTrace="   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\\r\\n   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.com.microsofttranslator.api.SoapService.GetLanguagesForTranslate(String appId) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Web References\\com.microsofttranslator.api\\Reference.cs:line 401\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass3.<GetSourceLanguages>b__1() in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 67\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 235",
 HelpLink=null,
 Source="System.Web.Services"
}

Coordinator
Dec 27, 2011 at 5:31 AM

The App ID is something similar to "FE345E5DE648285BC278902E265503D18C311BBF" (this is the built-in key for Microsoft Bing Translator)

Coordinator
Dec 27, 2011 at 5:40 AM

Arrgh! Just saw that Microsoft changes their APIs, too. I'll see how I can adjust this.

Coordinator
Dec 31, 2011 at 12:54 PM

Just uploaded a new version that is both capable of communicating with Microsoft Translator as well as Google Translator.

Please note that both of them require you now to purchase an API key.