4

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
  • 223,558
  • 70
  • 607
  • 592
Martin Thoma
  • 3,384
  • 9
  • 31
  • 65

4 Answers4

3

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,039
  • 8
  • 8
  • 1
    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 Aug 16 '11 at 15:20
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
  • 2
0

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

Changaco
  • 101
  • 2
0

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

Dmitry Grigoryev
  • 9,151
  • 4
  • 43
  • 77