5

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?

slhck
  • 235,242
Martin Thoma
  • 3,604
  • 10
  • 36
  • 65

5 Answers5

4

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
  • 1,069
1

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

Changaco
  • 111
1

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.
  • 29
0

emacs can spell-check PO files in PO-mode.

0

Here's a hacky command that can do this:

msgexec --input filename.po --newline cat | aspell list --lang=en

This will print out words that are misspelled.

Flimm
  • 10,730