First language

Aug 29, 2011 at 2:24 PM
Edited Aug 29, 2011 at 2:25 PM

Hello,

Why only English for the first language in NLocalizerApp ?

My project is in French and i need to translate in english.

Coordinator
Aug 29, 2011 at 3:18 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Aug 29, 2011 at 3:20 PM

Thanks :)

You have right. I will make this option in new version of NLocalizer.

Aug 29, 2011 at 3:45 PM

Good news, thanks, but i have a another problem ...

 

My project is  winform but there's two WPF Usercontrols on it.

 

Translator.Translate(Me)n generate an error :

 

 

Interception de System.Exception
  Message=NLocalizer: compile error - Le fichier de métadonnées 'windowsformsintegration.dll' est introuvable. Please correct .lang files.
  Source=NLocalizer
  StackTrace:
       à NLocalizer.RuntimeCompiler.Compile(Translation translation, String directoryName, List`1 compileDlls, List`1 compileUsings, List`1 compileMacros) dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\RuntimeCompiler.cs:ligne 483
       à NLocalizer.RuntimeCompiler.Compile(Translation translation, String directoryName) dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\RuntimeCompiler.cs:ligne 443
       à NLocalizer.RuntimeCompiler.Compile(Translation translation) dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\RuntimeCompiler.cs:ligne 419
       à NLocalizer.Translator.CompileIfNecessary() dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\Translator.cs:ligne 99
       à NLocalizer.Translator.GetRuntimeClass() dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\Translator.cs:ligne 108
       à NLocalizer.Translator.Translate() dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\Translator.cs:ligne 137
       à NLocalizer.Translator.Translate(Object obj) dans c:\pk\my\cs\NLocalizer\NLocalizer\NLocalizer\Translator.cs:ligne 128
       à ZViewTVDotNet.Mainform.LoadLanguagesMenu_Click(Object sender, EventArgs e) dans H:\zvtv\Form\Mainform.vb:ligne 1324
  InnerException:

Tomorrow, I will try to add a reference to windowsformsintegration.dll in the referencefor your project (Project-> proprieties-> references tab) . Perhaps this correct the bug ???

Coordinator
Aug 29, 2011 at 9:49 PM

NLocalizer working only with Windows.Forms library (not WPF). I haven't plans to make WPF version :)

Coordinator
Aug 30, 2011 at 3:32 AM

I changed my mind. I will make WPF version of NLocalizer.

Coordinator
Aug 30, 2011 at 3:33 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Aug 30, 2011 at 6:07 AM
Edited Aug 30, 2011 at 6:08 AM

Is not a wpf project but a winform project with two ElementHost (names : HoteOSDChaine, HoteOSDVolume)

In this ElementHosts, there are two wpf UserControl  (names : cpb, AffichageTexte))

Coordinator
Aug 30, 2011 at 6:27 AM

Please try insert additional line in .lang file:

module windowsformsintegration.dll, 

If this not help You, please send me Your program. May be without source code but with language files. I will figure out what's going on.

Aug 30, 2011 at 8:43 AM
Edited Aug 30, 2011 at 8:44 AM

No luck !

I also try to insert

"parameters.ReferencedAssemblies.Add((typeof(System.Windows.Forms.Integration.ElementHost)).Assembly.Location);"

for the CompilerParameters, but I still have the error.

Coordinator
Aug 30, 2011 at 8:47 AM

Please prepare example with error for me or send me Your compiled project. I will find solution.

Aug 30, 2011 at 9:43 AM
Well, i send you a modified NLocalizerVB.Example and a nlocalizer (.NET 4.0).

Thanks for your help.


From: [email removed]
To: [email removed]
Date: Tue, 30 Aug 2011 01:48:01 -0700
Subject: Re: First language [nlocalizer:270775]

From: kap
Please prepare example with error for me or send me Your compiled project. I will find solution.
Read the full discussion online.
To add a post to this discussion, reply to this email (nlocalizer@discussions.codeplex.com)
To start a new discussion for this project, email nlocalizer@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.


Coordinator
Aug 30, 2011 at 1:33 PM

Ok. I have files. I will give You information here when I finish the diagnosis.

Coordinator
Sep 1, 2011 at 3:12 PM
Edited Sep 1, 2011 at 6:24 PM

I published new version NLocalizer-1.7.608. Please check. I think, it's solve Your problem with windowsformsintegration.dll.

Please, give me feedback if everything working fine :)

Sep 1, 2011 at 6:54 PM

i have this error :

NLocalizer: compile error - La méthode surchargée correspondant le mieux à 'NLocalizer.Translation.SetProperty(string, string, string, string, bool)' possède des arguments non valides. Please correct .lang files.

 

goolgle traduction :

NLocalizer: compile error - The overloaded method that best fits 'NLocalizer.Translation.SetProperty (string, string, string, string, bool)' has some invalid arguments. Please correct. Lang files.
Sep 1, 2011 at 8:08 PM

Ignore my previous post. I left un object.tag

 

Thanks for all.