From 2828399ba5cbb14502b023d4de1ba02f13dd5055 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Fri, 28 Feb 2014 08:49:38 -0300 Subject: Imported Upstream version 6.3.0 --- tests/data/translated_titles/conf.py | 18 ++++++++++++++++-- tests/data/translated_titles/stories/1.txt.es | 4 ---- tests/data/translated_titles/stories/1.txt.pl | 4 ++++ 3 files changed, 20 insertions(+), 6 deletions(-) delete mode 100644 tests/data/translated_titles/stories/1.txt.es create mode 100644 tests/data/translated_titles/stories/1.txt.pl (limited to 'tests/data') diff --git a/tests/data/translated_titles/conf.py b/tests/data/translated_titles/conf.py index b445ba9..edfce3e 100644 --- a/tests/data/translated_titles/conf.py +++ b/tests/data/translated_titles/conf.py @@ -47,9 +47,23 @@ DEFAULT_LANG = "en" TRANSLATIONS = { "en": "", # Example for another language: - "es": "./es", + "pl": "./pl", } +# What will translated input files be named like? + +# If you have a page something.rst, then something.rst.pl will be considered +# its Polish translation. +# (in the above example: path == "something", lang == "pl", ext == "rst") +# this pattern is also used for metadata: +# something.meta -> something.meta.pl + +TRANSLATIONS_PATTERN = "{path}.{ext}.{lang}" + +# If you don't want your Polish files to be considered Perl code, use this: +# TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}" +# Note that this pattern will become the default in v7.0.0. + # Links for the sidebar / navigation bar. # You should provide a key-value pair for each used language. SIDEBAR_LINKS = { @@ -57,7 +71,7 @@ SIDEBAR_LINKS = { ('/archive.html', 'Archives'), ('/categories/index.html', 'Tags'), ), - "es": () + "pl": () } diff --git a/tests/data/translated_titles/stories/1.txt.es b/tests/data/translated_titles/stories/1.txt.es deleted file mode 100644 index a888c1f..0000000 --- a/tests/data/translated_titles/stories/1.txt.es +++ /dev/null @@ -1,4 +0,0 @@ -.. title: Bar -.. slug: 1 - -Bar diff --git a/tests/data/translated_titles/stories/1.txt.pl b/tests/data/translated_titles/stories/1.txt.pl new file mode 100644 index 0000000..a888c1f --- /dev/null +++ b/tests/data/translated_titles/stories/1.txt.pl @@ -0,0 +1,4 @@ +.. title: Bar +.. slug: 1 + +Bar -- cgit v1.2.3