Variable content in language files

Got a problem you cannot solve? Try here.
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Variable content in language files

Postby mikKummerfeld » Tue Dec 18, 2012 11:11 am

Hello Guys,

when are you going to fix the problem, that very often, the content of variables will be written into the language.text.

E.g
I have a variable which is $versionx$ (content: 1.0.0.31). I increase the variable on every build and this variable of course must not be translated.

But when I open the language manager I find the following:

Original: 1.0.0.31
Translated: 1.0.0.18

sssss.png
sssss.png (3.98 KiB) Viewed 5124 times


This is very very bad, because when I am at 1.0.0.31, the compiled setup.exe still shows 1.0.0.18 in GUI.

Problem occures in IA Trans Manager and TransManager Pro

Heiko
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Variable content in language files

Postby FrancescoT » Tue Dec 18, 2012 12:00 pm

Dear Heiko,

I really believe that you are not using InstallAware correctly.

When an IA project uses translations, every time you update the string project resources (... as your Version variable and as well any other variable and Dialogs resource), you shoud export strings project to translator (... with the provided IA localization wizard).
Doing this and selecting to export the updated strings only (if not already exported), you will have all the strings updated.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Variable content in language files

Postby mikKummerfeld » Tue Dec 18, 2012 12:06 pm

I do that this way. I export always after inserting some labels, etc and then translating and insert to project.
This is a bug...

1. Changing labels, radiobuttons, titels etc in the dialogs
2. Export using your wizard (first option) with preserve to D:\projects\projectname\translation
3. Open TransManager and translate new texts or existing ones
4. Import using you wizard (third option) and overwrite existing resources
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Variable content in language files

Postby FrancescoT » Tue Dec 18, 2012 12:50 pm

Dear Heiko,

Now I see what you mean ... and I found the same.

Let me verify it with the dev team.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Variable content in language files

Postby mikKummerfeld » Wed Dec 19, 2012 8:07 am

Ok thank you. For me with hundreds of variables like this, is very annoying...
I have now about 17 different setup projects...
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Variable content in language files

Postby FrancescoT » Wed Dec 19, 2012 1:12 pm

Dear Heiko,

it works in that way because export to translator process, if it is used preserving existing translations, keeps the first assigned language value.

When you export for the first time project string resources, the value assigned for a variable or a resource, are assigned as well to the language resource.
Due of this, exporting again project string resources preserving existing translations, the Wizard translator just does what it supposed to do and keeps the previous translation. To verify what I'm saying, use the "mTranslator.exe" IA tool to inspect translation resource files contents.

I use as you "Translation Manager Pro" with my personal project and honestly, I overwrite always existing translations and then I use the translate command to immediatelly restore translation.

I suppose that "Translation Manager Pro" probably uses a different approach when displaying string translations and it represents as empty, those that contains the same original string ... but in reality it not true.

I hope this clarify any doubt.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 83 guests