summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | move new assertion helpers to util.pyGeorg Brandl2014-09-211-34/+11
| |
* | Reimplement assert_in and assert_not_in, they are not in nose in Py2.6.Georg Brandl2014-09-211-2/+11
| |
* | Refactor/speed up test_intl by combining all tests with a certain builder ↵Georg Brandl2014-09-211-409/+364
| | | | | | | | into a generator.
* | Complete test suite overhaul.Georg Brandl2014-09-211-193/+186
| | | | | | | | | | | | | | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds
* | wrap py3 iterators with list() for each places that expect a list object. ↵Takayuki Shimizukawa2014-04-301-1/+1
| | | | | | | | refs #1350.
* | remove 'six' name except importing line.Takayuki Shimizukawa2014-04-301-3/+3
| |
* | use six privided functions/classes to support py2/py3 in one source. refs #1350.Takayuki Shimizukawa2014-04-291-1/+1
| |
* | introduce the six module and reduce sphinx.util.pycompat implementation. ↵Takayuki Shimizukawa2014-04-291-2/+3
| | | | | | | | refs #1350.
* | merge with stableGeorg Brandl2014-03-251-0/+14
|\ \ | |/
| * Fix i18n: missing python domain's cross-references with currentmodule ↵Takayuki Shimizukawa2014-03-231-0/+14
| | | | | | | | | | | | | | | | | | directive or currentclass directive. refs #1363 * node attributes 'py:module', 'py:class' is provided from environment (e.x. currentmodule directive is provided on previous line, not on node) * Because translation nodes are parsed in independently, 'provided attributes by environment' are not exist. * For a pending_xref nodes, all attributes of a translated xref node should be same as original xref node in current test cases. * For the above reasons, I overwrite all attributes from origonal node to new translated xref node.
* | Update copyright year.Georg Brandl2014-03-011-1/+1
|\ \ | |/
| * Update copyright year.Georg Brandl2014-03-011-1/+1
| |
* | Modernize the code now that Python 2.5 is no longer supportedDmitry Shachnev2014-01-191-3/+4
| | | | | | | | | | | | | | | | | | | | | | - Use print function instead of print statement; - Use new exception handling; - Use in operator instead of has_key(); - Do not use tuple arguments in functions; - Other miscellaneous improvements. This is based on output of `futurize --stage1`, with some manual corrections.
* | Drop python-3.1 and remove support codesTakayuki Shimizukawa2013-12-151-1/+1
| |
* | Drop python-2.5 and remove 2.4,2.5 support codesTakayuki Shimizukawa2013-12-151-4/+2
|/
* Add tests and code refine for pull request #190.Takayuki Shimizukawa2013-11-121-1/+25
|
* test_intl fix-up after versionmodified change.Georg Brandl2013-10-121-3/+3
|
* Backed out changeset cfe9e2d11003 refs #1265Takayuki Shimizukawa2013-10-041-7/+8
|
* Now gettext translates label target name. Fix i18n: crash when using a ↵Takayuki Shimizukawa2013-10-041-8/+7
| | | | indirect target and translating a target section name. Closes #1265
* Add test refs #1265 (comment-6264794) to validate translated label link ↵Takayuki Shimizukawa2013-10-031-0/+9
| | | | shifting.
* Fix i18n: crash when translating section name that is pointed from named ↵Takayuki Shimizukawa2013-09-231-1/+9
| | | | target. Closes #1265
* Fix i18n: gettext did not translate admonition directive's title. Closes #1206Takayuki Shimizukawa2013-07-031-0/+14
|
* Fix i18n: footnote reference number missing for auto numbered named footnote ↵Takayuki Shimizukawa2013-06-211-16/+21
| | | | and auto symbol footnote. Closes #1176
* test improvementTakayuki Shimizukawa2013-06-211-86/+111
|
* fix: translation mechanism break label target if label and section name are ↵Takayuki Shimizukawa2013-06-191-0/+40
| | | | same. refs #1193
* test_intl:external_link test case correction to fit to reST syntax.Takayuki Shimizukawa2013-06-181-6/+6
|
* fix: keep reference if link refname was translated. refs #1193Takayuki Shimizukawa2013-06-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | case1:: Keep link to ExternalSite_. It will translated with ``\`SomeOtherString\`_``. .. _ExternalSite: http://example.com case2:: Keep link to `title string`_ before appearing. title string ============= case3:: Keep link to glossary 'term string'. .. glossary:: term string description...
* Fix: Multiple references in the same line return the same link with i18n. ↵Takayuki Shimizukawa2013-06-171-67/+79
| | | | Closes #1193
* add tests for "multiple cross references in the same line return the same ↵Takayuki Shimizukawa2013-06-161-4/+20
| | | | link". refs #1090, #1193
* Fix multiple cross references (term, ref, doc) in the same line return the ↵Takayuki Shimizukawa2013-06-161-10/+56
| | | | same link with i18n. refs #1090, #1193
* Rebuild i18n target document when catalog updatedTakayuki Shimizukawa2013-04-151-0/+12
|
* Copyright header update.Georg Brandl2013-04-011-1/+1
|
* tests: replace "from util import *" by explicit importsGeorg Brandl2013-04-011-4/+3
|
* Fix overlong lines.Georg Brandl2013-03-311-3/+5
|
* merge headsTakayuki Shimizukawa2013-03-171-0/+33
|\
| * make versionmodified translatableNozomu Kaneko2013-02-041-0/+33
| |
* | Add i18n capabilities for custom templates.Takayuki Shimizukawa2013-03-101-0/+8
|/ | | | | For example: The Sphinx reference documentation in doc directory provides sphinx.pot file from ``doc/_templates/*.html`` by ``make gettext``.
* mergeNozomu Kaneko2013-02-061-1/+41
|\
| * fix: roles' reftarget ware swapped if there are some roles in 1 line and ↵Takayuki Shimizukawa2013-02-051-0/+18
| | | | | | | | translation exchange rthat roles position. refs #1090
| * remove unusable 'SEVERE: Duplicate ID' message for footnote that the ↵Takayuki Shimizukawa2013-02-041-1/+6
| | | | | | | | translation node has been recognized as a duplicate.
| * fix: reporting correct line number when translations have wrong reST syntax ↵Takayuki Shimizukawa2013-02-041-0/+17
| | | | | | | | or else.
* | Merged in knzm/sphinx-fix-docfields-fork (pull request #96)Nozomu Kaneko2013-02-041-8/+69
|\ \ | |/
| * Fix :term: doesn't link to glossary if term text translated. refs #1090Takayuki Shimizukawa2013-01-301-4/+27
| |
| * Fix gettext does not extract glossary terms. Closes #1090Takayuki Shimizukawa2013-01-301-0/+15
| |
| * Fix long lines reported by "make check".Georg Brandl2013-01-131-8/+18
| |
| * merge birkenfeld/sphinxRobert Lehmann2013-01-061-62/+102
| |\
| * \ merge knzm/sphinx-fix-seealso-forkRobert Lehmann2013-01-061-0/+16
| |\ \
| | * | stop calling rmtree in a testNozomu Kaneko2012-12-241-1/+0
| | | |
| | * | merge headsNozomu Kaneko2012-12-241-0/+22
| | |\ \
| | * | | make seealso translatableNozomu Kaneko2012-12-161-0/+19
| | | | |