summaryrefslogtreecommitdiffstats
path: root/askbot/skins/loaders.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/loaders.py')
-rw-r--r--askbot/skins/loaders.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/skins/loaders.py b/askbot/skins/loaders.py
index 64d14072..24559512 100644
--- a/askbot/skins/loaders.py
+++ b/askbot/skins/loaders.py
@@ -108,9 +108,11 @@ def get_template(template, request = None):
request variable will be used in the future to set
template according to the user preference or admins preference
- at this point request variable is not used though
+ request variable is used to localize the skin if possible
"""
skin = get_skin(request)
+ if hasattr(request,'LANGUAGE_CODE'):
+ skin.set_language(request.LANGUAGE_CODE)
return skin.get_template(template)
def render_into_skin(template, data, request, mimetype = 'text/html'):