From denisgolovan at yandex.ru Mon Jul 5 10:39:02 2021 From: denisgolovan at yandex.ru (denisgolovan) Date: Mon, 05 Jul 2021 11:39:02 +0300 Subject: [Lazarus] Missing resources??? Message-ID: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> Hi all I experience a strange issue. I managed to build Lazarus GUI project for Windows. Lazarus v2.1.0 It's cross-compilation if it matters. This project is built from simple makefile made by hand, -WG flag passed to compiler. However, on start it neither shows main form nor emits any errors/exceptions. Looks I can only suspect something is wrong. Can it be due to resource files not linked in properly? How can it be checked? I tried both .res & .lrs files generation using lazres. Where compiler looks for .res files? It's not clear from documentation. Any help? -- Regards, Denis Golovan From denisgolovan at yandex.ru Mon Jul 5 11:02:35 2021 From: denisgolovan at yandex.ru (denisgolovan) Date: Mon, 05 Jul 2021 12:02:35 +0300 Subject: [Lazarus] Missing resources??? In-Reply-To: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> References: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> Message-ID: <1357941625475755@sas2-2fa759678732.qloud-c.yandex.net> My main form had my second display Left,Top coordinates. Thus it just wasn't visible. Sorry for noise. -- Regards, Denis Golovan From denisgolovan at yandex.ru Mon Jul 5 11:02:35 2021 From: denisgolovan at yandex.ru (denisgolovan) Date: Mon, 05 Jul 2021 12:02:35 +0300 Subject: [Lazarus] Missing resources??? In-Reply-To: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> References: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> Message-ID: <1357941625475755@sas2-2fa759678732.qloud-c.yandex.net> My main form had my second display Left,Top coordinates. Thus it just wasn't visible. Sorry for noise. -- Regards, Denis Golovan From bartjunk64 at gmail.com Mon Jul 5 12:12:15 2021 From: bartjunk64 at gmail.com (Bart) Date: Mon, 5 Jul 2021 12:12:15 +0200 Subject: [Lazarus] Missing resources??? In-Reply-To: <1357941625475755@sas2-2fa759678732.qloud-c.yandex.net> References: <10157531625474342@myt6-c0045123b21e.qloud-c.yandex.net> <1357941625475755@sas2-2fa759678732.qloud-c.yandex.net> Message-ID: On Mon, Jul 5, 2021 at 11:02 AM denisgolovan via lazarus wrote: > My main form had my second display Left,Top coordinates. > Thus it just wasn't visible. ;-) -- Bart From jmlandmesser at gmx.de Fri Jul 9 16:06:55 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 9 Jul 2021 16:06:55 +0200 Subject: [Lazarus] No TrayIcon.Hint on Linux KDE? Message-ID: <04691ef8-3acc-5398-0078-336ef2b8f443@gmx.de> Hi, See example project C:\lazarus\examples\trayicon\wndtray.lpi The Trayicon.hint works on XFCE and Windows, but it will not be visible on KDE?!! > FormCreate; > >   SystrayIcon.Hint := 'my tool tip'; > Any workaround ? Thanks John From jmlandmesser at gmx.de Fri Jul 9 16:48:31 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 9 Jul 2021 16:48:31 +0200 Subject: [Lazarus] Lazarus list down? Message-ID: <7e32cbdc-05bb-3048-6976-d5b9b9b14e98@gmx.de> Test From nc-gaertnma at netcologne.de Mon Jul 12 12:59:51 2021 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 12 Jul 2021 12:59:51 +0200 Subject: [Lazarus] Lazarus Release Candidate 1 of 2.2.0 Message-ID: The Lazarus team is glad to announce the first release candidate of Lazarus 2.2. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: http://wiki.freepascal.org/Lazarus_2.2_fixes_branch The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2RC1" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_0RC1 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 11.4, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_2_0_RC1 Last trunk svn revision was r65398. For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ == Why should everybody (including you) test the release candidate? == In the past weeks the Lazarus team has stabilized the 2.2 fixes branch. The resulting 2.2RC1 is now stable enough to be used by any one for test purposes. However many of the fixes and new features that where committed since the release of 2.0 required changes to the code of existing features too. While we have tested those ourselves, there may still be problems that only occur with very specific configurations or one project in a million. Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it. Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 2.2.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features. == How to test == Download and install the 2.2 RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path In either case you should make backups. (including your primary config) Open your project in the current Lazarus (2.0.x), and use "Publish Project" from the project menu. This creates a clean copy of your project. You can then open that copy in the RC1. Please test: - If you can edit forms in the designer - rename components / change properties in Object inspector / Add new events - Add components to form / Move components on form - Frames, if you use them - If you can navigate the source code (e.g. jump to implementation) - Auto completion in source code - Compile, debug and run - Anything else you use in your daily work Mattias -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmlandmesser at gmx.de Mon Jul 12 13:38:01 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 12 Jul 2021 13:38:01 +0200 Subject: [Lazarus] No TrayIcon.Hint on Linux KDE? In-Reply-To: <04691ef8-3acc-5398-0078-336ef2b8f443@gmx.de> References: <04691ef8-3acc-5398-0078-336ef2b8f443@gmx.de> Message-ID: Am 09.07.21 um 16:06 schrieb John Landmesser via lazarus: > Hi, > > See example project > > C:\lazarus\examples\trayicon\wndtray.lpi > > The Trayicon.hint works on XFCE and Windows, but it will not be visible > on KDE?!! > >> FormCreate; >> >>   SystrayIcon.Hint := 'my tool tip'; >> > > Any workaround ? > > Thanks > > John > See bugreport: https://bugs.freepascal.org/view.php?id=39194 From marc at dommelstein.nl Mon Jul 12 13:41:02 2021 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 12 Jul 2021 13:41:02 +0200 Subject: [Lazarus] Lazarus list down? In-Reply-To: <7e32cbdc-05bb-3048-6976-d5b9b9b14e98@gmx.de> References: <7e32cbdc-05bb-3048-6976-d5b9b9b14e98@gmx.de> Message-ID: I guess it was, I restarted it this morning since it was a bit quiet in here. Marc On 9-7-2021 16:48, John Landmesser via lazarus wrote: > Test > From jmlandmesser at gmx.de Mon Jul 12 13:42:51 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 12 Jul 2021 13:42:51 +0200 Subject: [Lazarus] Lazarus list down? In-Reply-To: References: <7e32cbdc-05bb-3048-6976-d5b9b9b14e98@gmx.de> Message-ID: <5592e65b-4dec-8d1e-09bf-fd9d3f7880cd@gmx.de> Thanks! Yes no it works again! Am 12.07.21 um 13:41 schrieb Marc Weustink via lazarus: > I guess it was, I restarted it this morning since it was a bit quiet > in here. > > Marc > > > On 9-7-2021 16:48, John Landmesser via lazarus wrote: >> Test >> From jmlandmesser at gmx.de Tue Jul 13 14:07:52 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 13 Jul 2021 14:07:52 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? Message-ID: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> Hi, i just "ruined" layout of the anchor docking manager in the IDE. Reinstall the package does not restore the default layout and pulling for example object inspector does not help. I would expect the IDE would show where to place the object inspector by painting a frame where it would sit if i stop dragging?! Tipps are welcome ... John Landmesser From jmlandmesser at gmx.de Tue Jul 13 16:22:32 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 13 Jul 2021 16:22:32 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? In-Reply-To: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> References: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> Message-ID: <535ed7c2-0c0d-48c5-da55-fbb9c5384b87@gmx.de> Am 13.07.21 um 14:07 schrieb John Landmesser via lazarus: > Hi, > > i just "ruined" layout of the anchor docking manager in the IDE. > > Reinstall the package does not restore the default layout and pulling > for example object inspector does not help. > > I would expect the IDE would show where to place the object inspector by > painting a frame where it would sit if i stop dragging?! > > Tipps are welcome ... > > John Landmesser > Heavy fiddling ... But this tipps worked: See https://forum.lazarus.freepascal.org/index.php/topic,51935.msg382004.html#msg382004 Tipp: Don't mess around with layout of anchordockingsgn package! We'll see if i remember that next year :-) From christo.crause at gmail.com Tue Jul 13 16:30:49 2021 From: christo.crause at gmail.com (Christo Crause) Date: Tue, 13 Jul 2021 16:30:49 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? In-Reply-To: <535ed7c2-0c0d-48c5-da55-fbb9c5384b87@gmx.de> References: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> <535ed7c2-0c0d-48c5-da55-fbb9c5384b87@gmx.de> Message-ID: On Tue, Jul 13, 2021 at 4:22 PM John Landmesser via lazarus < lazarus at lists.lazarus-ide.org> wrote: > Am 13.07.21 um 14:07 schrieb John Landmesser via lazarus: > > Hi, > > > > i just "ruined" layout of the anchor docking manager in the IDE. > > > > Reinstall the package does not restore the default layout and pulling > > for example object inspector does not help. > > > > I would expect the IDE would show where to place the object inspector by > > painting a frame where it would sit if i stop dragging?! > > > > Tipps are welcome ... > > > > John Landmesser > > > > Heavy fiddling ... > > But this tipps worked: > > See > > https://forum.lazarus.freepascal.org/index.php/topic,51935.msg382004.html#msg382004 > > Tipp: Don't mess around with layout of anchordockingsgn package! If your main problem is resetting messed up settings for anchordocking package, you can edit or delete the saved settings. Open environmentoptions.xml in your Lazarus profile folder (e.g. on Windows: c:\users\username\AppData\Local\lazarus), search for and either edit or delete the node (I didn't test this myself...). Alternatively delete the file, or the whole lazarus folder - but this will obviously delete a whole bunch of history and other settings too. This is for Lazarus 2.0.10, newer versions may be a bit different. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m-w-vogel at gmx.de Tue Jul 13 19:55:13 2021 From: m-w-vogel at gmx.de (Michael W. Vogel) Date: Tue, 13 Jul 2021 19:55:13 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? In-Reply-To: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> References: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> Message-ID: Am 13.07.2021 um 14:07 schrieb John Landmesser via lazarus: > Hi, > > i just "ruined" layout of the anchor docking manager in the IDE. Can you explain, what you have done? I can only fix/work on things, I'm aware about. Maybe you have disabled the option "Show headers". Only with this option enabled you can drag and drop the windows (click on header, hold header and move window). Michl > Reinstall the package does not restore the default layout and pulling > for example object inspector does not help. > > I would expect the IDE would show where to place the object inspector by > painting a frame where it would sit if i stop dragging?! > > Tipps are welcome ... > > John Landmesser > From jmlandmesser at gmx.de Tue Jul 13 20:10:38 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 13 Jul 2021 20:10:38 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? In-Reply-To: References: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> Message-ID: Am 13.07.21 um 19:55 schrieb Michael W. Vogel via lazarus: > Am 13.07.2021 um 14:07 schrieb John Landmesser via lazarus: >> Hi, >> >> i just "ruined" layout of the anchor docking manager in the IDE. > > Can you explain, what you have done? I can only fix/work on things, I'm > aware about. I don't remember exactly what i've done in the past. I  used anchordockingdsgn package for a long time and today i thought: what happens if i drag "project inspector" for example to another position ... bad idea(!!) Things got worse as i tried to restore the initial settings of this package. Reinstalled the package, read the wiki ... no success,  but then with google i found the  mentioned Lazarus forum thread: close all windows except source editor and then  rearrange all windows. Would be usefull if there was something like restore default settings?! John From m-w-vogel at gmx.de Tue Jul 13 20:36:24 2021 From: m-w-vogel at gmx.de (Michael W. Vogel) Date: Tue, 13 Jul 2021 20:36:24 +0200 Subject: [Lazarus] How to restore anchor docking manager in the IDE? In-Reply-To: References: <366fb733-5276-2aeb-38bd-1bc2ef501cf8@gmx.de> Message-ID: Am 13.07.2021 um 20:10 schrieb John Landmesser via lazarus: > I don't remember exactly what i've done in the past. Ok, it's a pity. > I  used anchordockingdsgn package for a long time and today i thought: > what happens if i drag "project inspector" for example to another > position ... bad idea(!!) > > Things got worse as i tried to restore the initial settings of this > package. > > Reinstalled the package, read the wiki ... no success,  but then with > google i found the  mentioned Lazarus forum thread: close all windows > except source editor and then  rearrange all windows. I never use such a workaround to rearrange the windows. And thats IMO the problem. I know what I have to do to get my layout back, but I don't know what other people try to do. > Would be usefull if there was something like restore default settings?! Yes, this seems a good idea! Can you make a bug report and assign it to me?! Thank you Michl From lazarus at mfriebe.de Sat Jul 17 20:56:58 2021 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 17 Jul 2021 20:56:58 +0200 Subject: [Lazarus] To all Mantis (Bugtracker) account holders - prepare for the move to Gitlab - Now Message-ID: <60be83f3-6f73-3d66-ad69-cd49c2327412@mfriebe.de> Hello All, https://forum.lazarus.freepascal.org/index.php/topic,55167.0.html We are moving our bugs to Gitlab. - If you have a mantis account, - and you want your bugs (or notes) to be identified on gitlab we can add your gitlab account to the info of the converted bugs/notes. But you need to provide the info. To map your gitlab user name (or ID) to the mantis user, we ask that you file an issue in the mantis project of the current bugtracker https://bugs.freepascal.org/bug_report_page.php?project_id=4 Assign it the category gitlab, and set the summary of the bugreport to your gitlab account name or ID number (not both!). Only a few days left. From dietmar.4711 at web.de Tue Jul 20 23:03:01 2021 From: dietmar.4711 at web.de (Dietmar Braun) Date: Tue, 20 Jul 2021 23:03:01 +0200 Subject: [Lazarus] .mo files not working in multi language Message-ID: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> Hi! sorry if I'm wrong here, but I posed my question in the Lazarus forum and was redirected here, so I am asking here again... After some years of pausing Lazarus development, I just started again with a small project and the problems I had years ago with MultiLanguage - these days, I managed to create a working multilanguage application, but when I try to distribute it, I run into problems. My directory structure looks like this: project (main folder): project1.exe !--languages (sub folder): project1.de.mo, project1.en.mo With this setting, switching from the default (German) to English (en) does not work. It seems the .mo files are just being ignored. When I add the .PO files to the subfolder, it works. Can you advise? I just don't want to have to distribute the plain text .po files... Thx! Dietmar -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x4A7DA0A7766EC11F.asc Type: application/pgp-keys Size: 2430 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From ganmax at narod.ru Tue Jul 20 23:36:58 2021 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 21 Jul 2021 00:36:58 +0300 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> Message-ID: 21.07.2021 0:03, Dietmar Braun via lazarus пишет: > Hi! > > sorry if I'm wrong here, but I posed my question in the Lazarus forum > and was redirected here, so I am asking here again... > > After some years of pausing Lazarus development, I just started again > with a small project and the problems I had years ago with MultiLanguage > - these days, I managed to create a working multilanguage application, > but when I try to distribute it, I run into problems. > > My directory structure looks like this: > project (main folder): project1.exe > !--languages (sub folder): project1.de.mo, project1.en.mo Make sure you are using at least Lazarus 2.2 RC1. Make sure you do not have PO and POT files in this subdirectory. > With this setting, switching from the default (German) to English (en) > does not work. It seems the .mo files are just being ignored. When I add > the .PO files to the subfolder, it works. > > Can you advise? I just don't want to have to distribute the plain text > .po files... > > Thx! > Dietmar > -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From dietmar.4711 at web.de Wed Jul 21 19:05:11 2021 From: dietmar.4711 at web.de (Dietmar Braun) Date: Wed, 21 Jul 2021 19:05:11 +0200 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> Message-ID: <2ead993a-9193-7453-9376-db3793b96702@web.de> On 20.07.2021 23:36, Maxim Ganetsky via lazarus wrote: > Make sure you are using at least Lazarus 2.2 RC1. > Make sure you do not have PO and POT files in this subdirectory. Works like a charm, thank you! Regards Dietmar -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x4A7DA0A7766EC11F.asc Type: application/pgp-keys Size: 2430 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From lazarus at mfriebe.de Thu Jul 22 13:54:03 2021 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 22 Jul 2021 13:54:03 +0200 Subject: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th Message-ID: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> On the upcoming weekend (starting Friday night) we will be moving to GitLab. During this time, there may be interruptions to some of our services. - SVN will become read-only.   There may be short intervals were it will not be reachable. - Mantis/Bugtracker will become readable.   May be made a forwarder to the GitLab issue tracker.   May be taken offline. Otherwise there may be short intervals were it will not be reachable. The forum should not be affected and continue to work as normal. The list of new Url will be posted when the move has been done. [hr] Sorry for the rather late notice. We plan are read-only GitHub mirror. GitHub advertises that the repro can be read with an svn client too. So for those needing read only access, there will be an svn link (I have not tested how well the GitHub svn wrapper works) The link will be available from the "clone" menu in GitHub (apparently the same link for git and svn) From michael at freepascal.org Thu Jul 22 14:22:02 2021 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 22 Jul 2021 14:22:02 +0200 (CEST) Subject: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th In-Reply-To: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> References: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> Message-ID: On Thu, 22 Jul 2021, Martin Frb via lazarus wrote: > On the upcoming weekend (starting Friday night) we will be moving to GitLab. > > During this time, there may be interruptions to some of our services. > > - SVN will become read-only. Correction: SVN will become unavailable. Michael. From lazarus at mfriebe.de Thu Jul 22 14:25:19 2021 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 22 Jul 2021 14:25:19 +0200 Subject: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th In-Reply-To: References: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> Message-ID: On 22/07/2021 14:22, Michael Van Canneyt via lazarus wrote: > > > On Thu, 22 Jul 2021, Martin Frb via lazarus wrote: > >> On the upcoming weekend (starting Friday night) we will be moving to >> GitLab. >> >> During this time, there may be interruptions to some of our services. >> >> - SVN will become read-only. > > Correction: SVN will become unavailable. > > Michael. Actually read only during the weekend. Once the new URL are released, the existing svn will become unavailable (by the end of the month) From dietmar.4711 at web.de Thu Jul 22 14:41:53 2021 From: dietmar.4711 at web.de (Dietmar Braun) Date: Thu, 22 Jul 2021 14:41:53 +0200 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> Message-ID: <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> Hi, On 20.07.2021 23:36, Maxim Ganetsky via lazarus wrote: > Make sure you are using at least Lazarus 2.2 RC1. > Make sure you do not have PO and POT files in this subdirectory. one further question: Is it possible to add the .mo files as resources so that they are being hold in the exe file? How could I achieve this? Best regards Dietmar -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x4A7DA0A7766EC11F.asc Type: application/pgp-keys Size: 2430 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From ganmax at narod.ru Thu Jul 22 23:02:27 2021 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 23 Jul 2021 00:02:27 +0300 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> Message-ID: 22.07.2021 15:41, Dietmar Braun via lazarus пишет: > Hi, > > On 20.07.2021 23:36, Maxim Ganetsky via lazarus wrote: >> Make sure you are using at least Lazarus 2.2 RC1. >> Make sure you do not have PO and POT files in this subdirectory. > > one further question: > Is it possible to add the .mo files as resources so that they are being > hold in the exe file? How could I achieve this? Put them to RES or LRS file, link this file to your program, then extract them at runtime to some directory and load it from there. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From bartjunk64 at gmail.com Fri Jul 23 00:01:36 2021 From: bartjunk64 at gmail.com (Bart) Date: Fri, 23 Jul 2021 00:01:36 +0200 Subject: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th In-Reply-To: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> References: <319901a5-a5a8-24ff-d12b-d353a9f1ce4c@mfriebe.de> Message-ID: On Thu, Jul 22, 2021 at 1:54 PM Martin Frb via lazarus wrote: > > On the upcoming weekend (starting Friday night) we will be moving to GitLab. You posted this on the forum as well with the same subject header: please change: "Planed work" into "Planned work" ;-) -- Bart From bartjunk64 at gmail.com Fri Jul 23 00:08:45 2021 From: bartjunk64 at gmail.com (Bart) Date: Fri, 23 Jul 2021 00:08:45 +0200 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> Message-ID: On Thu, Jul 22, 2021 at 11:02 PM Maxim Ganetsky via lazarus wrote: > Put them to RES or LRS file, link this file to your program, then > extract them at runtime to some directory and load it from there. Can't you use them from the resource like you can with po-files? >From one of my units that does thi using old style .lrs resource: =========== type TTransalateFromLazarusResourceResult = (trSuccess, trResourceNotFound, trTranslationError); function TryTranslateFromLazarusResource: TTransalateFromLazarusResourceResult; var LRes: TLResource; PO: TPOFile; SS: TStringStream; B: Boolean; begin Result := trResourceNotFound; LRes := LazarusResources.Find('lclstrconsts.nl','PO'); if LRes <> nil then begin SS := nil; PO := nil; try SS := TStringStream.Create(LRes.Value); //don't use TPoFile.Create(SS,True): it will crash on TranslateUnitResourceStrings if you do PO := TPoFile.Create(SS, False); try B := TranslateUnitResourceStrings('lclstrconsts',PO); if B then Result := trSuccess else Result := trTranslationError; except Result := trTranslationError; DebugLn('Exception while translating LclStrConsts unit form internal resources.'); end; finally if Assigned(SS) then SS.Free; if Assigned(PO) then PO.Free; end; end; end; =============== -- Bart From ganmax at narod.ru Fri Jul 23 00:50:46 2021 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 23 Jul 2021 01:50:46 +0300 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> Message-ID: 23.07.2021 1:08, Bart via lazarus пишет: > On Thu, Jul 22, 2021 at 11:02 PM Maxim Ganetsky via lazarus > wrote: > > >> Put them to RES or LRS file, link this file to your program, then >> extract them at runtime to some directory and load it from there. > > Can't you use them from the resource like you can with po-files? > > From one of my units that does thi using old style .lrs resource: Yes, this should work the same way for MO files. In this case LCLTranslator unit will not help, functions from GetText should be called instead. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From dietmar.4711 at web.de Fri Jul 23 09:25:25 2021 From: dietmar.4711 at web.de (Dietmar Braun) Date: Fri, 23 Jul 2021 09:25:25 +0200 Subject: [Lazarus] .mo files not working in multi language In-Reply-To: References: <23503888-b1a9-67fd-0c73-4573650e40fd@web.de> <75050f9a-eed7-cb2c-08ec-a6ec6b26c1fa@web.de> Message-ID: <0b18daae-6dfa-8374-9d0c-3f0a84004a7d@web.de> Hi, On 23.07.2021 00:50, Maxim Ganetsky via lazarus wrote: > Yes, this should work the same way for MO files. In this case > LCLTranslator unit will not help, functions from GetText should be > called instead. Thanks for your effort. Can you give an example here how to substitute LCLTranslator by GetText? Thx Dietmar -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x4A7DA0A7766EC11F.asc Type: application/pgp-keys Size: 2430 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From lazarus at mfriebe.de Tue Jul 27 22:44:58 2021 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 27 Jul 2021 22:44:58 +0200 Subject: [Lazarus] Important update / change for the Lazarus GIT repro Message-ID: *** Concerning the main Lazarus GIT repository Unfortunately an error had made it into the conversion from SVN to GIT. The previously published GIT repro would under certain circumstances cause issues when history was accessed. This means we have to do a new conversion from scratch.    Therefore *** The existing GIT repository has been taken down. *** And it will be replaced by a new one. The new repro will be made available at the same url, once it is ready. =>    If you have a clone/fork of the old repro: You can either * delete your checkout / make a new clone This will be the simplest way, if you have no local changes * pull / remote update (for seasoned git users) This will download the entire new repro too. You will basically experience that every branch in the repro has been force-pushed, and diverged from your old data. You can then "reset" tracking branches as needed. And/Or rebase local feature branches. =>    Issue reports: All issue reports will be reset to their last mantis status. There have been a few new reports. Those will be recovered. If you added notes/changes to existing reports, we will try to recover them, but you may have to redo them. Further updates will be made available as they emerge. We are sorry for any inconvenience caused. From jmlandmesser at gmx.de Sat Jul 31 22:09:18 2021 From: jmlandmesser at gmx.de (John Landmesser) Date: Sat, 31 Jul 2021 22:09:18 +0200 Subject: [Lazarus] cannot compile git trunk from today Message-ID: <7abb3adc-d11e-52c0-0915-ba2e7ec55f35@gmx.de> On Manjaro XFCE Linux there where issues compiling  new pulled lazarus source Working lazarus was: > Lazarus 2.1.0 r63838M FPC 3.3.1 x86_64-linux-gtk2 got the source with > git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus cd ~/lazarus make all clean useride compiling stopped with errors: > Compiling gtk2wsdialogs.pp > Compiling gtk2wsextctrls.pp > gtk2trayicon.inc(387,5) Error: Identifier not found > "gtk_status_icon_set_tooltip_text" > gtk2trayicon.inc(493,5) Error: Identifier not found > "gtk_status_icon_set_tooltip_text" > gtk2wsextctrls.pp(289) Fatal: There were 2 errors compiling module, > stopping > Fatal: Compilation aborted > make[3]: *** [Makefile:3192: ../lcl.ppu] Fehler 1 > make[3]: Verzeichnis „/home/john1/lazarus/lcl/interfaces/gtk2“ wird > verlassen > make[2]: *** [Makefile:3381: gtk2_all] Fehler 2 > make[2]: Verzeichnis „/home/john1/lazarus/lcl/interfaces“ wird verlassen > make[1]: *** [Makefile:5114: interfaces] Fehler 2 > make[1]: Verzeichnis „/home/john1/lazarus/lcl“ wird verlassen > make: *** [Makefile:3716: lcl] Fehler 2 What should i do? John -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Sat Jul 31 23:20:57 2021 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sun, 1 Aug 2021 00:20:57 +0300 Subject: [Lazarus] cannot compile git trunk from today In-Reply-To: <7abb3adc-d11e-52c0-0915-ba2e7ec55f35@gmx.de> References: <7abb3adc-d11e-52c0-0915-ba2e7ec55f35@gmx.de> Message-ID: On Sat, Jul 31, 2021 at 11:09 PM John Landmesser via lazarus < lazarus at lists.lazarus-ide.org> wrote: > gtk2trayicon.inc(387,5) Error: Identifier not found > "gtk_status_icon_set_tooltip_text" > > What should i do? > Use the released FPC 3.2.2 or get the latest FPC trunk. Now you have an old trunk. Juha -------------- next part -------------- An HTML attachment was scrubbed... URL: