diff options
author | Danilo Segan <danilo@canonical.com> | 2011-10-08 16:37:33 +0200 |
---|---|---|
committer | Danilo Segan <danilo@canonical.com> | 2011-10-08 16:37:33 +0200 |
commit | 1f632dabbebe433a4d9d7aa83bf53eab84b19a3f (patch) | |
tree | 1d7ed1f4fe4274acbf4ba98fcddda0e3465758d8 /tests | |
parent | fa63e925e54fe6be717e83dbca23981d9c182148 (diff) | |
parent | b1a007bf475c60601bad530cd197dbaf7096e557 (diff) | |
download | intltool-1f632dabbebe433a4d9d7aa83bf53eab84b19a3f.tar.gz |
Use xgettext built-in scheme support for .scm files and add support to `intltool-update -m` for detecting missing .scm files. Fixes #790574.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cases/Makefile.am | 2 | ||||
-rw-r--r-- | tests/cases/test.scm | 16 | ||||
-rw-r--r-- | tests/results/Makefile.am | 1 | ||||
-rw-r--r-- | tests/results/test.scm.h.THIS (renamed from tests/results/test.scm.h) | 0 | ||||
-rwxr-xr-x | tests/selftest.pl.in | 39 |
5 files changed, 17 insertions, 41 deletions
diff --git a/tests/cases/Makefile.am b/tests/cases/Makefile.am index 0690621..8636eac 100644 --- a/tests/cases/Makefile.am +++ b/tests/cases/Makefile.am @@ -41,7 +41,6 @@ EXTRA_DIST = \ test-quoted.po \ test.po \ test.schemas.in \ - test.scm \ unicodetext.xml.in \ $(NULL) @@ -69,7 +68,6 @@ CLEANFILES = \ test-quoted.dtd.h \ test.schemas \ test.schemas.in.h \ - test.scm.h \ unicodetext.xml.in.h \ extract1.desktop.in \ extract3.xml.in.h \ diff --git a/tests/cases/test.scm b/tests/cases/test.scm deleted file mode 100644 index 9467009..0000000 --- a/tests/cases/test.scm +++ /dev/null @@ -1,16 +0,0 @@ -;; regular comment - -("some " "basic" "strings") ; silly comment -(_"translatable string") - -;; _"this" - -;; nasty comment _" -("nasty string; haha" ; this is a fine comment for translators - _"nice string; thanks") ; all well - -(_"multiple" _"translations; per line") - -"not for_" _"translation" ; so "what? - -_"another \" string" "so \"what" _"here" diff --git a/tests/results/Makefile.am b/tests/results/Makefile.am index ff9d8da..40a2e69 100644 --- a/tests/results/Makefile.am +++ b/tests/results/Makefile.am @@ -37,6 +37,5 @@ EXTRA_DIST = \ test-quoted.dtd.h \ test.schemas \ test.schemas.in.h \ - test.scm.h \ unicodetext.xml.in.h \ $(NULL) diff --git a/tests/results/test.scm.h b/tests/results/test.scm.h.THIS index e514380..e514380 100644 --- a/tests/results/test.scm.h +++ b/tests/results/test.scm.h.THIS diff --git a/tests/selftest.pl.in b/tests/selftest.pl.in index 5988694..b016a18 100755 --- a/tests/selftest.pl.in +++ b/tests/selftest.pl.in @@ -197,94 +197,89 @@ $case = "extract-comments.xml"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "21. Extract messages from Scheme file: "; -$case = "test.scm"; -system("$INTLTOOL_EXTRACT --type=gettext/scheme --quiet --update cases/$case") == 0 or $failed = 1; -check_extract_result($case); - -print "22. Merge into file with CDATA sections: "; +print "21. Merge into file with CDATA sections: "; $case = "merge-cdata.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "23. Merge into XML file with deep translation/attribute nesting: "; +print "22. Merge into XML file with deep translation/attribute nesting: "; $case = "merge-deepattr.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "24. Ignore empty strings from XML file "; +print "23. Ignore empty strings from XML file "; $case = "extract12.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "25. Extract messages from a xml file using inherited xml:space: "; +print "24. Extract messages from a xml file using inherited xml:space: "; $case = "space-preserve.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "26. Merge messages into xml file using inherited xml:space: "; +print "25. Merge messages into xml file using inherited xml:space: "; $case = "space-preserve.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "27. Merge non-well-formed translations into xml file: "; +print "26. Merge non-well-formed translations into xml file: "; $case = "merge11.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "28. Extract UTF-8 encoded messages/comments from xml file: "; +print "27. Extract UTF-8 encoded messages/comments from xml file: "; $case = "unicodetext.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "29. Extract iso-8859-1 encoded messages/comments from xml file: "; +print "28. Extract iso-8859-1 encoded messages/comments from xml file: "; $case = "iso88591text.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "30. Extract messages from a quoted style file: "; +print "29. Extract messages from a quoted style file: "; $case = "test-quoted.dtd"; system("$INTLTOOL_EXTRACT --type=gettext/quoted --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "31. Merge translations into multiple quoted style files: "; +print "30. Merge translations into multiple quoted style files: "; $case = "test-quoted.dtd"; system("$INTLTOOL_MERGE --quoted-style --quiet --multiple-output cases cases/$case $case") == 0 or $failed = 1; check_multimerge_result($case, "test-quoted"); -print "32. Extract comments for translators from a .desktop.in file: "; +print "31. Extract comments for translators from a .desktop.in file: "; $case = "extract13.desktop.in"; system("$INTLTOOL_EXTRACT --type=gettext/ini --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "33. Merge translations from a .desktop.in file: "; +print "32. Merge translations from a .desktop.in file: "; $case = "extract13.desktop.in"; $result = $case; ($result = $case) =~ s/\.in//; system("$INTLTOOL_MERGE -d --quiet cases cases/$case cases/$result") == 0 or $failed = 1; check_merge_result($case); -print "34. Decode XML entities in the right order when extracting: "; +print "33. Decode XML entities in the right order when extracting: "; $case = "extract14.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "35. Merge XML translations, decoding entities in the right order: "; +print "34. Merge XML translations, decoding entities in the right order: "; $case = "merge12.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "36. Extract messages from an XML file with msgctxts: "; +print "35. Extract messages from an XML file with msgctxts: "; $case = "context.xml.in"; system("$INTLTOOL_EXTRACT --type=gettext/xml --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); -print "37. Merge translations into an XML file with msgctxts: "; +print "36. Merge translations into an XML file with msgctxts: "; $case = "context.xml"; system("$INTLTOOL_MERGE -x --quiet cases cases/$case.in cases/$case") == 0 or $failed = 1; check_merge_result($case); -print "38. Extract messages from an GtkBuilder XML file with msgctxts: "; +print "37. Extract messages from an GtkBuilder XML file with msgctxts: "; $case = "extract-gtkbuilder.ui"; system("$INTLTOOL_EXTRACT --type=gettext/glade --quiet --update cases/$case") == 0 or $failed = 1; check_extract_result($case); |