updated assemble.exe in dxgettext repository

 Delphi, dxgettext  Comments Off on updated assemble.exe in dxgettext repository
Mar 012013
 

My colleague Daniel has added an option to the dxgettext assemble tool to specify a different directory where to look for the locale data. This is meant to be used, when you compile the executable to a different directory than the one in which the locale subdirectory is located. Since dxgettext would use the locale directory directly if it exists, you can never be sure where your translations come from. Compiling to a different directory solves this issue.

There isn’t a new executable release yet, but you can just check out the dxgettext sources and compile it yourself. It is located in the subdirectory dxgettext\tools\assemble. Alternatively I have a compiled executable in my buildtools on sourceforge, but beware: I take no responsibility regarding viruses or other problems this executable could cause.

 Posted by on 2013-03-01 at 13:17

Bugfixes and improvements to gnugettext.pas

 Delphi, dxgettext  Comments Off on Bugfixes and improvements to gnugettext.pas
Dec 292012
 

Some might know that I have been using and contributing to the GnuGetText for Delphi and C++ Builder project. I just had another look into the gnugettext unit and found that it was rather difficult to understand the logic behind all these if(n)defs that refer to specific Delphi versions and older.

I have now changed the way it works by introducing conditional defines based on compiler / RTL features rather than a range of Delphi versions. These defines are set depending on the Delphi version that supports them. There are currently:

  • dx_has_Unsafe_Warnings
  • dx_has_WideStrings
  • dx_Hinstance_is_Integer
  • dx_NativeInt_is_Integer
  • dx_StringList_has_OwnsObjects
  • dx_GetStrProp_reads_unicode

Also, there was a bug because of the these difficult to read ifdefs regarding the handling of the TStringList.OwnsObjects which exists in Delphi 2009 and later. This should be fixed now as well.

And last but not least I removed a warning when compiling with Delphi XE3.

These changes are in the subversion repository on SourceForge.

Be warned: I have only superficially tested them. If you find a problem with it, please let me know.

 Posted by on 2012-12-29 at 14:46

GnuGetText.pas with support for TWideStrings properties

 Delphi, dxgettext  Comments Off on GnuGetText.pas with support for TWideStrings properties
Nov 232012
 

The current version of GnuGetText for Delphi and C++ Builder does not support properties of type TWideStrings. Since I needed this (FastReport uses them for storing the report memos), I have added that feature. The new unit is in the subversion repository on SourceForge.

Be warned: I have only tested it with Delphi 2007. If you find a problem with it, please let me know.

 Posted by on 2012-11-23 at 12:40

gnugettext.pas fixes

 Delphi, dxgettext  Comments Off on gnugettext.pas fixes
Nov 032012
 

I don’t know whether anybody else but Lars knows that I have been a contributor to the dxgettext (GnuGettext for Delphi and C++ Builder) project. As such I have just committed fixes to the gnugettext.pas version in the repository that makes it compile with all Delphi versions from 6 to XE3 again. I have only tested functionality with Delphi 2007 and Delphi XE2 and found no issues. If you are using a different Delphi version you might want to do some tests before using that new version.

Btw. if you haven’t had a look at Gorm, the translation tool that Lars wrote (and to which I  have contributed heavily), you are missing out big time.

 Posted by on 2012-11-03 at 21:10