mirror of
https://git.proxmox.com/git/proxmox-i18n
synced 2025-04-29 22:06:00 +00:00
add Proxmox Backup Server translation package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
051e8a9ed8
commit
31f04d6ba9
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -9,3 +9,6 @@
|
|||||||
[submodule "pve-manager"]
|
[submodule "pve-manager"]
|
||||||
path = pve-manager
|
path = pve-manager
|
||||||
url = ../pve-manager/
|
url = ../pve-manager/
|
||||||
|
[submodule "proxmox-backup"]
|
||||||
|
path = proxmox-backup
|
||||||
|
url = ../proxmox-backup
|
||||||
|
32
Makefile
32
Makefile
@ -4,23 +4,25 @@ LINGUAS=de it fr ja es sv ru tr zh_CN zh_TW da ca pl sl nb nn pt_BR eu fa gl hu
|
|||||||
|
|
||||||
PVE_I18N_DEB=pve-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
PVE_I18N_DEB=pve-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
PMG_I18N_DEB=pmg-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
PMG_I18N_DEB=pmg-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
|
PBS_I18N_DEB=pbs-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
|
|
||||||
DEB1=${PMG_I18N_DEB}
|
DEBS=${PMG_I18N_DEB} $(PVE_I18N_DEB) $(PBS_I18N_DEB)
|
||||||
DEB2=$(PVE_I18N_DEB)
|
|
||||||
DEBS=$(DEB1) $(DEB2)
|
|
||||||
|
|
||||||
PMGLOCALEDIR=${DESTDIR}/usr/share/pmg-i18n
|
PMGLOCALEDIR=${DESTDIR}/usr/share/pmg-i18n
|
||||||
PVELOCALEDIR=${DESTDIR}/usr/share/pve-i18n
|
PVELOCALEDIR=${DESTDIR}/usr/share/pve-i18n
|
||||||
|
PBSLOCALEDIR=${DESTDIR}/usr/share/pbs-i18n
|
||||||
|
|
||||||
PMG_LANG_FILES=$(patsubst %, pmg-lang-%.js, $(LINGUAS))
|
PMG_LANG_FILES=$(patsubst %, pmg-lang-%.js, $(LINGUAS))
|
||||||
PVE_LANG_FILES=$(patsubst %, pve-lang-%.js, $(LINGUAS))
|
PVE_LANG_FILES=$(patsubst %, pve-lang-%.js, $(LINGUAS))
|
||||||
|
PBS_LANG_FILES=$(patsubst %, pbs-lang-%.js, $(LINGUAS))
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEBS)
|
deb: $(DEBS)
|
||||||
$(DEB2): $(DEB1)
|
$(PMG_I18N_DEB): $(PVE_I18N_DEB)
|
||||||
$(DEB1): | submodule
|
$(PBS_I18N_DEB): $(PVE_I18N_DEB)
|
||||||
|
$(PVE_I18N_DEB): | submodule
|
||||||
rm -rf dest
|
rm -rf dest
|
||||||
rsync -a * dest
|
rsync -a * dest
|
||||||
cd dest; dpkg-buildpackage -b -us -uc
|
cd dest; dpkg-buildpackage -b -us -uc
|
||||||
@ -31,11 +33,13 @@ submodule:
|
|||||||
test -f "pmg-gui/Makefile" || git submodule update --init
|
test -f "pmg-gui/Makefile" || git submodule update --init
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: ${PMG_LANG_FILES} ${PVE_LANG_FILES}
|
install: ${PMG_LANG_FILES} ${PVE_LANG_FILES} ${PBS_LANG_FILES}
|
||||||
install -d ${PMGLOCALEDIR}
|
install -d ${PMGLOCALEDIR}
|
||||||
install -m 0644 ${PMG_LANG_FILES} ${PMGLOCALEDIR}
|
install -m 0644 ${PMG_LANG_FILES} ${PMGLOCALEDIR}
|
||||||
install -d ${PVELOCALEDIR}
|
install -d ${PVELOCALEDIR}
|
||||||
install -m 0644 ${PVE_LANG_FILES} ${PVELOCALEDIR}
|
install -m 0644 ${PVE_LANG_FILES} ${PVELOCALEDIR}
|
||||||
|
install -d ${PBSLOCALEDIR}
|
||||||
|
install -m 0644 ${PBS_LANG_FILES} ${PBSLOCALEDIR}
|
||||||
|
|
||||||
|
|
||||||
pmg-lang-%.js: %.po
|
pmg-lang-%.js: %.po
|
||||||
@ -44,6 +48,9 @@ pmg-lang-%.js: %.po
|
|||||||
pve-lang-%.js: %.po
|
pve-lang-%.js: %.po
|
||||||
./po2js.pl -t pve -v "${VERSION}-${PKGREL}" -o pve-lang-$*.js $?
|
./po2js.pl -t pve -v "${VERSION}-${PKGREL}" -o pve-lang-$*.js $?
|
||||||
|
|
||||||
|
pbs-lang-%.js: %.po
|
||||||
|
./po2js.pl -t pbs -v "${VERSION}-${PKGREL}" -o pbs-lang-$*.js $?
|
||||||
|
|
||||||
# parameter 1 is the name
|
# parameter 1 is the name
|
||||||
# parameter 2 is the directory
|
# parameter 2 is the directory
|
||||||
define potupdate
|
define potupdate
|
||||||
@ -56,6 +63,7 @@ update_pot: submodule
|
|||||||
$(call potupdate,proxmox-widget-toolkit,proxmox-widget-toolkit/)
|
$(call potupdate,proxmox-widget-toolkit,proxmox-widget-toolkit/)
|
||||||
$(call potupdate,pve-manager,pve-manager/www/manager6/)
|
$(call potupdate,pve-manager,pve-manager/www/manager6/)
|
||||||
$(call potupdate,proxmox-mailgateway,pmg-gui/js/)
|
$(call potupdate,proxmox-mailgateway,pmg-gui/js/)
|
||||||
|
$(call potupdate,proxmox-backup,proxmox-backup/www/)
|
||||||
|
|
||||||
update: | update_pot messages.pot
|
update: | update_pot messages.pot
|
||||||
for i in $(LINGUAS); do echo -n "$$i: "; msgmerge -s -v $$i.po messages.pot >$$i.po.tmp && mv $$i.po.tmp $$i.po; done;
|
for i in $(LINGUAS); do echo -n "$$i: "; msgmerge -s -v $$i.po messages.pot >$$i.po.tmp && mv $$i.po.tmp $$i.po; done;
|
||||||
@ -67,7 +75,7 @@ init-%.po: messages.pot
|
|||||||
msginit -i $^ -l $^ -o $*.po --no-translator
|
msginit -i $^ -l $^ -o $*.po --no-translator
|
||||||
|
|
||||||
.INTERMEDIATE: messages.pot
|
.INTERMEDIATE: messages.pot
|
||||||
messages.pot: proxmox-widget-toolkit.pot proxmox-mailgateway.pot pve-manager.pot
|
messages.pot: proxmox-widget-toolkit.pot proxmox-mailgateway.pot pve-manager.pot proxmox-backup.pot
|
||||||
msgcat $^ > $@
|
msgcat $^ > $@
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
@ -78,10 +86,10 @@ clean:
|
|||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
rm -rf dest *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
|
rm -rf dest *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
|
||||||
|
|
||||||
.PHONY: upload-pve
|
.PHONY: upload-pve upload-pmg upload-pbs
|
||||||
upload-pve: ${PVE_I18N_DEB}
|
upload-pve: ${PVE_I18N_DEB}
|
||||||
tar cf - ${PVE_I18N_DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster
|
tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster
|
||||||
|
|
||||||
.PHONY: upload-pmg
|
|
||||||
upload-pmg: ${PMG_I18N_DEB}
|
upload-pmg: ${PMG_I18N_DEB}
|
||||||
tar cf - ${PMG_I18N_DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
|
tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist buster
|
||||||
|
upload-pbs: ${PBS_I18N_DEB}
|
||||||
|
tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist buster
|
||||||
|
6
debian/control
vendored
6
debian/control
vendored
@ -12,6 +12,12 @@ Depends:
|
|||||||
Description: Internationalization support for Proxmox Mail Gateway
|
Description: Internationalization support for Proxmox Mail Gateway
|
||||||
This package provides the translations into all available languages.
|
This package provides the translations into all available languages.
|
||||||
|
|
||||||
|
Package: pbs-i18n
|
||||||
|
Architecture: all
|
||||||
|
Depends:
|
||||||
|
Description: Internationalization support for Proxmox Backup Server
|
||||||
|
This package provides the translations into all available languages.
|
||||||
|
|
||||||
Package: pve-i18n
|
Package: pve-i18n
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends:
|
Depends:
|
||||||
|
1
proxmox-backup
Submodule
1
proxmox-backup
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 02e47b8d6e602bd9a8ac485bfdcbf333997f7527
|
Loading…
Reference in New Issue
Block a user