#!/usr/bin/perl -w use strict; use diagnostics; use Carp; use LinuxFocus::SDB; # Language specific strings my $lang = "nl"; my $title = "De Artikelen"; my $translated = "Vertaald"; my $untranslated = "Onvertaald"; my $transby = "door"; my $month = $ARGV[0]; if (!defined $month) { print "Must give a month!$/"; exit(0); } my $db = LinuxFocus::SDB->new(); $db->load("lfdb.nl.xml"); $db->load("lfdb.en.xml"); $db->load("lfdb.persons.xml"); $db->setLang("nl"); my $succes = ""; foreach my $dbmonth ($db->getMonthIDs()) { if ($month eq $dbmonth) { $succes = "yes"; }; } if ($succes ne "yes") { print "Month $month is unknown!$/"; exit(0); } print "\n"; print "
\n

$title

\n
\n"; my @translat = (); my @untranslat = (); my $temp = ""; foreach my $id ($db->getArticleIDs(month => $month)) { $temp = ""; $db->selectArticle($id); $temp .= "
  • \"point\"\n"; if ($db->getArticleTranslationDate(to => "nl")) { $temp .= "getArticleRL() . "\">"; } else { $temp .= "getArticleRL("en") . "\">"; } $temp .= $db->getArticleTitle() . ", $transby " . $db->getPersonName($db->getArticleAuthorID()) . "
    \n"; $temp .= $db->getArticleAbstract() . "
  • \n

    \n"; if ($db->getArticleTranslationDate(to => "nl")) { push (@translat, $temp); } else { push (@untranslat, $temp); }; } print "

    $untranslated

    \n\n"; print "

    $translated

    \n\n"; print "
    \n";