From fde097df512296afdadd95f02d1caf3bf263f2f3 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 3 Sep 2002 22:18:16 +0000 Subject: - disable prerendered titles until I have the new banner - don't update when no source is selected for updates... - new ugtk without BEGIN so that we can have an OK error message when X is not available - use parenthesis for as much functions as seen since when requir'ing modules sometimes a function call is considered a bareword --- icons/create_titles.pl | 68 ++++++++++++++++++++++++++++++++++++ icons/title-back.png | Bin 0 -> 481 bytes icons/title-backpart.png | Bin 293 -> 0 bytes icons/title-icon.png | Bin 0 -> 3943 bytes icons/title-tile.png | Bin 0 -> 200 bytes icons/title/bs/title-install.png | Bin 0 -> 61477 bytes icons/title/bs/title-remove.png | Bin 0 -> 61797 bytes icons/title/bs/title-update.png | Bin 0 -> 36641 bytes icons/title/cy/title-install.png | Bin 0 -> 68214 bytes icons/title/cy/title-remove.png | Bin 0 -> 61637 bytes icons/title/cy/title-update.png | Bin 0 -> 44013 bytes icons/title/da/title-install.png | Bin 0 -> 70294 bytes icons/title/da/title-remove.png | Bin 0 -> 65642 bytes icons/title/da/title-update.png | Bin 0 -> 39041 bytes icons/title/de/title-install.png | Bin 0 -> 57637 bytes icons/title/de/title-remove.png | Bin 0 -> 54425 bytes icons/title/de/title-update.png | Bin 0 -> 51385 bytes icons/title/en/title-install.png | Bin 0 -> 64197 bytes icons/title/en/title-remove.png | Bin 0 -> 59237 bytes icons/title/en/title-update.png | Bin 0 -> 36641 bytes icons/title/es/title-install.png | Bin 0 -> 75746 bytes icons/title/es/title-remove.png | Bin 0 -> 59237 bytes icons/title/es/title-update.png | Bin 0 -> 55545 bytes icons/title/et/title-install.png | Bin 0 -> 44493 bytes icons/title/et/title-remove.png | Bin 0 -> 48653 bytes icons/title/et/title-update.png | Bin 0 -> 45293 bytes icons/title/eu/title-install.png | Bin 0 -> 62597 bytes icons/title/eu/title-remove.png | Bin 0 -> 61957 bytes icons/title/eu/title-update.png | Bin 0 -> 43213 bytes icons/title/fr/title-install.png | Bin 0 -> 74626 bytes icons/title/fr/title-remove.png | Bin 0 -> 76706 bytes icons/title/fr/title-update.png | Bin 0 -> 36641 bytes icons/title/id/title-install.png | Bin 0 -> 50745 bytes icons/title/id/title-remove.png | Bin 0 -> 60677 bytes icons/title/id/title-update.png | Bin 0 -> 36481 bytes icons/title/it/title-install.png | Bin 0 -> 66774 bytes icons/title/it/title-remove.png | Bin 0 -> 61637 bytes icons/title/it/title-update.png | Bin 0 -> 36641 bytes icons/title/mt/title-install.png | Bin 0 -> 76706 bytes icons/title/nl/title-install.png | Bin 0 -> 62437 bytes icons/title/nl/title-remove.png | Bin 0 -> 65322 bytes icons/title/nl/title-update.png | Bin 0 -> 52345 bytes icons/title/no/title-install.png | Bin 0 -> 73814 bytes icons/title/no/title-remove.png | Bin 0 -> 66294 bytes icons/title/no/title-update.png | Bin 0 -> 36641 bytes icons/title/pt/title-install.png | Bin 0 -> 64037 bytes icons/title/pt/title-remove.png | Bin 0 -> 62757 bytes icons/title/pt/title-update.png | Bin 0 -> 49945 bytes icons/title/pt_BR/title-install.png | Bin 0 -> 45453 bytes icons/title/pt_BR/title-remove.png | Bin 0 -> 53945 bytes icons/title/pt_BR/title-update.png | Bin 0 -> 36641 bytes icons/title/sv/title-install.png | Bin 0 -> 34081 bytes icons/title/sv/title-remove.png | Bin 0 -> 26704 bytes icons/title/sv/title-update.png | Bin 0 -> 43373 bytes icons/title/tr/title-update.png | Bin 0 -> 46093 bytes icons/title/wa/title-install.png | Bin 0 -> 82158 bytes icons/title/wa/title-remove.png | Bin 0 -> 79906 bytes 57 files changed, 68 insertions(+) create mode 100755 icons/create_titles.pl create mode 100644 icons/title-back.png delete mode 100644 icons/title-backpart.png create mode 100644 icons/title-icon.png create mode 100644 icons/title-tile.png create mode 100644 icons/title/bs/title-install.png create mode 100644 icons/title/bs/title-remove.png create mode 100644 icons/title/bs/title-update.png create mode 100644 icons/title/cy/title-install.png create mode 100644 icons/title/cy/title-remove.png create mode 100644 icons/title/cy/title-update.png create mode 100644 icons/title/da/title-install.png create mode 100644 icons/title/da/title-remove.png create mode 100644 icons/title/da/title-update.png create mode 100644 icons/title/de/title-install.png create mode 100644 icons/title/de/title-remove.png create mode 100644 icons/title/de/title-update.png create mode 100644 icons/title/en/title-install.png create mode 100644 icons/title/en/title-remove.png create mode 100644 icons/title/en/title-update.png create mode 100644 icons/title/es/title-install.png create mode 100644 icons/title/es/title-remove.png create mode 100644 icons/title/es/title-update.png create mode 100644 icons/title/et/title-install.png create mode 100644 icons/title/et/title-remove.png create mode 100644 icons/title/et/title-update.png create mode 100644 icons/title/eu/title-install.png create mode 100644 icons/title/eu/title-remove.png create mode 100644 icons/title/eu/title-update.png create mode 100644 icons/title/fr/title-install.png create mode 100644 icons/title/fr/title-remove.png create mode 100644 icons/title/fr/title-update.png create mode 100644 icons/title/id/title-install.png create mode 100644 icons/title/id/title-remove.png create mode 100644 icons/title/id/title-update.png create mode 100644 icons/title/it/title-install.png create mode 100644 icons/title/it/title-remove.png create mode 100644 icons/title/it/title-update.png create mode 100644 icons/title/mt/title-install.png create mode 100644 icons/title/nl/title-install.png create mode 100644 icons/title/nl/title-remove.png create mode 100644 icons/title/nl/title-update.png create mode 100644 icons/title/no/title-install.png create mode 100644 icons/title/no/title-remove.png create mode 100644 icons/title/no/title-update.png create mode 100644 icons/title/pt/title-install.png create mode 100644 icons/title/pt/title-remove.png create mode 100644 icons/title/pt/title-update.png create mode 100644 icons/title/pt_BR/title-install.png create mode 100644 icons/title/pt_BR/title-remove.png create mode 100644 icons/title/pt_BR/title-update.png create mode 100644 icons/title/sv/title-install.png create mode 100644 icons/title/sv/title-remove.png create mode 100644 icons/title/sv/title-update.png create mode 100644 icons/title/tr/title-update.png create mode 100644 icons/title/wa/title-install.png create mode 100644 icons/title/wa/title-remove.png (limited to 'icons') 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 new file mode 100644 index 00000000..5159301d Binary files /dev/null and b/icons/title-back.png differ diff --git a/icons/title-backpart.png b/icons/title-backpart.png deleted file mode 100644 index 135b8deb..00000000 Binary files a/icons/title-backpart.png and /dev/null differ diff --git a/icons/title-icon.png b/icons/title-icon.png new file mode 100644 index 00000000..98dffe77 Binary files /dev/null and b/icons/title-icon.png differ diff --git a/icons/title-tile.png b/icons/title-tile.png new file mode 100644 index 00000000..7bbf3649 Binary files /dev/null and b/icons/title-tile.png differ diff --git a/icons/title/bs/title-install.png b/icons/title/bs/title-install.png new file mode 100644 index 00000000..aba03bb9 Binary files /dev/null and b/icons/title/bs/title-install.png differ diff --git a/icons/title/bs/title-remove.png b/icons/title/bs/title-remove.png new file mode 100644 index 00000000..8d9c2049 Binary files /dev/null and b/icons/title/bs/title-remove.png differ diff --git a/icons/title/bs/title-update.png b/icons/title/bs/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/bs/title-update.png differ diff --git a/icons/title/cy/title-install.png b/icons/title/cy/title-install.png new file mode 100644 index 00000000..17c83ee2 Binary files /dev/null and b/icons/title/cy/title-install.png differ diff --git a/icons/title/cy/title-remove.png b/icons/title/cy/title-remove.png new file mode 100644 index 00000000..1884f4fe Binary files /dev/null and b/icons/title/cy/title-remove.png differ diff --git a/icons/title/cy/title-update.png b/icons/title/cy/title-update.png new file mode 100644 index 00000000..cda7e54e Binary files /dev/null and b/icons/title/cy/title-update.png differ diff --git a/icons/title/da/title-install.png b/icons/title/da/title-install.png new file mode 100644 index 00000000..c6a7624e Binary files /dev/null and b/icons/title/da/title-install.png differ diff --git a/icons/title/da/title-remove.png b/icons/title/da/title-remove.png new file mode 100644 index 00000000..61f40cea Binary files /dev/null and b/icons/title/da/title-remove.png differ diff --git a/icons/title/da/title-update.png b/icons/title/da/title-update.png new file mode 100644 index 00000000..e071f2f5 Binary files /dev/null and b/icons/title/da/title-update.png differ diff --git a/icons/title/de/title-install.png b/icons/title/de/title-install.png new file mode 100644 index 00000000..11719129 Binary files /dev/null and b/icons/title/de/title-install.png differ diff --git a/icons/title/de/title-remove.png b/icons/title/de/title-remove.png new file mode 100644 index 00000000..1a02ae82 Binary files /dev/null and b/icons/title/de/title-remove.png differ diff --git a/icons/title/de/title-update.png b/icons/title/de/title-update.png new file mode 100644 index 00000000..e52d32b1 Binary files /dev/null and b/icons/title/de/title-update.png differ diff --git a/icons/title/en/title-install.png b/icons/title/en/title-install.png new file mode 100644 index 00000000..e383e1d1 Binary files /dev/null and b/icons/title/en/title-install.png differ diff --git a/icons/title/en/title-remove.png b/icons/title/en/title-remove.png new file mode 100644 index 00000000..0553c34b Binary files /dev/null and b/icons/title/en/title-remove.png differ diff --git a/icons/title/en/title-update.png b/icons/title/en/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/en/title-update.png differ diff --git a/icons/title/es/title-install.png b/icons/title/es/title-install.png new file mode 100644 index 00000000..98416602 Binary files /dev/null and b/icons/title/es/title-install.png differ diff --git a/icons/title/es/title-remove.png b/icons/title/es/title-remove.png new file mode 100644 index 00000000..57d38997 Binary files /dev/null and b/icons/title/es/title-remove.png differ diff --git a/icons/title/es/title-update.png b/icons/title/es/title-update.png new file mode 100644 index 00000000..19eaa0b7 Binary files /dev/null and b/icons/title/es/title-update.png differ diff --git a/icons/title/et/title-install.png b/icons/title/et/title-install.png new file mode 100644 index 00000000..0114241a Binary files /dev/null and b/icons/title/et/title-install.png differ diff --git a/icons/title/et/title-remove.png b/icons/title/et/title-remove.png new file mode 100644 index 00000000..284ebeb1 Binary files /dev/null and b/icons/title/et/title-remove.png differ diff --git a/icons/title/et/title-update.png b/icons/title/et/title-update.png new file mode 100644 index 00000000..abc8c3ba Binary files /dev/null and b/icons/title/et/title-update.png differ diff --git a/icons/title/eu/title-install.png b/icons/title/eu/title-install.png new file mode 100644 index 00000000..8d53b849 Binary files /dev/null and b/icons/title/eu/title-install.png differ diff --git a/icons/title/eu/title-remove.png b/icons/title/eu/title-remove.png new file mode 100644 index 00000000..5e1f29e8 Binary files /dev/null and b/icons/title/eu/title-remove.png differ diff --git a/icons/title/eu/title-update.png b/icons/title/eu/title-update.png new file mode 100644 index 00000000..e53af360 Binary files /dev/null and b/icons/title/eu/title-update.png differ diff --git a/icons/title/fr/title-install.png b/icons/title/fr/title-install.png new file mode 100644 index 00000000..84c25def Binary files /dev/null and b/icons/title/fr/title-install.png differ diff --git a/icons/title/fr/title-remove.png b/icons/title/fr/title-remove.png new file mode 100644 index 00000000..54e2f064 Binary files /dev/null and b/icons/title/fr/title-remove.png differ diff --git a/icons/title/fr/title-update.png b/icons/title/fr/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/fr/title-update.png differ diff --git a/icons/title/id/title-install.png b/icons/title/id/title-install.png new file mode 100644 index 00000000..7e156298 Binary files /dev/null and b/icons/title/id/title-install.png differ diff --git a/icons/title/id/title-remove.png b/icons/title/id/title-remove.png new file mode 100644 index 00000000..29c31439 Binary files /dev/null and b/icons/title/id/title-remove.png differ diff --git a/icons/title/id/title-update.png b/icons/title/id/title-update.png new file mode 100644 index 00000000..9aa7037c Binary files /dev/null and b/icons/title/id/title-update.png differ diff --git a/icons/title/it/title-install.png b/icons/title/it/title-install.png new file mode 100644 index 00000000..51d6d563 Binary files /dev/null and b/icons/title/it/title-install.png differ diff --git a/icons/title/it/title-remove.png b/icons/title/it/title-remove.png new file mode 100644 index 00000000..331bb45c Binary files /dev/null and b/icons/title/it/title-remove.png differ diff --git a/icons/title/it/title-update.png b/icons/title/it/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/it/title-update.png differ diff --git a/icons/title/mt/title-install.png b/icons/title/mt/title-install.png new file mode 100644 index 00000000..4ba84ae4 Binary files /dev/null and b/icons/title/mt/title-install.png differ diff --git a/icons/title/nl/title-install.png b/icons/title/nl/title-install.png new file mode 100644 index 00000000..5188b72d Binary files /dev/null and b/icons/title/nl/title-install.png differ diff --git a/icons/title/nl/title-remove.png b/icons/title/nl/title-remove.png new file mode 100644 index 00000000..fa6e4f57 Binary files /dev/null and b/icons/title/nl/title-remove.png differ diff --git a/icons/title/nl/title-update.png b/icons/title/nl/title-update.png new file mode 100644 index 00000000..839c03ac Binary files /dev/null and b/icons/title/nl/title-update.png differ diff --git a/icons/title/no/title-install.png b/icons/title/no/title-install.png new file mode 100644 index 00000000..e7400572 Binary files /dev/null and b/icons/title/no/title-install.png differ diff --git a/icons/title/no/title-remove.png b/icons/title/no/title-remove.png new file mode 100644 index 00000000..f96d050e Binary files /dev/null and b/icons/title/no/title-remove.png differ diff --git a/icons/title/no/title-update.png b/icons/title/no/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/no/title-update.png differ diff --git a/icons/title/pt/title-install.png b/icons/title/pt/title-install.png new file mode 100644 index 00000000..20790aa1 Binary files /dev/null and b/icons/title/pt/title-install.png differ diff --git a/icons/title/pt/title-remove.png b/icons/title/pt/title-remove.png new file mode 100644 index 00000000..ceab7ecd Binary files /dev/null and b/icons/title/pt/title-remove.png differ diff --git a/icons/title/pt/title-update.png b/icons/title/pt/title-update.png new file mode 100644 index 00000000..00a91d76 Binary files /dev/null and b/icons/title/pt/title-update.png differ diff --git a/icons/title/pt_BR/title-install.png b/icons/title/pt_BR/title-install.png new file mode 100644 index 00000000..2054814f Binary files /dev/null and b/icons/title/pt_BR/title-install.png differ diff --git a/icons/title/pt_BR/title-remove.png b/icons/title/pt_BR/title-remove.png new file mode 100644 index 00000000..75090cb0 Binary files /dev/null and b/icons/title/pt_BR/title-remove.png differ diff --git a/icons/title/pt_BR/title-update.png b/icons/title/pt_BR/title-update.png new file mode 100644 index 00000000..194f0c98 Binary files /dev/null and b/icons/title/pt_BR/title-update.png differ diff --git a/icons/title/sv/title-install.png b/icons/title/sv/title-install.png new file mode 100644 index 00000000..c98576d1 Binary files /dev/null and b/icons/title/sv/title-install.png differ diff --git a/icons/title/sv/title-remove.png b/icons/title/sv/title-remove.png new file mode 100644 index 00000000..99be2b01 Binary files /dev/null and b/icons/title/sv/title-remove.png differ diff --git a/icons/title/sv/title-update.png b/icons/title/sv/title-update.png new file mode 100644 index 00000000..e3001145 Binary files /dev/null and b/icons/title/sv/title-update.png differ diff --git a/icons/title/tr/title-update.png b/icons/title/tr/title-update.png new file mode 100644 index 00000000..62856fd9 Binary files /dev/null and b/icons/title/tr/title-update.png differ diff --git a/icons/title/wa/title-install.png b/icons/title/wa/title-install.png new file mode 100644 index 00000000..34dd8446 Binary files /dev/null and b/icons/title/wa/title-install.png differ diff --git a/icons/title/wa/title-remove.png b/icons/title/wa/title-remove.png new file mode 100644 index 00000000..783c73e1 Binary files /dev/null and b/icons/title/wa/title-remove.png differ -- cgit v1.2.1