[Lazarus] Planed work (moving to git) on the weekend 23rd - 26th
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) -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th
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. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th
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) -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] .mo files not working in multi language
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 OpenPGP_0x4A7DA0A7766EC11F.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] .mo files not working in multi language
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:gan...@narod.ru -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Planed work (moving to git) on the weekend 23rd - 26th
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 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] .mo files not working in multi language
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 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] .mo files not working in multi language
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:gan...@narod.ru -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus