prepare hyperplateau for translation
authorymh <ymh.work@gmail.com>
Thu, 11 Oct 2012 10:27:45 +0200
changeset 19 821b602056a8
parent 18 97aa4b45dadf
child 20 ac7ad98dd1b8
prepare hyperplateau for translation
.hgignore
ldt/web/ldtplatform/.htaccess.mod_wsgi.tmpl
ldt/web/ldtplatform/__init__.py
ldt/web/ldtplatform/config.py.tmpl
ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.mo
ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.po
ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.mo
ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.po
ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.mo
ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.po
ldt/web/ldtplatform/modwsgi.wsgi
ldt/web/ldtplatform/settings.py
ldt/web/ldtplatform/templates/admin/base_site.html
ldt/web/ldtplatform/templates/ldt/ldt_utils/partial/embed_player.html
ldt/web/ldtplatform/templates/ldt/ldt_utils/workspace.html
ldt/web/ldtplatform/templates/registration/login.html
ldt/web/ldtplatform/urls.py
ldt/web/ldtplatform/wsgi.py
ldt/web/log/.keepme
ldt/web/manage.py
--- 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
Binary file ldt/web/ldtplatform/locale/en/LC_MESSAGES/django.mo has changed
--- /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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\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"
Binary file ldt/web/ldtplatform/locale/fr/LC_MESSAGES/django.mo has changed
--- 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 <ymh.work@gmail.com>\n"
 "Language-Team: LANGUAGE <LL@li.org>\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"
-
Binary file ldt/web/ldtplatform/locale/ja/LC_MESSAGES/django.mo has changed
--- /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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\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"
--- /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)
+        
--- 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')),
 )
 
 
--- 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.