|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 25-Jul-2025 | - |
| Make_all.mak | H A D | 25-Jul-2025 | 2 KiB | 183 | 172 |
| Make_cyg.mak | H A D | 25-Jul-2025 | 2.9 KiB | 106 | 87 |
| Make_ming.mak | H A D | 25-Jul-2025 | 3.6 KiB | 129 | 110 |
| Make_mvc.mak | H A D | 25-Jul-2025 | 2.6 KiB | 103 | 81 |
| Makefile | H A D | 25-Jul-2025 | 7.5 KiB | 236 | 162 |
| README.txt | H A D | 25-Jul-2025 | 5.3 KiB | 155 | 108 |
| README_mingw.txt | H A D | 25-Jul-2025 | 3.7 KiB | 106 | 71 |
| README_mvc.txt | H A D | 25-Jul-2025 | 3.8 KiB | 120 | 72 |
| af.po | H A D | 25-Jul-2025 | 128.8 KiB | 5,345 | 3,849 |
| ca.po | H A D | 25-Jul-2025 | 179.6 KiB | 6,928 | 4,999 |
| check.vim | H A D | 25-Jul-2025 | 6 KiB | 226 | 202 |
| cleanup.vim | H A D | 25-Jul-2025 | 716 | 26 | 20 |
| cs.cp1250.po | H A D | 25-Jul-2025 | 107.3 KiB | 4,623 | 3,350 |
| cs.po | H A D | 25-Jul-2025 | 107.3 KiB | 4,623 | 3,350 |
| da.po | H A D | 25-Jul-2025 | 174.7 KiB | 7,090 | 5,128 |
| de.po | H A D | 25-Jul-2025 | 256.1 KiB | 9,491 | 6,840 |
| en_GB.po | H A D | 25-Jul-2025 | 19 KiB | 766 | 467 |
| eo.po | H A D | 25-Jul-2025 | 200 KiB | 7,874 | 5,708 |
| es.po | H A D | 25-Jul-2025 | 162.1 KiB | 6,342 | 4,640 |
| fi.po | H A D | 25-Jul-2025 | 174.7 KiB | 6,982 | 5,043 |
| fixfilenames.vim | H A D | 25-Jul-2025 | 329 | 14 | 10 |
| fr.po | H A D | 25-Jul-2025 | 220.2 KiB | 8,227 | 6,040 |
| ga.po | H A D | 25-Jul-2025 | 189.8 KiB | 7,461 | 5,435 |
| gvim.desktop.in | H A D | 25-Jul-2025 | 4 KiB | 87 | 86 |
| it.po | H A D | 25-Jul-2025 | 262 KiB | 9,214 | 6,441 |
| ja.euc-jp.po | H A D | 25-Jul-2025 | 184.3 KiB | 7,350 | 5,311 |
| ja.po | H A D | 25-Jul-2025 | 209.3 KiB | 7,350 | 5,311 |
| ja.sjis.po | H A D | 25-Jul-2025 | 184.4 KiB | 7,350 | 5,311 |
| ko.UTF-8.po | H A D | 25-Jul-2025 | 183.8 KiB | 7,002 | 5,041 |
| ko.po | H A D | 25-Jul-2025 | 166.9 KiB | 7,002 | 5,041 |
| lv.po | H A D | 25-Jul-2025 | 8.8 KiB | 282 | 203 |
| nb.po | H A D | 25-Jul-2025 | 145.8 KiB | | |
| nl.po | H A D | 25-Jul-2025 | 131.7 KiB | 5,833 | 4,198 |
| no.po | H A D | 25-Jul-2025 | 145.8 KiB | | |
| pl.UTF-8.po | H A D | 25-Jul-2025 | 172.6 KiB | 6,863 | 4,980 |
| pl.cp1250.po | H A D | 25-Jul-2025 | 169.9 KiB | 6,863 | 4,980 |
| pl.po | H A D | 25-Jul-2025 | 169.9 KiB | 6,863 | 4,980 |
| pt_BR.po | H A D | 25-Jul-2025 | 179.5 KiB | 7,005 | 5,066 |
| ru.cp1251.po | H A D | 25-Jul-2025 | 191.5 KiB | 7,482 | 5,443 |
| ru.po | H A D | 25-Jul-2025 | 243.7 KiB | 7,482 | 5,443 |
| sjiscorr.c | H A D | 25-Jul-2025 | 874 | 49 | 41 |
| sk.cp1250.po | H A D | 25-Jul-2025 | 142.7 KiB | 5,779 | 4,161 |
| sk.po | H A D | 25-Jul-2025 | 142.7 KiB | 5,779 | 4,161 |
| sr.po | H A D | 25-Jul-2025 | 325.5 KiB | 9,683 | 6,975 |
| sv.po | H A D | 25-Jul-2025 | 144.4 KiB | 6,106 | 4,420 |
| tojavascript.vim | H A D | 25-Jul-2025 | 459 | 19 | 13 |
| tr.po | H A D | 25-Jul-2025 | 266.2 KiB | 9,653 | 6,924 |
| uk.cp1251.po | H A D | 25-Jul-2025 | 178.9 KiB | 7,324 | 5,362 |
| uk.po | H A D | 25-Jul-2025 | 221.8 KiB | 7,324 | 5,362 |
| vi.po | H A D | 25-Jul-2025 | 139.1 KiB | 5,158 | 3,745 |
| vim.desktop.in | H A D | 25-Jul-2025 | 4 KiB | 87 | 86 |
| zh_CN.UTF-8.po | H A D | 25-Jul-2025 | 142.8 KiB | 6,100 | 4,404 |
| zh_CN.cp936.po | H A D | 25-Jul-2025 | 132.1 KiB | 6,100 | 4,404 |
| zh_CN.po | H A D | 25-Jul-2025 | 132.2 KiB | 6,100 | 4,404 |
| zh_TW.UTF-8.po | H A D | 25-Jul-2025 | 122.8 KiB | 5,233 | 3,793 |
| zh_TW.po | H A D | 25-Jul-2025 | 113.2 KiB | 5,226 | 3,786 |
README.txt
1TRANSLATING VIM MESSAGES
2
3In this directory you will find xx.po files, where "xx" is a language code.
4Each file contains the translation of English Vim messages for one language.
5The files are in "po" format, used by the gettext package. Please refer to
6the gettext documentation for more information.
7
8The GNU gettext library, starting with version 0.10.37, supports converting
9messages from one encoding to another. This requires that it was compiled
10with HAVE_ICONV. The result is that the messages may be in any encoding
11supported by iconv and will be automatically converted to the currently used
12encoding.
13
14The GNU gettext library, starting with version 0.10.36, uses a new format for
15some encodings. This follows the C99 standard for strings. It means that
16when a multi-byte character includes the 0x5c byte, this is not recognized as
17a backslash. Since this format is incompatible with Solaris, Vim uses the old
18format. This is done by setting the OLD_PO_FILE_OUTPUT and OLD_PO_FILE_INPUT
19environment variables. When you use the Makefile in this directory that will
20be done for you. This does NOT work with gettext 0.10.36. Don't use it, get
210.10.37.
22
23
24ON MS-WINDOWS
25
26The distributed files are generated on Unix, but this should also be possible
27on MS-Windows. Download the gettext packages, for example from:
28
29 http://sourceforge.net/projects/gettext
30
31You might have to do the commands manually. Example:
32
33 cd c:\vim\vim81
34 mkdir runtime\lang\ja\LC_MESSAGES
35 msgfmt -o runtime\lang\ja\LC_MESSAGES\vim.mo src\po\ja.po
36
37
38WHEN THERE IS A MISTAKE
39
40If you find there is a mistake in one of the translations, please report this
41to the maintainer of the translation. His/her E-mail address is in the
42comments at the start of the file. You can also see this with the ":messages"
43command in Vim when the translation is being used.
44
45
46CREATING A NEW PO FILE
47
48We will use "xx.po" as an example here, replace "xx" with the name of your
49language.
50
51- Edit Makefile to add xx to LANGUAGES and xx.mo to MOFILES.
52- If you haven't done so already, run ./configure in the top vim directory
53 (i.e. go up two directories) and then come back here afterwards.
54- Execute these commands:
55 % make vim.pot
56 % msginit -l xx
57 % rm vim.pot
58 The first command will generate a vim.pot file which is used by msginit to
59 generate a correct xx.po file. After that vim.pot is not needed.
60- The remaining work is like updating, see the next section.
61
62
63UPDATING A PO FILE
64
65If you are the maintainer of a .po file, this is how you update the file. We
66will use "xx.po" as an example here, replace "xx" with the name of your
67language.
68
69(1) Add new and changed messages from the Vim sources:
70
71 make xx
72
73 This will extract all the strings from Vim and merge them in with the
74 existing translations. Requires the GNU gettext utilities.
75 Your original xx.po file will be copied to xx.po.orig
76
77 -- After you do this, you MUST do the next three steps! --
78
79(2) Translate
80 See the gettext documentation on how to do this. You can also find
81 examples in the other po files. You can use "gF" on the file name to see
82 the context of the message.
83 Search the po file for items that require translation:
84
85 /fuzzy\|^msgstr ""\(\n"\)\@!
86
87 Remove the "#, fuzzy" line after adding the translation.
88
89 There is one special message:
90 msgid "Messages maintainer: Bram Moolenaar <[email protected]>"
91 You should include your name and E-mail address instead, for example:
92 msgstr "Berichten �bersetzt bei: John Doe <[email protected]>"
93
94(3) Remove unused messages (optional)
95 Remove messages that have been marked as obsolete.
96 Such messages start with "#~".
97
98 The cleanup script will also do that (see next step).
99
100(4) Clean up
101 This is very important to make sure the translation works on all systems.
102 Comment-out all non-translated strings. There are two types:
103 - items marked with "#, fuzzy"
104 - items with an empty msgstr
105 You can do this with the cleanup.vim script:
106
107 :source cleanup.vim
108
109 Background: on Solaris an empty msgstr results in an empty message; GNU
110 gettext ignores empty strings and items marked with "#, fuzzy".
111
112 This also removes the line numbers from the file, so that patches are not
113 messed up by changes in line numbers and show the actual changes in the
114 text.
115
116(5) Check:
117
118 While editing the .po file:
119 :source check.vim
120
121 From the command line:
122 vim -S check.vim xx.po
123 make xx.mo
124
125 Look out for syntax errors and fix them.
126
127(6) Local tryout:
128 Vim normally picks up the .mo files from:
129 $VIMRUNTIME/lang/{lang}/LC_MESSAGES/vim.mo
130 To try out the messages with Vim use:
131 make tryoutinstall
132 And run Vim with $VIMRUNTIME set to ../runtime
133
134
135USING GETTEXT WITHOUT ICONV
136
137When using gettext which doesn't support iconv, the encoding of the .mo file
138must match your active encoding. For that you must convert and change
139encoding of *.po file in advance of generating the *.mo file. For example, to
140convert ja.po to EUC-JP (supposed as your system encoding):
141
142(1) Convert the file encoding:
143
144 mv ja.po ja.po.orig
145 iconv -f utf-8 -t euc-jp ja.po.orig > ja.po
146
147(2) Rewrite charset declaration in the file:
148
149 Open ja.po find this line:
150 "Content-Type: text/plain; charset=utf-8\n"
151 You should change "charset" like this:
152 "Content-Type: text/plain; charset=euc-jp\n"
153
154There are examples in the Makefile for the conversions already supported.
155
README_mingw.txt
1TRANSLATING VIM MESSAGES
2
3This file explains how to create and maintain po files using
4gnu-gettext.win32, a MINGW32 Windows port of gettext by Franco Bez
5<[email protected]>. You can find it at:
6
7 http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
8
9First read the README.txt file for the general remarks
10
11
12The file that does the work is Make_ming.mak in the po directory. It is an
13adaptation of the Unix Makefile, but it does NOT test the presence of any po,
14pot, or mo files, so use it at your own risk but with care: it could even kill
15your canary. It has been tested by me several times (and with different
16languages) with success.
17
18The make utility must be run from the po directory.
19
20First of all you must set the environment variable LANGUAGE to xx, where xx is
21the name of your language. You can do it from the command line or adding a
22line to your autoexec.bat file: set LANGUAGE=xx. You must also add your
23language to the Make_ming.mak file in the lines LANGUAGES, MOFILES, AND
24POFILES.
25
26If you don't have a xx.po file, you must create it with the command:
27
28 make -f Make_ming.mak first_time
29
30This will produce a new brand xx.po file with all the messages in Vim ready
31for translation. Then you must source the cleanup.vim script from inside Vim;
32it will comment the untranslated messages (now, all). I recommend to use
33syntax highlighting so you can identify the untranslated messages easily.
34You also must remove the '..\' that prepends the name of the source files.
35(I don't no why, but make is unable to change the directory from po to src and
36back to po, so all the work must be done from the po dir, hence the '..\')
37
38Then you must go step (2) below.
39
40If you are updating a po file you must follow the next steps (they are nearly
41the same as in the Unix case, only the commands change):
42
43(1) Add new and changed messages from the Vim sources:
44
45 make -f Make_ming.mak xx
46
47 This will extract all the strings from Vim and merge them in with the
48 existing translations. Requires the GNU gettext utilities. Also requires
49 unpacking the extra archive.
50 Your original xx.po file will be copied to xx.po.orig
51
52 -- After you do this, you MUST do the next three steps! --
53
54(2) Translate
55 See the gettext documentation on how to do this. You can also find
56 examples in the other po files.
57 Search the po file for items that require translation:
58 /\#\~ and also the fuzzy translations, /\#, fuzzy
59 Remove "#~" and "#, fuzzy" after adding the translation.
60
61 There is one special message:
62 msgid "Messages maintainer: Bram Moolenaar <[email protected]>"
63 You should include your name and E-mail address instead, for example:
64 msgstr "Berichten �bersetzt bei: John Doe <[email protected]>"
65
66(3) Clean up
67 This is very important to make sure the translation works on all systems.
68 Comment-out all non-translated strings. There are two types:
69 - items marked with "#, fuzzy"
70 - items with an empty msgstr
71 You can do this with the cleanup.vim script:
72
73 :source cleanup.vim
74
75(4) Check:
76
77 vim -S check.vim xx.po
78 make -f Make_ming.mak xx.mo
79
80 Look out for syntax errors and fix them.
81
82(5) This is an extra step, ;-). If you want the vim.mo file installed in your
83 system you must run:
84
85 make -f Make_ming.mak install
86
87 This will create the xx\LC_MESSAGES directory (if it does not exist) and
88 will copy vim.po to it.
89 You can also use the following command to install all languages:
90
91 make -f Make_ming.mak install-all
92
93(6) Another extra step ;-)). The command:
94
95 make -f Make_ming.mak clean
96
97 will delete the temp files created during the process.
98
99Suggestions will be welcomed.
100
101Eduardo F. Amatria <[email protected]>
102
103Happy Vimming with NLS!!
104
105vim:tw=78:
106
README_mvc.txt
1TRANSLATING VIM MESSAGES
2
3This file explains how to create and maintain po files using a number of
4GnuWin packages. You will need gettext, libiconv and libexpat. As of
5August 2010 the versions known to work are gettext 0.14.4, libiconv 1.9.2-1
6and expat 2.0.1. gettext and libiconv can be found at:
7
8 http://gnuwin32.sourceforge.net/
9
10expat can be found at:
11
12 http://sourceforge.net/projects/expat/
13
14expat will install into its own directory. You should copy libexpat.dll into
15the bin directory created from the gettext/libiconv packages.
16
17First read the README.txt file in this directory for general remarks on
18translating Vim messages.
19
20
21SETUP
22
23Set the environment variable LANGUAGE to the language code for the language
24you are translating Vim messages to. Language codes are typically two
25characters and you can find a list of them at:
26
27 http://www.geocities.com/click2speak/languages.html
28
29Another possibility is to use the gnuwin32 port of gettext. This is
30recommended especially if you use already gnuwin32 tools to gunzip, bunzip,
31patch etc. these files. You find the gnuwin32 version of gettext here:
32
33 http://gnuwin32.sourceforge.net/packages/gettext.htm
34
35Yet another very strait forward way is to get the sources of gettext from
36
37 http://www.gnu.org/software/gettext/gettext.html
38
39and build your own version of these tools. The documentation states that this
40should be possible with MSVC4.0, MSVC5.0, MSVC6.0 or MSVC7.0, but you can
41build it even successfully with MSVC8.0.
42
43The LANGUAGE environment variable can be set from the command line, by adding
44a line to your autoexec.bat file, or by defining a user variable from the
45Advanced tab in the System control panel.
46
47Next, edit Make_mvc.mak so that GETTEXT_PATH points the binary directory of
48the installation.
49
50
51CREATING A NEW TRANSLATION
52
53When creating a new translation you must add your language code to the
54Make_mvc.mak file in the lines defining LANGUAGES and MOFILES. To create the
55initial .po file for your language you must use the command:
56
57 make -f make_mvc.mak first_time
58
59Note: You need to be in the po directory when using this makefile.
60
61Once you have your new .po file load it into Vim and source cleanup.vim, this
62will convert untranslated messages to comments. If you have syntax
63highlighting turned on then untranslated messages will stand out more easily.
64
65You will also need to edit the file names in the comments in the .po file.
66You need to remove the absolute directory specification (which has the form
67c:\vim61\src\). You can do this in Vim with the following command with the
68appropriate directory specification for where you have installed the Vim
69source:
70
71 %s/c:\\vim61\\src\\//g
72
73
74UPDATING A TRANSLATION
75
76If there are new or changed messages in Vim that need translating, then the
77first thing to do is merge them into the existing translations. This is done
78with the following command:
79
80 nmake -f Make_mvc.mak xx.po
81
82where xx is the language code for the language needing translations. The
83original .po file is copied to xx.po.orig.
84
85
86DOING THE TRANSLATION
87
88Now that you have a .po file you can do the translations for all messages that
89need it. See README.txt for specific instructions.
90
91Once you have finished translating the messages you should make sure all
92non-translated strings are commented out. This can be done by sourcing
93cleanup.vim once again.
94
95
96CHECKING THE TRANSLATION
97
98Check the translation with the following command:
99
100 nmake -f make_mvc.mak xx.mo
101
102Correct any syntax errors reported. When there are no more errors, the
103translation is ready to be installed.
104
105
106INSTALLING THE TRANSLATION
107
108Install your translation with the following command:
109
110 nmake -f make_mvc.mak install
111
112This will create the xx\LC_MESSAGES directory in runtime\lang if it does not
113already exist.
114You can also use the following command to install all languages:
115
116 nmake -f make_mvc.mak install-all
117
118
119vim:tw=78:
120