Create a project to use translation service

Jan 4, 2012 at 11:27 AM

Very nice tool.

I just wanted to mention (in case someone else has the same problem) that the translation service functionality only works when a project file is used. Otherwise it silently fails. So if you're stuck trying to get Google Translate or Microsoft Translator working, just make sure to create a new project first.

Cheers

Coordinator
Jan 4, 2012 at 11:41 AM

Thank you, I'll try to see whether I can change this behavior.

Also, please see the official website and the official discussion forum for further updates.

Cheers
Uwe 

Mar 3, 2012 at 8:51 AM

I'm using the latest version but I dont' seem to be able to use the bing service for translations.

I always get the (400) Bad Request error.

System.Net.WebException

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

The remote server returned an error: (400) Bad Request.

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

at System.Net.HttpWebRequest.GetResponse()
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.makeTranslateRestCallPost(String url, IEnumerable`1 parameters, ICollection`1 headers) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingTranslationHelper.cs:line 145
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.GetAccessToken(String clientID, String clientSecret) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingTranslationHelper.cs:line 49
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass3.<GetSourceLanguages>b__1() in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 77
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 244
   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.GetSourceLanguages(String appID, String appID2) in C:\P\Zeta Resource Editor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 74
   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.InitiallyFillLists() in C:\P\Zeta Resource Editor\Source\Main\UI\Translation\QuickTranslationForm.cs:line 94
   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.QuickTranslationForm_Load(Object sender, EventArgs e) in C:\P\Zeta Resource Editor\Source\Main\UI\Translation\QuickTranslationForm.cs:line 217
   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)

WebException
{
 Status=ProtocolError,
 Response=HttpWebResponse
 {
  IsMutuallyAuthenticated=False,
  Cookies=CookieCollection
  {
   IsReadOnly=True,
   Count=0,
   IsSynchronized=False,

  },
  Headers=WebHeaderCollection
  {
   Count=11,
   Keys=KeysCollection
   {
    Count=11
   },
   AllKeys=String[]
   {
    Length=11,
    LongLength=11,
    Rank=1,
,
    IsReadOnly=False,
    IsFixedSize=True,
    IsSynchronized=False

    "X-AspNetMvc-Version",
    "x-ms-request-id",
    "X-Content-Type-Options",
    "Content-Length",
    "Cache-Control",
    "Content-Type",
    "Date",
    "Set-Cookie",
    "Server",
    "X-AspNet-Version",
    "X-Powered-By"
   },
  },
  ContentLength=167,
  ContentEncoding="",
  ContentType="application/json; charset=utf-8",
  CharacterSet="utf-8",
  Server="Microsoft-IIS/7.5",
  LastModified=03/03/2012 10:48:22,
  StatusCode=BadRequest,
  StatusDescription="Bad Request",
  ProtocolVersion=Version
  {
   Major=1,
   Minor=1,
   Build=-1,
   Revision=-1,
   MajorRevision=-1,
   MinorRevision=-1
  },
  ResponseUri=Uri
  {
   AbsolutePath="/v2/OAuth2-13",
   AbsoluteUri="https://datamarket.accesscontrol.windows.net/v2/OAuth2-13",
   Authority="datamarket.accesscontrol.windows.net",
   Host="datamarket.accesscontrol.windows.net",
   HostNameType=Dns,
   IsDefaultPort=True,
   IsFile=False,
   IsLoopback=False,
   IsUnc=False,
   LocalPath="/v2/OAuth2-13",
   PathAndQuery="/v2/OAuth2-13",
   Port=443,
   Query="",
   Fragment="",
   Scheme="https",
   OriginalString="https://datamarket.accesscontrol.windows.net/v2/OAuth2-13",
   DnsSafeHost="datamarket.accesscontrol.windows.net",
   IsAbsoluteUri=True,
   Segments=String[]
   {
    Length=3,
    LongLength=3,
    Rank=1,
,
    IsReadOnly=False,
    IsFixedSize=True,
    IsSynchronized=False

    "/",
    "v2/",
    "OAuth2-13"
   },
   UserEscaped=False,
   UserInfo=""
  },
  Method="POST",
  IsFromCache=False
 },
 Message="The remote server returned an error: (400) Bad Request.",
 Data=
 [
 ]
,
 InnerException=null,
 TargetSite=RuntimeMethodInfo: GetResponse,
 StackTrace="   at System.Net.HttpWebRequest.GetResponse()\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.makeTranslateRestCallPost(String url, IEnumerable`1 parameters, ICollection`1 headers) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingTranslationHelper.cs:line 145\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.GetAccessToken(String clientID, String clientSecret) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingTranslationHelper.cs:line 49\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass3.<GetSourceLanguages>b__1() in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 77\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 244\\r\\n   at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.GetSourceLanguages(String appID, String appID2) in C:\\P\\Zeta Resource Editor\\Source\\RuntimeBusinessLogic\\Translation\\BingSoapTranslationEngine.cs:line 74\\r\\n   at ZetaResourceEditor.UI.Translation.QuickTranslationForm.InitiallyFillLists() in C:\\P\\Zeta Resource Editor\\Source\\Main\\UI\\Translation\\QuickTranslationForm.cs:line 94\\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 217\\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="System"
}