i18n/convcss.pl
raw| 1 | #! /usr/bin/perl -w |
| 2 | |
| 3 | # Written by Dirk Stöcker <[email protected]> |
| 4 | # Public domain, no rights reserved. |
| 5 | |
| 6 | use strict; |
| 7 | |
| 8 | my $skipmore = 0; |
| 9 | while(my $line = <>) |
| 10 | { |
| 11 | $skipmore = 1 if $line =~ /meta\[lang/; |
| 12 | $line =~ s/((?:title|description): +)(.*)(;)/$1tr($2)$3/ if !$skipmore; |
| 13 | print $line; |
| 14 | } |