GillesCat 0 Posted January 29, 2021 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
Anders Melander 1782 Posted January 29, 2021 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
Anders Melander 1782 Posted May 8, 2021 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: Installer: http://melander.dk/download/amTranslationManagerInstall-1.2.7797.22083.exe Source: https://bitbucket.org/anders_melander/better-translation-manager The CSV import: 4 Share this post Link to post
Ravil 1 Posted January 20, 2022 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. 1 Share this post Link to post
Anders Melander 1782 Posted January 20, 2022 4 hours ago, Ravil said: Error: Source file not found: Reproduced. https://bitbucket.org/anders_melander/better-translation-manager/issues/24 4 hours ago, Ravil said: Also, in GUI version when I press "Locate source..." button it's nothing happens. Reproduced. https://bitbucket.org/anders_melander/better-translation-manager/issues/23 Share this post Link to post
Anders Melander 1782 Posted January 20, 2022 1 hour ago, Anders Melander said: https://bitbucket.org/anders_melander/better-translation-manager/issues/24 https://bitbucket.org/anders_melander/better-translation-manager/issues/23 Resolved. You can download the new version here: http://melander.dk/download/amTranslationManagerInstall-1.3.8055.21506.exe 1 1 Share this post Link to post
Renate Schaaf 64 Posted March 3, 2022 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
Anders Melander 1782 Posted March 4, 2022 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
Anders Melander 1782 Posted March 4, 2022 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
aehimself 396 Posted March 5, 2022 @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
Anders Melander 1782 Posted March 5, 2022 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: 1 Share this post Link to post
aehimself 396 Posted March 5, 2022 Yes, exactly 🙂 Didn't see the button there. Thanks! Share this post Link to post
Anders Melander 1782 Posted March 5, 2022 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
aehimself 396 Posted March 5, 2022 Seems the editor adds an extra line break to the end of the translation 😞 Share this post Link to post
Anders Melander 1782 Posted March 5, 2022 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. 1 Share this post Link to post
Anders Melander 1782 Posted March 6, 2022 On 3/4/2022 at 12:09 PM, Anders Melander said: it seems to be caused by a bug in DevExpress. https://supportcenter.devexpress.com/ticket/details/t1073008 Share this post Link to post
Anders Melander 1782 Posted March 6, 2022 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: HighDPI scaling has been disabled in order to work around scaling problems caused by the DevExpress skinning engine. When these get resolved I will enable Per Monitor v2 scaling. https://bitbucket.org/anders_melander/better-translation-manager/issues/26/handle-highdpi-scaling @Renate Schaaf Automatically show and focus the multi-line editor if the source text contains multiple lines (optional, enabled by default). https://bitbucket.org/anders_melander/better-translation-manager/issues/15/auto-open-text-editor-when-applicable @aehimself 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 Properties that have been omitted from the form resource, for example because their current values equals the default value, can now be synthesized so they can be translated. This solves the problem where for example TField.DisplayLabel could not be translated if DisplayLabel and FieldName contained the same value. A lot of minor bug fixed and improvements. See commit log: https://bitbucket.org/anders_melander/better-translation-manager/commits/ 1 2 Share this post Link to post
Vandrovnik 214 Posted March 6, 2022 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
Anders Melander 1782 Posted March 6, 2022 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
Vandrovnik 214 Posted March 7, 2022 Thank you! I will try it as soon as possible. Share this post Link to post
iyevtushyk 0 Posted April 27, 2022 Hi Anders. Could you add into bitbucked source amProgress.Stream module? Share this post Link to post
Anders Melander 1782 Posted April 27, 2022 1 hour ago, iyevtushyk said: Could you add into bitbucked source amProgress.Stream module? Done Share this post Link to post
DFenix 0 Posted May 5, 2022 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