Hi Petr, *
2011/3/23 Petr Mladek <pmladek@suse.cz>:
I am going to look at it. The plan is to get rid of the "l10n" repo and
use the new "translations" repo exclusively. My steps will be:
+ download "translations" instead of "l10n" repo
+ allow to build internal translate toolkit (libs-extern repo)
Currently translate-toolkit 1.8.1 is fine, but I filed a bug
(http://bugs.locamotion.org/show_bug.cgi?id=1883) because I think it
is easier to do the language fallback with translate-toolkit, than to
fix fdo#35067 and fdo#35068. The progress there looks promising. When
it is fixed, we need to upgrade translate-toolkit in our sources, too.
+ set the new L10N_MODULE in solenv/inc/settings.mk
+ modify build.lst in "all" module to depend on
TRANSLATIONS:translations instead of L10N:l10n
+ fix potential build probles
Please find attached a patch which implements a .gitattribute filter
for *.po files. If we do not wrap the lines in po files, then we get
less useless noise in diffs (tools tend to wrap the same content
differently). May I push it?
Thanks,
Andras
From 41da20d61f50eefb0b106893ee815800c386c827 Mon Sep 17 00:00:00 2001
From: Andras Timar <timar@fsf.hu>
Date: Wed, 23 Mar 2011 19:23:49 +0100
Subject: [PATCH] set .gitattributes filter for *.po files
---
.gitattributes | 1 +
g | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/.gitattributes b/.gitattributes
index 416fa8c..d414da8 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,3 @@
*.doc binary
*.sdw binary
+*.po filter=po
diff --git a/g b/g
index 7fbf683..2d601b5 100755
--- a/g
+++ b/g
@@ -38,6 +38,12 @@ function update_hooks()
if [ "$PWD" != "$RAWBUILDDIR" -a ! -e .gitattributes ]; then
ln -s $RAWBUILDDIR/.gitattributes .
fi
+ if [ -z "$(git config filter.po.clean)" ] ; then
+ git config filter.po.clean 'msgcat - --no-wrap'
+ fi
+ if [ -z "$(git config filter.po.smudge)" ] ; then
+ git config filter.po.smudge cat
+ fi
}
# extra params for some commands, like log
--
1.7.0.4
Context
- Re: [Libreoffice] l10n based on PO files (continued)
Re: [Libreoffice] l10n based on PO files · Petr Mladek
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.