Member Controls

Goto page 1 2 3 4 5      Next
Developers > Translating SimPE
EmilyLink to postposted: Wed Jul 13, 2005 4:09 pm
Avator for Emily

Member since:
 2006-04-17
Posts:
 361
We did put up a Tutorial, that explains, how you could Translate SimPe into another Language Version.

You can post Questions aboutthe Translation process here.
SériLink to postposted: Fri Aug 19, 2005 1:47 pm
Avator for Séri

Member since:
 2005-08-17
Posts:
 8
hi !!! I would like to know if i must translate words in a "{....}" and words in window "name" from localisation.resx ???

thanks
wlodiLink to postposted: Fri Aug 19, 2005 1:55 pm
Avator for wlodi

Member since:
 2005-08-18
From:
 Poland
Posts:
 6
How can I create the localized versions of files that have the english strings inside but the language cannot be changed within Properties? (like a Localization.cs and .resx). How can I translate files like PackageDetailDock.cs, when the window cannot be opened and language cannot be changed within Properties (error while loading the designer - "There is no designer for the class TD.SandDock.UserDockableWindow.")?
How can I be sure if I have translated the SimPe options correctly, when I'm unable to change the main page and preview the other pages (only SimPe Settings are visible and I cannot change page to any other... I think that must be possible somehow, but I'm too noob). Help me, please. :?
quaxiLink to postposted: Fri Aug 19, 2005 3:36 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
@Séri:
No, anyway you should use the "Form View" for the translation, as the translated text might get longer, and therefor the Size of the Controls has to be changed as well.

@wlodi:
The only cas that happens in the Localization.resx. You simply double click on the localization.resx, which will pop up a basic string Editor. Now translate all strings in the right Hand Column.

The SimPe option Screen is multi layered. Right click on the Headline of an Option Window, and send it to the Back. That way another Option Screen should get visible.

And for tha designer Error, you need to install SandDock and SandBar from http://www.divelements.co.uk/net/
pljonesLink to postposted: Fri Aug 19, 2005 6:28 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
:oops:

I must find out how to make some of my nasty hacks i18n compliant. Currently I've some hardcoded English in the PJSE code, because I was trying to get stuff "just working". This will stop people easily translating some of my bits...

Is there a particularly good place to look to see how the Localisation.Manager routines work? (That is, how I set up my strings.) I can't just send it random text and expect a useful response, can I?
wlodiLink to postposted: Sat Aug 20, 2005 1:56 am
Avator for wlodi

Member since:
 2005-08-18
From:
 Poland
Posts:
 6
Help me, I'm stuck again! I have installed SandDock and SandBar and this is what I get when trying to open Main.cs in design mode:

Image

A compact list of errors:

Unable to cast object of type 'TD.SandDock.TabControl' to type 'TD.SandDock.TabControl'.

at TD.SandDock.Design.TabControlDesigner.Initialize(IComponent component)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

The variable 'dc' is either undeclared or was never assigned.

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

Unable to cast object of type 'TD.SandDock.SandDockManager' to type 'TD.SandDock.SandDockManager'.

at TD.SandDock.Design.SandDockManagerDesigner.Initialize(IComponent component)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

The variable 'sdm' is either undeclared or was never assigned.

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

The variable 'sdm' is either undeclared or was never assigned.

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

The variable 'sdm' is either undeclared or was never assigned.

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)


There are also two errors (minor?) connected with absence of files Resources.rsx and Settings.settings in LocalizeSimpe.rar (both should be in Properties folder). Please, help, I'm really determined to make that translation. :P
quaxiLink to postposted: Sun Aug 21, 2005 5:30 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
That is because They did release a newer Version of SandDock and SandBar. Please deinstallt hem again (sorry for that), and try the following:

In Visual Studio 2005 (after you did a restart of VS, before you load the SimPe Project), go to the "Tools->Chooes Tool Menu Items" Menu.

There click on Browse, and Select the SandBar.dll/SandDock.dll that was within the Extracted .rar (in the references SubFolder) File.

Now open the SImPE Project, and try again. That should solve the probles you did encounter.
wlodiLink to postposted: Tue Aug 23, 2005 10:47 am
Avator for wlodi

Member since:
 2005-08-18
From:
 Poland
Posts:
 6
Ok, but LocalizeSimpe.rar contains only SandDock.dll. I've used it as you said and now there are only 4 forms that cannot be opened:

PackageDetailDock.cs: There is no designer for the class TD.SandDock.UserDockableWindow.

FamilyTiesForm.cs: Could not load file or assembly 'simpe.filehandler, Version=1.0.2040.35042, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Nie można odnaleźć określonego pliku. (it means that specified file cannot be found and it popped twice - wlodi); Could not load file or assembly 'simpe.interfaces, Version=1.0.2040.35039, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Nie można odnaleźć określonego pliku. ; The variable 'pool' is either undeclared or was never assigned. (twice - wlodi);

ExtSrelUI.cs: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: ExtSrel --- The base class 'SimPe.Windows.Forms.WrapperBaseControl' could not be loaded. Ensure the assembly has been referenced and compiled.

ExtSDescUI.cs: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: ExtSDesc --- The base class 'SimPe.Windows.Forms.WrapperBaseControl' could not be loaded. Ensure the assembly has been referenced and compiled.


I'd like to mention, that all of these are listed as "warnings" on the error list. They're probably not connected with the absence of SandBar.dll. Thanks for helping me Quaxi.
quaxiLink to postposted: Tue Aug 23, 2005 8:05 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
No, no, no! Thank you for translating :)

If those Files are missing, I'll add them for the next Release, until then you can simply copy them from SimPe 0.44c into the References Folder.

Then Right click on the "References" Item in the Tree on the left Hand side and click "Add Reference..." Switch to the "Browse" Tab and add the missind .dll Files.
wlodiLink to postposted: Tue Aug 23, 2005 9:19 pm
Avator for wlodi

Member since:
 2005-08-18
From:
 Poland
Posts:
 6
Thanks Quaxi! Now there is only one form that doesn't work :mrgreen: - PackageDetailDock.cs with still the same error, so I have created a "PackageDetailDock.pl-PL.resx" file, there are only two strings to translate and their positions probably don't even need to be adjusted. Where am I supposed to send the translation when it's complete?

Um.. there is also an error, when I'm translating main window. When I browse in Properties and when I click one of TD.SandBar.ButtonItem e.g. biGroupList, Visual C# "encounters a problem" and closes.

Error signature:
AppName: vcsexpress.exe AppVer: 8.0.50215.44 AppStamp:42577231
ModName: kernel32.dll ModVer: 5.1.2600.2180 ModStamp:411093b2
fDebug: 0 Offset: 0001eb33
Goto page 1 2 3 4 5      Next


viewthread, 0, 0, Translating-SimPE