[vhffs-dev] [2096] reworked update-POTFILES.in.pl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 2096
Author: gradator
Date: 2012-03-02 22:50:49 +0100 (Fri, 02 Mar 2012)
Log Message:
-----------
reworked update-POTFILES.in.pl
Modified Paths:
--------------
trunk/vhffs-intl/POTFILES.in
trunk/vhffs-intl/update-POTFILES.in.pl
Modified: trunk/vhffs-intl/POTFILES.in
===================================================================
--- trunk/vhffs-intl/POTFILES.in 2012-03-02 21:31:09 UTC (rev 2095)
+++ trunk/vhffs-intl/POTFILES.in 2012-03-02 21:50:49 UTC (rev 2096)
@@ -1,282 +1,133 @@
-vhffs-api/src/examples/add_acl_dns.pl
-vhffs-api/src/examples/add_acl.pl
-vhffs-api/src/examples/create_box.pl
-vhffs-api/src/examples/create_cvs_panel.pl
-vhffs-api/src/examples/create_cvs.pl
-vhffs-api/src/examples/create_dir.pl
-vhffs-api/src/examples/create_dns.pl
-vhffs-api/src/examples/create_forward.pl
-vhffs-api/src/examples/create_group_by_panel.pl
-vhffs-api/src/examples/create_group.pl
-vhffs-api/src/examples/create_list.pl
-vhffs-api/src/examples/create_mail.pl
-vhffs-api/src/examples/create_mysql_panel.pl
-vhffs-api/src/examples/create_mysql.pl
-vhffs-api/src/examples/create_panel_mail.pl
-vhffs-api/src/examples/create_postgres.pl
-vhffs-api/src/examples/create_repository.pl
-vhffs-api/src/examples/create_user.pl
-vhffs-api/src/examples/create_web_panel.pl
-vhffs-api/src/examples/create_web.pl
-vhffs-api/src/examples/delbox.pl
-vhffs-api/src/examples/delete_acl.pl
-vhffs-api/src/examples/generate_password.pl
-vhffs-api/src/examples/get_list.pl
-vhffs-api/src/examples/hashdomain.pl
-vhffs-api/src/examples/hashhome_example.pl
-vhffs-api/src/examples/hashpopuser.pl
-vhffs-api/src/examples/hash_webdir.pl
-vhffs-api/src/examples/join_group.pl
-vhffs-api/src/examples/list_themes.pl
-vhffs-api/src/examples/mailuser_add_box.pl
-vhffs-api/src/examples/mailuser.pl
-vhffs-api/src/examples/modify_acl.pl
-vhffs-api/src/examples/modify_user.pl
-vhffs-api/src/examples/perm_for_user.pl
-vhffs-api/src/examples/print_domain.pl
-vhffs-api/src/examples/show_acl_per_object.pl
-vhffs-api/src/examples/show_dns_per_group.pl
-vhffs-api/src/examples/show_dns_per_user.pl
-vhffs-api/src/examples/show_dumper_cvs.pl
-vhffs-api/src/examples/show_dumper_group.pl
-vhffs-api/src/examples/show_dumper_object.pl
-vhffs-api/src/examples/show_dumper_user.pl
-vhffs-api/src/examples/show_groups_per_user.pl
-vhffs-api/src/examples/show_last_users.pl
-vhffs-api/src/examples/show_mail_conf.pl
-vhffs-api/src/examples/show_mail_per_group.pl
-vhffs-api/src/examples/show_members_from_list.pl
-vhffs-api/src/examples/stats.pl
+vhffs-api/examples/add_acl.pl
+vhffs-api/examples/add_acl_dns.pl
+vhffs-api/examples/create_box.pl
+vhffs-api/examples/create_cvs.pl
+vhffs-api/examples/create_cvs_panel.pl
+vhffs-api/examples/create_dns.pl
+vhffs-api/examples/create_forward.pl
+vhffs-api/examples/create_group.pl
+vhffs-api/examples/create_group_by_panel.pl
+vhffs-api/examples/create_list.pl
+vhffs-api/examples/create_mail.pl
+vhffs-api/examples/create_mysql.pl
+vhffs-api/examples/create_mysql_panel.pl
+vhffs-api/examples/create_panel_mail.pl
+vhffs-api/examples/create_postgres.pl
+vhffs-api/examples/create_repository.pl
+vhffs-api/examples/create_user.pl
+vhffs-api/examples/create_web.pl
+vhffs-api/examples/create_web_panel.pl
+vhffs-api/examples/delbox.pl
+vhffs-api/examples/delete_acl.pl
+vhffs-api/examples/generate_password.pl
+vhffs-api/examples/get_list.pl
+vhffs-api/examples/join_group.pl
+vhffs-api/examples/list_themes.pl
+vhffs-api/examples/mailuser.pl
+vhffs-api/examples/mailuser_add_box.pl
+vhffs-api/examples/modify_acl.pl
+vhffs-api/examples/modify_user.pl
+vhffs-api/examples/perm_for_user.pl
+vhffs-api/examples/print_domain.pl
+vhffs-api/examples/show_acl_per_object.pl
+vhffs-api/examples/show_dns_per_group.pl
+vhffs-api/examples/show_dns_per_user.pl
+vhffs-api/examples/show_dumper_cvs.pl
+vhffs-api/examples/show_dumper_group.pl
+vhffs-api/examples/show_dumper_object.pl
+vhffs-api/examples/show_dumper_user.pl
+vhffs-api/examples/show_groups_per_user.pl
+vhffs-api/examples/show_last_users.pl
+vhffs-api/examples/show_mail_conf.pl
+vhffs-api/examples/show_mail_per_group.pl
+vhffs-api/examples/show_members_from_list.pl
+vhffs-api/examples/stats.pl
+vhffs-api/src/Vhffs.pm
vhffs-api/src/Vhffs/Acl.pm
+vhffs-api/src/Vhffs/Broadcast.pm
vhffs-api/src/Vhffs/Conf.pm
vhffs-api/src/Vhffs/Constants.pm
-vhffs-api/src/Vhffs/Debug.pm
vhffs-api/src/Vhffs/Functions.pm
vhffs-api/src/Vhffs/Group.pm
vhffs-api/src/Vhffs/Listengine.pm
-vhffs-api/src/Vhffs/Mailings.pm
-vhffs-api/src/Vhffs/Main.pm
-vhffs-api/src/Vhffs/ObjectFactory.pm
vhffs-api/src/Vhffs/Object.pm
+vhffs-api/src/Vhffs/ObjectFactory.pm
+vhffs-api/src/Vhffs/Panel.pm
+vhffs-api/src/Vhffs/Panel/Acl.pm
vhffs-api/src/Vhffs/Panel/Admin.pm
+vhffs-api/src/Vhffs/Panel/Auth.pm
vhffs-api/src/Vhffs/Panel/Avatar.pm
vhffs-api/src/Vhffs/Panel/Bazaar.pm
+vhffs-api/src/Vhffs/Panel/Broadcast.pm
vhffs-api/src/Vhffs/Panel/Commons.pm
+vhffs-api/src/Vhffs/Panel/Contact.pm
vhffs-api/src/Vhffs/Panel/Cron.pm
vhffs-api/src/Vhffs/Panel/Cvs.pm
vhffs-api/src/Vhffs/Panel/DNS.pm
vhffs-api/src/Vhffs/Panel/Git.pm
vhffs-api/src/Vhffs/Panel/Group.pm
-vhffs-api/src/Vhffs/Panel/MailingList.pm
+vhffs-api/src/Vhffs/Panel/Home.pm
vhffs-api/src/Vhffs/Panel/Mail.pm
-vhffs-api/src/Vhffs/Panel/Main.pm
-vhffs-api/src/Vhffs/Panel/Menu.pm
+vhffs-api/src/Vhffs/Panel/MailingList.pm
vhffs-api/src/Vhffs/Panel/Mercurial.pm
+vhffs-api/src/Vhffs/Panel/Moderation.pm
vhffs-api/src/Vhffs/Panel/Mysql.pm
vhffs-api/src/Vhffs/Panel/Object.pm
vhffs-api/src/Vhffs/Panel/Pgsql.pm
vhffs-api/src/Vhffs/Panel/Public.pm
vhffs-api/src/Vhffs/Panel/Repository.pm
+vhffs-api/src/Vhffs/Panel/Stats.pm
+vhffs-api/src/Vhffs/Panel/Subscribe.pm
vhffs-api/src/Vhffs/Panel/Svn.pm
vhffs-api/src/Vhffs/Panel/Tag.pm
-vhffs-api/src/Vhffs/Panel/Template.pm
vhffs-api/src/Vhffs/Panel/User.pm
vhffs-api/src/Vhffs/Panel/Web.pm
+vhffs-api/src/Vhffs/Robots.pm
vhffs-api/src/Vhffs/Robots/Bazaar.pm
+vhffs-api/src/Vhffs/Robots/Broadcast.pm
vhffs-api/src/Vhffs/Robots/Cron.pm
vhffs-api/src/Vhffs/Robots/Cvs.pm
+vhffs-api/src/Vhffs/Robots/DNS.pm
vhffs-api/src/Vhffs/Robots/Git.pm
vhffs-api/src/Vhffs/Robots/Group.pm
-vhffs-api/src/Vhffs/Robots/Mailing.pm
vhffs-api/src/Vhffs/Robots/Mail.pm
+vhffs-api/src/Vhffs/Robots/MailingList.pm
vhffs-api/src/Vhffs/Robots/Mercurial.pm
vhffs-api/src/Vhffs/Robots/Mysql.pm
vhffs-api/src/Vhffs/Robots/Pgsql.pm
-vhffs-api/src/Vhffs/Robots.pm
vhffs-api/src/Vhffs/Robots/Repository.pm
vhffs-api/src/Vhffs/Robots/Svn.pm
vhffs-api/src/Vhffs/Robots/User.pm
+vhffs-api/src/Vhffs/Robots/UserGroup.pm
vhffs-api/src/Vhffs/Robots/Web.pm
+vhffs-api/src/Vhffs/Services.pm
vhffs-api/src/Vhffs/Services/Bazaar.pm
vhffs-api/src/Vhffs/Services/Cron.pm
vhffs-api/src/Vhffs/Services/Cvs.pm
vhffs-api/src/Vhffs/Services/DNS.pm
vhffs-api/src/Vhffs/Services/Git.pm
-vhffs-api/src/Vhffs/Services/MailGroup.pm
-vhffs-api/src/Vhffs/Services/MailingList.pm
vhffs-api/src/Vhffs/Services/Mail.pm
+vhffs-api/src/Vhffs/Services/MailGroup.pm
vhffs-api/src/Vhffs/Services/MailUser.pm
+vhffs-api/src/Vhffs/Services/MailingList.pm
vhffs-api/src/Vhffs/Services/Mercurial.pm
vhffs-api/src/Vhffs/Services/Mysql.pm
vhffs-api/src/Vhffs/Services/Newsletter.pm
vhffs-api/src/Vhffs/Services/Pgsql.pm
-vhffs-api/src/Vhffs/Services.pm
vhffs-api/src/Vhffs/Services/Repository.pm
vhffs-api/src/Vhffs/Services/Svn.pm
vhffs-api/src/Vhffs/Services/Web.pm
vhffs-api/src/Vhffs/Stats.pm
-vhffs-api/src/Vhffs/Tag/Category.pm
vhffs-api/src/Vhffs/Tag.pm
+vhffs-api/src/Vhffs/Tag/Category.pm
vhffs-api/src/Vhffs/Tag/Request.pm
vhffs-api/src/Vhffs/User.pm
+vhffs-api/src/Vhffs/UserGroup.pm
+vhffs-intl/extra_strings.pl
+vhffs-intl/template_strings.pl
+vhffs-intl/update-POTFILES.in.pl
vhffs-irc/modobot.pl
vhffs-jabber/vhffspipe.pl
vhffs-listengine/src/listengine.pl
-vhffs-panel/acl/view.pl
-vhffs-panel/admin/bazaar/index.pl
-vhffs-panel/admin/bazaar/list.pl
-vhffs-panel/admin/bazaar/search.pl
-vhffs-panel/admin/broadcast_delete.pl
-vhffs-panel/admin/broadcast_list.pl
-vhffs-panel/admin/broadcast.pl
-vhffs-panel/admin/broadcast_submit.pl
-vhffs-panel/admin/broadcast_view.pl
-vhffs-panel/admin/cron/index.pl
-vhffs-panel/admin/cron/list.pl
-vhffs-panel/admin/cron/search.pl
-vhffs-panel/admin/cvs/index.pl
-vhffs-panel/admin/cvs/list.pl
-vhffs-panel/admin/cvs/search.pl
-vhffs-panel/admin/dns/index.pl
-vhffs-panel/admin/dns/list.pl
-vhffs-panel/admin/dns/search.pl
-vhffs-panel/admin/git/index.pl
-vhffs-panel/admin/git/list.pl
-vhffs-panel/admin/git/search.pl
-vhffs-panel/admin/group/index.pl
-vhffs-panel/admin/group/list.pl
-vhffs-panel/admin/group/search.pl
-vhffs-panel/admin/index.pl
-vhffs-panel/admin/mail/index.pl
-vhffs-panel/admin/mailinglist/index.pl
-vhffs-panel/admin/mailinglist/list.pl
-vhffs-panel/admin/mailinglist/search.pl
-vhffs-panel/admin/mail/list.pl
-vhffs-panel/admin/mail/search.pl
-vhffs-panel/admin/mercurial/index.pl
-vhffs-panel/admin/mercurial/list.pl
-vhffs-panel/admin/mercurial/search.pl
-vhffs-panel/admin/moderation.pl
-vhffs-panel/admin/moderation_submit.pl
-vhffs-panel/admin/mysql/index.pl
-vhffs-panel/admin/mysql/list.pl
-vhffs-panel/admin/mysql/search.pl
-vhffs-panel/admin/object/delete_avatar.pl
-vhffs-panel/admin/object/edit.pl
-vhffs-panel/admin/object/edit_submit.pl
-vhffs-panel/admin/object/list.pl
-vhffs-panel/admin/object/search.pl
-vhffs-panel/admin/pgsql/index.pl
-vhffs-panel/admin/pgsql/list.pl
-vhffs-panel/admin/pgsql/search.pl
-vhffs-panel/admin/repository/index.pl
-vhffs-panel/admin/repository/list.pl
-vhffs-panel/admin/repository/search.pl
-vhffs-panel/admin/stats.pl
-vhffs-panel/admin/su.pl
-vhffs-panel/admin/svn/index.pl
-vhffs-panel/admin/svn/list.pl
-vhffs-panel/admin/svn/search.pl
-vhffs-panel/admin/tag/category/create.pl
-vhffs-panel/admin/tag/category/edit.pl
-vhffs-panel/admin/tag/category/list.pl
-vhffs-panel/admin/tag/create.pl
-vhffs-panel/admin/tag/edit.pl
-vhffs-panel/admin/tag/index.pl
-vhffs-panel/admin/tag/list.pl
-vhffs-panel/admin/tag/request/details.pl
-vhffs-panel/admin/tag/request/list.pl
-vhffs-panel/admin/user/index.pl
-vhffs-panel/admin/user/list.pl
-vhffs-panel/admin/user/search.pl
-vhffs-panel/admin/web/index.pl
-vhffs-panel/admin/web/list.pl
-vhffs-panel/admin/web/search.pl
-vhffs-panel/alert.pl
-vhffs-panel/alert_submit.pl
-vhffs-panel/auth.pl
-vhffs-panel/bazaar/create.pl
-vhffs-panel/bazaar/delete.pl
-vhffs-panel/bazaar/index.pl
-vhffs-panel/bazaar/prefs.pl
-vhffs-panel/cron/create.pl
-vhffs-panel/cron/delete.pl
-vhffs-panel/cron/index.pl
-vhffs-panel/cron/prefs.pl
-vhffs-panel/cvs/create.pl
-vhffs-panel/cvs/delete.pl
-vhffs-panel/cvs/index.pl
-vhffs-panel/cvs/prefs.pl
-vhffs-panel/dns/create.pl
-vhffs-panel/dns/delete.pl
-vhffs-panel/dns/index.pl
-vhffs-panel/dns/prefs.pl
-vhffs-panel/getavatar.pl
-vhffs-panel/git/create.pl
-vhffs-panel/git/delete.pl
-vhffs-panel/git/index.pl
-vhffs-panel/git/prefs.pl
-vhffs-panel/group/create.pl
-vhffs-panel/group/delete.pl
-vhffs-panel/group/history.pl
-vhffs-panel/group/index.pl
-vhffs-panel/group/prefs.pl
-vhffs-panel/group/view.pl
-vhffs-panel/history.pl
-vhffs-panel/lost_ack.pl
-vhffs-panel/lost.pl
-vhffs-panel/mail/create.pl
-vhffs-panel/mail/delete.pl
-vhffs-panel/mail/index.pl
-vhffs-panel/mailinglist/create.pl
-vhffs-panel/mailinglist/delete.pl
-vhffs-panel/mailinglist/index.pl
-vhffs-panel/mailinglist/prefs.pl
-vhffs-panel/mail/prefs.pl
-vhffs-panel/mercurial/create.pl
-vhffs-panel/mercurial/delete.pl
-vhffs-panel/mercurial/index.pl
-vhffs-panel/mercurial/prefs.pl
-vhffs-panel/mysql/create.pl
-vhffs-panel/mysql/delete.pl
-vhffs-panel/mysql/index.pl
-vhffs-panel/mysql/prefs.pl
-vhffs-panel/object/quickdelete.pl
-vhffs-panel/object/resubmit.pl
-vhffs-panel/object/upavatar.pl
-vhffs-panel/panel.pl
-vhffs-panel/pgsql/create.pl
-vhffs-panel/pgsql/delete.pl
-vhffs-panel/pgsql/index.pl
-vhffs-panel/pgsql/prefs.pl
-vhffs-panel/play_code.pl
-vhffs-panel/repository/create.pl
-vhffs-panel/repository/delete.pl
-vhffs-panel/repository/index.pl
-vhffs-panel/repository/prefs.pl
-vhffs-panel/show_code.pl
-vhffs-panel/subscribe.pl
-vhffs-panel/svn/create.pl
-vhffs-panel/svn/delete.pl
-vhffs-panel/svn/index.pl
-vhffs-panel/svn/prefs.pl
-vhffs-panel/user/delete.pl
-vhffs-panel/user/prefs.pl
-vhffs-panel/web/create.pl
-vhffs-panel/web/delete.pl
-vhffs-panel/web/index.pl
-vhffs-panel/web/prefs.pl
-vhffs-public/allgroups.pl
-vhffs-public/avatar.pl
-vhffs-public/extern/newgroupsrss.pl
-vhffs-public/extern/newusersrss.pl
-vhffs-public/extern/stats.pl
-vhffs-public/group.pl
-vhffs-public/groupsearch_form.pl
-vhffs-public/groupsearch.pl
+vhffs-panel/index.pl
vhffs-public/index.pl
-vhffs-public/lastusers.pl
-vhffs-public/tagsearch.pl
-vhffs-public/user.pl
-vhffs-public/usersearch_form.pl
-vhffs-public/usersearch.pl
Modified: trunk/vhffs-intl/update-POTFILES.in.pl
===================================================================
--- trunk/vhffs-intl/update-POTFILES.in.pl 2012-03-02 21:31:09 UTC (rev 2095)
+++ trunk/vhffs-intl/update-POTFILES.in.pl 2012-03-02 21:50:49 UTC (rev 2096)
@@ -17,50 +17,47 @@
my $script = File::Spec->rel2abs(__FILE__);
my $src_root = File::Basename::dirname(dirname($script));
my @src_subdirs = qw/vhffs-contrib vhffs-panel vhffs-listengine
- vhffs-tools vhffs-mw vhffs-api vhffs-shells vhffs-public
- vhffs-jabber vhffs-irc vhffs-stsmon vhffs-intl/;
+ vhffs-tools vhffs-mw vhffs-api vhffs-shells vhffs-public
+ vhffs-jabber vhffs-irc vhffs-stsmon vhffs-intl/;
# First extract strings from templates
my @tt_files;
foreach my $sd(@src_subdirs) {
- File::Find::find(sub {
- push @tt_files, $File::Find::name if($File::Find::name =~ /\.tt$/)
- }, File::Spec->catfile($src_root, $sd));
+ File::Find::find(sub {
+ push @tt_files, $File::Find::name if($File::Find::name =~ /\.tt$/)
+ }, File::Spec->catfile($src_root, $sd));
}
-open STRINGS, '>', File::Spec->catfile($src_root, 'vhffs-intl', 'template_strings.pl');
-print STRINGS "#!/usr/bin/perl\nexit(0);\n";
+open my $strings, '>', File::Spec->catfile($src_root, 'vhffs-intl', 'template_strings.pl');
+print $strings "#!/usr/bin/perl\nexit(0);\n";
foreach my $f(@tt_files) {
- open TT, '<', $f;
- my $str;
- while(<TT>) {
- if(($str) = /\[%\s+'([^|]+?)'\s*\|\s*i18n\b/) {
- print STRINGS "# $f:$.\n";
- print STRINGS "gettext('$str');\n";
- }
- };
- close TT;
+ open my $tt, '<', $f;
+ my $str;
+ while(<$tt>) {
+ ( ($str) = /\[%\s+'([^|]+?)'\s*\|\s*i18n\b/ ) or next;
+ print $strings "# $f:$.\n";
+ print $strings "gettext('$str');\n";
+ };
+ close $tt;
}
-close STRINGS;
+close $strings;
# Then make a list of files
-
my @files;
foreach my $sd(@src_subdirs) {
- File::Find::find(sub {
- my $f = $File::Find::name;
- if($f =~ /\.p[ml]$/) {
- $f =~ s/$src_root\///;
- push @files, $f;
- }
- }, File::Spec->catfile($src_root, $sd));
+ File::Find::find(sub {
+ my $f = $File::Find::name;
+ if($f =~ /\.p[ml]$/) {
+ $f =~ s/$src_root\///;
+ push @files, $f;
+ }
+ }, File::Spec->catfile($src_root, $sd));
}
-@files = sort @files;
-open POTFILES, '>', 'POTFILES.in';
-print POTFILES join("\n", @files);
-close POTFILES;
+open my $potfiles, '>', 'POTFILES.in';
+print $potfiles join("\n", sort @files)."\n";
+close $potfiles;