# HG changeset patch # User ymh # Date 1349944065 -7200 # Node ID 821b602056a8567bfcc4e5b17d8b30113530c78e # Parent 97aa4b45dadf4f3222cfe67cb6a2183ed31205fb prepare hyperplateau for translation diff -r 97aa4b45dadf -r 821b602056a8 .hgignore --- a/.hgignore Fri Sep 21 11:13:21 2012 +0900 +++ b/.hgignore Thu Oct 11 10:27:45 2012 +0200 @@ -3,4 +3,8 @@ ^virtualenv/.*/project-boot.py ^virtualenv/.*/env/.*$ ^\.settings/org\.eclipse\.core\.resources\.prefs$ -^sbin/sync/config\.py$ \ No newline at end of file +^sbin/sync/config\.py$ +^ldt/web/ldtplatform/\.htaccess$ +^ldt/web/ldtplatform/config\.py$ +^ldt/web/static/site$ +^ldt/web/log diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/.htaccess.mod_wsgi.tmpl diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/__init__.py diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/config.py.tmpl diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.mo Binary file ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.mo has changed diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.po --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.po Thu Oct 11 10:27:45 2012 +0200 @@ -0,0 +1,57 @@ +# 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 , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-11 08:13+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: settings.py:41 +msgid "French" +msgstr "French" + +#: settings.py:42 +msgid "English" +msgstr "English" + +#: settings.py:43 +msgid "Japanese" +msgstr "Japanese" + +#: templates/admin/base_site.html:4 +msgid "Django site admin" +msgstr "Django site admin" + +#: templates/admin/base_site.html:7 +msgid "Django administration" +msgstr "Django administration" + +#: templates/registration/login.html:17 +msgid "Log in" +msgstr "Log in" + +#: templates/registration/login.html:20 +msgid "Sorry, that's not a valid username or password." +msgstr "Sorry, that's not a valid username or password." + +#: templates/registration/login.html:31 +msgid "Forget password?" +msgstr "Forgot password?" + +#: templates/registration/login.html:34 +msgid "login" +msgstr "login" + +#: templates/registration/login.html:41 +msgid "Or login with your external account" +msgstr "Or login with your external account" diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.mo Binary file ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.mo has changed diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.po --- a/ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.po Fri Sep 21 11:13:21 2012 +0900 +++ b/ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.po Thu Oct 11 10:27:45 2012 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-03-13 12:29+0100\n" +"POT-Creation-Date: 2012-10-11 08:13+0000\n" "PO-Revision-Date: 2010-02-17 02:57+0100\n" "Last-Translator: Yves-Marie Haussonne \n" "Language-Team: LANGUAGE \n" @@ -24,6 +24,10 @@ msgid "English" msgstr "Anglais" +#: settings.py:43 +msgid "Japanese" +msgstr "Japonais" + #: templates/admin/base_site.html:4 msgid "Django site admin" msgstr "Administration Django du site" @@ -51,4 +55,3 @@ #: templates/registration/login.html:41 msgid "Or login with your external account" msgstr "Ou bien utilisez l'un de vos comptes externes" - diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.mo Binary file ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.mo has changed diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.po --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.po Thu Oct 11 10:27:45 2012 +0200 @@ -0,0 +1,59 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-11 08:13+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#: settings.py:41 +msgid "French" +msgstr "フランツ" + +#: settings.py:42 +msgid "English" +msgstr "English" + +#: settings.py:43 +msgid "Japanese" +msgstr "日本語入力" + +#: templates/admin/base_site.html:4 +msgid "Django site admin" +msgstr "Django site admin" + +#: templates/admin/base_site.html:7 +msgid "Django administration" +msgstr "Django administration" + +#: templates/registration/login.html:17 +msgid "Log in" +msgstr "Log in" + +#: templates/registration/login.html:20 +msgid "Sorry, that's not a valid username or password." +msgstr "Sorry, that's not a valid username or password." + +#: templates/registration/login.html:31 +msgid "Forget password?" +msgstr "Forget password?" + +#: templates/registration/login.html:34 +msgid "login" +msgstr "login" + +#: templates/registration/login.html:41 +msgid "Or login with your external account" +msgstr "Or login with your external account" diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/modwsgi.wsgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ldt/web/ldtplatform/modwsgi.wsgi Thu Oct 11 10:27:45 2012 +0200 @@ -0,0 +1,35 @@ +import os, sys, site + +def application(environ, start_response): + + global g_env_set + + if 'g_env_set' not in globals() or not g_env_set: + os.environ['DJANGO_SETTINGS_MODULE'] = environ['DJANGO_SETTINGS_MODULE'] + + prev_sys_path = list(sys.path) + + sys.path.append(environ['PROJECT_PATH']) + for path in environ.get('PYTHON_PATH',"").split(os.pathsep): + if path: + site.addsitedir(path) + + new_sys_path = [] + for item in list(sys.path): + if item not in prev_sys_path and item not in new_sys_path: + new_sys_path.append(item) + sys.path.remove(item) + sys.path[:0] = new_sys_path + g_env_set = True + + import django.core.handlers.wsgi + + _application = django.core.handlers.wsgi.WSGIHandler() + + if environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]: + import pydevd #@UnresolvedImport + pydevd.settrace(suspend=False) + + + return _application(environ, start_response) + diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/settings.py --- a/ldt/web/ldtplatform/settings.py Fri Sep 21 11:13:21 2012 +0900 +++ b/ldt/web/ldtplatform/settings.py Thu Oct 11 10:27:45 2012 +0200 @@ -40,6 +40,7 @@ LANGUAGES = ( ('fr', ugettext('French')), ('en', ugettext('English')), + ('ja', ugettext('Japanese')), ) diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/templates/admin/base_site.html diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/templates/ldt/ldt_utils/partial/embed_player.html diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/templates/ldt/ldt_utils/workspace.html diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/templates/registration/login.html diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/urls.py diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/ldtplatform/wsgi.py --- a/ldt/web/ldtplatform/wsgi.py Fri Sep 21 11:13:21 2012 +0900 +++ b/ldt/web/ldtplatform/wsgi.py Thu Oct 11 10:27:45 2012 +0200 @@ -13,10 +13,16 @@ framework. """ -import os +import sys,os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ldtplatform.settings") +sys.path.append(os.environ['PROJECT_PATH']) +for path in os.environ.get('PYTHON_PATH',"").split(os.pathsep): + if path: + site.addsitedir(path) + + # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION # setting points here. diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/log/.keepme diff -r 97aa4b45dadf -r 821b602056a8 ldt/web/manage.py