Changeset 741

Show
Ignore:
Timestamp:
05/03/07 02:09:35 (1 year ago)
Author:
brian
Message:

created the locale directory and the english directory. more will come later as well as marking many more strings for translation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee-www/trunk/cherokee/settings.py

    r738 r741  
     1 
     2gettext = lambda s: s 
    13 
    24DEBUG = True 
     
    2527 
    2628USE_I18N = True 
     29LANGUAGES = ( 
     30    ('en', gettext('English')), 
     31) 
    2732 
    2833ADMIN_MEDIA_PREFIX = '/admin_media/' 
  • cherokee-www/trunk/cherokee/templates/index.html

    r735 r741  
    22 
    33{% block content %} 
    4 fg 
     4<form action="/i18n/setlang/" method="GET"> 
     5    <input type="hidden" name="next" value="{{ request.path }}" /> 
     6    <select name="language"> 
     7        {% for lang in LANGUAGES %} 
     8        <option value="{{ lang.0 }}">{{ lang.1 }}</option> 
     9        {% endfor %} 
     10    </select> 
     11    <input type="submit" value="go" /> 
     12</form> 
    513{% endblock %} 
  • cherokee-www/trunk/cherokee/urls.py

    r735 r741  
    2323    (r'^contribute/$', direct_to_template, {'template': 'contribute.html',}), 
    2424    (r'rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}), 
     25    (r'^i18n/', include('django.conf.urls.i18n')), 
    2526    (r'^sitemap.xml$', cache_page(sitemap_views.sitemap, 60 * 60 * 6), {'sitemaps': sitemaps}), 
    2627    (r'^/?$', direct_to_template, {'template': 'index.html',}),