SliTaz SliTaz Forum

You are not logged in.

#1 2015-10-21 20:26:40

llev
Member
Registered: 2011-12-09
Posts: 568

What do you use to edit po files?

Hi,

Up to now I use poedit. But it reformats po files in a way that produces huge meaningless diffs. E.g. if I compare the Hg version of a po file to the version saved by poedit, I get such things:

[c]< #: index.cgi:227 index.cgi:381 index.cgi:404 index.cgi:714
---
> #: index.cgi:227
> #: index.cgi:381
> #: index.cgi:404
> #: index.cgi:714[/c]
or

[c]< msgid ""
< "Here you can configure a wired connection using DHCP to automatically get a "
< "random IP or configure a static/fixed IP"
---
> msgid "Here you can configure a wired connection using DHCP to automatically get a random IP or configure a static/fixed IP"[/c]
So my question is: what software do you use that doesn't alter po files in this way? Or is there a way to "canonicalize" the output of poedit into the format I find on Hg?

Offline

#2 2015-10-22 13:01:19

vslavik
Member
Registered: 2015-10-22
Posts: 1

Re: What do you use to edit po files?

Poedit developer here. Current versions of Poedit (i.e. 1.8.6 at the time of writing) are much better at this and do not mangle files (with the possible exception of some Really Weird™ files, but as long as you use a formatting that GNU gettext tools can produce, you should be fine).

Offline

#3 2015-10-22 13:37:46

llev
Member
Registered: 2011-12-09
Posts: 568

Re: What do you use to edit po files?

Hi vslavik, thanks for the info (looks like you registered just to answer my post, it's kind!).

Since the version in cooking is 1.4.6.1, I'm turning this thread into a support question: may someone update poedit to a more recent version?

Offline

#4 2015-10-23 21:37:33

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: What do you use to edit po files?

Hi there!

I tried to compile the latest (1.8.6) poedit. So many changes, and as usually I started to determine package's build depends from scratch. I added: automake gettext asciidoc libxslt xmlto util-linux-getopt. I fixed "xmlto" package on the way, and now poedit builds its man file. OK.

[c]compile_rules()
{
    ./bootstrap &&
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}[/c]
Unfortunately, no luck in the "configure" stage:

[c]checking whether i486-slitaz-linux-g++ supports C++11 features by default... no
checking whether i486-slitaz-linux-g++ supports C++11 features with -std=gnu++11... no
checking whether i486-slitaz-linux-g++ supports C++11 features with -std=gnu++0x... no
checking whether i486-slitaz-linux-g++ supports C++11 features with -std=c++11... no
checking whether i486-slitaz-linux-g++ supports C++11 features with -std=c++0x... no
configure: error: *** A compiler with support for C++11 language features is required.[/c]
________

PS. I have managed to overcome this problem smile

I added "gcc49" and "gcc49-lib-base" to the build dependencies, and exported the variable:

[c]    export CXX=/usr/bin/i486-slitaz-linux-g++-49[/c]
(I hope this helps somebody in the similar problem.)

Dependencies search continues…

[c]checking for wxWidgets version >= 3.0.0 (--unicode)... no (version 2.8.12 is not new enough)[/c]
Need to update wxWidgets… Well, compiled version 3.0.2 about 50 minutes, done. I just falling asleep, continue tomorrow…

Offline

#5 2015-10-24 19:39:50

llev
Member
Registered: 2011-12-09
Posts: 568

Re: What do you use to edit po files?

Hi Aleksej,

Thanks for your efforts. This problem with gcc is very strange. Here I have the gcc package version 4.6.3 and I routinely compile code with C++11 features. I use the -std=c++0x flag.

Offline

#6 2015-10-24 23:19:42

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: What do you use to edit po files?

Hi llev,

I used only the simplest compilation rules: something similar to famous "configure && make && make install". All that strangeness about configure script. At least it tried your flag and it not worked for him.

Process continues. I made new "lucene++" package and separated "libboost-chrono" libs from "libboost-dev" package. That "lucene++" was compiled two hours on my netbook, after that I've found it installed by default into /usr/local instead of /usr %-) Seems better I'll work on Cooking server a bit, seems it 4 times powerful: lucene++ compiled in 32 minutes instead of mine 121.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]