po2oo --skipsource support

classic Classic list List threaded Threaded
4 messages Options
Júlio Hoffimann Júlio Hoffimann
Reply | Threaded
Open this post in threaded view
|

po2oo --skipsource support

Hi friends,

Trying to build with other language support produces a known error:

po2oo: error: no such option: --skipsource
dmake:  Error code 2, while making './unxlngi6.pro/misc/sdf-l10n/pt-BR.sdf'

This message in ML explain the need to build with appropriate po2oo version resident at libo tree:


As i understand, we need to pass the --with-system-translate-toolkit option to autogen.sh. I'm a bit confused about the description in autogen.sh --help:

--with-system-translate-toolkit
                          Use translate-toolkit already on system.

Seems that it refers to S.O., instead of LibreOffice build system. BTW, the topic's author not solved his problem by adding the option, i think.

Any help would be great.

Regards,
Júlio.

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Andras Timar Andras Timar
Reply | Threaded
Open this post in threaded view
|

Re: po2oo --skipsource support

Hi Júlio,

2011/4/10 Júlio Hoffimann <[hidden email]>:
> Hi friends,
> Trying to build with other language support produces a known error:
> po2oo: error: no such option: --skipsource
> dmake:  Error code 2, while making './unxlngi6.pro/misc/sdf-l10n/pt-BR.sdf'
> This message in ML explain the need to build with appropriate po2oo version
> resident at libo tree:
> http://lists.freedesktop.org/archives/libreoffice/2011-April/010268.html
> As i understand, we need to pass the --with-system-translate-toolkit option

No. The default is to use internal translate-toolkit.

> to autogen.sh. I'm a bit confused about the description in autogen.sh
> --help:
> --with-system-translate-toolkit
>                           Use translate-toolkit already on system.
> Seems that it refers to S.O., instead of LibreOffice build system. BTW, the
> topic's author not solved his problem by adding the option, i think.
> Any help would be great.

Run git pull and run ./autogen.sh again. If you pass
--with-system-translate-toolkit option to configure, and your
translate-toolkit does not know the --skipsource option,  then
configure script will warn you:

po2oo does not support --skipsource; use translate-toolkit >= 1.9 or
use --without-system-translate-toolkit

Best regards,
Andras
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Kálmán „KAMI” Szalai Kálmán „KAMI” Szalai
Reply | Threaded
Open this post in threaded view
|

[PATCH] po2oo --skipsource support


Hi Andras,

I tried to use internal toolkit:
"
checking which translate-toolkit to use... internal
"
But when I try to build translations I got this error:
"
=============
Building module translations
=============
Entering /home/kami/git/libreoffice-3-4/bootstrap/translations

: &&     LD_LIBRARY_PATH=/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  /home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo --skipsource -i ./source/de -t ./unxlngi6.pro/misc/sdf-template/en-US.sdf -o ./unxlngi6.pro/misc/sdf-l10n/de.sdf -l de
Traceback (most recent call last):
  File "/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo", line 27, in <module>
    from translate.convert import po2oo
ImportError: No module named translate.convert
dmake:  Error code 1, while making './unxlngi6.pro/misc/sdf-l10n/de.sdf'
Retrying /home/kami/git/libreoffice-3-4/bootstrap/translations

: &&     LD_LIBRARY_PATH=/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  /home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo --skipsource -i ./source/de -t ./unxlngi6.pro/misc/sdf-template/en-US.sdf -o ./unxlngi6.pro/misc/sdf-l10n/de.sdf -l de
Traceback (most recent call last):
  File "/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo", line 27, in <module>
    from translate.convert import po2oo
ImportError: No module named translate.convert
dmake:  Error code 1, while making './unxlngi6.pro/misc/sdf-l10n/de.sdf'
"

If I install system provided translation-toolkit (version 1.7 on Ubuntu 11.04) it tries to use that but the build fails because of missing --skipsource in 1.7 however I am using internal translation toolkit. I think it can be a path problem where the a system installed translation-toolkit masks the version comes form the build system.

I provide the attached patch to fix this problem. I simply move translate-toolkit python modules to bin. I hope this will solve the problem. Please commit it to master and 3-4 if you agree.

Not tested other platform than Linux.

Regards,
KAMI


_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

0001-Place-translate-toolkit-module-files-next-to-po2oo-i.patch (8K) Download Attachment
cbosdonnat cbosdonnat
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] [PUSHED] po2oo --skipsource support

Hi KAMI,

I just pushed your patch in the repos. Thanks for it.

Regards,

On Tue, 2011-04-19 at 10:06 +0200, KAMI911 KAMI911 wrote:

>
> Hi Andras,
>
> I tried to use internal toolkit:
> "
> checking which translate-toolkit to use... internal
> "
> But when I try to build translations I got this error:
> "
> =============
> Building module translations
> =============
> Entering /home/kami/git/libreoffice-3-4/bootstrap/translations
>
> : &&
> LD_LIBRARY_PATH=/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  /home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo --skipsource -i ./source/de -t ./unxlngi6.pro/misc/sdf-template/en-US.sdf -o ./unxlngi6.pro/misc/sdf-l10n/de.sdf -l de
> Traceback (most recent call last):
>   File
> "/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo", line 27, in <module>
>     from translate.convert import po2oo
> ImportError: No module named translate.convert
> dmake:  Error code 1, while making
> './unxlngi6.pro/misc/sdf-l10n/de.sdf'
> Retrying /home/kami/git/libreoffice-3-4/bootstrap/translations
>
> : &&
> LD_LIBRARY_PATH=/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  /home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo --skipsource -i ./source/de -t ./unxlngi6.pro/misc/sdf-template/en-US.sdf -o ./unxlngi6.pro/misc/sdf-l10n/de.sdf -l de
> Traceback (most recent call last):
>   File
> "/home/kami/git/libreoffice-3-4/bootstrap/solver/300/unxlngi6.pro/bin/po2oo", line 27, in <module>
>     from translate.convert import po2oo
> ImportError: No module named translate.convert
> dmake:  Error code 1, while making
> './unxlngi6.pro/misc/sdf-l10n/de.sdf'
> "
>
> If I install system provided translation-toolkit (version 1.7 on
> Ubuntu 11.04) it tries to use that but the build fails because of
> missing --skipsource in 1.7 however I am using internal translation
> toolkit. I think it can be a path problem where the a system installed
> translation-toolkit masks the version comes form the build system.
>
> I provide the attached patch to fix this problem. I simply move
> translate-toolkit python modules to bin. I hope this will solve the
> problem. Please commit it to master and 3-4 if you agree.
>
> Not tested other platform than Linux.
>
> Regards,
> KAMI
>
>
> _______________________________________________
> LibreOffice mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/libreoffice

--
Cédric Bosdonnat
LibreOffice hacker
http://documentfoundation.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice