Hot to use "Option to use TranslationData as text in DFM", provided with 7.8.0, at an existing project

This forum designated to discuss the TsiLang Components Suite.
Post Reply
Gargelkarg
Posts: 6
Joined: Thu Jan 19, 2012 5:42 pm

Hot to use "Option to use TranslationData as text in DFM", provided with 7.8.0, at an existing project

Post by Gargelkarg »

I have an existing project with a lot of frames and forms, where the translations are stored "binary" in the DFM file.
How can I use the option to save the translation data as text?
What is the intended way to convert?

isiticov
Site Admin
Posts: 2217
Joined: Thu Nov 21, 2002 3:17 pm

Re: Hot to use "Option to use TranslationData as text in DFM", provided with 7.8.0, at an existing project

Post by isiticov »

Hello,

The cite from the help file:
In case you want to use textual representation of TranslationData in DFM and ONLY if you don't use your projects with older IDE versions you can do the following:

1. Full Source edition is required.
2. Open SI.INC file located in {TsiLang}\Units folder.
3. Activate USETEXTDATA define by removing the space before $DEFINE. So the line will look like:

{$DEFINE USETEXTDATA}

4. Open TsiLang run-time package (the one with _r postfix) into IDE and re-build it.
5. Open TsiLang design-time package (the one without _r postfix) into IDE and re-build it.

Next time you open your DFM files into IDE and save it the TranslationData property will be converted to text and you will be able to effectively use Version Control System.

Please note: you will need to perform these actions every time upon downloading of a new version of TsiLang Components Suite. This shall be done after installing new version and BEFORE opening and saving your project in IDE. Otherwise the TranslationData property will be converted back to binary representation as by default TsiLang packages are built with this option deactivated in order to support the full range of IDE versions.
So the "conversion" will require just re-save the file after activating the option.
Hope this helps.

Post Reply