diff options
author | Christian Rose <menthos@menthos.com> | 2002-06-13 07:04:44 +0000 |
---|---|---|
committer | Christian Rose <menthos@src.gnome.org> | 2002-06-13 07:04:44 +0000 |
commit | 5fc9179fce64253e26dcd4b56cb516f46371bdb5 (patch) | |
tree | 2be65edc67d84a4bf079049f0c6d6fbadb156120 | |
parent | 7e9215c6169f40e00b22a59a8977a833f13b5c9d (diff) | |
download | gdk-pixbuf-5fc9179fce64253e26dcd4b56cb516f46371bdb5.tar.gz |
Removed. These are obsoleted by intltool. Updated Swedish translation.
2002-06-13 Christian Rose <menthos@menthos.com>
* desk.pl, update.pl, update.sh, README.tools: Removed. These are
obsoleted by intltool.
* sv.po: Updated Swedish translation.
-rw-r--r-- | po/ChangeLog | 6 | ||||
-rw-r--r-- | po/README.tools | 58 | ||||
-rwxr-xr-x | po/desk.pl | 118 | ||||
-rw-r--r-- | po/sv.po | 120 | ||||
-rwxr-xr-x | po/update.pl | 172 | ||||
-rwxr-xr-x | po/update.sh | 96 |
6 files changed, 66 insertions, 504 deletions
diff --git a/po/ChangeLog b/po/ChangeLog index f94bcff71..093501225 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,3 +1,9 @@ +2002-06-13 Christian Rose <menthos@menthos.com> + + * desk.pl, update.pl, update.sh, README.tools: Removed. These are + obsoleted by intltool. + * sv.po: Updated Swedish translation. + 2002-06-10 Daniel Elstner <daniel.elstner@gmx.net> * pt_BR.po: Remove duplicated message. Although it was diff --git a/po/README.tools b/po/README.tools deleted file mode 100644 index 4ec99c164..000000000 --- a/po/README.tools +++ /dev/null @@ -1,58 +0,0 @@ -The po/ directory includes two perlscripts, which is done to help -making the translations fully uptodate. - -The first script is called update.pl and is supposed to be run like this: - - ./update.pl [OPTIONS] ...LANGCODE - -This will updates the pot file (the po template, generated from the source code) -and merge them with the translations po files. - -For instance to do this for Danish, type the following - - ./update.pl da - - -The update.pl script also supports other options, they are: - - -V, --version shows the version - -H, --help shows this help page - -P, --pot only generates the potfile - -M, --maintain search for missing files in POTFILES.in - -Especially the --maintain option is very handy for package maintainer, to check -if you included all the files that have marked strings in the POTFILES.in, so -they will be in the generated po template, the socalled pot file. - -There is though one thing to take notice of with this option, please check the -configure.in file to make sure that the files you add to POTFILES.in are being -build, otherwise this can leed to "make dist" throuble. - - -The other utility is the desk.pl script, which will check the cvs module for -missing translation in files like *.desktop, *.directory, *.soundlist and so on. - -Run the script like this: - - ./desk.pl [OPTIONS] ...LANGCODE ENTRY - -An example use could be. - - ./desk.pl da - -which will check all the files for missing Name[da] entries, or - - ./desk.pl no Comment - -which will check all the files for missing Comment[no] entries. "Comment" can -here be replaced with whatever you like - -All scripts support the --help option for further help, though it's not very -extensive for the moment. - -Kenneth Christiansen - -kenneth@gnu.org -kenneth@gnome.org - -Both scripts are copyright 2000 The Free Software Foundation and me. diff --git a/po/desk.pl b/po/desk.pl deleted file mode 100755 index 08a2a18a5..000000000 --- a/po/desk.pl +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/perl -w - -# GNOME entry finder utility. -# (C) 2000 The Free Software Foundation -# -# Author(s): Kenneth Christiansen - - -$VERSION = "1.0.0 beta 5"; -$LANG = $ARGV[0]; -$OPTION2 = $ARGV[1]; -$SEARCH = "Name"; - -if (! $LANG){ - print "desk.pl: missing file arguments\n"; - print "Try `desk.pl --help' for more information.\n"; - exit; -} - -if ($OPTION2){ - $SEARCH=$OPTION2; -} - -if ($LANG){ - -if ($LANG=~/^-(.)*/){ - - if ("$LANG" eq "--version" || "$LANG" eq "-V"){ - print "GNOME Entry finder $VERSION\n"; - print "Written by Kenneth Christiansen <kenneth\@gnome.org>, 2000.\n\n"; - print "Copyright (C) 2000 Free Software Foundation, Inc.\n"; - print "This is free software; see the source for copying conditions. There is NO\n"; - print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; - exit; - } - - elsif ($LANG eq "--help" || "$LANG" eq "-H"){ - print "Usage: ./desk.pl [OPTIONS] ...LANGCODE ENTRY\n"; - print "Checks .desktop and alike files for missing translations.\n\n"; - print " -V, --version shows the version\n"; - print " -H, --help shows this help page\n"; - print "\nReport bugs to <kenneth\@gnome.org>.\n"; - exit; - } - - else{ - print "desk.pl: invalid option -- $LANG\n"; - print "Try `desk.pl --help' for more information.\n"; - exit; - } -} - -else{ - - $a="find ../ -print | egrep '.*\\.(desktop|soundlist" - ."|directory)' "; - - $b="find ../ -print | egrep '.*\\.(desktop|soundlist" - ."|directory)' "; - - print "Searching for missing $SEARCH\[$LANG\] entries...\n"; - - open(BUF1, "$a|"); - open(BUF2, "$b|"); - - @buf1 = <BUF1>; - foreach my $file (@buf1){ - open FILE, "<$file"; - while (<FILE>) { - if ($_=~/$SEARCH\[$LANG\]\=/o){ - $file = unpack("x2 A*",$file) . "\n"; - push @buff1, $file; - last; - } - } - } - - @buf2 = <BUF2>; - foreach my $file (@buf2){ - open FILE, "<$file"; - while (<FILE>) { - if ($_=~/$SEARCH\=/o){ - $file = unpack("x2 A*",$file) . "\n"; - push @buff2, $file; - last; - } - } - } - - @bufff1 = sort (@buff1); - @bufff2 = sort (@buff2); - - my %in2; - foreach (@bufff1) { - $in2{$_} = 1; - } - - foreach (@bufff2){ - if (!exists($in2{$_})){ - push @result, $_ } - } - } - - open(OUT1, ">MISSING.$LANG.$SEARCH"); - print OUT1 @result ; - close OUT1; - - - stat("MISSING.$LANG.$SEARCH"); - print "\nWell, you need to fix these:\n\n" if -s _; - print @result if -s _; - print "\nThe list is saved in MISSING.$LANG.$SEARCH\n" if -s _; - print "\nWell, it's all perfect! Congratulation!\n" if -z _; - unlink "MISSING.$LANG.$SEARCH" if -z _; - exit; -} - - @@ -8,20 +8,20 @@ msgid "" msgstr "" "Project-Id-Version: gtk+\n" -"POT-Creation-Date: 2002-05-23 17:08-0400\n" -"PO-Revision-Date: 2002-05-19 04:40+0200\n" +"POT-Creation-Date: 2002-06-13 09:02+0200\n" +"PO-Revision-Date: 2002-06-13 09:03+0200\n" "Last-Translator: Christian Rose <menthos@menthos.com>\n" "Language-Team: Swedish <sv@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: gdk-pixbuf/gdk-pixbuf-animation.c:144 gdk-pixbuf/gdk-pixbuf-io.c:581 +#: gdk-pixbuf/gdk-pixbuf-animation.c:144 gdk-pixbuf/gdk-pixbuf-io.c:585 #, c-format msgid "Failed to open file '%s': %s" msgstr "Misslyckades med att öppna filen \"%s\": %s" -#: gdk-pixbuf/gdk-pixbuf-animation.c:155 gdk-pixbuf/gdk-pixbuf-io.c:591 +#: gdk-pixbuf/gdk-pixbuf-animation.c:155 gdk-pixbuf/gdk-pixbuf-io.c:595 #, c-format msgid "Image file '%s' contains no data" msgstr "Bildfilen \"%s\" innehåller ingen data" @@ -31,7 +31,7 @@ msgstr "Bildfilen \"%s\" innehåller ingen data" msgid "Don't know how to load the animation in file '%s'" msgstr "Vet inte hur man läser in animationen i filen \"%s\"" -#: gdk-pixbuf/gdk-pixbuf-animation.c:205 gdk-pixbuf/gdk-pixbuf-io.c:636 +#: gdk-pixbuf/gdk-pixbuf-animation.c:205 gdk-pixbuf/gdk-pixbuf-io.c:640 #, c-format msgid "" "Failed to load image '%s': reason not known, probably a corrupt image file" @@ -48,12 +48,12 @@ msgstr "" "Misslyckades med att läsa in animationen \"%s\": anledningen är okänd, " "troligtvis en trasig animationsfil" -#: gdk-pixbuf/gdk-pixbuf-io.c:354 +#: gdk-pixbuf/gdk-pixbuf-io.c:358 #, c-format msgid "Unable to load image-loading module: %s: %s" msgstr "Kan inte läsa in bildinläsningsmodulen: %s: %s" -#: gdk-pixbuf/gdk-pixbuf-io.c:373 +#: gdk-pixbuf/gdk-pixbuf-io.c:377 #, c-format msgid "" "Image-loading module %s does not export the proper interface; perhaps it's " @@ -62,41 +62,41 @@ msgstr "" "Bildinläsningsmodulen %s exporterar inte rätt gränssnitt; den kanske är från " "en annan GTK-version?" -#: gdk-pixbuf/gdk-pixbuf-io.c:490 gdk-pixbuf/gdk-pixbuf-io.c:516 +#: gdk-pixbuf/gdk-pixbuf-io.c:494 gdk-pixbuf/gdk-pixbuf-io.c:520 #, c-format msgid "Image type '%s' is not supported" msgstr "Bildtypen \"%s\" stöds inte" -#: gdk-pixbuf/gdk-pixbuf-io.c:538 +#: gdk-pixbuf/gdk-pixbuf-io.c:542 #, c-format msgid "Couldn't recognize the image file format for file '%s'" msgstr "Kunde inte känna igen bildfilformatet på filen \"%s\"" -#: gdk-pixbuf/gdk-pixbuf-io.c:544 +#: gdk-pixbuf/gdk-pixbuf-io.c:548 msgid "Unrecognized image file format" msgstr "Okänt bildfilformat" -#: gdk-pixbuf/gdk-pixbuf-io.c:614 +#: gdk-pixbuf/gdk-pixbuf-io.c:618 #, c-format msgid "Don't know how to load the image in file '%s'" msgstr "Vet inte hur man läser in bilden i filen \"%s\"" -#: gdk-pixbuf/gdk-pixbuf-io.c:647 +#: gdk-pixbuf/gdk-pixbuf-io.c:651 #, c-format msgid "Failed to load image '%s': %s" msgstr "Misslyckades med att läsa in bilden \"%s\": %s" -#: gdk-pixbuf/gdk-pixbuf-io.c:752 +#: gdk-pixbuf/gdk-pixbuf-io.c:756 #, c-format msgid "This build of gdk-pixbuf does not support saving the image format: %s" msgstr "Detta bygge av gdk-pixbuf stöder inte sparande av bildformatet: %s" -#: gdk-pixbuf/gdk-pixbuf-io.c:859 +#: gdk-pixbuf/gdk-pixbuf-io.c:863 #, c-format msgid "Failed to open '%s' for writing: %s" msgstr "Misslyckades med att öppna \"%s\" för skrivning: %s" -#: gdk-pixbuf/gdk-pixbuf-io.c:880 +#: gdk-pixbuf/gdk-pixbuf-io.c:884 #, c-format msgid "" "Failed to close '%s' while writing image, all data may not have been saved: %" @@ -136,15 +136,15 @@ msgstr "Bildpunktsdata är trasigt" msgid "failed to allocate image buffer of %u bytes" msgstr "misslyckades med att allokera bildbuffert på %u byte" -#: gdk-pixbuf/io-bmp.c:249 gdk-pixbuf/io-bmp.c:349 +#: gdk-pixbuf/io-bmp.c:266 gdk-pixbuf/io-bmp.c:366 msgid "Not enough memory to load bitmap image" msgstr "Inte tillräckligt med minne för att läsa in bilden" -#: gdk-pixbuf/io-bmp.c:275 +#: gdk-pixbuf/io-bmp.c:292 msgid "BMP image has unsupported header size" msgstr "BMP-bilden har huvudstorlek som inte stöds" -#: gdk-pixbuf/io-bmp.c:300 gdk-pixbuf/io-bmp.c:323 gdk-pixbuf/io-bmp.c:382 +#: gdk-pixbuf/io-bmp.c:317 gdk-pixbuf/io-bmp.c:340 gdk-pixbuf/io-bmp.c:399 msgid "BMP image has bogus header data" msgstr "BMP-bilden har felaktig huvuddata" @@ -589,15 +589,15 @@ msgstr "Inte tillräckligt med minne för att läsa in bilden" msgid "Couldn't save the rest" msgstr "Kunde inte spara resten" -#: gdk-pixbuf/io-xbm.c:283 +#: gdk-pixbuf/io-xbm.c:284 msgid "Invalid XBM file" msgstr "Ogiltig XBM-fil" -#: gdk-pixbuf/io-xbm.c:293 +#: gdk-pixbuf/io-xbm.c:294 msgid "Insufficient memory to load XBM image file" msgstr "Inte tillräckligt med minne för att läsa in XBM-bildfil" -#: gdk-pixbuf/io-xbm.c:427 +#: gdk-pixbuf/io-xbm.c:429 msgid "Failed to write to temporary file when loading XBM image" msgstr "Misslyckades med att skriva till temporär fil vid inläsning av XBM-fil" @@ -1751,7 +1751,7 @@ msgstr "Markera allt" msgid "Input Methods" msgstr "Inmatningsmetoder" -#: gtk/gtkentry.c:3870 gtk/gtktextview.c:6382 +#: gtk/gtkentry.c:3870 gtk/gtktextview.c:6384 msgid "_Insert Unicode control character" msgstr "_Infoga Unicode-styrtecken" @@ -2359,7 +2359,7 @@ msgstr "Vertikal justering" msgid "The GtkAdjustment for the vertical position." msgstr "GtkAdjustment på den vertikala positionen." -#: gtk/gtklayout.c:639 gtk/gtktreeviewcolumn.c:191 +#: gtk/gtklayout.c:639 gtk/gtktreeviewcolumn.c:192 msgid "Width" msgstr "Bredd" @@ -2384,21 +2384,21 @@ msgstr "Höjden på layouten." msgid "default:LTR" msgstr "default:LTR" -#: gtk/gtkmenu.c:191 +#: gtk/gtkmenu.c:194 msgid "Tearoff Title" msgstr "Löstagbar titel" -#: gtk/gtkmenu.c:192 +#: gtk/gtkmenu.c:195 msgid "" "A title that may be displayed by the window manager when this menu is torn-" "off." msgstr "En titel som kan visas av fönsterhanteraren då denna meny tas loss." -#: gtk/gtkmenu.c:260 +#: gtk/gtkmenu.c:264 msgid "Can change accelerators" msgstr "Kan ändra snabbtangenter" -#: gtk/gtkmenu.c:261 +#: gtk/gtkmenu.c:265 msgid "" "Whether menu accelerators can be changed by pressing a key over the menu " "item." @@ -2816,17 +2816,17 @@ msgid "" "How far in the y direction to move the arrow when the button is depressed" msgstr "Hur långt bort i y-riktningen pilen ska flyttas då knappen trycks ned" -#: gtk/gtkrc.c:2280 +#: gtk/gtkrc.c:2282 #, c-format msgid "Unable to find include file: \"%s\"" msgstr "Kan inte hitta inkluderingsfil: \"%s\"" -#: gtk/gtkrc.c:2922 gtk/gtkrc.c:2925 +#: gtk/gtkrc.c:2924 gtk/gtkrc.c:2927 #, c-format msgid "Unable to locate image file in pixmap_path: \"%s\"" msgstr "Kan inte hitta bildfil i \"pixmap_path\": \"%s\"" -#: gtk/gtkrc.c:3360 +#: gtk/gtkrc.c:3362 #, c-format msgid "Pixmap path element: \"%s\" must be absolute, %s, line %d" msgstr "Sökvägselement till bild: \"%s\" måste vara absolut, %s, rad %d" @@ -3759,8 +3759,8 @@ msgid "ZWS _Zero width space" msgstr "ZWS-blanksteg _utan bredd" #: gtk/gtktextutil.c:54 -msgid "ZWN Zero width _joiner" -msgstr "ZWN-_sammanslagare utan bredd" +msgid "ZWJ Zero width _joiner" +msgstr "ZWJ-_sammanslagare utan bredd" #: gtk/gtktextutil.c:55 msgid "ZWNJ Zero width _non-joiner" @@ -3798,7 +3798,7 @@ msgstr "Synlig markör" msgid "If the insertion cursor is shown" msgstr "Huruvida insättningsmarkören visas" -#: gtk/gtktextview.c:6373 +#: gtk/gtktextview.c:6375 msgid "Input _Methods" msgstr "Inmatnings_metoder" @@ -3914,7 +3914,7 @@ msgstr "Horisontell justering för widgeten" msgid "Vertical Adjustment for the widget" msgstr "Vertikal justering för widgeten" -#: gtk/gtktreeview.c:539 gtk/gtktreeviewcolumn.c:175 gtk/gtkwidget.c:423 +#: gtk/gtktreeview.c:539 gtk/gtktreeviewcolumn.c:176 gtk/gtkwidget.c:423 msgid "Visible" msgstr "Synlig" @@ -3938,7 +3938,7 @@ msgstr "Expanderarkolumn" msgid "Set the column for the expander column" msgstr "Ställ in kolumnen för expanderarkolumnen" -#: gtk/gtktreeview.c:563 gtk/gtktreeviewcolumn.c:274 +#: gtk/gtktreeview.c:563 gtk/gtktreeviewcolumn.c:275 msgid "Reorderable" msgstr "Omarrangeringsbar" @@ -4010,103 +4010,103 @@ msgstr "Indentera expanderare" msgid "Make the expanders indented." msgstr "Gör expanderarna indenterade." -#: gtk/gtktreeviewcolumn.c:176 +#: gtk/gtktreeviewcolumn.c:177 msgid "Whether to display the column" msgstr "Huruvida kolumnen ska visas" -#: gtk/gtktreeviewcolumn.c:183 gtk/gtkwindow.c:446 +#: gtk/gtktreeviewcolumn.c:184 gtk/gtkwindow.c:446 msgid "Resizable" msgstr "Storleksändringsbar" -#: gtk/gtktreeviewcolumn.c:184 +#: gtk/gtktreeviewcolumn.c:185 msgid "Column is user-resizable" msgstr "Användaren kan ändra storleken på kolumnen" -#: gtk/gtktreeviewcolumn.c:192 +#: gtk/gtktreeviewcolumn.c:193 msgid "Current width of the column" msgstr "Aktuell bredd på kolumnen" -#: gtk/gtktreeviewcolumn.c:200 +#: gtk/gtktreeviewcolumn.c:201 msgid "Sizing" msgstr "Storleksändring" -#: gtk/gtktreeviewcolumn.c:201 +#: gtk/gtktreeviewcolumn.c:202 msgid "Resize mode of the column" msgstr "Kolumnens storleksändringsläge" -#: gtk/gtktreeviewcolumn.c:209 +#: gtk/gtktreeviewcolumn.c:210 msgid "Fixed Width" msgstr "Fast bredd" -#: gtk/gtktreeviewcolumn.c:210 +#: gtk/gtktreeviewcolumn.c:211 msgid "Current fixed width of the column" msgstr "Aktuell fast bredd på kolumnen" -#: gtk/gtktreeviewcolumn.c:219 +#: gtk/gtktreeviewcolumn.c:220 msgid "Minimum Width" msgstr "Minsta bredd" -#: gtk/gtktreeviewcolumn.c:220 +#: gtk/gtktreeviewcolumn.c:221 msgid "Minimum allowed width of the column" msgstr "Minsta tillåtna bredd på kolumnen" -#: gtk/gtktreeviewcolumn.c:229 +#: gtk/gtktreeviewcolumn.c:230 msgid "Maximum Width" msgstr "Största bredd" -#: gtk/gtktreeviewcolumn.c:230 +#: gtk/gtktreeviewcolumn.c:231 msgid "Maximum allowed width of the column" msgstr "Största tillåtna bredd på kolumnen" -#: gtk/gtktreeviewcolumn.c:239 +#: gtk/gtktreeviewcolumn.c:240 msgid "Title" msgstr "Titel" -#: gtk/gtktreeviewcolumn.c:240 +#: gtk/gtktreeviewcolumn.c:241 msgid "Title to appear in column header" msgstr "Titel att visa i kolumnhuvudet" -#: gtk/gtktreeviewcolumn.c:247 +#: gtk/gtktreeviewcolumn.c:248 msgid "Clickable" msgstr "Klickbar" -#: gtk/gtktreeviewcolumn.c:248 +#: gtk/gtktreeviewcolumn.c:249 msgid "Whether the header can be clicked" msgstr "Huruvida huvudet kan klickas i" -#: gtk/gtktreeviewcolumn.c:256 +#: gtk/gtktreeviewcolumn.c:257 msgid "Widget" msgstr "Widget" -#: gtk/gtktreeviewcolumn.c:257 +#: gtk/gtktreeviewcolumn.c:258 msgid "Widget to put in column header button instead of column title" msgstr "Widget att placera kolumnhuvudets knapp istället för kolumntiteln" -#: gtk/gtktreeviewcolumn.c:264 +#: gtk/gtktreeviewcolumn.c:265 msgid "Alignment" msgstr "Justering" -#: gtk/gtktreeviewcolumn.c:265 +#: gtk/gtktreeviewcolumn.c:266 msgid "X Alignment of the column header text or widget" msgstr "X-justering på kolumnhuvudets text eller widget" -#: gtk/gtktreeviewcolumn.c:275 +#: gtk/gtktreeviewcolumn.c:276 msgid "Whether the column can be reordered around the headers" msgstr "Huruvida kolumnen kan omarrangeras runt huvudena" -#: gtk/gtktreeviewcolumn.c:282 +#: gtk/gtktreeviewcolumn.c:283 msgid "Sort indicator" msgstr "Sorteringsindikator" -#: gtk/gtktreeviewcolumn.c:283 +#: gtk/gtktreeviewcolumn.c:284 msgid "Whether to show a sort indicator" msgstr "Huruvida en sorteringsindikator ska visas" -#: gtk/gtktreeviewcolumn.c:290 +#: gtk/gtktreeviewcolumn.c:291 msgid "Sort order" msgstr "Sorteringsordning" -#: gtk/gtktreeviewcolumn.c:291 +#: gtk/gtktreeviewcolumn.c:292 msgid "Sort direction the sort indicator should indicate" msgstr "Sorteringsriktning som sorteringsindikatorn ska indikera" diff --git a/po/update.pl b/po/update.pl deleted file mode 100755 index e044a3012..000000000 --- a/po/update.pl +++ /dev/null @@ -1,172 +0,0 @@ -#!/usr/bin/perl -w - -# GNOME po update utility. -# (C) 2000 The Free Software Foundation -# -# Author(s): Kenneth Christiansen - - -$VERSION = "1.2.5 beta 2"; -$LANG = $ARGV[0]; -$PACKAGE = "gtk20"; - -if (! $LANG){ - print "update.pl: missing file arguments\n"; - print "Try `update.pl --help' for more information.\n"; - exit; -} - -if ($LANG=~/^-(.)*/){ - - if ("$LANG" eq "--version" || "$LANG" eq "-V"){ - print "GNOME PO Updater $VERSION\n"; - print "Written by Kenneth Christiansen <kenneth\@gnome.org>, 2000.\n\n"; - print "Copyright (C) 2000 Free Software Foundation, Inc.\n"; - print "This is free software; see the source for copying conditions. There is NO\n"; - print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; - exit; - } - - - elsif ($LANG eq "--help" || "$LANG" eq "-H"){ - print "Usage: ./update.pl [OPTIONS] ...LANGCODE\n"; - print "Updates pot files and merge them with the translations.\n\n"; - print " -V, --version shows the version\n"; - print " -H, --help shows this help page\n"; - print " -P, --pot only generates the potfile\n"; - print " -M, --maintain search for missing files in POTFILES.in\n"; - print "\nExamples of use:\n"; - print "update.sh --pot just creates a new pot file from the source\n"; - print "update.sh da created new pot file and updated the da.po file\n\n"; - print "Report bugs to <kenneth\@gnome.org>.\n"; - exit; - } - - elsif($LANG eq "--pot" || "$LANG" eq "-P"){ - - shift; - $REALPACKAGE = shift; - if (!$REALPACKAGE) { - $REALPACKAGE = $PACKAGE; - } - - print "Building the $REALPACKAGE.pot ..."; - - $b="xgettext --default-domain\=$PACKAGE --directory\=\.\." - ." --add-comments --keyword\=\_ --keyword\=N\_" - ." --files-from\=\.\/POTFILES\.in "; - $b1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot " - ."&& mv $PACKAGE\.po \.\/$REALPACKAGE\.pot \)"; - - `$b`; - `$b1`; - - print "...done\n"; - - exit; - } - - elsif ($LANG eq "--maintain" || "$LANG" eq "-M"){ - - $a="find ../ -print | egrep '.*\\.(c|y|cc|c++|h|gob)' "; - - open(BUF2, "POTFILES.in") || die "update.pl: there's not POTFILES.in!!!\n"; - print "Searching for missing _(\" \") entries...\n"; - open(BUF1, "$a|"); - - - @buf2 = <BUF2>; - @buf1 = <BUF1>; - - if (-s "POTFILES.ignore"){ - open FILE, "POTFILES.ignore"; - while (<FILE>) { - if ($_=~/^[^#]/o){ - push @bup, $_; - } - } - print "POTFILES.ignore found! Ignoring files...\n"; - @buf2 = (@bup, @buf2); - } - - foreach my $file (@buf1){ - open FILE, "<$file"; - while (<FILE>) { - if ($_=~/_\(\"/o){ - $file = unpack("x3 A*",$file) . "\n"; - push @buff1, $file; - last; - } - } - } - - @bufff1 = sort (@buff1); - - @bufff2 = sort (@buf2); - - my %in2; - foreach (@bufff2) { - $in2{$_} = 1; - } - - foreach (@bufff1){ - if (!exists($in2{$_})){ - push @result, $_ } - } - - if(@result){ - open OUT, ">POTFILES.in.missing"; - print OUT @result; - print "\nHere are the results:\n\n", @result, "\n"; - print "File POTFILES.in.missing is being placed in directory...\n"; - print "Please add the files that should be ignored in POTFILES.ignore\n"; - } - else{ - print "\nWell, it's all perfect! Congratulation!\n"; - } - } - - - else{ - print "update.pl: invalid option -- $LANG\n"; - print "Try `update.pl --help' for more information.\n"; - } - exit; - } - -elsif(-s "$LANG.po"){ - - print "Building the $PACKAGE.pot ..."; - - $c="xgettext --default-domain\=$PACKAGE --directory\=\.\." - ." --add-comments --keyword\=\_ --keyword\=N\_" - ." --files-from\=\.\/POTFILES\.in "; - $c1="test \! -f $PACKAGE\.po \|\| \( rm -f \.\/$PACKAGE\.pot " - ."&& mv $PACKAGE\.po \.\/$PACKAGE\.pot \)"; - - `$c`; - `$c1`; - - print "...done"; - - print "\nNow merging $LANG.po with $PACKAGE.pot, and creating an updated $LANG.po ...\n"; - - - $d="mv $LANG.po $LANG.po.old && msgmerge $LANG.po.old $PACKAGE.pot -o $LANG.po"; - - $f="msgfmt --statistics $LANG.po"; - - `$d`; - `$f`; - - unlink "messages"; - unlink "$LANG.po.old"; - - exit; -} - -else{ - print "update.pl: sorry $LANG.po does not exist!\n"; - print "Try `update.pl --help' for more information.\n"; - exit; -} diff --git a/po/update.sh b/po/update.sh deleted file mode 100755 index dfbca6402..000000000 --- a/po/update.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh - -VERSION="1.2.5" -PACKAGE="gtk20" - -if [ "x$1" = "x--help" ]; then - -echo Usage: ./update.sh langcode -echo --help display this help and exit -echo --missing search for missing files in POTFILES.in -echo --version shows the version -echo -echo Examples of use: -echo ./update.sh ----- just creates a new pot file from the source -echo ./update.sh da -- created new pot file and updated the da.po file - -elif [ "x$1" = "x--version" ]; then - -echo "update.sh release $VERSION" - -elif [ "x$1" = "x--missing" ]; then - -echo "Searching for files containing _( ) but missing in POTFILES.in..." -echo -find ../ -print | egrep '.*\.(c|y|cc|c++|h|gob)' | xargs grep _\( | cut -d: -f1 | uniq | cut -d/ -f2- > POTFILES.in.missing -wait - -echo "Sorting data..." -sort -d POTFILES.in -o POTFILES.in && -sort -d POTFILES.in.missing -o POTFILES.in.missing -wait -echo "Comparing data..." -diff POTFILES.in POTFILES.in.missing -u0 | grep '^+' |grep -v '^+++'|grep -v '^@@' > POTFILES.in.missing -wait - -if [ -s POTFILES.ignore ]; then - -sort -d POTFILES.ignore -o POTFILES.tmp -echo "Evaluating ignored files..." -wait -diff POTFILES.tmp POTFILES.in.missing -u0 | grep '^+' |grep -v '^+++'|grep -v '^@@' > POTFILES.in.missing -rm POTFILES.tmp - -fi - -if [ -s POTFILES.in.missing ]; then - -echo && echo "Here are the results:" -echo && cat POTFILES.in.missing -echo && echo "File POTFILES.in.missing is being placed in directory..." -echo "Please add the files that should be ignored in POTFILES.ignore" - -else - -echo &&echo "There are no missing files, thanks God!" -rm POTFILES.in.missing - -fi - -elif [ "x$1" = "x" ]; then - -echo "Building the $PACKAGE.pot ..." - -xgettext --default-domain=$PACKAGE --directory=.. \ - --add-comments --keyword=_ --keyword=N_ \ - --files-from=./POTFILES.in \ -&& test ! -f $PACKAGE.po \ - || ( rm -f ./$PACKAGE.pot \ -&& mv $PACKAGE.po ./$PACKAGE.pot ); - -else - -if [ -s $1.po ]; then - -xgettext --default-domain=$PACKAGE --directory=.. \ - --add-comments --keyword=_ --keyword=N_ \ - --files-from=./POTFILES.in \ -&& test ! -f $PACKAGE.po \ - || ( rm -f ./PACKAGE.pot \ -&& mv $PACKAGE.po ./$PACKAGE.pot ); - -echo "Building the $PACKAGE.pot ..." -echo "Now merging $1.po with $PACKAGE.pot, and creating an updated $1.po ..." - -mv $1.po $1.po.old && msgmerge $1.po.old $PACKAGE.pot -o $1.po \ -&& rm $1.po.old; - -msgfmt --statistics $1.po - -else - -echo Sorry $1.po does not exist! - -fi; - -fi; |