Commit dfb0675d authored by Richard Mansfield's avatar Richard Mansfield

Uncomment crontab & remove noisy log lines

parent 05e1def0
mahara-scripts (1.7) unstable; urgency=low
* Suppress some pointless warnings
-- Richard Mansfield <richardm@catalyst.net.nz> Fri, 01 Jul 2011 11:09:50 +1200
mahara-scripts (1.6) unstable; urgency=low
* Bug fix for po->php language pack creation
......
#
# Regular cron jobs for the custom-site-mahara-langpacks package
#
# 22 * * * * maharabot [ -x /usr/lib/mahara-langpacks/langpacks.sh ] && /usr/lib/mahara-langpacks/langpacks.sh >> /var/log/mahara-langpacks/langpacks.log 2>&1
# 52 * * * * maharabot [ -x /usr/lib/mahara-langpacks/update-pot.sh ] && /usr/lib/mahara-langpacks/update-pot.sh >> /var/log/mahara-langpacks/update-pot.log 2>&1
22 * * * * maharabot [ -x /usr/lib/mahara-langpacks/langpacks.sh ] && /usr/lib/mahara-langpacks/langpacks.sh >> /var/log/mahara-langpacks/langpacks.log 2>&1
52 * * * * maharabot [ -x /usr/lib/mahara-langpacks/update-pot.sh ] && /usr/lib/mahara-langpacks/update-pot.sh >> /var/log/mahara-langpacks/update-pot.log 2>&1
......@@ -16,6 +16,10 @@ use Locale::PO;
my ($inputfile, $outputdir, $lang) = @ARGV;
# The version of Locale::PO on chatter (0.17) spews warnings for all
# the msgctxt lines in the file. Should remove this later.
BEGIN { $SIG{'__WARN__'} = sub { warn $_[0] if substr($_[0], 0, 15) ne "Strange line in" } }
my $strings = Locale::PO->load_file_asarray($inputfile);
my %htmlfiles = ();
......@@ -23,6 +27,7 @@ my %phpfiles = ();
foreach my $po (@$strings) {
my $content = $po->msgstr();
next if ( ! defined $content );
$content =~ s{\\n}{\n}g;
my $reference = $po->reference();
next if ( ! defined $reference );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment