Initial commit.

This commit is contained in:
2026-03-10 21:25:26 +08:00
commit 78739bf725
3089 changed files with 472990 additions and 0 deletions

49
po/selima/Makefile Normal file
View File

@@ -0,0 +1,49 @@
# Possible make targets:
# all: Compile the PO files and copy the binary MO files
# into the appropriate directories
# xgettext: Obtain the newest PO template file $(PACKAGE).pot
# from the source programs, and do msgmerge to compare
# the $(PACKAGE).pot and existing PO files to obtain
# the newest POX files to work with
PACKAGE = selima
#ALLLINGUAS = en_US zh_TW zh_CN
ALLLINGUAS = zh_TW zh_CN
PKGROOT = ../..
PODIR = po/selima
LOCALEDIR = $(PKGROOT)/locale
CATEGORY = LC_MESSAGES
PROGRAMS = lib/perl5/*.pm lib/perl5/*/*.pm lib/perl5/*/*/*.pm lib/perl5/*/*/*/*.pm lib/perl5/*/*/*/*/*.pm lib/perl5/*/*/*/*/*/*.pm
all:
opencc -c tw2sp.json -i zh_TW.po -o /dev/stdout \
| sed "s/^# Traditional Chinese PO file for the /# Simplified Chinese PO file for the /" \
| sed "s/^\"PO-Revision-Date: .*\"/\"PO-Revision-Date: `date \"+%Y-%m-%d %H:%M%z\"`\\\\n\"/" \
> zh_CN.po; \
for ln in $(ALLLINGUAS); do \
msgfmt $$ln.po -o $$ln.gmo; \
test -d $(LOCALEDIR) || \
(rm -rf $(LOCALEDIR) && \
mkdir $(LOCALEDIR)); \
test -d $(LOCALEDIR)/$$ln || \
(rm -rf $(LOCALEDIR)/$$ln && \
mkdir $(LOCALEDIR)/$$ln); \
test -d $(LOCALEDIR)/$$ln/$(CATEGORY) || \
(rm -rf $(LOCALEDIR)/$$ln/$(CATEGORY) && \
mkdir $(LOCALEDIR)/$$ln/$(CATEGORY)); \
rm -f $(LOCALEDIR)/$$ln/$(CATEGORY)/$(PACKAGE).mo; \
cp $$ln.gmo $(LOCALEDIR)/$$ln/$(CATEGORY)/$(PACKAGE).mo; \
done
xgettext:
cd $(PKGROOT); \
xgettext --keyword=C_ --keyword=F_ --keyword=N_ -p $(PODIR)/ -o $(PACKAGE).pot \
--language=c $(PROGRAMS); \
cd $(PODIR); \
for ln in $(ALLLINGUAS); do \
msgmerge $$ln.po $(PACKAGE).pot > $$ln.pox; \
done
clean:
rm -f *.gmo

3366
po/selima/selima.pot Normal file

File diff suppressed because it is too large Load Diff

BIN
po/selima/zh_CN.gmo Normal file

Binary file not shown.

3376
po/selima/zh_CN.po Normal file

File diff suppressed because it is too large Load Diff

3376
po/selima/zh_CN.pox Normal file

File diff suppressed because it is too large Load Diff

BIN
po/selima/zh_TW.gmo Normal file

Binary file not shown.

3376
po/selima/zh_TW.po Normal file

File diff suppressed because it is too large Load Diff

3376
po/selima/zh_TW.pox Normal file

File diff suppressed because it is too large Load Diff