gettext 3.3.1 → 3.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +217 -0
  3. data/gettext.gemspec +0 -1
  4. data/lib/gettext/locale_path.rb +12 -8
  5. data/lib/gettext/tools/parser/erb.rb +9 -1
  6. data/lib/gettext/tools/parser/gtk_builder_ui_definitions.rb +0 -3
  7. data/lib/gettext/tools/parser/ruby.rb +50 -23
  8. data/lib/gettext/tools/task.rb +1 -0
  9. data/lib/gettext/version.rb +1 -1
  10. data/po/bg/gettext.edit.po +14 -6
  11. data/po/bg/gettext.po +9 -3
  12. data/po/bs/gettext.edit.po +14 -6
  13. data/po/bs/gettext.po +9 -3
  14. data/po/ca/gettext.edit.po +14 -6
  15. data/po/ca/gettext.po +9 -3
  16. data/po/cs/gettext.edit.po +14 -6
  17. data/po/cs/gettext.po +9 -3
  18. data/po/de/gettext.edit.po +14 -6
  19. data/po/de/gettext.po +9 -3
  20. data/po/el/gettext.edit.po +14 -6
  21. data/po/el/gettext.po +9 -3
  22. data/po/eo/gettext.edit.po +14 -6
  23. data/po/eo/gettext.po +9 -3
  24. data/po/es/gettext.edit.po +14 -6
  25. data/po/es/gettext.po +9 -3
  26. data/po/et/gettext.edit.po +14 -6
  27. data/po/et/gettext.po +9 -3
  28. data/po/fr/gettext.edit.po +14 -6
  29. data/po/fr/gettext.po +9 -3
  30. data/po/gettext.pot +17 -9
  31. data/po/hr/gettext.edit.po +14 -6
  32. data/po/hr/gettext.po +9 -3
  33. data/po/hu/gettext.edit.po +14 -6
  34. data/po/hu/gettext.po +9 -3
  35. data/po/it/gettext.edit.po +14 -6
  36. data/po/it/gettext.po +9 -3
  37. data/po/ja/gettext.edit.po +14 -6
  38. data/po/ja/gettext.po +9 -3
  39. data/po/ko/gettext.edit.po +14 -6
  40. data/po/ko/gettext.po +9 -3
  41. data/po/lv/gettext.edit.po +14 -6
  42. data/po/lv/gettext.po +9 -3
  43. data/po/nb/gettext.edit.po +14 -6
  44. data/po/nb/gettext.po +9 -3
  45. data/po/nl/gettext.edit.po +14 -6
  46. data/po/nl/gettext.po +9 -3
  47. data/po/pt_BR/gettext.edit.po +14 -6
  48. data/po/pt_BR/gettext.po +9 -3
  49. data/po/ru/gettext.edit.po +14 -6
  50. data/po/ru/gettext.po +9 -3
  51. data/po/sr/gettext.edit.po +14 -6
  52. data/po/sr/gettext.po +9 -3
  53. data/po/sv/gettext.edit.po +14 -6
  54. data/po/sv/gettext.po +9 -3
  55. data/po/uk/gettext.edit.po +14 -6
  56. data/po/uk/gettext.po +9 -3
  57. data/po/vi/gettext.edit.po +14 -6
  58. data/po/vi/gettext.po +9 -3
  59. data/po/zh/gettext.edit.po +14 -6
  60. data/po/zh/gettext.po +9 -3
  61. data/po/zh_TW/gettext.edit.po +14 -6
  62. data/po/zh_TW/gettext.po +9 -3
  63. data/test/fixtures/_/percent_strings.rb +9 -0
  64. data/test/fixtures/_/pipe.rb +32 -0
  65. data/test/fixtures/erb/minus.rhtml +12 -0
  66. data/test/fixtures/gtk_builder_ui_definitions.ui~ +68 -0
  67. data/test/fixtures/ruby/percent_I.rb +1 -0
  68. data/test/fixtures/ruby/percent_W.rb +1 -0
  69. data/test/fixtures/ruby/percent_i.rb +1 -0
  70. data/test/fixtures/ruby/percent_w.rb +1 -0
  71. data/test/po/_.pot +11 -3
  72. data/test/run-test.rb +0 -1
  73. data/test/test_parser.rb +7 -0
  74. data/test/tools/parser/test_ruby.rb +52 -2
  75. metadata +21 -29
