mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
Merge #713 'Fix localization'
This commit is contained in:
@@ -125,6 +125,8 @@ CHECKFILES = \
|
|||||||
uk.cp1251.ck \
|
uk.cp1251.ck \
|
||||||
zh_CN.cp936.ck
|
zh_CN.cp936.ck
|
||||||
|
|
||||||
|
SOURCE_FILES = $(shell find .. -type f -name '*.[ch]')
|
||||||
|
|
||||||
PACKAGE = nvim
|
PACKAGE = nvim
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
VIM = ../../../build/bin/nvim
|
VIM = ../../../build/bin/nvim
|
||||||
@@ -136,6 +138,7 @@ VIM = ../../../build/bin/nvim
|
|||||||
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
|
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
|
||||||
XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
|
XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
|
||||||
MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
|
MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
|
||||||
|
SAFE_SED = LANG=C LC_CTYPE=C LC_ALL=C sed
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .po .mo .pot .ck
|
.SUFFIXES: .po .mo .pot .ck
|
||||||
@@ -203,44 +206,44 @@ sjiscorr: sjiscorr.c
|
|||||||
|
|
||||||
ja.euc-jp.po: ja.po
|
ja.euc-jp.po: ja.po
|
||||||
iconv -f utf-8 -t euc-jp ja.po | \
|
iconv -f utf-8 -t euc-jp ja.po | \
|
||||||
sed -e 's/charset=utf-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
|
$(SAFE_SED) -e 's/charset=utf-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
|
||||||
|
|
||||||
# Convert cs.po to create cs.cp1250.po.
|
# Convert cs.po to create cs.cp1250.po.
|
||||||
cs.cp1250.po: cs.po
|
cs.cp1250.po: cs.po
|
||||||
rm -f cs.cp1250.po
|
rm -f cs.cp1250.po
|
||||||
iconv -f iso-8859-2 -t cp1250 cs.po | \
|
iconv -f iso-8859-2 -t cp1250 cs.po | \
|
||||||
sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
|
$(SAFE_SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
|
||||||
|
|
||||||
# Convert pl.po to create pl.cp1250.po.
|
# Convert pl.po to create pl.cp1250.po.
|
||||||
pl.cp1250.po: pl.po
|
pl.cp1250.po: pl.po
|
||||||
rm -f pl.cp1250.po
|
rm -f pl.cp1250.po
|
||||||
iconv -f iso-8859-2 -t cp1250 pl.po | \
|
iconv -f iso-8859-2 -t cp1250 pl.po | \
|
||||||
sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
|
$(SAFE_SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
|
||||||
|
|
||||||
# Convert pl.po to create pl.UTF-8.po.
|
# Convert pl.po to create pl.UTF-8.po.
|
||||||
pl.UTF-8.po: pl.po
|
pl.UTF-8.po: pl.po
|
||||||
rm -f pl.UTF-8.po
|
rm -f pl.UTF-8.po
|
||||||
iconv -f iso-8859-2 -t utf-8 pl.po | \
|
iconv -f iso-8859-2 -t utf-8 pl.po | \
|
||||||
sed -e 's/charset=ISO-8859-2/charset=utf-8/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.UTF-8.po
|
$(SAFE_SED) -e 's/charset=ISO-8859-2/charset=utf-8/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.UTF-8.po
|
||||||
|
|
||||||
# Convert sk.po to create sk.cp1250.po.
|
# Convert sk.po to create sk.cp1250.po.
|
||||||
sk.cp1250.po: sk.po
|
sk.cp1250.po: sk.po
|
||||||
rm -f sk.cp1250.po
|
rm -f sk.cp1250.po
|
||||||
iconv -f iso-8859-2 -t cp1250 sk.po | \
|
iconv -f iso-8859-2 -t cp1250 sk.po | \
|
||||||
sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
|
$(SAFE_SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
|
||||||
|
|
||||||
# Convert zh_CN.po to create zh_CN.cp936.po.
|
# Convert zh_CN.po to create zh_CN.cp936.po.
|
||||||
# set 'charset' to gbk to avoid that msfmt generates a warning
|
# set 'charset' to gbk to avoid that msfmt generates a warning
|
||||||
zh_CN.cp936.po: zh_CN.po
|
zh_CN.cp936.po: zh_CN.po
|
||||||
rm -f zh_CN.cp936.po
|
rm -f zh_CN.cp936.po
|
||||||
iconv -f gb2312 -t cp936 zh_CN.po | \
|
iconv -f gb2312 -t cp936 zh_CN.po | \
|
||||||
sed -e 's/charset=gb2312/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
|
$(SAFE_SED) -e 's/charset=gb2312/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
|
||||||
|
|
||||||
# Convert ko.UTF-8.po to create ko.po.
|
# Convert ko.UTF-8.po to create ko.po.
|
||||||
ko.po: ko.UTF-8.po
|
ko.po: ko.UTF-8.po
|
||||||
rm -f ko.po
|
rm -f ko.po
|
||||||
iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
|
iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
|
||||||
sed -e 's/charset=UTF-8/charset=euc-kr/' \
|
$(SAFE_SED) -e 's/charset=UTF-8/charset=euc-kr/' \
|
||||||
-e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
|
-e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
|
||||||
> ko.po
|
> ko.po
|
||||||
|
|
||||||
@@ -248,13 +251,13 @@ ko.po: ko.UTF-8.po
|
|||||||
ru.cp1251.po: ru.po
|
ru.cp1251.po: ru.po
|
||||||
rm -f ru.cp1251.po
|
rm -f ru.cp1251.po
|
||||||
iconv -f utf-8 -t cp1251 ru.po | \
|
iconv -f utf-8 -t cp1251 ru.po | \
|
||||||
sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
|
$(SAFE_SED) -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
|
||||||
|
|
||||||
# Convert uk.po to create uk.cp1251.po.
|
# Convert uk.po to create uk.cp1251.po.
|
||||||
uk.cp1251.po: uk.po
|
uk.cp1251.po: uk.po
|
||||||
rm -f uk.cp1251.po
|
rm -f uk.cp1251.po
|
||||||
iconv -f utf-8 -t cp1251 uk.po | \
|
iconv -f utf-8 -t cp1251 uk.po | \
|
||||||
sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
|
$(SAFE_SED) -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
|
||||||
|
|
||||||
prefixcheck:
|
prefixcheck:
|
||||||
@if test "x" = "x$(prefix)"; then \
|
@if test "x" = "x$(prefix)"; then \
|
||||||
@@ -272,11 +275,11 @@ distclean: clean
|
|||||||
checkclean:
|
checkclean:
|
||||||
rm -f *.ck
|
rm -f *.ck
|
||||||
|
|
||||||
$(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h
|
$(PACKAGE).pot: $(SOURCE_FILES)
|
||||||
cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
|
$(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||||
--add-comments --keyword=_ --keyword=N_ \
|
--add-comments --keyword=_ --keyword=N_ \
|
||||||
*.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h
|
$(SOURCE_FILES)
|
||||||
mv -f ../$(PACKAGE).po $(PACKAGE).pot
|
mv $(PACKAGE).po $(PACKAGE).pot
|
||||||
|
|
||||||
update-po: $(LANGUAGES)
|
update-po: $(LANGUAGES)
|
||||||
|
|
||||||
|
6692
src/nvim/po/af.po
6692
src/nvim/po/af.po
File diff suppressed because it is too large
Load Diff
5954
src/nvim/po/ca.po
5954
src/nvim/po/ca.po
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
if 1 " Only execute this if the eval feature is available.
|
if 1 " Only execute this if the eval feature is available.
|
||||||
|
|
||||||
|
redir! > check.log
|
||||||
|
|
||||||
" Function to get a split line at the cursor.
|
" Function to get a split line at the cursor.
|
||||||
" Used for both msgid and msgstr lines.
|
" Used for both msgid and msgstr lines.
|
||||||
" Removes all text except % items and returns the result.
|
" Removes all text except % items and returns the result.
|
||||||
@@ -82,6 +84,8 @@ if error == 0
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
redir END
|
||||||
|
|
||||||
let &wrapscan = s:save_wrapscan
|
let &wrapscan = s:save_wrapscan
|
||||||
unlet s:save_wrapscan
|
unlet s:save_wrapscan
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
6848
src/nvim/po/cs.po
6848
src/nvim/po/cs.po
File diff suppressed because it is too large
Load Diff
8007
src/nvim/po/de.po
8007
src/nvim/po/de.po
File diff suppressed because it is too large
Load Diff
6283
src/nvim/po/en_GB.po
6283
src/nvim/po/en_GB.po
File diff suppressed because it is too large
Load Diff
5452
src/nvim/po/eo.po
5452
src/nvim/po/eo.po
File diff suppressed because it is too large
Load Diff
7548
src/nvim/po/es.po
7548
src/nvim/po/es.po
File diff suppressed because it is too large
Load Diff
5709
src/nvim/po/fi.po
5709
src/nvim/po/fi.po
File diff suppressed because it is too large
Load Diff
5791
src/nvim/po/fr.po
5791
src/nvim/po/fr.po
File diff suppressed because it is too large
Load Diff
5518
src/nvim/po/ga.po
5518
src/nvim/po/ga.po
File diff suppressed because it is too large
Load Diff
5340
src/nvim/po/it.po
5340
src/nvim/po/it.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5331
src/nvim/po/ja.po
5331
src/nvim/po/ja.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5383
src/nvim/po/ko.po
5383
src/nvim/po/ko.po
File diff suppressed because it is too large
Load Diff
5652
src/nvim/po/nb.po
5652
src/nvim/po/nb.po
File diff suppressed because it is too large
Load Diff
6248
src/nvim/po/nl.po
6248
src/nvim/po/nl.po
File diff suppressed because it is too large
Load Diff
5652
src/nvim/po/no.po
5652
src/nvim/po/no.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5640
src/nvim/po/pl.po
5640
src/nvim/po/pl.po
File diff suppressed because it is too large
Load Diff
5787
src/nvim/po/pt_BR.po
5787
src/nvim/po/pt_BR.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5418
src/nvim/po/ru.po
5418
src/nvim/po/ru.po
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,11 @@
|
|||||||
__END_DECLS int main(int argc, char **argv)
|
// Simplistic program to correct SJIS inside strings.
|
||||||
|
// When a trail byte is a backslash it needs to be doubled.
|
||||||
|
// Public domain.
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char buffer[BUFSIZ];
|
char buffer[BUFSIZ];
|
||||||
char *p;
|
char *p;
|
||||||
|
File diff suppressed because it is too large
Load Diff
5902
src/nvim/po/sk.po
5902
src/nvim/po/sk.po
File diff suppressed because it is too large
Load Diff
5785
src/nvim/po/sv.po
5785
src/nvim/po/sv.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5657
src/nvim/po/uk.po
5657
src/nvim/po/uk.po
File diff suppressed because it is too large
Load Diff
6719
src/nvim/po/vi.po
6719
src/nvim/po/vi.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5872
src/nvim/po/zh_CN.po
5872
src/nvim/po/zh_CN.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
6502
src/nvim/po/zh_TW.po
6502
src/nvim/po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user