damned-lies r1116 - in branches/djamnedlies: . stats templates
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1116 - in branches/djamnedlies: . stats templates
- Date: Tue, 28 Oct 2008 20:19:56 +0000 (UTC)
Author: claudep
Date: Tue Oct 28 20:19:56 2008
New Revision: 1116
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1116&view=rev
Log:
2008-10-28 Claude Paroz <claude 2xlibre net>
* TODO:
* stats/defaults.py: Deleted, all settings now in stats/conf/settings.py
* templates/base.html: Get LANGUAGE_CODE from global function.
Removed:
branches/djamnedlies/stats/defaults.py
Modified:
branches/djamnedlies/ChangeLog
branches/djamnedlies/TODO
branches/djamnedlies/templates/base.html
Modified: branches/djamnedlies/TODO
==============================================================================
--- branches/djamnedlies/TODO (original)
+++ branches/djamnedlies/TODO Tue Oct 28 20:19:56 2008
@@ -1,6 +1,5 @@
Things left to do:
* i18n (translation for strings in database?)
- * replace entirely defaults.py by conf/settings.py
* we could use username instead of person_id (get_absolute_url must
be updated accordingly) in urls.py
* Still a webroot in stats_show.html
Modified: branches/djamnedlies/templates/base.html
==============================================================================
--- branches/djamnedlies/templates/base.html (original)
+++ branches/djamnedlies/templates/base.html Tue Oct 28 20:19:56 2008
@@ -1,8 +1,9 @@
{% load i18n %}
+{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ defaults.language }}" lang="{{ defaults.language }}">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>{% block title %}page title{% endblock %}</title>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]