@@ -351,7 +351,7 @@ msgid ""
351
351
  "Hello %{world}\n"
352
352
  msgstr ""
353
353
 
354
- #: ../samples/hello2.rb:20
354
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
355
355
  msgid "World"
356
356
  msgstr ""
357
357
 
@@ -550,10 +550,22 @@ msgid ""
550
550
  "one new line\n"
551
551
  msgstr ""
552
552
 
553
- #: ../test/fixtures/_/percent_strings.rb:34
553
+ #: ../test/fixtures/_/percent_strings.rb:31
554
+ msgid "in_symbol_array"
555
+ msgstr ""
556
+
557
+ #: ../test/fixtures/_/percent_strings.rb:39
554
558
  msgid "hello world"
555
559
  msgstr ""
556
560
 
561
+ #: ../test/fixtures/_/percent_strings.rb:47
562
+ msgid "in_string_array"
563
+ msgstr ""
564
+
565
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
566
+ msgid "Hello"
567
+ msgstr ""
568
+
557
569
  #: ../test/fixtures/backslash.rb:27
558
570
  msgid "You should escape '\\' as '\\\\'."
559
571
  msgstr ""
@@ -587,10 +599,6 @@ msgstr ""
587
599
  msgid "duplicated"
588
600
  msgstr ""
589
601
 
590
- #: ../test/fixtures/hello.rb:26
591
- msgid "Hello"
592
- msgstr ""
593
-
594
602
  #: ../test/fixtures/lower_n_.rb:33
595
603
  msgid ""
596
604
  "bbb\n"
@@ -455,9 +455,18 @@ msgid ""
455
455
  "one new line\n"
456
456
  msgstr ""
457
457
 
458
+ msgid "in_symbol_array"
459
+ msgstr ""
460
+
458
461
  msgid "hello world"
459
462
  msgstr ""
460
463
 
464
+ msgid "in_string_array"
465
+ msgstr ""
466
+
467
+ msgid "Hello"
468
+ msgstr ""
469
+
461
470
  msgid "You should escape '\\' as '\\\\'."
462
471
  msgstr ""
463
472
 
@@ -484,9 +493,6 @@ msgstr ""
484
493
  msgid "duplicated"
485
494
  msgstr ""
486
495
 
487
- msgid "Hello"
488
- msgstr ""
489
-
490
496
  msgid ""
491
497
  "bbb\n"
492
498
  msgid_plural ""
@@ -339,7 +339,7 @@ msgid ""
339
339
  "Hello %{world}\n"
340
340
  msgstr ""
341
341
 
342
- #: ../samples/hello2.rb:20
342
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
343
343
  msgid "World"
344
344
  msgstr ""
345
345
 
@@ -538,10 +538,22 @@ msgid ""
538
538
  "one new line\n"
539
539
  msgstr ""
540
540
 
541
- #: ../test/fixtures/_/percent_strings.rb:34
541
+ #: ../test/fixtures/_/percent_strings.rb:31
542
+ msgid "in_symbol_array"
543
+ msgstr ""
544
+
545
+ #: ../test/fixtures/_/percent_strings.rb:39
542
546
  msgid "hello world"
543
547
  msgstr ""
544
548
 
549
+ #: ../test/fixtures/_/percent_strings.rb:47
550
+ msgid "in_string_array"
551
+ msgstr ""
552
+
553
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
554
+ msgid "Hello"
555
+ msgstr ""
556
+
545
557
  #: ../test/fixtures/backslash.rb:27
546
558
  msgid "You should escape '\\' as '\\\\'."
547
559
  msgstr ""
@@ -575,10 +587,6 @@ msgstr ""
575
587
  msgid "duplicated"
576
588
  msgstr ""
577
589
 
