Hi Petr, *

2011/3/23 Petr Mladek <pmla...@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 <ti...@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

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to