[Commits] python.it commit r271 - in code/pythonisti/trunk/pythonisti: . templates

commit a svn.python.it commit a svn.python.it
Ven 19 Gen 2007 15:27:38 CET


Author: rhymes
Date: Fri Jan 19 15:27:36 2007
New Revision: 271

Modified:
   code/pythonisti/trunk/pythonisti/settings.py
   code/pythonisti/trunk/pythonisti/templates/base.html
Log:
re-enable i18n and make some use out of it

Modified: code/pythonisti/trunk/pythonisti/settings.py
==============================================================================
--- code/pythonisti/trunk/pythonisti/settings.py	(original)
+++ code/pythonisti/trunk/pythonisti/settings.py	Fri Jan 19 15:27:36 2007
@@ -75,8 +75,7 @@
     'pythonisti.apps.profile',
 )
 
-# i18m is enabled by default, we don't need it now, so disable it
-USE_I18N = False
+USE_I18N = True
 
 #
 # pythonisti specific configuration

Modified: code/pythonisti/trunk/pythonisti/templates/base.html
==============================================================================
--- code/pythonisti/trunk/pythonisti/templates/base.html	(original)
+++ code/pythonisti/trunk/pythonisti/templates/base.html	Fri Jan 19 15:27:36 2007
@@ -1,9 +1,10 @@
+{% load i18n %}
 <!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">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>{% block title %}Working With Python{% endblock %}</title>
+    <title>{% block title %}{% trans "We do Python" %}{% endblock %}</title>
     <!-- <link rel="icon" href="./i/favicon.gif" type="image/gif" /> -->
     <link rel="stylesheet" href="/media/s/site.css" type="text/css" media="screen" />
     <link rel="stylesheet" href="/media/s/layout.css" type="text/css" media="screen" />
@@ -18,7 +19,7 @@
            <ul id="logo" class="clear-float">
                 <!-- <li id="li-home"><a title="Pythonistas home" href="#"><img src="./i/logo.png" alt="Pythonistas" /></a></li> -->
                 <li id="li-search">
-                    <form action="#" method="get"><label class="inline">Search&nbsp;<input type="text" name="q" value="" size="15" /></label>
+                    <form action="#" method="get"><label class="inline">{% trans "Search" %}&nbsp;<input type="text" name="q" value="" size="15" /></label>
                     <input type="submit" class="button" name="" value="Go" /></form>
                 </li>
                                 
@@ -51,7 +52,7 @@
                                 
                 <div id="map" class="double-col">        
                     {% block map %}
-                    <p>Map goes here.</p>
+                    <p>{% trans "Map goes here." %}</p>
                     {% endblock %}
                 </div>
 
@@ -60,7 +61,7 @@
                         <!--
                             TAGS GOES HERE
                         -->  
-                        <p>Tags goes here.</p>                                                                        
+                        <p>{% trans "Tags goes here." %}</p>                                                                        
                     </div>
 
                 <!-- /double-col -->


Maggiori informazioni sulla lista Commits