summaryrefslogtreecommitdiffstats
path: root/nikola/plugins/task/sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/plugins/task/sources.py')
-rw-r--r--nikola/plugins/task/sources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nikola/plugins/task/sources.py b/nikola/plugins/task/sources.py
index 672f354..2324af2 100644
--- a/nikola/plugins/task/sources.py
+++ b/nikola/plugins/task/sources.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright © 2012-2013 Roberto Alsina and others.
+# Copyright © 2012-2014 Roberto Alsina and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
@@ -66,7 +66,7 @@ class Sources(Task):
if dest_ext == post.source_ext():
continue
if lang != kw["default_lang"]:
- source_lang = source + '.' + lang
+ source_lang = utils.get_translation_candidate(self.site.config, source, lang)
if os.path.exists(source_lang):
source = source_lang
if os.path.isfile(source):