mirror of
https://git.proxmox.com/git/proxmox-i18n
synced 2025-10-04 14:33:31 +00:00
jsgettext.pl - add option -p to specify Project-Id-Version
This commit is contained in:
parent
5a4f77170e
commit
1bddddef4a
6
Makefile
6
Makefile
@ -43,9 +43,9 @@ pve-lang-%.js: proxmox-widget-toolkit-%.po pve-manager-%.po
|
||||
|
||||
.PHONY: update
|
||||
update:
|
||||
./jsgettext.pl -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 -o pve-manager.pot -b proxmox-widget-toolkit.pot pve-manager/www/manager6/
|
||||
./jsgettext.pl -p "proxmox-widget-toolkit 1.0" -o proxmox-widget-toolkit.pot proxmox-widget-toolkit/
|
||||
./jsgettext.pl -p "proxmox-mailgateway 5.0" -o proxmox-mailgateway.pot -b proxmox-widget-toolkit.pot proxmox-mailgateway-gui/js/
|
||||
./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
|
||||
|
||||
# try to generate po files when someone add a new language
|
||||
|
@ -10,7 +10,7 @@ use Encode;
|
||||
|
||||
my $options = {};
|
||||
|
||||
getopts('o:b:', $options) ||
|
||||
getopts('o:b:p:', $options) ||
|
||||
die "unable to parse options\n";
|
||||
|
||||
my $dirs = [@ARGV];
|
||||
@ -21,6 +21,8 @@ foreach my $dir (@$dirs) {
|
||||
die "no such directory '$dir'\n" if ! -d $dir;
|
||||
}
|
||||
|
||||
my $projectId = $options->{p} || die "missing project ID\n";
|
||||
|
||||
my $basehref = {};
|
||||
if (my $base = $options->{b}) {
|
||||
my $aref = Locale::PO->load_file_asarray($base) ||
|
||||
@ -68,7 +70,7 @@ my $po = new Locale::PO(-msgid=> '',
|
||||
-comment=> $header,
|
||||
-fuzzy=> 1,
|
||||
-msgstr=>
|
||||
"Project-Id-Version: proxmox-mailgateway 5.0\n" .
|
||||
"Project-Id-Version: $projectId\n" .
|
||||
"Report-Msgid-Bugs-To: <support\@proxmox.com>\n" .
|
||||
"POT-Creation-Date: $ctime\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
|
||||
# This file is distributed under the same license as the proxmox-mailgateway
|
||||
# package.
|
||||
# This file is free software: you can redistribute it and/or modify
|
||||
# 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.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: proxmox-mailgateway 5.0\n"
|
||||
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
|
||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 10:29+0200\n"
|
||||
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 12:44+0200\n"
|
||||
"Last-Translator: root <support@proxmox.com>\n"
|
||||
"Language-Team: Language proxmox-mailgateway-de\n"
|
||||
"Language: proxmox-mailgateway-de\n"
|
||||
"Language-Team: German\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\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/LDAPUserSelector.js:26
|
||||
|
@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: proxmox-mailgateway 5.0\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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
|
||||
# This file is distributed under the same license as the proxmox-mailgateway
|
||||
# package.
|
||||
# This file is free software: you can redistribute it and/or modify
|
||||
# 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.
|
||||
#
|
||||
msgid ""
|
||||
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"
|
||||
"POT-Creation-Date: Mon Oct 2 12:29:49 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 10:20+0200\n"
|
||||
"POT-Creation-Date: Mon Oct 2 12:43:56 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 12:44+0200\n"
|
||||
"Last-Translator: root <support@proxmox.com>\n"
|
||||
"Language-Team: Language proxmox-widget-toolkit-de\n"
|
||||
"Language: proxmox-widget-toolkit-de\n"
|
||||
"Language-Team: German\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: proxmox-widget-toolkit/node/NetworkView.js:260
|
||||
msgid "Active"
|
||||
|
@ -9,9 +9,9 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
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"
|
||||
"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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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
|
||||
# This file is distributed under the same license as the proxmox-mailgateway
|
||||
# package.
|
||||
# This file is free software: you can redistribute it and/or modify
|
||||
# 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.
|
||||
#
|
||||
msgid ""
|
||||
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"
|
||||
"POT-Creation-Date: Mon Oct 2 12:29:50 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 10:29+0200\n"
|
||||
"POT-Creation-Date: Mon Oct 2 12:43:57 2017\n"
|
||||
"PO-Revision-Date: 2017-10-02 12:45+0200\n"
|
||||
"Last-Translator: root <support@proxmox.com>\n"
|
||||
"Language-Team: Language pve-manager-de\n"
|
||||
"Language: pve-manager-de\n"
|
||||
"Language-Team: German\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\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
|
||||
msgid "/some/path"
|
||||
|
@ -9,9 +9,9 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
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"
|
||||
"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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <support@proxmox.com>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user