578
- #: ../test/fixtures/hello.rb:26
579
- msgid "Hello"
580
- msgstr ""
581
-
582
590
  #: ../test/fixtures/lower_n_.rb:33
583
591
  msgid ""
584
592
  "bbb\n"
@@ -446,9 +446,18 @@ msgid ""
446
446
  "one new line\n"
447
447
  msgstr ""
448
448
 
449
+ msgid "in_symbol_array"
450
+ msgstr ""
451
+
449
452
  msgid "hello world"
450
453
  msgstr ""
451
454
 
455
+ msgid "in_string_array"
456
+ msgstr ""
457
+
458
+ msgid "Hello"
459
+ msgstr ""
460
+
452
461
  msgid "You should escape '\\' as '\\\\'."
453
462
  msgstr ""
454
463
 
@@ -475,9 +484,6 @@ msgstr ""
475
484
  msgid "duplicated"
476
485
  msgstr ""
477
486
 
478
- msgid "Hello"
479
- msgstr ""
480
-
481
487
  msgid ""
482
488
  "bbb\n"
483
489
  msgid_plural ""
@@ -352,7 +352,7 @@ msgid ""
352
352
  "Hello %{world}\n"
353
353
  msgstr ""
354
354
 
355
- #: ../samples/hello2.rb:20
355
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
356
356
  msgid "World"
357
357
  msgstr ""
358
358
 
@@ -551,10 +551,22 @@ msgid ""
551
551
  "one new line\n"
552
552
  msgstr ""
553
553
 
554
- #: ../test/fixtures/_/percent_strings.rb:34
554
+ #: ../test/fixtures/_/percent_strings.rb:31
555
+ msgid "in_symbol_array"
556
+ msgstr ""
557
+
558
+ #: ../test/fixtures/_/percent_strings.rb:39
555
559
  msgid "hello world"
556
560
  msgstr ""
557
561
 
562
+ #: ../test/fixtures/_/percent_strings.rb:47
563
+ msgid "in_string_array"
564
+ msgstr ""
565
+
566
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
567
+ msgid "Hello"
568
+ msgstr ""
569
+
558
570
  #: ../test/fixtures/backslash.rb:27
559
571
  msgid "You should escape '\\' as '\\\\'."
560
572
  msgstr ""
@@ -588,10 +600,6 @@ msgstr ""
588
600
  msgid "duplicated"
589
601
  msgstr ""
590
602
 
591
- #: ../test/fixtures/hello.rb:26
592
- msgid "Hello"
593
- msgstr ""
594
-
595
603
  #: ../test/fixtures/lower_n_.rb:33
596
604
  msgid ""
597
605
  "bbb\n"
@@ -453,9 +453,18 @@ msgid ""
453
453
  "one new line\n"
454
454
  msgstr ""
455
455
 
456
+ msgid "in_symbol_array"
457
+ msgstr ""
458
+
456
459
  msgid "hello world"
457
460
  msgstr ""
458
461
 
462
+ msgid "in_string_array"
463
+ msgstr ""
464
+
465
+ msgid "Hello"
466
+ msgstr ""
467
+
459
468
  msgid "You should escape '\\' as '\\\\'."
460
469
  msgstr ""
461
470
 
@@ -482,9 +491,6 @@ msgstr ""
482
491
  msgid "duplicated"
483
492
  msgstr ""
484
493
 
485
- msgid "Hello"
486
- msgstr ""
487
-
488
494
  msgid ""
489
495
  "bbb\n"
490
496
  msgid_plural ""
@@ -353,7 +353,7 @@ msgid ""
353
353
  "Hello %{world}\n"
354
354
  msgstr ""
355
355
 
356
- #: ../samples/hello2.rb:20
356
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
357
357
  msgid "World"
358
358
  msgstr ""
359
359
 
@@ -552,10 +552,22 @@ msgid ""
552
552
  "one new line\n"
553
553
  msgstr ""
554
554
 
555
- #: ../test/fixtures/_/percent_strings.rb:34
555
+ #: ../test/fixtures/_/percent_strings.rb:31
556
+ msgid "in_symbol_array"
557
+ msgstr ""
558
+
559
+ #: ../test/fixtures/_/percent_strings.rb:39
556
560
  msgid "hello world"
