From 0deb7d99990c26d02cfe093a7a7fe009e88ebd96 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 1 Jun 2013 14:18:26 +0200 Subject: Use URIs for some categories, and add new category "non-grocery store". --- bin/rdf2hours | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/rdf2hours b/bin/rdf2hours index f40c921..766ab52 100755 --- a/bin/rdf2hours +++ b/bin/rdf2hours @@ -34,8 +34,9 @@ use HTML::HTML5::Writer; # TODO: add override options --theme and (multivalued) --category my @category = < + + non-grocery store attraction transport public service @@ -278,10 +279,11 @@ sub daterangedescribe { sub categorydescribe { my $cat = shift; - $cat =~ s/restaurant/spisesteder/; - $cat =~ s/groceries/dagligvarer/; - $cat =~ s/attraction/attraktioner og museer/; - $cat =~ s/public service/offentlige services/; + $cat =~ s!!spisesteder!; + $cat =~ s!!dagligvarebutikker!; + $cat =~ s!non-grocery store!øvrige butikker!; + $cat =~ s!attraction!attraktioner og museer!; + $cat =~ s!public service!offentlige services!; return ucfirst($cat); } -- cgit v1.2.3