Merge lp:~danilo/intltool/bug-520986 into lp:intltool
- bug-520986
- Merge into trunk
Proposed by
Данило Шеган
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Данило Шеган | ||||
| Approved revision: | 720 | ||||
| Merged at revision: | 721 | ||||
| Proposed branch: | lp:~danilo/intltool/bug-520986 | ||||
| Merge into: | lp:intltool | ||||
| Diff against target: |
409 lines (+76/-68) 16 files modified
intltool-extract.in (+24/-16) tests/results/context.xml.in.h (+1/-1) tests/results/extract-comments.xml.h (+9/-9) tests/results/extract-gtkbuilder.ui.h (+1/-1) tests/results/extract12.xml.in.h (+1/-1) tests/results/extract13.desktop.in.h (+1/-1) tests/results/extract14.xml.in.h (+3/-3) tests/results/extract7.xml.h (+5/-5) tests/results/extract8.glade.h (+8/-8) tests/results/extract9.xml.in.h (+2/-2) tests/results/iso88591text.xml.in.h (+3/-3) tests/results/space-preserve.xml.in.h (+2/-2) tests/results/test-quoted.dtd.h (+2/-2) tests/results/test.schemas.in.h (+3/-3) tests/results/test.scm.h (+8/-8) tests/results/unicodetext.xml.in.h (+3/-3) |
||||
| To merge this branch: | bzr merge lp:~danilo/intltool/bug-520986 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Данило Шеган | Approve | ||
|
Review via email:
|
|||
Commit message
Description of the change
= Bug 520986 =
For the sake of diff generation and looking over.
To post a comment you must log in.
Revision history for this message
| Данило Шеган (danilo) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
| 1 | === modified file 'intltool-extract.in' | |||
| 2 | --- intltool-extract.in 2010-03-18 21:49:43 +0000 | |||
| 3 | +++ intltool-extract.in 2011-10-08 14:05:27 +0000 | |||
| 4 | @@ -55,6 +55,7 @@ | |||
| 5 | 55 | my $gettext_type = ""; | 55 | my $gettext_type = ""; |
| 6 | 56 | my $input; | 56 | my $input; |
| 7 | 57 | my %messages = (); | 57 | my %messages = (); |
| 8 | 58 | my @messages_sorted = (); | ||
| 9 | 58 | my %loc = (); | 59 | my %loc = (); |
| 10 | 59 | my %count = (); | 60 | my %count = (); |
| 11 | 60 | my %comments = (); | 61 | my %comments = (); |
| 12 | @@ -77,7 +78,7 @@ | |||
| 13 | 77 | "update" => \$UPDATE_ARG, | 78 | "update" => \$UPDATE_ARG, |
| 14 | 78 | "quiet|q" => \$QUIET_ARG, | 79 | "quiet|q" => \$QUIET_ARG, |
| 15 | 79 | "srcdir=s" => \$SRCDIR_ARG, | 80 | "srcdir=s" => \$SRCDIR_ARG, |
| 17 | 80 | "nomsgctxt" => \$NOMSGCTXT_ARG, | 81 | "nomsgctxt" => \$NOMSGCTXT_ARG, |
| 18 | 81 | ) or &error; | 82 | ) or &error; |
| 19 | 82 | 83 | ||
| 20 | 83 | &split_on_argument; | 84 | &split_on_argument; |
| 21 | @@ -265,20 +266,27 @@ | |||
| 22 | 265 | return join "", map &escape_char, split //, $string; | 266 | return join "", map &escape_char, split //, $string; |
| 23 | 266 | } | 267 | } |
| 24 | 267 | 268 | ||
| 25 | 269 | sub add_message | ||
| 26 | 270 | { | ||
| 27 | 271 | my ($string) = @_; | ||
| 28 | 272 | push @messages_sorted, $string if !defined $messages{$string}; | ||
| 29 | 273 | $messages{$string} = []; | ||
| 30 | 274 | } | ||
| 31 | 275 | |||
| 32 | 268 | sub type_ini { | 276 | sub type_ini { |
| 33 | 269 | ### For generic translatable desktop files ### | 277 | ### For generic translatable desktop files ### |
| 34 | 270 | while ($input =~ /^(#(.+)\n)?^_.*=(.*)$/mg) { | 278 | while ($input =~ /^(#(.+)\n)?^_.*=(.*)$/mg) { |
| 35 | 271 | if (defined($2)) { | 279 | if (defined($2)) { |
| 36 | 272 | $comments{$3} = $2; | 280 | $comments{$3} = $2; |
| 37 | 273 | } | 281 | } |
| 39 | 274 | $messages{$3} = []; | 282 | add_message($3); |
| 40 | 275 | } | 283 | } |
| 41 | 276 | } | 284 | } |
| 42 | 277 | 285 | ||
| 43 | 278 | sub type_keys { | 286 | sub type_keys { |
| 44 | 279 | ### For generic translatable mime/keys files ### | 287 | ### For generic translatable mime/keys files ### |
| 45 | 280 | while ($input =~ /^\s*_\w+=(.*)$/mg) { | 288 | while ($input =~ /^\s*_\w+=(.*)$/mg) { |
| 47 | 281 | $messages{$1} = []; | 289 | add_message($1); |
| 48 | 282 | } | 290 | } |
| 49 | 283 | } | 291 | } |
| 50 | 284 | 292 | ||
| 51 | @@ -340,7 +348,7 @@ | |||
| 52 | 340 | ## differences from intltool-merge.in.in | 348 | ## differences from intltool-merge.in.in |
| 53 | 341 | if ($key =~ /^_/) { | 349 | if ($key =~ /^_/) { |
| 54 | 342 | $comments{entity_decode($string)} = $XMLCOMMENT if $XMLCOMMENT; | 350 | $comments{entity_decode($string)} = $XMLCOMMENT if $XMLCOMMENT; |
| 56 | 343 | $messages{entity_decode($string)} = []; | 351 | add_message(entity_decode($string)); |
| 57 | 344 | $$translate = 2; | 352 | $$translate = 2; |
| 58 | 345 | } | 353 | } |
| 59 | 346 | ## differences end here from intltool-merge.in.in | 354 | ## differences end here from intltool-merge.in.in |
| 60 | @@ -457,7 +465,7 @@ | |||
| 61 | 457 | 465 | ||
| 62 | 458 | if ($lookup && $translate != 2) { | 466 | if ($lookup && $translate != 2) { |
| 63 | 459 | $comments{$lookup} = $XMLCOMMENT if $XMLCOMMENT; | 467 | $comments{$lookup} = $XMLCOMMENT if $XMLCOMMENT; |
| 65 | 460 | $messages{$lookup} = []; | 468 | add_message($lookup); |
| 66 | 461 | } elsif ($translate == 2) { | 469 | } elsif ($translate == 2) { |
| 67 | 462 | translate_subnodes($fh, \@all, $language, 1, $spacepreserve); | 470 | translate_subnodes($fh, \@all, $language, 1, $spacepreserve); |
| 68 | 463 | } | 471 | } |
| 69 | @@ -646,7 +654,7 @@ | |||
| 70 | 646 | my $currentcomment = shift @eachcomment; | 654 | my $currentcomment = shift @eachcomment; |
| 71 | 647 | next if !$_; | 655 | next if !$_; |
| 72 | 648 | s/\s+/ /g; | 656 | s/\s+/ /g; |
| 74 | 649 | $messages{entity_decode_minimal($_)} = []; | 657 | add_message(entity_decode_minimal($_)); |
| 75 | 650 | $comments{entity_decode_minimal($_)} = $currentcomment if (defined($currentcomment)); | 658 | $comments{entity_decode_minimal($_)} = $currentcomment if (defined($currentcomment)); |
| 76 | 651 | } | 659 | } |
| 77 | 652 | } | 660 | } |
| 78 | @@ -669,7 +677,7 @@ | |||
| 79 | 669 | for my $str (@str_list) | 677 | for my $str (@str_list) |
| 80 | 670 | { | 678 | { |
| 81 | 671 | $strcount++; | 679 | $strcount++; |
| 83 | 672 | $messages{$str} = []; | 680 | add_message($str); |
| 84 | 673 | $loc{$str} = $lineno; | 681 | $loc{$str} = $lineno; |
| 85 | 674 | $count{$str} = $strcount; | 682 | $count{$str} = $strcount; |
| 86 | 675 | my $usercomment = ''; | 683 | my $usercomment = ''; |
| 87 | @@ -737,7 +745,7 @@ | |||
| 88 | 737 | my $before = $`; | 745 | my $before = $`; |
| 89 | 738 | $message =~ s/\\\"/\"/g; | 746 | $message =~ s/\\\"/\"/g; |
| 90 | 739 | $before =~ s/[^\n]//g; | 747 | $before =~ s/[^\n]//g; |
| 92 | 740 | $messages{$message} = []; | 748 | add_message($message); |
| 93 | 741 | $loc{$message} = length ($before) + 2; | 749 | $loc{$message} = length ($before) + 2; |
| 94 | 742 | } | 750 | } |
| 95 | 743 | } | 751 | } |
| 96 | @@ -749,7 +757,7 @@ | |||
| 97 | 749 | $message =~ s/\\\"/\"/g; | 757 | $message =~ s/\\\"/\"/g; |
| 98 | 750 | $message = entity_decode($message); | 758 | $message = entity_decode($message); |
| 99 | 751 | $before =~ s/[^\n]//g; | 759 | $before =~ s/[^\n]//g; |
| 101 | 752 | $messages{$message} = []; | 760 | add_message($message); |
| 102 | 753 | $loc{$message} = length ($before) + 2; | 761 | $loc{$message} = length ($before) + 2; |
| 103 | 754 | } | 762 | } |
| 104 | 755 | } | 763 | } |
| 105 | @@ -763,12 +771,12 @@ | |||
| 106 | 763 | # Glade sometimes uses tags that normally mark translatable things for | 771 | # Glade sometimes uses tags that normally mark translatable things for |
| 107 | 764 | # little bits of non-translatable content. We work around this by not | 772 | # little bits of non-translatable content. We work around this by not |
| 108 | 765 | # translating strings that only includes something like label4 or window1. | 773 | # translating strings that only includes something like label4 or window1. |
| 110 | 766 | $messages{entity_decode($2)} = [] unless $2 =~ /^(window|label|dialog)[0-9]+$/; | 774 | add_message(entity_decode($2)) unless $2 =~ /^(window|label|dialog)[0-9]+$/; |
| 111 | 767 | } | 775 | } |
| 112 | 768 | 776 | ||
| 113 | 769 | while ($input =~ /<items>(..[^<]*)<\/items>/sg) { | 777 | while ($input =~ /<items>(..[^<]*)<\/items>/sg) { |
| 114 | 770 | for my $item (split (/\n/, $1)) { | 778 | for my $item (split (/\n/, $1)) { |
| 116 | 771 | $messages{entity_decode($item)} = []; | 779 | add_message(entity_decode($item)); |
| 117 | 772 | } | 780 | } |
| 118 | 773 | } | 781 | } |
| 119 | 774 | 782 | ||
| 120 | @@ -779,14 +787,14 @@ | |||
| 121 | 779 | if (defined($2)) { | 787 | if (defined($2)) { |
| 122 | 780 | $message = entity_decode($2) . "\004" . $message; | 788 | $message = entity_decode($2) . "\004" . $message; |
| 123 | 781 | } | 789 | } |
| 125 | 782 | $messages{$message} = []; | 790 | add_message($message); |
| 126 | 783 | if (defined($3)) { | 791 | if (defined($3)) { |
| 127 | 784 | $comments{$message} = entity_decode($3) ; | 792 | $comments{$message} = entity_decode($3) ; |
| 128 | 785 | } | 793 | } |
| 129 | 786 | } | 794 | } |
| 130 | 787 | } | 795 | } |
| 131 | 788 | while ($input =~ /<atkaction\s+action_name="([^>]*)"\s+description="([^>]+)"\/>/sg) { | 796 | while ($input =~ /<atkaction\s+action_name="([^>]*)"\s+description="([^>]+)"\/>/sg) { |
| 133 | 789 | $messages{entity_decode_minimal($2)} = []; | 797 | add_message(entity_decode_minimal($2)); |
| 134 | 790 | } | 798 | } |
| 135 | 791 | } | 799 | } |
| 136 | 792 | 800 | ||
| 137 | @@ -799,7 +807,7 @@ | |||
| 138 | 799 | if (substr($line,$i,1) eq "\"") { | 807 | if (substr($line,$i,1) eq "\"") { |
| 139 | 800 | if ($state == 2) { | 808 | if ($state == 2) { |
| 140 | 801 | $comments{$str} = $trcomment if ($trcomment); | 809 | $comments{$str} = $trcomment if ($trcomment); |
| 142 | 802 | $messages{$str} = []; | 810 | add_message($str); |
| 143 | 803 | $str = ''; | 811 | $str = ''; |
| 144 | 804 | $state = 0; $trcomment = ""; | 812 | $state = 0; $trcomment = ""; |
| 145 | 805 | } elsif ($state == 1) { | 813 | } elsif ($state == 1) { |
| 146 | @@ -914,7 +922,7 @@ | |||
| 147 | 914 | if (defined $message) { | 922 | if (defined $message) { |
| 148 | 915 | use Encode; | 923 | use Encode; |
| 149 | 916 | Encode::from_to ($message, "iso-8859-1", "UTF-8"); | 924 | Encode::from_to ($message, "iso-8859-1", "UTF-8"); |
| 151 | 917 | $messages{$message} = []; | 925 | add_message($message); |
| 152 | 918 | if ($message =~ /^Bad Strref$/ ) { | 926 | if ($message =~ /^Bad Strref$/ ) { |
| 153 | 919 | $comments{$message} = "DO NOT Translate this Entry."; | 927 | $comments{$message} = "DO NOT Translate this Entry."; |
| 154 | 920 | $comments{$message} .= "\nTLK:position=$count"; | 928 | $comments{$message} .= "\nTLK:position=$count"; |
| 155 | @@ -941,7 +949,7 @@ | |||
| 156 | 941 | } | 949 | } |
| 157 | 942 | else | 950 | else |
| 158 | 943 | { | 951 | { |
| 160 | 944 | @msgids = sort keys %messages; | 952 | @msgids = @messages_sorted; |
| 161 | 945 | } | 953 | } |
| 162 | 946 | for my $message (@msgids) | 954 | for my $message (@msgids) |
| 163 | 947 | { | 955 | { |
| 164 | 948 | 956 | ||
| 165 | === modified file 'tests/results/context.xml.in.h' | |||
| 166 | --- tests/results/context.xml.in.h 2008-07-25 18:00:49 +0000 | |||
| 167 | +++ tests/results/context.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 168 | @@ -1,7 +1,7 @@ | |||
| 169 | 1 | char *s = N_("Foo"); | ||
| 170 | 1 | /* This is the comment on the first Bar */ | 2 | /* This is the comment on the first Bar */ |
| 171 | 2 | char *s = C_("1", "Bar"); | 3 | char *s = C_("1", "Bar"); |
| 172 | 3 | /* This is the comment on the second Bar */ | 4 | /* This is the comment on the second Bar */ |
| 173 | 4 | char *s = C_("2", "Bar"); | 5 | char *s = C_("2", "Bar"); |
| 174 | 5 | /* This is the comment on Baz */ | 6 | /* This is the comment on Baz */ |
| 175 | 6 | char *s = N_("Baz"); | 7 | char *s = N_("Baz"); |
| 176 | 7 | char *s = N_("Foo"); | ||
| 177 | 8 | 8 | ||
| 178 | === modified file 'tests/results/extract-comments.xml.h' | |||
| 179 | --- tests/results/extract-comments.xml.h 2005-06-26 10:54:45 +0000 | |||
| 180 | +++ tests/results/extract-comments.xml.h 2011-10-08 14:05:27 +0000 | |||
| 181 | @@ -1,19 +1,19 @@ | |||
| 182 | 1 | /* This comment is not ignored even if it contains > (greater than) | ||
| 183 | 2 | sign in it, and the following string shows up as well */ | ||
| 184 | 3 | char *s = N_("Dum-dee-dum"); | ||
| 185 | 4 | /* If comment doesn't end on the previous line, it should be handled | ||
| 186 | 5 | correctly */ | ||
| 187 | 6 | char *s = N_("Final thing to translate"); | ||
| 188 | 7 | /* This comment is not ignored */ | 1 | /* This comment is not ignored */ |
| 189 | 8 | char *s = N_("First thing to translate"); | 2 | char *s = N_("First thing to translate"); |
| 190 | 9 | /* This is multi line comment for the following string; | 3 | /* This is multi line comment for the following string; |
| 191 | 10 | second line of multi-line comment */ | 4 | second line of multi-line comment */ |
| 192 | 11 | char *s = N_("Something to translate"); | 5 | char *s = N_("Something to translate"); |
| 193 | 6 | /* If comment doesn't end on the previous line, it should be handled | ||
| 194 | 7 | correctly */ | ||
| 195 | 8 | char *s = N_("Final thing to translate"); | ||
| 196 | 12 | char *s = N_("This doesn't have a comment for translators"); | 9 | char *s = N_("This doesn't have a comment for translators"); |
| 199 | 13 | /* Comment for *both* attributes and content */ | 10 | /* This comment is not ignored even if it contains > (greater than) |
| 200 | 14 | char *s = N_("attribute value"); | 11 | sign in it, and the following string shows up as well */ |
| 201 | 12 | char *s = N_("Dum-dee-dum"); | ||
| 202 | 13 | char *s = N_("attribute without comment"); | ||
| 203 | 15 | /* This comment will appear if attributes can be commented about */ | 14 | /* This comment will appear if attributes can be commented about */ |
| 204 | 16 | char *s = N_("attribute with comment"); | 15 | char *s = N_("attribute with comment"); |
| 206 | 17 | char *s = N_("attribute without comment"); | 16 | /* Comment for *both* attributes and content */ |
| 207 | 17 | char *s = N_("attribute value"); | ||
| 208 | 18 | /* Comment for *both* attributes and content */ | 18 | /* Comment for *both* attributes and content */ |
| 209 | 19 | char *s = N_("even more content"); | 19 | char *s = N_("even more content"); |
| 210 | 20 | 20 | ||
| 211 | === modified file 'tests/results/extract-gtkbuilder.ui.h' | |||
| 212 | --- tests/results/extract-gtkbuilder.ui.h 2010-03-18 21:49:43 +0000 | |||
| 213 | +++ tests/results/extract-gtkbuilder.ui.h 2011-10-08 14:05:27 +0000 | |||
| 214 | @@ -1,3 +1,3 @@ | |||
| 215 | 1 | char *s = C_("developer", "help"); | ||
| 216 | 2 | char *s = N_("help"); | 1 | char *s = N_("help"); |
| 217 | 3 | char *s = C_("user", "help"); | 2 | char *s = C_("user", "help"); |
| 218 | 3 | char *s = C_("developer", "help"); | ||
| 219 | 4 | 4 | ||
| 220 | === modified file 'tests/results/extract12.xml.in.h' | |||
| 221 | --- tests/results/extract12.xml.in.h 2005-01-21 02:04:39 +0000 | |||
| 222 | +++ tests/results/extract12.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 223 | @@ -1,3 +1,3 @@ | |||
| 224 | 1 | char *s = N_("Other attribute"); | ||
| 225 | 1 | char *s = N_("Normal name"); | 2 | char *s = N_("Normal name"); |
| 226 | 2 | char *s = N_("Other attribute"); | ||
| 227 | 3 | char *s = N_("Other name"); | 3 | char *s = N_("Other name"); |
| 228 | 4 | 4 | ||
| 229 | === modified file 'tests/results/extract13.desktop.in.h' | |||
| 230 | --- tests/results/extract13.desktop.in.h 2008-08-25 03:06:45 +0000 | |||
| 231 | +++ tests/results/extract13.desktop.in.h 2011-10-08 14:05:27 +0000 | |||
| 232 | @@ -1,5 +1,5 @@ | |||
| 233 | 1 | char *s = N_("Blue"); | ||
| 234 | 2 | /* 2. This comment should be extracted. */ | 1 | /* 2. This comment should be extracted. */ |
| 235 | 3 | char *s = N_("Find Files..."); | 2 | char *s = N_("Find Files..."); |
| 236 | 4 | /* 4. This comment also should be extracted. */ | 3 | /* 4. This comment also should be extracted. */ |
| 237 | 5 | char *s = N_("Locate documents and folders on this computer by name or content"); | 4 | char *s = N_("Locate documents and folders on this computer by name or content"); |
| 238 | 5 | char *s = N_("Blue"); | ||
| 239 | 6 | 6 | ||
| 240 | === modified file 'tests/results/extract14.xml.in.h' | |||
| 241 | --- tests/results/extract14.xml.in.h 2007-07-20 16:36:30 +0000 | |||
| 242 | +++ tests/results/extract14.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 243 | @@ -1,4 +1,4 @@ | |||
| 244 | 1 | char *s = N_("The < entity produces the < character"); | ||
| 245 | 2 | char *s = N_("The > entity produces the > character"); | ||
| 246 | 3 | char *s = N_("The &lt; entity produces the < character"); | ||
| 247 | 1 | char *s = N_("The &gt; entity produces the > character"); | 4 | char *s = N_("The &gt; entity produces the > character"); |
| 248 | 2 | char *s = N_("The &lt; entity produces the < character"); | ||
| 249 | 3 | char *s = N_("The > entity produces the > character"); | ||
| 250 | 4 | char *s = N_("The < entity produces the < character"); | ||
| 251 | 5 | 5 | ||
| 252 | === modified file 'tests/results/extract7.xml.h' | |||
| 253 | --- tests/results/extract7.xml.h 2004-06-14 09:13:11 +0000 | |||
| 254 | +++ tests/results/extract7.xml.h 2011-10-08 14:05:27 +0000 | |||
| 255 | @@ -1,9 +1,9 @@ | |||
| 256 | 1 | char *s = N_("<big>Welcome to The GIMP !</big>"); | 1 | char *s = N_("<big>Welcome to The GIMP !</big>"); |
| 257 | 2 | char *s = N_("Most plug-ins work on the current layer of the current image. In some cases, you will have to merge all layers (Layers->Flatten Image) if you want the plug-in to work on the whole image."); | ||
| 258 | 3 | char *s = N_("Nearly all image operations are performed by right-clicking on the image. And don't worry, you can undo most mistakes..."); | 2 | char *s = N_("Nearly all image operations are performed by right-clicking on the image. And don't worry, you can undo most mistakes..."); |
| 260 | 4 | char *s = N_("Not all effects can be applied to all kinds of images. This is indicated by a grayed-out menu-entry. You may need to change the image mode to RGB (Image->Mode->RGB), add an alpha-channel (Layers->Add Alpha Channel) or flatten it (Layers->Flatten Image)."); | 3 | char *s = N_("You can get context-sensitive help for most of the GIMP's features by pressing the F1 key at any time. This also works inside the menus."); |
| 261 | 5 | char *s = N_("The GIMP uses layers to let you organize your image. Think of them as a stack of slides or filters, such that looking through them you see a composite of their contents."); | 4 | char *s = N_("The GIMP uses layers to let you organize your image. Think of them as a stack of slides or filters, such that looking through them you see a composite of their contents."); |
| 262 | 5 | char *s = N_("You can perform many layer operations by right-clicking on the text label of a layer in the "Layers, Channels and Paths" dialog."); | ||
| 263 | 6 | char *s = N_("When you save an image to work on it again later, try using XCF, the GIMP's native file format (use the file extension <tt>.xcf</tt>). This preserves the layers and every aspect of your work-in-progress. Once a project is completed, you can save it as JPEG, PNG, GIF, ..."); | ||
| 264 | 6 | char *s = N_("The layer named "Background" it special because it lacks transparency. This prevents you from adding a layer mask or moving the layer up in the stack. You may add transparency to it by right-clicking in the "Layers, Channels and Paths" dialog and selecting "Add Alpha Channel"."); | 7 | char *s = N_("The layer named "Background" it special because it lacks transparency. This prevents you from adding a layer mask or moving the layer up in the stack. You may add transparency to it by right-clicking in the "Layers, Channels and Paths" dialog and selecting "Add Alpha Channel"."); |
| 268 | 7 | char *s = N_("When you save an image to work on it again later, try using XCF, the GIMP's native file format (use the file extension <tt>.xcf</tt>). This preserves the layers and every aspect of your work-in-progress. Once a project is completed, you can save it as JPEG, PNG, GIF, ..."); | 8 | char *s = N_("Most plug-ins work on the current layer of the current image. In some cases, you will have to merge all layers (Layers->Flatten Image) if you want the plug-in to work on the whole image."); |
| 269 | 8 | char *s = N_("You can get context-sensitive help for most of the GIMP's features by pressing the F1 key at any time. This also works inside the menus."); | 9 | char *s = N_("Not all effects can be applied to all kinds of images. This is indicated by a grayed-out menu-entry. You may need to change the image mode to RGB (Image->Mode->RGB), add an alpha-channel (Layers->Add Alpha Channel) or flatten it (Layers->Flatten Image)."); |
| 267 | 9 | char *s = N_("You can perform many layer operations by right-clicking on the text label of a layer in the "Layers, Channels and Paths" dialog."); | ||
| 270 | 10 | 10 | ||
| 271 | === modified file 'tests/results/extract8.glade.h' | |||
| 272 | --- tests/results/extract8.glade.h 2004-10-14 10:39:17 +0000 | |||
| 273 | +++ tests/results/extract8.glade.h 2011-10-08 14:05:27 +0000 | |||
| 274 | @@ -1,13 +1,13 @@ | |||
| 275 | 1 | char *s = N_("Testing"); | ||
| 276 | 1 | /* Comment on <property> tag */ | 2 | /* Comment on <property> tag */ |
| 277 | 2 | char *s = N_("A label"); | 3 | char *s = N_("A label"); |
| 279 | 3 | char *s = N_("Cancel (and exit) the test."); | 4 | /* Multiline comments |
| 280 | 5 | should be supported as well */ | ||
| 281 | 6 | char *s = N_("_Push me"); | ||
| 282 | 7 | char *s = N_("Testing2"); | ||
| 283 | 4 | char *s = N_("Click the button below"); | 8 | char *s = N_("Click the button below"); |
| 286 | 5 | char *s = N_("Testing"); | 9 | char *s = N_("This button\n" |
| 287 | 6 | char *s = N_("Testing2"); | 10 | "dares you to invoke this action."); |
| 288 | 7 | char *s = N_("This action\n" | 11 | char *s = N_("This action\n" |
| 289 | 8 | "does nothing interesting."); | 12 | "does nothing interesting."); |
| 295 | 9 | char *s = N_("This button\n" | 13 | char *s = N_("Cancel (and exit) the test."); |
| 291 | 10 | "dares you to invoke this action."); | ||
| 292 | 11 | /* Multiline comments | ||
| 293 | 12 | should be supported as well */ | ||
| 294 | 13 | char *s = N_("_Push me"); | ||
| 296 | 14 | 14 | ||
| 297 | === modified file 'tests/results/extract9.xml.in.h' | |||
| 298 | --- tests/results/extract9.xml.in.h 2004-10-07 08:38:19 +0000 | |||
| 299 | +++ tests/results/extract9.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 300 | @@ -1,3 +1,5 @@ | |||
| 301 | 1 | char *s = N_("Welcome to The GIMP !"); | ||
| 302 | 2 | char *s = N_("Nearly all image operations are performed by right-clicking on the image. And don't worry, you can undo most mistakes."); | ||
| 303 | 1 | char *s = N_("\n" | 3 | char *s = N_("\n" |
| 304 | 2 | "\n" | 4 | "\n" |
| 305 | 3 | "\n" | 5 | "\n" |
| 306 | @@ -6,5 +8,3 @@ | |||
| 307 | 6 | "\n" | 8 | "\n" |
| 308 | 7 | "\n" | 9 | "\n" |
| 309 | 8 | " "); | 10 | " "); |
| 310 | 9 | char *s = N_("Nearly all image operations are performed by right-clicking on the image. And don't worry, you can undo most mistakes."); | ||
| 311 | 10 | char *s = N_("Welcome to The GIMP !"); | ||
| 312 | 11 | 11 | ||
| 313 | === modified file 'tests/results/iso88591text.xml.in.h' | |||
| 314 | --- tests/results/iso88591text.xml.in.h 2005-11-25 20:00:39 +0000 | |||
| 315 | +++ tests/results/iso88591text.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 316 | @@ -1,5 +1,5 @@ | |||
| 317 | 1 | char *s = N_("Europe"); | ||
| 318 | 2 | /* Translators: This is in France. */ | ||
| 319 | 3 | char *s = N_("Chambéry"); | ||
| 320 | 1 | /* Translators: This is in Chambéry in France. */ | 4 | /* Translators: This is in Chambéry in France. */ |
| 321 | 2 | char *s = N_("Aix-les-Bains"); | 5 | char *s = N_("Aix-les-Bains"); |
| 322 | 3 | /* Translators: This is in France. */ | ||
| 323 | 4 | char *s = N_("Chambéry"); | ||
| 324 | 5 | char *s = N_("Europe"); | ||
| 325 | 6 | 6 | ||
| 326 | === modified file 'tests/results/space-preserve.xml.in.h' | |||
| 327 | --- tests/results/space-preserve.xml.in.h 2005-06-26 10:54:45 +0000 | |||
| 328 | +++ tests/results/space-preserve.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 329 | @@ -1,8 +1,8 @@ | |||
| 330 | 1 | char *s = N_("And this message should take no more than one single row, no matter the spacing in the source file."); | ||
| 331 | 2 | char *s = N_("Insufficient disk space for upgrade."); | 1 | char *s = N_("Insufficient disk space for upgrade."); |
| 332 | 3 | char *s = N_("This is not an error."); | ||
| 333 | 4 | char *s = N_("Upgrading your data and settings will require up to {0} of disk\n" | 2 | char *s = N_("Upgrading your data and settings will require up to {0} of disk\n" |
| 334 | 5 | "space, but you only have {1} available.\n" | 3 | "space, but you only have {1} available.\n" |
| 335 | 6 | "\n" | 4 | "\n" |
| 336 | 7 | "You will need to make more space available in your home directory before you can\n" | 5 | "You will need to make more space available in your home directory before you can\n" |
| 337 | 8 | "continue."); | 6 | "continue."); |
| 338 | 7 | char *s = N_("This is not an error."); | ||
| 339 | 8 | char *s = N_("And this message should take no more than one single row, no matter the spacing in the source file."); | ||
| 340 | 9 | 9 | ||
| 341 | === modified file 'tests/results/test-quoted.dtd.h' | |||
| 342 | --- tests/results/test-quoted.dtd.h 2006-05-23 21:08:38 +0000 | |||
| 343 | +++ tests/results/test-quoted.dtd.h 2011-10-08 14:05:27 +0000 | |||
| 344 | @@ -1,8 +1,8 @@ | |||
| 345 | 1 | # 1 "cases/test-quoted.dtd" | 1 | # 1 "cases/test-quoted.dtd" |
| 346 | 2 | char *s = N_("Channel requires "authentication""); | 2 | char *s = N_("Channel requires "authentication""); |
| 347 | 3 | # 4 "cases/test-quoted.dtd" | ||
| 348 | 4 | char *s = N_("Password\\a:"); | ||
| 349 | 5 | # 2 "cases/test-quoted.dtd" | 3 | # 2 "cases/test-quoted.dtd" |
| 350 | 6 | char *s = N_("Please enter the username and password given to you by this channel's publisher."); | 4 | char *s = N_("Please enter the username and password given to you by this channel's publisher."); |
| 351 | 7 | # 3 "cases/test-quoted.dtd" | 5 | # 3 "cases/test-quoted.dtd" |
| 352 | 8 | char *s = N_("Username\"foo\":"); | 6 | char *s = N_("Username\"foo\":"); |
| 353 | 7 | # 4 "cases/test-quoted.dtd" | ||
| 354 | 8 | char *s = N_("Password\\a:"); | ||
| 355 | 9 | 9 | ||
| 356 | === modified file 'tests/results/test.schemas.in.h' | |||
| 357 | --- tests/results/test.schemas.in.h 2004-05-06 16:24:29 +0000 | |||
| 358 | +++ tests/results/test.schemas.in.h 2011-10-08 14:05:27 +0000 | |||
| 359 | @@ -1,10 +1,10 @@ | |||
| 360 | 1 | char *s = N_("12"); | ||
| 361 | 2 | /* default value for /schemas/apps/clock_applet/prefs/hour_format | 1 | /* default value for /schemas/apps/clock_applet/prefs/hour_format |
| 362 | 3 | The translation should only include the localized default | 2 | The translation should only include the localized default |
| 363 | 4 | eg. 12 or 24 */ | 3 | eg. 12 or 24 */ |
| 364 | 5 | char *s = N_("24"); | 4 | char *s = N_("24"); |
| 365 | 6 | char *s = N_("Display seconds in time"); | ||
| 366 | 7 | char *s = N_("Hour format"); | 5 | char *s = N_("Hour format"); |
| 367 | 8 | char *s = N_("Puh long."); | ||
| 368 | 9 | char *s = N_("Sets the hour format, may be either 12 or 24"); | 6 | char *s = N_("Sets the hour format, may be either 12 or 24"); |
| 369 | 7 | char *s = N_("Display seconds in time"); | ||
| 370 | 8 | char *s = N_("12"); | ||
| 371 | 10 | char *s = N_("Something random..even has >"); | 9 | char *s = N_("Something random..even has >"); |
| 372 | 10 | char *s = N_("Puh long."); | ||
| 373 | 11 | 11 | ||
| 374 | === modified file 'tests/results/test.scm.h' | |||
| 375 | --- tests/results/test.scm.h 2004-10-23 09:11:26 +0000 | |||
| 376 | +++ tests/results/test.scm.h 2011-10-08 14:05:27 +0000 | |||
| 377 | @@ -1,11 +1,11 @@ | |||
| 378 | 1 | /* silly comment */ | ||
| 379 | 2 | char *s = N_("translatable string"); | ||
| 380 | 3 | /* this is a fine comment for translators */ | ||
| 381 | 4 | char *s = N_("nice string; thanks"); | ||
| 382 | 5 | /* all well */ | ||
| 383 | 6 | char *s = N_("multiple"); | ||
| 384 | 7 | char *s = N_("translations; per line"); | ||
| 385 | 8 | char *s = N_("translation"); | ||
| 386 | 1 | /* so "what? */ | 9 | /* so "what? */ |
| 387 | 2 | char *s = N_("another \" string"); | 10 | char *s = N_("another \" string"); |
| 388 | 3 | char *s = N_("here"); | 11 | char *s = N_("here"); |
| 389 | 4 | /* all well */ | ||
| 390 | 5 | char *s = N_("multiple"); | ||
| 391 | 6 | /* this is a fine comment for translators */ | ||
| 392 | 7 | char *s = N_("nice string; thanks"); | ||
| 393 | 8 | /* silly comment */ | ||
| 394 | 9 | char *s = N_("translatable string"); | ||
| 395 | 10 | char *s = N_("translation"); | ||
| 396 | 11 | char *s = N_("translations; per line"); | ||
| 397 | 12 | 12 | ||
| 398 | === modified file 'tests/results/unicodetext.xml.in.h' | |||
| 399 | --- tests/results/unicodetext.xml.in.h 2005-11-25 20:00:39 +0000 | |||
| 400 | +++ tests/results/unicodetext.xml.in.h 2011-10-08 14:05:27 +0000 | |||
| 401 | @@ -1,5 +1,5 @@ | |||
| 402 | 1 | char *s = N_("Europe"); | ||
| 403 | 2 | /* Translators: This is in France. */ | ||
| 404 | 3 | char *s = N_("Chambéry"); | ||
| 405 | 1 | /* Translators: This is in Chambéry in France. */ | 4 | /* Translators: This is in Chambéry in France. */ |
| 406 | 2 | char *s = N_("Aix-les-Bains"); | 5 | char *s = N_("Aix-les-Bains"); |
| 407 | 3 | /* Translators: This is in France. */ | ||
| 408 | 4 | char *s = N_("Chambéry"); | ||
| 409 | 5 | char *s = N_("Europe"); | ||