Is there a Linux software to spell check .po files?

3

I am translating some po-files and I would like to run a spell checker over them. I have Ubuntu 10.10 and use gtranslator. As far as I know, gtranslator can't spellcheck the whole file.

I tried ispell: $ ispell lordsawar-0.2.0-pre4.de.po - this doesn't work, as English and German strings, as well as some programming-relevant comments appear in the .po-file.

Do you know any program running on Ubuntu which can spell check po-files?

Martin Thoma

Posted 2011-03-17T07:10:49.337

Reputation: 2 705

Answers

2

I've just pushed a po file spell checker to github: https://github.com/holygeek/pospelchek

The behavior imitates aspell wherein it shows you the mispelled word and suggests corrections.

Run it like this:

$ pospelchek -l de_DE lordsawar-0.2.0-pre4.de.po

or to get the man page:

$ pospelchek -h

holygeek

Posted 2011-03-17T07:10:49.337

Reputation: 941

You'll have to install the relevant dictionaries for the languages that you want to spellcheck. These are the same dictionaries that aspell uses. – holygeek – 2011-08-16T15:20:46.603

2

You could try this online tool: poeditor.com, it doesn't have an actual spell check option, but you can have a translator do that for you via the platform as a contributor to your project, or you could try to compare your translation to an automatic one that the program can generate.

Taji M.

Posted 2011-03-17T07:10:49.337

Reputation: 31

0

There is spellcheck, an aspell wrapper script written in python that adds basic support for .po files (requires Babel).

Changaco

Posted 2011-03-17T07:10:49.337

Reputation: 101