kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44843
Re: Translation building changes in master
-
To:
Ian.S.McInerney@xxxxxxxx, KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Jean-Samuel Reynaud <js.reynaud@xxxxxxxxx>
-
Date:
Thu, 28 Jan 2021 09:27:52 +0100
-
Autocrypt:
addr=js.reynaud@xxxxxxxxx; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUVOQkZSRThWMEJDQUMr QVZBMENtZ2JDbVNabEVXT2RzTytmaXRPWHJUai82aFlnUTVoWFVRM0NGR3VmSzVvCmZaQTlI T3hpQnQrOENCRE9HdDRYTXdpSkYxQkM0cGNocWs5VUl3QXhXSWx0TXZsVGxsWTdwMHFqNUNP MEZQbTQKODYxcEpiUDl1Z2RqZlJISTVGcXRMM0hJc2l4cTVlNmdmV2ZIUHo2bXBuaXplVTkv cWxoR0RHZlE3eFdyaldSdApqcHlCZHkxdGtyVzR5eFdjY0ZNWUFTZW12TjB4LzVqQ3BnNGFl TTJGc3FMUW0rUEpMamlJV1QwQXR5UEJ2dlFTCkNPZUFXWDhCelU1ZGZWWCtxelFVWWxBV1A0 Y2xQc1RIdVE3OGpWOTlDREJ2THJoZ01pMDNTVTFKMzBvaU5MMmEKK0IyUkFIcTdpUHZTaWNr TjFrd3ROSDQySDhRak9UV3g4dnozQUJFQkFBRzBLa3BsWVc0dFUyRnRkV1ZzSUZKbAplVzVo ZFdRZ1BHcHpMbkpsZVc1aGRXUkFaMjFoYVd3dVkyOXRQb2tCT0FRVEFRSUFJZ1VDVkVUeFhR SWJBd1lMCkNRZ0hBd0lHRlFnQ0NRb0xCQllDQXdFQ0hnRUNGNEFBQ2drUWtoUS9rTEZheFNW N2tBZi9hZnkvYmg3Tm5FaGcKanMxTnh5eWNZZGkycnpGR0tLQXlxYXZpK1k1VDBoVm9Jclgz TzI2dEoxTGNoa09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QTUMyZQpU cFFNZy9tc1lnN3pjK2x5b1hRaWJtOEdDUTRNYUZWVlNZVkpBMHdQZStVV3k3REM0citjNy9X ZHJIU00yajhRCkpnUmEzTVpaSi9vR0dPS2taZDB6bkpsRHpGblJOMjJuZk93eFB1dnQ5T3RC RHg0cTlISkZIcm9MOGgrQUdxSGwKK3o0M3pmYnZMVktmZ240SnFvL3l4MG80Vm5CT0hvcnRL bTFjUGF0MUZRREZ2bWJMTk5oNGZyWHpXbldzZVNnOQpFcW8xT0tGb1grUHV5Nk1HSlBrK3Ir L1c0eGxON2thaWRsTS9zNkJaM3FBNGlUbEZjZW1hdXc9PQo9RktVdgotLS0tLUVORCBQR1Ag UFVCTElDIEtFWSBCTE9DSy0tLS0tCg==
-
In-reply-to:
<CACp=VfZo72KYqB+xNzW51cuvuuaXh3zqoGNAq8xChtfqdXy=TA@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
Ok thanks for this update. It will complete actions on my side ;)
As explained in zulip: On my side I have added a package during build
(kicad-its-files) that containt the missing ITS files.
Since package shared-mime-info contain the right ITS file after version
2.0, this package is useful only on previous version of
shared-mime-info. So build dependency handle this for KiCad and package
kicad-its-files conflict automaticaly with newer version of
share-mime-info. It should be future proof ;)
Le 28/01/2021 à 01:29, Ian McInerney a écrit :
> Ok, I have updated the linux translation framework so that it will now
> gracefully handle errors in the file translation. If it detects an error
> when translating the metadata it will instead copy the raw metadata file
> over and throw a warning into the build log but let the build continue.
>
> -Ian
>
> On Thu, Jan 21, 2021 at 5:25 PM Ian McInerney <Ian.S.McInerney@xxxxxxxx
> <mailto:Ian.S.McInerney@xxxxxxxx>> wrote:
>
> Yes, Steve made me aware of the lack of that file on older distros -
> and I am working on a solution. I am currently building out the
> CMake files so that they try to do the translation and then check
> the return code and fallback to a simple file copy if the
> translation fails (and display the failure as a warning, so it is
> visible but doesn't stop the build process).
>
> -Ian
>
> On Thu, Jan 21, 2021 at 5:12 PM Steven A. Falco
> <stevenfalco@xxxxxxxxx <mailto:stevenfalco@xxxxxxxxx>> wrote:
>
> We have the same problem with Fedora 32 because it also doesn't
> have the needed ITS file.
>
> I believe Ian is looking into a solution.
>
> Steve
>
> On 1/21/21 11:40 AM, Jean-Samuel Reynaud wrote:
> > Dear Ian,
> >
> > Since this update some build fail on ubuntu. In fact there is
> > translation of some XML files (for example mime types
> > resources/linux/mime/kicad-gerbers.xml.in
> <http://kicad-gerbers.xml.in>) but gettext is unable to find
> > rules to translate that kind of file without the appropriate
> ITS file.
> > On Ubuntu 18.04, shared-mime-info is too old and don't ship
> > shared-mime-info.loc and shared-mime-info.its. So building is
> failing.
> >
> > So what is your proposal for that ? Perhaps there is already
> an answer
> > about this point ? I think I can fix that by coping missing
> ITS files on
> > the appropriate directory but it's a dirty solution...
> >
> >
> >
> >
> > Le 18/01/2021 à 18:54, Ian McInerney a écrit :
> >> The changes to the i18n build system have now been merged
> into the
> >> master branch - with the change that KICAD_BUILD_I18N will
> default to
> >> OFF now, so it must be enabled when you want to build the
> translations
> >> libraries.
> >>
> >> At this point, all nightly builds of the master branch that
> include
> >> translations need to be updated to use the
> KICAD_BUILD_I18N=ON flag and
> >> no longer reference the i18n repository.
> >>
> >> -Ian
> >>
> >> On Sat, Jan 16, 2021 at 7:41 PM Ian McInerney
> <Ian.S.McInerney@xxxxxxxx <mailto:Ian.S.McInerney@xxxxxxxx>
> >> <mailto:Ian.S.McInerney@xxxxxxxx
> <mailto:Ian.S.McInerney@xxxxxxxx>>> wrote:
> >>
> >> Since we now host the v6 translations inside the main code
> >> repository, I have consolidated the CMake scripts for
> building the
> >> translation files into the main build process inside this MR
> >>
> (https://gitlab.com/kicad/code/kicad/-/merge_requests/628). That
> >> exposes a new CMake option `KICAD_BUILD_I18N`, which
> defaults to on,
> >> that controls if the translations are built. When that
> option is ON,
> >> gettext is a required dependency and when it is off it
> is not
> >> needed. This change will require some people to modify
> their current
> >> build setup to disable the translations if they do not
> wish to build
> >> with gettext.
> >>
> >> In that MR I have also added the linux metadata files to the
> >> translation framework to allow for the strings contained
> inside them
> >> to be internationalized (so that the user sees
> translated strings on
> >> desktop icons/tooltips in their display manager). That
> should be a
> >> transparent change to the packagers of nightly builds,
> but a welcome
> >> change for users.
> >>
> >> -Ian
> >>
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help : https://help.launchpad.net/ListHelp
> >>
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help : https://help.launchpad.net/ListHelp
> >
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
References