557
561
  msgstr ""
558
562
 
563
+ #: ../test/fixtures/_/percent_strings.rb:47
564
+ msgid "in_string_array"
565
+ msgstr ""
566
+
567
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
568
+ msgid "Hello"
569
+ msgstr ""
570
+
559
571
  #: ../test/fixtures/backslash.rb:27
560
572
  msgid "You should escape '\\' as '\\\\'."
561
573
  msgstr ""
@@ -589,10 +601,6 @@ msgstr ""
589
601
  msgid "duplicated"
590
602
  msgstr ""
591
603
 
592
- #: ../test/fixtures/hello.rb:26
593
- msgid "Hello"
594
- msgstr ""
595
-
596
604
  #: ../test/fixtures/lower_n_.rb:33
597
605
  msgid ""
598
606
  "bbb\n"
@@ -455,9 +455,18 @@ msgid ""
455
455
  "one new line\n"
456
456
  msgstr ""
457
457
 
458
+ msgid "in_symbol_array"
459
+ msgstr ""
460
+
458
461
  msgid "hello world"
459
462
  msgstr ""
460
463
 
464
+ msgid "in_string_array"
465
+ msgstr ""
466
+
467
+ msgid "Hello"
468
+ msgstr ""
469
+
461
470
  msgid "You should escape '\\' as '\\\\'."
462
471
  msgstr ""
463
472
 
@@ -484,9 +493,6 @@ msgstr ""
484
493
  msgid "duplicated"
485
494
  msgstr ""
486
495
 
487
- msgid "Hello"
488
- msgstr ""
489
-
490
496
  msgid ""
491
497
  "bbb\n"
492
498
  msgid_plural ""
@@ -353,7 +353,7 @@ msgid ""
353
353
  "Hello %{world}\n"
354
354
  msgstr ""
355
355
 
356
- #: ../samples/hello2.rb:20
356
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
357
357
  msgid "World"
358
358
  msgstr ""
359
359
 
@@ -552,10 +552,22 @@ msgid ""
552
552
  "one new line\n"
553
553
  msgstr ""
554
554
 
555
- #: ../test/fixtures/_/percent_strings.rb:34
555
+ #: ../test/fixtures/_/percent_strings.rb:31
556
+ msgid "in_symbol_array"
557
+ msgstr ""
558
+
559
+ #: ../test/fixtures/_/percent_strings.rb:39
556
560
  msgid "hello world"
557
561
  msgstr ""
558
562
 
563
+ #: ../test/fixtures/_/percent_strings.rb:47
564
+ msgid "in_string_array"
565
+ msgstr ""
566
+
567
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
568
+ msgid "Hello"
569
+ msgstr ""
570
+
559
571
  #: ../test/fixtures/backslash.rb:27
560
572
  msgid "You should escape '\\' as '\\\\'."
561
573
  msgstr ""
@@ -589,10 +601,6 @@ msgstr ""
589
601
  msgid "duplicated"
590
602
  msgstr ""
591
603
 
592
- #: ../test/fixtures/hello.rb:26
593
- msgid "Hello"
594
- msgstr ""
595
-
596
604
  #: ../test/fixtures/lower_n_.rb:33
597
605
  msgid ""
598
606
  "bbb\n"
@@ -455,9 +455,18 @@ msgid ""
455
455
  "one new line\n"
456
456
  msgstr ""
457
457
 
458
+ msgid "in_symbol_array"
459
+ msgstr ""
460
+
458
461
  msgid "hello world"
459
462
  msgstr ""
460
463
 
464
+ msgid "in_string_array"
465
+ msgstr ""
466
+
467
+ msgid "Hello"
468
+ msgstr ""
469
+
461
470
  msgid "You should escape '\\' as '\\\\'."
462
471
  msgstr ""
463
472
 
@@ -484,9 +493,6 @@ msgstr ""
484
493
  msgid "duplicated"
485
494
  msgstr ""
486
495
 
487
- msgid "Hello"
488
- msgstr ""
489
-
490
496
  msgid ""
491
497
  "bbb\n"
492
498
  msgid_plural ""
@@ -352,7 +352,7 @@ msgid ""
352
352
  "Hello %{world}\n"
353
353
  msgstr ""
354
354
 
355
- #: ../samples/hello2.rb:20
355
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
356
356
  msgid "World"
357
357
  msgstr ""
358
358
 
@@ -551,10 +551,22 @@ msgid ""
551
551
  "one new line\n"
552
552
  msgstr ""
553
553
 
554
- #: ../test/fixtures/_/percent_strings.rb:34
554
+ #: ../test/fixtures/_/percent_strings.rb:31
555
+ msgid "in_symbol_array"
556
+ msgstr ""
557
+
558
+ #: ../test/fixtures/_/percent_strings.rb:39
555
559
  msgid "hello world"
556
560
  msgstr ""
557
561
 
562
+ #: ../test/fixtures/_/percent_strings.rb:47
563
+ msgid "in_string_array"
564
+ msgstr ""
565
+
566
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
567
+ msgid "Hello"
568
+ msgstr ""
569
+
558
570
  #: ../test/fixtures/backslash.rb:27
559
571
  msgid "You should escape '\\' as '\\\\'."
560
572
  msgstr ""
@@ -588,10 +600,6 @@ msgstr ""
588
600
  msgid "duplicated"
589
601
  msgstr ""
590
602
 
591
- #: ../test/fixtures/hello.rb:26
592
- msgid "Hello"
593
- msgstr ""
594
-
595
603
  #: ../test/fixtures/lower_n_.rb:33
596
604
  msgid ""
597
605
  "bbb\n"
@@ -455,9 +455,18 @@ msgid ""
455
455
  "one new line\n"
456
456
  msgstr ""
457
457
 
458
+ msgid "in_symbol_array"
459
+ msgstr ""
460
+
458
461
  msgid "hello world"
459
462
  msgstr ""
460
463
 
464
+ msgid "in_string_array"
465
+ msgstr ""
466
+
467
+ msgid "Hello"
468
+ msgstr ""
469
+
461
470
  msgid "You should escape '\\' as '\\\\'."
462
471
  msgstr ""
463
472
 
@@ -484,9 +493,6 @@ msgstr ""
484
493
  msgid "duplicated"
485
494
  msgstr ""
486
495
 
487
- msgid "Hello"
488
- msgstr ""
489
-
490
496
  msgid ""
491
497
  "bbb\n"
492
498
  msgid_plural ""
@@ -354,7 +354,7 @@ msgid ""
354
354
  "Hello %{world}\n"
355
355
  msgstr ""
356
356
 
357
- #: ../samples/hello2.rb:20
357
+ #: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
358
358
  msgid "World"
359
359
  msgstr ""
360
360
 
@@ -553,10 +553,22 @@ msgid ""
553
553
  "one new line\n"
554
554
  msgstr ""
555
555
 
556
- #: ../test/fixtures/_/percent_strings.rb:34
556
+ #: ../test/fixtures/_/percent_strings.rb:31
557
+ msgid "in_symbol_array"
558
+ msgstr ""
559
+
560
+ #: ../test/fixtures/_/percent_strings.rb:39
557
561
  msgid "hello world"
558
562
  msgstr ""
559
563
 
564
+ #: ../test/fixtures/_/percent_strings.rb:47
565
+ msgid "in_string_array"
566
+ msgstr ""
567
+
568
+ #: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
569
+ msgid "Hello"
570
+ msgstr ""
571
+
560
572
  #: ../test/fixtures/backslash.rb:27
561
573
  msgid "You should escape '\\' as '\\\\'."
562
574
  msgstr ""
@@ -590,10 +602,6 @@ msgstr ""
590
602
  msgid "duplicated"
591
603
  msgstr ""
592
604
 
593
- #: ../test/fixtures/hello.rb:26
594
- msgid "Hello"
595
- msgstr ""
596
-
597
605
  #: ../test/fixtures/lower_n_.rb:33
598
606
  msgid ""
599
607
  "bbb\n"