aboutsummaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:41 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-02-28 08:49:41 -0300
commit0f1e24f7888ba16fe5629c57fd00f0deacb63e5e (patch)
tree7153a3a11b766f375b1d1c0a7adc599e0a9f9c55 /tests/data
parent04fc43563d3d5d4218004690b5e14c19c67bdcbc (diff)
parent2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff)
Merge tag 'upstream/6.3.0'
Upstream version 6.3.0
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/translated_titles/conf.py18
-rw-r--r--tests/data/translated_titles/stories/1.txt.pl (renamed from tests/data/translated_titles/stories/1.txt.es)0
2 files changed, 16 insertions, 2 deletions
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.pl
index a888c1f..a888c1f 100644
--- a/tests/data/translated_titles/stories/1.txt.es
+++ b/tests/data/translated_titles/stories/1.txt.pl