File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ Features
34
34
Bugfixes
35
35
--------
36
36
37
- * Handle '/' and other absolute paths better in POSTS / PAGES
37
+ * Handle '/' and other absolute paths better in POSTS / PAGES / TRANSLATIONS
38
+ (Issue #2982)
38
39
* Support KaTeX for reST display math (Issue #2888)
39
40
* Use npm for asset management instead of bower, which was deprecated
40
41
(Issue #2790)
Original file line number Diff line number Diff line change @@ -617,6 +617,10 @@ def __init__(self, **config):
617
617
# Translatability configuration.
618
618
self .config ['TRANSLATIONS' ] = self .config .get ('TRANSLATIONS' ,
619
619
{self .config ['DEFAULT_LANG' ]: '' })
620
+ for k , v in self .config ['TRANSLATIONS' ].items ():
621
+ if os .path .isabs (v ):
622
+ self .config ['TRANSLATIONS' ][k ] = os .path .relpath (v , '/' )
623
+
620
624
utils .TranslatableSetting .default_lang = self .config ['DEFAULT_LANG' ]
621
625
622
626
self .TRANSLATABLE_SETTINGS = ('BLOG_AUTHOR' ,
You can’t perform that action at this time.
0 commit comments