← Back to team overview

kicad-developers team mailing list archive

Re: Translation building changes in master


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) 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>> 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
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

Follow ups