[Libreoffice] [PATCH] po2oo --skipsource support
KAMI911 KAMI911
kami911 at gmail.com
Tue Apr 19 01:06:01 PDT 2011
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}}<http://unxlngi6.pro/lib$%7BLD_LIBRARY_PATH:+:$%7BLD_LIBRARY_PATH%7D%7D>
/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}}<http://unxlngi6.pro/lib$%7BLD_LIBRARY_PATH:+:$%7BLD_LIBRARY_PATH%7D%7D>
/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110419/0f67f989/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Place-translate-toolkit-module-files-next-to-po2oo-i.patch
Type: text/x-patch
Size: 6023 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110419/0f67f989/attachment-0001.bin>
More information about the LibreOffice
mailing list