Jump to content
Anders Melander

ANN: Better Translation Manager released

Recommended Posts

Thank you for the quick reply. I am not a very experienced programmer. I only have fun programming small utilities for my own use. All the programs I created do not have DRC files in the folders. And I didn't find anything in the HELP file. Do I need to add a directive at the beginning of my program?

Share this post


Link to post
56 minutes ago, GillesCat said:

Do I need to add a directive at the beginning of my program?

In newer versions of Delphi there's an project option "Output resource string .drc file" but I don't believe that it's there in Delphi 5. Since Delphi 5 was the first version to include the ITE and the ITE uses DRC files it must be possible somehow. I have the Delphi 5 files on my system but I'm afraid I don't have it installed so I can't run it to find out.

 

Maybe try to compile with the "detailed map file" linker option enabled and see if that makes a difference.

Share this post


Link to post

As I briefly mentioned yesterday I've released v1.2.7797 of Better Translation Manager:

Changes since previous release v1.1.7465:

  • Import translations from CSV and other delimited text formats.
  • Small reduction in resource module size (1.2 Kb).
  • Added check for out of date DRC files.
  • Machine translation using Microsoft Terminology Service now works again.
  • A bunch of minor bug fixes.

Get it while it's hot:

The CSV import:

image.thumb.png.13fed997f3532a4129edfeb9d826ad45.png

image.thumb.png.a60bd0296bd79833912040a8e070c2fe.png

 

  • Like 4

Share this post


Link to post

Hi.

 

I just install version 1.3.8024 and now amResourceModuleBuider is not working. Previous version (I believe 1.1) was woking.

This is my code:

c:\Projects\TestOfficePro\tMakerWin>amResourceModuleBuilder.exe c:\Projects\TestOfficePro\tMakerWin\tmakerWin32.xlat -v -b
amTranslationManager resource module builder version 0.0.0.0

Loading project: tmakerWin32...
Project information:
  Source file    : c:\Projects\TestOfficePro\tMakerWin\Win32\Release\tmaker.exe
  Source Language: Locale=0409, Name=Английский (США)
  Symbol file    : c:\Projects\TestOfficePro\tMakerWin\Win32\Release\tmaker.drc
  Target language: Translated=   786, Locale=0419, Name=Русский (Россия)
  Target language: Translated=     0, Locale=0427, Name=Литовский (Литва)
  Modules        :     64
  Items          :  4 171
  Properties     :  5 651
Error: Source file not found:

In GUI I can build all languages. Also, in GUI version when I press "Locate source..." button it's nothing happens.

 

Regards, Ravil.

  • Thanks 1

Share this post


Link to post

Hi, Anders,

 

Thanks a lot for yet another great tool. Totally straightforward, fast and hasslefree to use.

 

I have 3 little issues with it, which I can work around, but maybe you'd like to know (newest compiled version 1.3.8055.21506):

 

1. On my 4K-monitor scaled 200% the ribbon text is barely readable. Minimizing the ribbon displays the text correctly when folded out.

2. Translating a rather long string using the text-editor inserts line breaks at the end of every displayed line.

    Translation manager then rightly complains about mismatching line breaks.

    I tried to find a setting which turns this off, but couldn't.

    Using notepad for the translation and pasting the translated string into the in-place-editor cuts off the string.

3. The font of the text-editor is rather large on my display, adding to the problem in 2.

 

Thanks again,

 

Renate

Share this post


Link to post
11 hours ago, Renate Schaaf said:

I have 3 little issues with it, which I can work around, but maybe you'd like to know

Thanks for the feedback. Keep it coming!

 

I have not done any high DPI testing whatsoever but I'll see if I can squeeze that in today. Since I'm using DevExpress control it should mainly be a case of providing the correct manifest settings. - I hope 🙂

The long string problem has already been fixed in commit 6d52cf4438139b3c79c4776d444d85610782a5fc (26 jan 2022) but I haven't uploaded a build of that version.

Share this post


Link to post
1 hour ago, Anders Melander said:

Since I'm using DevExpress control it should mainly be a case of providing the correct manifest settings. - I hope 🙂

No such luck. I've reproduced the problem but it seems to be caused by a bug in DevExpress. I'll have a closer look at it tonight.

Share this post


Link to post

@Anders Melander Any chance for adding multi-line support in translations? I have a couple of button captions like

 

Do something
Shift + F9

 

If not needed, I wouldn't add the key combinations from code.

Share this post


Link to post
14 minutes ago, aehimself said:

Any chance for adding multi-line support in translations?

I'm not sure what you're asking. Do you mean like this:

image.thumb.png.b45c14e012e05b1170473910d4b6392f.png

  • Thanks 1

Share this post


Link to post
1 hour ago, aehimself said:

Yes, exactly 🙂 Didn't see the button there. Thanks!

Didn't you read the documentation? Oh, wait... 🙂

I think there's a change request to have the editor shown automatically if the source text contains carriage returns.

Share this post


Link to post

Seems the editor adds an extra line break to the end of the translation 😞

 

image.png.c6a4ade4d1d389e539a863bac09aa948.png

 

image.png.b496e07291c8f4ff977bdfe8880f34ea.png image.png.86b42270ca667f65e16def20725ecac1.png

Share this post


Link to post
1 hour ago, aehimself said:

Seems the editor adds an extra line break to the end of the translation 😞

That's the same problem as the one mentioned a few messages earlier:

Quote

The long string problem has already been fixed in commit 6d52cf4438139b3c79c4776d444d85610782a5fc (26 jan 2022) but I haven't uploaded a build of that version.

 

  • Thanks 1

Share this post


Link to post

Uploaded a new build: v1.3.8100.37233.

I have finally managed to get upload to BitBucket working so it's available here now:

https://bitbucket.org/anders_melander/better-translation-manager/downloads/

 

Changes since build 1.3.8055.21506:

  • Like 1
  • Thanks 2

Share this post


Link to post
43 minutes ago, Anders Melander said:

Added a translation integration API which allows the application being translated to control BTM.
Using this integration, when a form or control is focused in the application, then the corresponding module and property is selected in BTM.
The integration API is contained in the file amLocalization.Integration.Tracker.API.pas

This is very interesting, please are there instructions how to prepare the application to use this tracking?

Share this post


Link to post
2 minutes ago, Vandrovnik said:

are there instructions how to prepare the application to use this tracking?

Now there are 🙂 Do something like this:

uses
  Horizon.IntegrationTest.API;
  
// Via TApplicationEvents component:
procedure TMainForm.ApplicationEventsActionExecute(Action: TBasicAction; var Handled: Boolean);
begin
{$ifdef DEBUG}
  TranslationManagerIntegration.TrackControl(Action);
{$endif DEBUG}
end;

// Via the global TScreen instance:
procedure TMainForm.OnActiveControlChange(Sender: TObject);
begin
{$ifdef DEBUG}
  TranslationManagerIntegration.TrackControl(Screen.ActiveControl);
{$endif DEBUG}
end;

procedure TMainForm.OnActiveFormChange(Sender: TObject);
begin
{$ifdef DEBUG}
  TranslationManagerIntegration.TrackForm(Screen.ActiveCustomForm);
{$endif DEBUG}
end;

Note: Remove the DEVEXPRESS define in Horizon.IntegrationTest.API if you're not using that library.

As you can see the above only uses the integration in DEBUG builds but since I'm just using WM_COPYDATA for communication it's pretty harmless if the integration is also active in RELEASE builds.

Share this post


Link to post

Hello,

This is really a great and useful project!. Just I am testing it and trying to build it with latest Delphi 11.1 Patch 1, but it seems the resourceModuleBuilder project is not working when build against 64-bits, it is failing in the UpdateResource Window function with the next exception:

   EOSError: System Error.  Code: 87.
  The parameter is incorrect

 

However I have tested and build it in x86 and it works fine.

Is it not compatible to build in x64?

 

Thanks in advanced

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×