[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: bloated commits
From:       Frederik Schwarzer <schwarzerf () gmail ! com>
Date:       2010-10-27 19:50:20
Message-ID: 201010272150.21337.schwarzerf () gmail ! com
[Download RAW message or body]

[Chusslove Illich - Mittwoch 27 Oktober 2010 20:41:45] 
> > [: Frederik Schwarzer :]
> > I think Lokalize breaks these strings when they are 80 chars long and
> > Scripty breaks them, if they are 80 chars including the msgid and "".
> >
> > Is there a way to prevent these changes? Should Lokalize change its
> > behaviour?
> 
> Scripty wraps lines on merging with templates, i.e.g it is Gettext's
> msgmerge that does the wrapping. The wrapping algorithm in Gettext is quite
> sophisticated, so it is hard for a non-Gettext tool to perform exactly the
> same wrapping with own code. However, Gettext does provide a PO-handling
> library for tools to use, so I suppose Lokalize could be made to use it.
> 
> In the meantime, before committing you could pass modified PO files through,
> say, msgcat (also a Gettext tool, and so produces same wrapping as
> msgmerge):
> 
>   $ svn st de/*messages | sed 's/.//' | xargs -n1 -i{} msgcat {} -o {}

Thanks a lot. Ich will try it next time and see if I can open a report for
Lokalize. :)

Regards
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic