Mercurial > vim
diff src/po/README.txt @ 4502:605c9ce57ec3
Updated runtime files, language files and translations.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 21:01:10 +0200 |
parents | 96cd8222a819 |
children | ceb5f21cda79 |
line wrap: on
line diff
--- a/src/po/README.txt +++ b/src/po/README.txt @@ -107,3 +107,25 @@ language. make xx.mo Look out for syntax errors and fix them. + + +USING GETTEXT WITHOUT ICONV + +When using gettext which doesn't support iconv, the encoding of the .mo file +must match your active encoding. For that you must convert and change +encoding of *.po file in advance of generating the *.mo file. For example, to +convert ja.po to EUC-JP (supposed as your system encoding): + +(1) Convert the file encoding: + + mv ja.po ja.po.orig + iconv -f utf-8 -t euc-jp ja.po.orig > ja.po + +(2) Rewrite charset declaration in the file: + + Open ja.po find this line: + "Content-Type: text/plain; charset=utf-8\n" + You should change "charset" like this: + "Content-Type: text/plain; charset=euc-jp\n" + +There are examples in the Makefile for the conversions already supported.