Permalink
Browse files

Cleaned up directories to be more like modern django projects with

the project in it's own folder
Added default but optional django-rosetta
Added first spanish translation "Hola."
  • Loading branch information...
1 parent d0caa1c commit f294b8be98a8bcb4dd0b15f430333cc4338082e8 David Burke committed Jan 18, 2013
Showing with 46 additions and 8 deletions.
  1. 0 django_sis/__init__.py
  2. +10 −3 {ecwsp → django_sis}/settings.py
  3. +4 −1 {ecwsp → django_sis}/urls.py
  4. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/custom_test.html
  5. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/demonstration_form_fragment.html
  6. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/fill_all_form_fragment.html
  7. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/gradebook.html
  8. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/item_details.html
  9. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/student_grade.html
  10. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/student_grade_course_detail.html
  11. 0 { → ecwsp/benchmark_grade}/templates/benchmark_grade/upload.html
  12. BIN ecwsp/sis/locale/es/LC_MESSAGES/django.mo
  13. +24 −0 ecwsp/sis/locale/es/LC_MESSAGES/django.po
  14. +2 −1 { → ecwsp/sis}/templates/registration/login.html
  15. 0 { → ecwsp/sis}/templates/registration/password_change_done.html
  16. 0 { → ecwsp/sis}/templates/registration/password_change_form.html
  17. 0 { → ecwsp/sis}/templates/sis/asp_submissions.html
  18. 0 { → ecwsp/sis}/templates/sis/attendance_report.html
  19. 0 { → ecwsp/sis}/templates/sis/flashcard.html
  20. 0 { → ecwsp/sis}/templates/sis/generic_form.html
  21. 0 { → ecwsp/sis}/templates/sis/generic_form_fragment.html
  22. 0 { → ecwsp/sis}/templates/sis/generic_list_fragment.html
  23. 0 { → ecwsp/sis}/templates/sis/generic_msg.html
  24. 0 { → ecwsp/sis}/templates/sis/grade_report.html
  25. 0 { → ecwsp/sis}/templates/sis/list_with_confirm.html
  26. 0 { → ecwsp/sis}/templates/sis/reportBuilder.html
  27. 0 { → ecwsp/sis}/templates/sis/stats.html
  28. 0 { → ecwsp/sis}/templates/sis/teacher_attendance.html
  29. 0 { → ecwsp/sis}/templates/sis/teacher_attendance_which.html
  30. 0 { → ecwsp/sis}/templates/sis/teacher_submissions.html
  31. 0 { → ecwsp/sis}/templates/sis/user_preferences.html
  32. 0 { → ecwsp/sis}/templates/sis/view_student.html
  33. +3 −1 install/dependencies.txt
  34. +3 −2 manage.py
View
No changes.
View
@@ -67,20 +67,24 @@
'%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y',
'%B %d, %Y', '%d %B %Y', '%d %B, %Y','%b. %d, %Y')
DATE_FORMAT = 'b. d, Y'
-#USE_L10N = True
+USE_L10N = True
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
+LANGUAGES = (
+ ('es', 'Spanish'),
+ ('en', 'English'),
+)
SITE_ID = 1
INTERNAL_IPS = ('127.0.0.1',)
-#USE_I18N = True
+USE_I18N = True
SECRET_KEY = '4@=mqjpx*f$3m(1-wl6&02p#cx@*dz4_t26lu@@pmd^2%+)**y'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'apptemplates.Loader',
'django.template.loaders.eggs.Loader',
)
-ROOT_URLCONF = 'ecwsp.urls'
+ROOT_URLCONF = 'django_sis.urls'
WSGI_APPLICATION = 'ecwsp.wsgi.application'
# Optional these you can copy into settings_local and change or maybe they need to come first.
@@ -119,13 +123,16 @@
'south',
'djcelery',
'csvimport',
+ 'rosetta-grappelli',
+ 'rosetta',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.middleware.locale.LocaleMiddleware',
'pagination.middleware.PaginationMiddleware',
#'debug_toolbar.middleware.DebugToolbarMiddleware',
)
View
@@ -68,7 +68,10 @@
urlpatterns += patterns('', (r'^canvas_sync/', include('ecwsp.integrations.canvas_sync.urls')), )
if 'ecwsp.integrations.schoolreach' in settings.INSTALLED_APPS:
urlpatterns += patterns('', (r'^schoolreach/', include('ecwsp.integrations.schoolreach.urls')), )
-
+if 'rosetta' in settings.INSTALLED_APPS:
+ urlpatterns += patterns('',
+ url(r'^rosetta/', include('rosetta.urls')),
+ )
if 'report_builder' in settings.INSTALLED_APPS:
urlpatterns += url(r'^report_builder/', include('report_builder.urls')),
File renamed without changes.
File renamed without changes.
Binary file not shown.
@@ -0,0 +1,24 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-01-18 14:49-0500\n"
+"PO-Revision-Date: 2013-01-18 14:50-0500\n"
+"Last-Translator: <aa@aa.aa>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: \n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+"X-Translated-Using: django-rosetta 0.7.0\n"
+
+#: templates/registration/login.html:5
+msgid "Hello."
+msgstr "Hola."
@@ -1,7 +1,8 @@
{% extends "base.html" %}
+{% load i18n %}
{% block content %}
-<h1>Hello.</h1>
+<h1>{% trans "Hello." %}</h1>
<div class="subhead-text">
<strong>Welcome to SWoRD, the Student Worker Relational Database.</strong><br />
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,4 +1,4 @@
-#django>=1.5
+django>=1.5
django-admin-export>=1.5
django-ajax-filtered-fields>=0.5
django-ajax-selects>=1.2.4
@@ -23,3 +23,5 @@ django-apptemplates>=0.0.1
django-filter>=0.5.4
file:../install/hatchery/django-ckeditor-3.6.2.tar.gz
file:../install/hatchery/django-ldap-groups-0.1.3.tar.gz
+-e git://github.com/mbi/django-rosetta.git#egg=django-rosetta
+-e git://github.com/zsiciarz/django-rosetta-grappelli.git#egg=django-rosetta-grappelli
View
@@ -1,8 +1,9 @@
#!/usr/bin/env python
-import os, sys
+import os
+import sys
if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ecwsp.settings")
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_sis.settings")
from django.core.management import execute_from_command_line

0 comments on commit f294b8b

Please sign in to comment.