sponsor Vim development Vim logo Vim Book Ad

po.vim : Gettext PO syntax highlighting

 script karma  Rating 51/23, Downloaded by 3967  Comments, bugs, improvements  Vim wiki

created by
Dwayne Bailey
script type
This version of po.vim enhances the default PO syntax highlighting within vim to add the following new features and improvements:

* Gettext context entries are highlighted
* Allows spell checking in msgstr

Please test and report bugs or ask for new feature by emailing dwayne@translate.org.za

NOTE: The long list of original features have been upstreamed and are available in a default vim installation.
install details
Installing the syntax highlighter
Place in your local .vim/syntax
On Fedora place in /usr/share/vim/vim71/syntax for the new PO highlighting to be available to everyone.  This should be a similar place for other distributions.

Enabling spell checking
To enable the Afrikaans (af) spell checker type:
:set spell spelllang=af

Now for further help on using spell checking:
:help spell

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
po.vim 20080108 2008-04-07 7.0 Dwayne Bailey Further improvement to spell checking [Contributed by Leonardo Fontenelle]
po.vim 20070823 2007-08-23 7.0 Dwayne Bailey Adds the ability to spell check translated text (Contributed by: Leonardo Fontenelle)
po.vim 20060127 2006-01-27 6.0 Dwayne Bailey * Highlight msgctxt (message context tags) - new in Gettext
* Message context is shown highlighted as a comment
* Unset plural forms in headers are now also highlighted
po.vim 20041113 2004-11-13 6.0 Dwayne Bailey msguniq and msgcat conflicts are highlighted correctly even if the #-#-#-#-# is split over two lines.
po.vim 20040209 2004-02-19 6.0 Dwayne Bailey Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.