Index of /pub/vim/messages

[ICO]NameLast modifiedSize

[PARENTDIR]Parent Directory  -
[   ]Make_cyg.mak2009-01-22 14:33 2.7K
[   ]Make_ming.mak2009-01-22 14:33 2.0K
[   ]Make_mvc.mak2009-01-22 14:33 1.7K
[   ]Makefile2009-01-22 14:33 5.8K
[   ]af.po2009-02-22 22:10 131K
[   ]ca.po2009-02-22 22:10 159K
[   ]cleanup.vim2007-10-29 10:41 586
[   ]cs.cp1250.po2009-02-22 22:10 108K
[   ]cs.po2009-02-22 22:10 108K
[   ]de.po2009-02-22 22:10 153K
[   ]en_GB.po2009-01-22 14:33 8.9K
[   ]eo.po2009-02-22 22:10 156K
[   ]es.po2009-02-22 22:10 137K
[   ]fi.po2009-02-22 22:10 150K
[   ]fr.po2009-02-22 22:10 176K
[   ]ga.po2009-01-22 14:33 157K
[   ]it.po2009-02-22 22:10 155K
[   ]ja.po2009-02-22 22:10 150K
[   ]ja.sjis.po2009-02-22 22:10 150K
[   ]ko.po2009-02-22 22:10 119K
[   ]main.aap2009-02-22 22:10 4.8K
[   ]no.po2009-02-22 22:10 147K
[   ]pl.UTF-8.po2009-02-22 22:10 153K
[   ]pl.cp1250.po2009-02-22 22:10 151K
[   ]pl.po2009-02-22 22:10 151K
[   ]pt_BR.po2009-01-22 14:33 154K
[   ]ru.cp1251.po2009-02-22 22:10 128K
[   ]ru.po2009-02-22 22:10 162K
[TXT]sjiscorr.c2007-10-29 10:41 932
[   ]sk.cp1250.po2009-02-22 22:10 144K
[   ]sk.po2009-02-22 22:10 144K
[   ]sv.po2009-02-22 22:10 146K
[   ]uk.cp1251.po2009-01-22 14:34 152K
[   ]uk.po2009-01-22 14:33 187K
[   ]vi.po2009-02-22 22:10 141K
[   ]zh_CN.UTF-8.po2009-02-22 22:10 144K
[   ]zh_CN.cp936.po2009-02-22 22:10 134K
[   ]zh_CN.po2009-02-22 22:10 134K
[   ]zh_TW.UTF-8.po2009-02-22 22:10 125K
[   ]zh_TW.po2009-02-22 22:10 115K


In this directory you will find xx.po files, where "xx" is a language code.
Each file contains the translation of English Vim messages for one language.
The files are in "po" format, used by the gettext package.  Please refer to
the gettext documentation for more information.

The GNU gettext library, starting with version 0.10.37, supports converting
messages from one encoding to another.  This requires that it was compiled
with HAVE_ICONV.  The result is that the messages may be in any encoding
supported by iconv and will be automatically converted to the currently used

The GNU gettext library, starting with version 0.10.36, uses a new format for
some encodings.  This follows the C99 standard for strings.  It means that
when a multi-byte character includes the 0x5c byte, this is not recognized as
a backslash.  Since this format is incompatible with Solaris, Vim uses the old
format.  This is done by setting the OLD_PO_FILE_OUTPUT and OLD_PO_FILE_INPUT
environment variables.  When you use the Makefile in this directory that will
be done for you.  This does NOT work with gettext 0.10.36.  Don't use it, get


The distributed files are generated on Unix, but this should also be possible
on MS-Windows.  Download the gettext packages, for example from:

You might have to do the commands manually.  Example:

   cd c:\vim\vim71
   mkdir runtime\lang\ja\LC_MESSAGES
   msgfmt -o runtime\lang\ja\LC_MESSAGES\ src\po\ja.po


If you find there is a mistake in one of the translations, please report this
to the maintainer of the translation.  His/her E-mail address is in the
comments at the start of the file.  You can also see this with the ":messages"
command in Vim when the translation is being used.


We will use "xx.po" as an example here, replace "xx" with the name of your

- Edit Makefile to add xx to LANGUAGES and to MOFILES.
- Copy the header of an existing file, e.g., de.po, to xx.po.  Do not copy any
  of the translated messages, delete everything after the "msgstr".
- The remaining work is like updating, see the next section.


If you are the maintainer of a .po file, this is how you update the file.  We
will use "xx.po" as an example here, replace "xx" with the name of your

(1) Add new and changed messages from the Vim sources:

	make xx

    This will extract all the strings from Vim and merge them in with the
    existing translations.  Requires the GNU gettext utilities.  Also requires
    unpacking the extra archive.
    Your original xx.po file will be copied to xx.po.orig

    -- After you do this, you MUST do the next three steps! --

(2) Translate
    See the gettext documentation on how to do this.  You can also find
    examples in the other po files.
    Search the po file for items that require translation:

	/fuzzy\|^msgstr ""\(\n"\)\@!

    Remove the "#, fuzzy" line after adding the translation.

    There is one special message:
	msgid "Messages maintainer: Bram Moolenaar <>"
    You should include your name and E-mail address instead, for example:
	msgstr "Berichten übersetzt bei: John Doe <>"

(3) Clean up
    This is very important to make sure the translation works on all systems.
    Comment-out all non-translated strings.  There are two types:
    - items marked with "#, fuzzy"
    - items with an empty msgstr
    You can do this with the cleanup.vim script:

	:source cleanup.vim

    Background: on Solaris an empty msgstr results in an empty message; GNU
    gettext ignores empty strings and items marked with "#, fuzzy".

    This also removes the line numbers from the file, so that patches are not
    messed up by changes in line numbers and show the actual changes in the

(4) Check:

	vim -S check.vim xx.po

    Look out for syntax errors and fix them.