mirror of
https://git.proxmox.com/git/proxmox-i18n
synced 2025-10-04 14:14:41 +00:00
jsgettext.pl - add option -p to specify Project-Id-Version
This commit is contained in:
parent
5a4f77170e
commit
1bddddef4a
8
Makefile
8
Makefile
@ -43,9 +43,9 @@ pve-lang-%.js: proxmox-widget-toolkit-%.po pve-manager-%.po
|
|||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update:
|
update:
|
||||||
./jsgettext.pl -o proxmox-widget-toolkit.pot proxmox-widget-toolkit/
|
./jsgettext.pl -p "proxmox-widget-toolkit 1.0" -o proxmox-widget-toolkit.pot proxmox-widget-toolkit/
|
||||||
./jsgettext.pl -o proxmox-mailgateway.pot -b proxmox-widget-toolkit.pot proxmox-mailgateway-gui/js/
|
./jsgettext.pl -p "proxmox-mailgateway 5.0" -o proxmox-mailgateway.pot -b proxmox-widget-toolkit.pot proxmox-mailgateway-gui/js/
|
||||||
./jsgettext.pl -o pve-manager.pot -b proxmox-widget-toolkit.pot pve-manager/www/manager6/
|
./jsgettext.pl -p "pve-manager 5.0" -o pve-manager.pot -b proxmox-widget-toolkit.pot pve-manager/www/manager6/
|
||||||
for j in proxmox-widget-toolkit proxmox-mailgateway pve-manager; do for i in $(LINGUAS); do echo -n "$$j-$$i: ";msgmerge -s -v $$j-$$i.po $$j.pot >$$j-$$i.po.tmp && mv $$j-$$i.po.tmp $$j-$$i.po; done; done
|
for j in proxmox-widget-toolkit proxmox-mailgateway pve-manager; do for i in $(LINGUAS); do echo -n "$$j-$$i: ";msgmerge -s -v $$j-$$i.po $$j.pot >$$j-$$i.po.tmp && mv $$j-$$i.po.tmp $$j-$$i.po; done; done
|
||||||
|
|
||||||
# try to generate po files when someone add a new language
|
# try to generate po files when someone add a new language
|
||||||
@ -58,7 +58,7 @@ proxmox-mailgateway-%.po: proxmox-mailgateway.pot
|
|||||||
msginit -i proxmox-mailgateway.pot -l $* -o proxmox-mailgateway-$*.po
|
msginit -i proxmox-mailgateway.pot -l $* -o proxmox-mailgateway-$*.po
|
||||||
|
|
||||||
.SECONDARY: # do not delete generated intermediate file
|
.SECONDARY: # do not delete generated intermediate file
|
||||||
pve-manager-%.po:p ve-manager.pot
|
pve-manager-%.po: pve-manager.pot
|
||||||
msginit -i pve-manager.pot -l $* -o pve-manager-$*.po
|
msginit -i pve-manager.pot -l $* -o pve-manager-$*.po
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -10,7 +10,7 @@ use Encode;
|
|||||||
|
|
||||||
my $options = {};
|
my $options = {};
|
||||||
|
|
||||||
getopts('o:b:', $options) ||
|
getopts('o:b:p:', $options) ||
|
||||||
die "unable to parse options\n";
|
die "unable to parse options\n";
|
||||||
|
|
||||||
my $dirs = [@ARGV];
|
my $dirs = [@ARGV];
|
||||||
@ -21,6 +21,8 @@ foreach my $dir (@$dirs) {
|
|||||||
die "no such directory '$dir'\n" if ! -d $dir;
|
die "no such directory '$dir'\n" if ! -d $dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $projectId = $options->{p} || die "missing project ID\n";
|
||||||
|
|
||||||
my $basehref = {};
|
my $basehref = {};
|
||||||
if (my $base = $options->{b}) {
|
if (my $base = $options->{b}) {
|
||||||
my $aref = Locale::PO->load_file_asarray($base) ||
|
my $aref = Locale::PO->load_file_asarray($base) ||
|
||||||
@ -68,7 +70,7 @@ my $po = new Locale::PO(-msgid=> '',
|
|||||||
-comment=> $header,
|
-comment=> $header,
|
||||||
-fuzzy=> 1,
|
-fuzzy=> 1,
|
||||||
-msgstr=>
|
-msgstr=>
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n" .
|
"Project-Id-Version: $projectId\n" .
|
||||||
"Report-Msgid-Bugs-To: <support\@proxmox.com>\n" .
|
"Report-Msgid-Bugs-To: <support\@proxmox.com>\n" .
|
||||||
"POT-Creation-Date: $ctime\n" .
|
"POT-Creation-Date: $ctime\n" .
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" .
|
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" .
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
# Proxmox Mail Gateway message catalog.
|
# Proxmox message catalog.
|
||||||
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
||||||
# This file is distributed under the same license as the proxmox-mailgateway
|
# This file is free software: you can redistribute it and/or modify
|
||||||
# package.
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
# Proxmox Support Team <support@proxmox.com>, 2017.
|
# Proxmox Support Team <support@proxmox.com>, 2017.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||||
"PO-Revision-Date: 2017-10-02 10:29+0200\n"
|
"PO-Revision-Date: 2017-10-02 12:44+0200\n"
|
||||||
"Last-Translator: root <support@proxmox.com>\n"
|
"Last-Translator: root <support@proxmox.com>\n"
|
||||||
"Language-Team: Language proxmox-mailgateway-de\n"
|
"Language-Team: German\n"
|
||||||
"Language: proxmox-mailgateway-de\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: proxmox-mailgateway-gui/js/LDAPUserEditor.js:43
|
#: proxmox-mailgateway-gui/js/LDAPUserEditor.js:43
|
||||||
#: proxmox-mailgateway-gui/js/LDAPUserSelector.js:26
|
#: proxmox-mailgateway-gui/js/LDAPUserSelector.js:26
|
||||||
|
@ -11,7 +11,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
# Proxmox Mail Gateway message catalog.
|
# Proxmox message catalog.
|
||||||
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
||||||
# This file is distributed under the same license as the proxmox-mailgateway
|
# This file is free software: you can redistribute it and/or modify
|
||||||
# package.
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
# Proxmox Support Team <support@proxmox.com>, 2017.
|
# Proxmox Support Team <support@proxmox.com>, 2017.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: proxmox-widget-toolkit 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:49 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:56 2017\n"
|
||||||
"PO-Revision-Date: 2017-10-02 10:20+0200\n"
|
"PO-Revision-Date: 2017-10-02 12:44+0200\n"
|
||||||
"Last-Translator: root <support@proxmox.com>\n"
|
"Last-Translator: root <support@proxmox.com>\n"
|
||||||
"Language-Team: Language proxmox-widget-toolkit-de\n"
|
"Language-Team: German\n"
|
||||||
"Language: proxmox-widget-toolkit-de\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: proxmox-widget-toolkit/node/NetworkView.js:260
|
#: proxmox-widget-toolkit/node/NetworkView.js:260
|
||||||
msgid "Active"
|
msgid "Active"
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: proxmox-widget-toolkit 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:49 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:56 2017\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
# Proxmox Mail Gateway message catalog.
|
# Proxmox message catalog.
|
||||||
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
# Copyright (C) 2011-2017 Proxmox Server Solutions GmbH
|
||||||
# This file is distributed under the same license as the proxmox-mailgateway
|
# This file is free software: you can redistribute it and/or modify
|
||||||
# package.
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
# Proxmox Support Team <support@proxmox.com>, 2017.
|
# Proxmox Support Team <support@proxmox.com>, 2017.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: pve-manager 5.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||||
"PO-Revision-Date: 2017-10-02 10:29+0200\n"
|
"PO-Revision-Date: 2017-10-02 12:45+0200\n"
|
||||||
"Last-Translator: root <support@proxmox.com>\n"
|
"Last-Translator: root <support@proxmox.com>\n"
|
||||||
"Language-Team: Language pve-manager-de\n"
|
"Language-Team: German\n"
|
||||||
"Language: pve-manager-de\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: de\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: pve-manager/www/manager6/lxc/ResourceEdit.js:545
|
#: pve-manager/www/manager6/lxc/ResourceEdit.js:545
|
||||||
msgid "/some/path"
|
msgid "/some/path"
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
"Project-Id-Version: pve-manager 5.0\n"
|
||||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user