diff options
Diffstat (limited to 'icons')
57 files changed, 68 insertions, 0 deletions
diff --git a/icons/create_titles.pl b/icons/create_titles.pl new file mode 100755 index 00000000..437171cd --- /dev/null +++ b/icons/create_titles.pl @@ -0,0 +1,68 @@ +#!/usr/bin/perl + +# For faster multiple execs, start a gimp, and do Xtns/Perl/Server. +# Warning! Error message are the worst ever. Unquote the "set_trace" if you need troubleshooting. + +use Gimp qw(:consts main xlfd_size :auto); +use MDK::Common; + +Gimp::init(); +#Gimp::set_trace(TRACE_ALL); + +$| = 1; + +sub create_file { + my ($backimg, $fontname, $text, $outfile) = @_; + my $img = gimp_file_load($backimg, $backimg); + gimp_palette_set_foreground([255, 255, 255]); + my $layer = gimp_text_fontname($img, -1, 0, 10, $text, 0, 1, 250, 1, $fontname); + my $width = gimp_drawable_width($layer); + gimp_image_merge_visible_layers($img, 0); + gimp_crop($img, $width, 40, 0, 0); + gimp_file_save($img, gimp_image_active_drawable($img), $outfile, $outfile); +} + +my $wd = chomp_(`pwd`); + +my $font = 'SOME NICE FONT'; +my %meuh = (install => 'Software Packages Installation', remove => 'Software Packages Removal', update => 'Mandrake Update'); + +mkdir "title/en"; +create_file("$wd/title-back.png", $font, $meuh{$_}, "$wd/title/en/title-$_.png") foreach keys %meuh; + +foreach my $po (glob('../po/*.po')) { + my ($poname) = $po =~ m|/([^/\.]+)\.po$|; + print "[$poname] "; + my $charset; + my @lines = cat_($po); + foreach (@lines) { + /^"Content-Type: .*; charset=(.*)/ and $charset = $1; + } + if ($charset =~ /^(iso-8859-15?)|(utf-8)/i) { + foreach my $k (keys %meuh) { + my $str = $meuh{$k}; + my $i18n; + each_index { /^msgid "\Q$str/ && ($lines[$::i-1] !~ /fuzzy/) and $i18n = $lines[$::i+1] } @lines; + if ($i18n =~ /^msgstr "(.+)"$/) { + $i18n = $1; + if ($charset =~ /^utf-8/i) { + output("/tmp/create_titles_temp", $i18n); + $i18n = `iconv -f UTF8 -t iso-8859-1 /tmp/create_titles_temp 2>/dev/null`; + $? and next; + } + mkdir "title/$poname"; + create_file("$wd/title-back.png", + $font, + $i18n, + "$wd/title/$poname/title-$k.png"); + print "."; + } + } + } else { + print "- ignoring, charset is not iso-8859-1 or UTF8\n"; + } + print "\n"; +} + +Gimp::end(); + diff --git a/icons/title-back.png b/icons/title-back.png Binary files differnew file mode 100644 index 00000000..5159301d --- /dev/null +++ b/icons/title-back.png diff --git a/icons/title-backpart.png b/icons/title-backpart.png Binary files differdeleted file mode 100644 index 135b8deb..00000000 --- a/icons/title-backpart.png +++ /dev/null diff --git a/icons/title-icon.png b/icons/title-icon.png Binary files differnew file mode 100644 index 00000000..98dffe77 --- /dev/null +++ b/icons/title-icon.png diff --git a/icons/title-tile.png b/icons/title-tile.png Binary files differnew file mode 100644 index 00000000..7bbf3649 --- /dev/null +++ b/icons/title-tile.png diff --git a/icons/title/bs/title-install.png b/icons/title/bs/title-install.png Binary files differnew file mode 100644 index 00000000..aba03bb9 --- /dev/null +++ b/icons/title/bs/title-install.png diff --git a/icons/title/bs/title-remove.png b/icons/title/bs/title-remove.png Binary files differnew file mode 100644 index 00000000..8d9c2049 --- /dev/null +++ b/icons/title/bs/title-remove.png diff --git a/icons/title/bs/title-update.png b/icons/title/bs/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/bs/title-update.png diff --git a/icons/title/cy/title-install.png b/icons/title/cy/title-install.png Binary files differnew file mode 100644 index 00000000..17c83ee2 --- /dev/null +++ b/icons/title/cy/title-install.png diff --git a/icons/title/cy/title-remove.png b/icons/title/cy/title-remove.png Binary files differnew file mode 100644 index 00000000..1884f4fe --- /dev/null +++ b/icons/title/cy/title-remove.png diff --git a/icons/title/cy/title-update.png b/icons/title/cy/title-update.png Binary files differnew file mode 100644 index 00000000..cda7e54e --- /dev/null +++ b/icons/title/cy/title-update.png diff --git a/icons/title/da/title-install.png b/icons/title/da/title-install.png Binary files differnew file mode 100644 index 00000000..c6a7624e --- /dev/null +++ b/icons/title/da/title-install.png diff --git a/icons/title/da/title-remove.png b/icons/title/da/title-remove.png Binary files differnew file mode 100644 index 00000000..61f40cea --- /dev/null +++ b/icons/title/da/title-remove.png diff --git a/icons/title/da/title-update.png b/icons/title/da/title-update.png Binary files differnew file mode 100644 index 00000000..e071f2f5 --- /dev/null +++ b/icons/title/da/title-update.png diff --git a/icons/title/de/title-install.png b/icons/title/de/title-install.png Binary files differnew file mode 100644 index 00000000..11719129 --- /dev/null +++ b/icons/title/de/title-install.png diff --git a/icons/title/de/title-remove.png b/icons/title/de/title-remove.png Binary files differnew file mode 100644 index 00000000..1a02ae82 --- /dev/null +++ b/icons/title/de/title-remove.png diff --git a/icons/title/de/title-update.png b/icons/title/de/title-update.png Binary files differnew file mode 100644 index 00000000..e52d32b1 --- /dev/null +++ b/icons/title/de/title-update.png diff --git a/icons/title/en/title-install.png b/icons/title/en/title-install.png Binary files differnew file mode 100644 index 00000000..e383e1d1 --- /dev/null +++ b/icons/title/en/title-install.png diff --git a/icons/title/en/title-remove.png b/icons/title/en/title-remove.png Binary files differnew file mode 100644 index 00000000..0553c34b --- /dev/null +++ b/icons/title/en/title-remove.png diff --git a/icons/title/en/title-update.png b/icons/title/en/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/en/title-update.png diff --git a/icons/title/es/title-install.png b/icons/title/es/title-install.png Binary files differnew file mode 100644 index 00000000..98416602 --- /dev/null +++ b/icons/title/es/title-install.png diff --git a/icons/title/es/title-remove.png b/icons/title/es/title-remove.png Binary files differnew file mode 100644 index 00000000..57d38997 --- /dev/null +++ b/icons/title/es/title-remove.png diff --git a/icons/title/es/title-update.png b/icons/title/es/title-update.png Binary files differnew file mode 100644 index 00000000..19eaa0b7 --- /dev/null +++ b/icons/title/es/title-update.png diff --git a/icons/title/et/title-install.png b/icons/title/et/title-install.png Binary files differnew file mode 100644 index 00000000..0114241a --- /dev/null +++ b/icons/title/et/title-install.png diff --git a/icons/title/et/title-remove.png b/icons/title/et/title-remove.png Binary files differnew file mode 100644 index 00000000..284ebeb1 --- /dev/null +++ b/icons/title/et/title-remove.png diff --git a/icons/title/et/title-update.png b/icons/title/et/title-update.png Binary files differnew file mode 100644 index 00000000..abc8c3ba --- /dev/null +++ b/icons/title/et/title-update.png diff --git a/icons/title/eu/title-install.png b/icons/title/eu/title-install.png Binary files differnew file mode 100644 index 00000000..8d53b849 --- /dev/null +++ b/icons/title/eu/title-install.png diff --git a/icons/title/eu/title-remove.png b/icons/title/eu/title-remove.png Binary files differnew file mode 100644 index 00000000..5e1f29e8 --- /dev/null +++ b/icons/title/eu/title-remove.png diff --git a/icons/title/eu/title-update.png b/icons/title/eu/title-update.png Binary files differnew file mode 100644 index 00000000..e53af360 --- /dev/null +++ b/icons/title/eu/title-update.png diff --git a/icons/title/fr/title-install.png b/icons/title/fr/title-install.png Binary files differnew file mode 100644 index 00000000..84c25def --- /dev/null +++ b/icons/title/fr/title-install.png diff --git a/icons/title/fr/title-remove.png b/icons/title/fr/title-remove.png Binary files differnew file mode 100644 index 00000000..54e2f064 --- /dev/null +++ b/icons/title/fr/title-remove.png diff --git a/icons/title/fr/title-update.png b/icons/title/fr/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/fr/title-update.png diff --git a/icons/title/id/title-install.png b/icons/title/id/title-install.png Binary files differnew file mode 100644 index 00000000..7e156298 --- /dev/null +++ b/icons/title/id/title-install.png diff --git a/icons/title/id/title-remove.png b/icons/title/id/title-remove.png Binary files differnew file mode 100644 index 00000000..29c31439 --- /dev/null +++ b/icons/title/id/title-remove.png diff --git a/icons/title/id/title-update.png b/icons/title/id/title-update.png Binary files differnew file mode 100644 index 00000000..9aa7037c --- /dev/null +++ b/icons/title/id/title-update.png diff --git a/icons/title/it/title-install.png b/icons/title/it/title-install.png Binary files differnew file mode 100644 index 00000000..51d6d563 --- /dev/null +++ b/icons/title/it/title-install.png diff --git a/icons/title/it/title-remove.png b/icons/title/it/title-remove.png Binary files differnew file mode 100644 index 00000000..331bb45c --- /dev/null +++ b/icons/title/it/title-remove.png diff --git a/icons/title/it/title-update.png b/icons/title/it/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/it/title-update.png diff --git a/icons/title/mt/title-install.png b/icons/title/mt/title-install.png Binary files differnew file mode 100644 index 00000000..4ba84ae4 --- /dev/null +++ b/icons/title/mt/title-install.png diff --git a/icons/title/nl/title-install.png b/icons/title/nl/title-install.png Binary files differnew file mode 100644 index 00000000..5188b72d --- /dev/null +++ b/icons/title/nl/title-install.png diff --git a/icons/title/nl/title-remove.png b/icons/title/nl/title-remove.png Binary files differnew file mode 100644 index 00000000..fa6e4f57 --- /dev/null +++ b/icons/title/nl/title-remove.png diff --git a/icons/title/nl/title-update.png b/icons/title/nl/title-update.png Binary files differnew file mode 100644 index 00000000..839c03ac --- /dev/null +++ b/icons/title/nl/title-update.png diff --git a/icons/title/no/title-install.png b/icons/title/no/title-install.png Binary files differnew file mode 100644 index 00000000..e7400572 --- /dev/null +++ b/icons/title/no/title-install.png diff --git a/icons/title/no/title-remove.png b/icons/title/no/title-remove.png Binary files differnew file mode 100644 index 00000000..f96d050e --- /dev/null +++ b/icons/title/no/title-remove.png diff --git a/icons/title/no/title-update.png b/icons/title/no/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/no/title-update.png diff --git a/icons/title/pt/title-install.png b/icons/title/pt/title-install.png Binary files differnew file mode 100644 index 00000000..20790aa1 --- /dev/null +++ b/icons/title/pt/title-install.png diff --git a/icons/title/pt/title-remove.png b/icons/title/pt/title-remove.png Binary files differnew file mode 100644 index 00000000..ceab7ecd --- /dev/null +++ b/icons/title/pt/title-remove.png diff --git a/icons/title/pt/title-update.png b/icons/title/pt/title-update.png Binary files differnew file mode 100644 index 00000000..00a91d76 --- /dev/null +++ b/icons/title/pt/title-update.png diff --git a/icons/title/pt_BR/title-install.png b/icons/title/pt_BR/title-install.png Binary files differnew file mode 100644 index 00000000..2054814f --- /dev/null +++ b/icons/title/pt_BR/title-install.png diff --git a/icons/title/pt_BR/title-remove.png b/icons/title/pt_BR/title-remove.png Binary files differnew file mode 100644 index 00000000..75090cb0 --- /dev/null +++ b/icons/title/pt_BR/title-remove.png diff --git a/icons/title/pt_BR/title-update.png b/icons/title/pt_BR/title-update.png Binary files differnew file mode 100644 index 00000000..194f0c98 --- /dev/null +++ b/icons/title/pt_BR/title-update.png diff --git a/icons/title/sv/title-install.png b/icons/title/sv/title-install.png Binary files differnew file mode 100644 index 00000000..c98576d1 --- /dev/null +++ b/icons/title/sv/title-install.png diff --git a/icons/title/sv/title-remove.png b/icons/title/sv/title-remove.png Binary files differnew file mode 100644 index 00000000..99be2b01 --- /dev/null +++ b/icons/title/sv/title-remove.png diff --git a/icons/title/sv/title-update.png b/icons/title/sv/title-update.png Binary files differnew file mode 100644 index 00000000..e3001145 --- /dev/null +++ b/icons/title/sv/title-update.png diff --git a/icons/title/tr/title-update.png b/icons/title/tr/title-update.png Binary files differnew file mode 100644 index 00000000..62856fd9 --- /dev/null +++ b/icons/title/tr/title-update.png diff --git a/icons/title/wa/title-install.png b/icons/title/wa/title-install.png Binary files differnew file mode 100644 index 00000000..34dd8446 --- /dev/null +++ b/icons/title/wa/title-install.png diff --git a/icons/title/wa/title-remove.png b/icons/title/wa/title-remove.png Binary files differnew file mode 100644 index 00000000..783c73e1 --- /dev/null +++ b/icons/title/wa/title-remove.png |