mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 05:48:17 +00:00
Merge #713 'Fix localization'
This commit is contained in:
@@ -125,6 +125,8 @@ CHECKFILES = \
|
||||
uk.cp1251.ck \
|
||||
zh_CN.cp936.ck
|
||||
|
||||
SOURCE_FILES = $(shell find .. -type f -name '*.[ch]')
|
||||
|
||||
PACKAGE = nvim
|
||||
SHELL = /bin/sh
|
||||
VIM = ../../../build/bin/nvim
|
||||
@@ -136,6 +138,7 @@ VIM = ../../../build/bin/nvim
|
||||
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
|
||||
XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
|
||||
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: .po .mo .pot .ck
|
||||
@@ -203,44 +206,44 @@ sjiscorr: sjiscorr.c
|
||||
|
||||
ja.euc-jp.po: 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.
|
||||
cs.cp1250.po: cs.po
|
||||
rm -f cs.cp1250.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.
|
||||
pl.cp1250.po: pl.po
|
||||
rm -f pl.cp1250.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.
|
||||
pl.UTF-8.po: pl.po
|
||||
rm -f pl.UTF-8.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.
|
||||
sk.cp1250.po: sk.po
|
||||
rm -f sk.cp1250.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.
|
||||
# set 'charset' to gbk to avoid that msfmt generates a warning
|
||||
zh_CN.cp936.po: zh_CN.po
|
||||
rm -f zh_CN.cp936.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.
|
||||
ko.po: ko.UTF-8.po
|
||||
rm -f ko.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/' \
|
||||
> ko.po
|
||||
|
||||
@@ -248,13 +251,13 @@ ko.po: ko.UTF-8.po
|
||||
ru.cp1251.po: ru.po
|
||||
rm -f ru.cp1251.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.
|
||||
uk.cp1251.po: uk.po
|
||||
rm -f uk.cp1251.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:
|
||||
@if test "x" = "x$(prefix)"; then \
|
||||
@@ -272,11 +275,11 @@ distclean: clean
|
||||
checkclean:
|
||||
rm -f *.ck
|
||||
|
||||
$(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h
|
||||
cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||
$(PACKAGE).pot: $(SOURCE_FILES)
|
||||
$(XGETTEXT) --default-domain=$(PACKAGE) \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
*.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h
|
||||
mv -f ../$(PACKAGE).po $(PACKAGE).pot
|
||||
$(SOURCE_FILES)
|
||||
mv $(PACKAGE).po $(PACKAGE).pot
|
||||
|
||||
update-po: $(LANGUAGES)
|
||||
|
||||
|
6694
src/nvim/po/af.po
6694
src/nvim/po/af.po
File diff suppressed because it is too large
Load Diff
5956
src/nvim/po/ca.po
5956
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.
|
||||
|
||||
redir! > check.log
|
||||
|
||||
" Function to get a split line at the cursor.
|
||||
" Used for both msgid and msgstr lines.
|
||||
" Removes all text except % items and returns the result.
|
||||
@@ -82,6 +84,8 @@ if error == 0
|
||||
echo "OK"
|
||||
endif
|
||||
|
||||
redir END
|
||||
|
||||
let &wrapscan = s:save_wrapscan
|
||||
unlet s:save_wrapscan
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
6850
src/nvim/po/cs.po
6850
src/nvim/po/cs.po
File diff suppressed because it is too large
Load Diff
8009
src/nvim/po/de.po
8009
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
7550
src/nvim/po/es.po
7550
src/nvim/po/es.po
File diff suppressed because it is too large
Load Diff
5711
src/nvim/po/fi.po
5711
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
5520
src/nvim/po/ga.po
5520
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
5385
src/nvim/po/ko.po
5385
src/nvim/po/ko.po
File diff suppressed because it is too large
Load Diff
5654
src/nvim/po/nb.po
5654
src/nvim/po/nb.po
File diff suppressed because it is too large
Load Diff
6254
src/nvim/po/nl.po
6254
src/nvim/po/nl.po
File diff suppressed because it is too large
Load Diff
5654
src/nvim/po/no.po
5654
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
5789
src/nvim/po/pt_BR.po
5789
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 *p;
|
||||
|
File diff suppressed because it is too large
Load Diff
5904
src/nvim/po/sk.po
5904
src/nvim/po/sk.po
File diff suppressed because it is too large
Load Diff
5787
src/nvim/po/sv.po
5787
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
6721
src/nvim/po/vi.po
6721
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
5874
src/nvim/po/zh_CN.po
5874
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
6504
src/nvim/po/zh_TW.po
6504
src/nvim/po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user