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

53
po/monica/Makefile Normal file
View File

@@ -0,0 +1,53 @@
# 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 = monica
ALLLINGUAS = zh_TW zh_CN de_DE ja_JP ko_KR es_ES
PKGROOT = ../..
PODIR = po/monica
LOCALEDIR = $(PKGROOT)/locale
CATEGORY = LC_MESSAGES
PROGRAMS = lib/php/monica/*.inc.php
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=_ --keyword=C_ --keyword=N_ --keyword=NC_ --keyword=Nn_:1,2 --keyword=NCn_:1,2 -p $(PODIR)/ -o $(PACKAGE).pot \
--language=c $(PROGRAMS); \
cd $(PODIR); \
for ln in $(ALLLINGUAS); do \
case $$ln in \
ja_JP) \
msgmerge $$ln.utf8.po $(PACKAGE).pot > $$ln.utf8.pox; ;; \
*) \
msgmerge $$ln.po $(PACKAGE).pot > $$ln.pox; ;; \
esac; \
done
clean:
rm -f *.gmo

BIN
po/monica/de_DE.gmo Normal file

Binary file not shown.

3763
po/monica/de_DE.po Normal file

File diff suppressed because it is too large Load Diff

3763
po/monica/de_DE.pox Normal file

File diff suppressed because it is too large Load Diff

BIN
po/monica/es_ES.gmo Normal file

Binary file not shown.

3297
po/monica/es_ES.po Normal file

File diff suppressed because it is too large Load Diff

3297
po/monica/es_ES.pox Normal file

File diff suppressed because it is too large Load Diff

BIN
po/monica/ja_JP.gmo Normal file

Binary file not shown.

3296
po/monica/ja_JP.po Normal file

File diff suppressed because it is too large Load Diff

3296
po/monica/ja_JP.pox Normal file

File diff suppressed because it is too large Load Diff

BIN
po/monica/ko_KR.gmo Normal file

Binary file not shown.

3296
po/monica/ko_KR.po Normal file

File diff suppressed because it is too large Load Diff

3296
po/monica/ko_KR.pox Normal file

File diff suppressed because it is too large Load Diff

3302
po/monica/monica.pot Normal file

File diff suppressed because it is too large Load Diff

BIN
po/monica/zh_CN.gmo Normal file

Binary file not shown.

3243
po/monica/zh_CN.po Normal file

File diff suppressed because it is too large Load Diff

3243
po/monica/zh_CN.pox Normal file

File diff suppressed because it is too large Load Diff

BIN
po/monica/zh_TW.gmo Normal file

Binary file not shown.

3243
po/monica/zh_TW.po Normal file

File diff suppressed because it is too large Load Diff

3243
po/monica/zh_TW.pox Normal file

File diff suppressed because it is too large Load Diff