Commits

uniqx  committed 2f634e5

i18n v1

  • Participants
  • Parent commits 5c926fa

Comments (0)

Files changed (6)

 ^_media.*$
 ^_static.*$
 ^_freieit.db$
+
+^_dev_venv/.*$
 SHELL = /bin/sh
 
 PY_EXISTS = $(shell test -x "/usr/bin/python2.7"; echo $$?)
+DJANGO_ADMIN = $(shell django-admin.py 2>/dev/null 1>/dev/null; if [ "$$?" -eq "0" ] ; then echo "django-admin.py" ; else "django-admin" ; fi)
 
 ifeq ($(PY_EXISTS),0)
     PYTHON=/usr/bin/env python2.7
 rebuild-index:
 	$(MANAGE_SCRIPT) rebuild_index
 
+i18n:
+	cd freieit ; $(DJANGO_ADMIN) makemessages -a
+
 .PHONY: clean clean-db clean-media clean-fixtures
 
 clean: clean-db clean-media

File freieit/conf/locale/de/LC_MESSAGES/django.po

+# 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-08-30 00:21+0200\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"
+
+#: models.py:39
+msgid "Expert Profile"
+msgstr ""
+
+#: models.py:40
+msgid "Expert Profiles"
+msgstr ""
+
+#: templates/base.html:9
+msgid "free.it &ndash; Übersicht"
+msgstr ""
+
+#: templates/base.html:10
+msgid "Startseite: Das bietet der clc."
+msgstr ""
+
+#: templates/base.html:11
+msgid ""
+"Freie Software Support Hilfe Experten Open Source FOSS FLOSS Endanwender "
+"privat vor Ort Besuch"
+msgstr ""
+
+#: templates/base.html:28
+msgid "freie.it: Free Software Support"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Professionelle Unterstützung"
+msgstr ""
+
+#: templates/base.html:29
+msgid "für"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Wieso Freie Software?"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Freie Software"
+msgstr ""
+
+#: templates/base.html:29
+msgid "finden."
+msgstr ""
+
+#: templates/base.html:41
+msgid "Invite an expert"
+msgstr ""
+
+#: templates/base.html:42
+msgid "logout"
+msgstr ""
+
+#: templates/base.html:47
+msgid "Geschäftsbedingungen"
+msgstr ""
+
+#: templates/base.html:48
+msgid "freie.it Expert_in werden"
+msgstr ""
+
+#: templates/base.html:49
+msgid "Kontakt"
+msgstr ""
+
+#: templates/base.html:52
+msgid "Definition: Freie Software"
+msgstr ""
+
+#: templates/base.html:53
+msgid "Tipps & Tricks"
+msgstr ""
+
+#: templates/base.html:54
+msgid "Links"
+msgstr ""
+
+#: templates/base.html:55
+msgid "FAQ"
+msgstr ""
+
+#: templates/base.html:59
+msgid "Zuletzt aktualisiert am: "
+msgstr ""
+
+#: templates/base.html:60
+msgid "Validierung des HTML5 Web-Standards"
+msgstr ""
+
+#: templates/base.html:60
+msgid "Validierung der Design-Auszeichnungssprache-Standards"
+msgstr ""
+
+#: templates/base.html:60
+msgid "Erklärung von Web-Zugansoptimierungsrichtlinien"
+msgstr ""
+
+#: templates/registration/activation_complete.html:5
+msgid "Activation complete!"
+msgstr ""
+
+#: templates/registration/activation_email.txt:2
+msgid "Just one more step to activate your account on"
+msgstr ""
+
+#: templates/registration/activation_email.txt:4
+msgid "Go to"
+msgstr ""
+
+#: templates/registration/activation_email.txt:6
+msgid "to activate!"
+msgstr ""
+
+#: templates/registration/activation_email.txt:8
+#, python-format
+msgid ""
+"All the best,\n"
+"\n"
+"The %(sitename)s Team"
+msgstr ""
+
+#: templates/registration/registration_complete.html:5
+msgid "Registration confirmed!"
+msgstr ""
+
+#: templates/registration/registration_complete.html:6
+msgid "Check your mails for activation link."
+msgstr ""

File freieit/conf/locale/en/LC_MESSAGES/django.po

+# 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-08-30 00:21+0200\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"
+
+#: models.py:39
+msgid "Expert Profile"
+msgstr ""
+
+#: models.py:40
+msgid "Expert Profiles"
+msgstr ""
+
+#: templates/base.html:9
+msgid "free.it &ndash; Übersicht"
+msgstr ""
+
+#: templates/base.html:10
+msgid "Startseite: Das bietet der clc."
+msgstr ""
+
+#: templates/base.html:11
+msgid ""
+"Freie Software Support Hilfe Experten Open Source FOSS FLOSS Endanwender "
+"privat vor Ort Besuch"
+msgstr ""
+
+#: templates/base.html:28
+msgid "freie.it: Free Software Support"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Professionelle Unterstützung"
+msgstr ""
+
+#: templates/base.html:29
+msgid "für"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Wieso Freie Software?"
+msgstr ""
+
+#: templates/base.html:29
+msgid "Freie Software"
+msgstr ""
+
+#: templates/base.html:29
+msgid "finden."
+msgstr ""
+
+#: templates/base.html:41
+msgid "Invite an expert"
+msgstr ""
+
+#: templates/base.html:42
+msgid "logout"
+msgstr ""
+
+#: templates/base.html:47
+msgid "Geschäftsbedingungen"
+msgstr ""
+
+#: templates/base.html:48
+msgid "freie.it Expert_in werden"
+msgstr ""
+
+#: templates/base.html:49
+msgid "Kontakt"
+msgstr ""
+
+#: templates/base.html:52
+msgid "Definition: Freie Software"
+msgstr ""
+
+#: templates/base.html:53
+msgid "Tipps & Tricks"
+msgstr ""
+
+#: templates/base.html:54
+msgid "Links"
+msgstr ""
+
+#: templates/base.html:55
+msgid "FAQ"
+msgstr ""
+
+#: templates/base.html:59
+msgid "Zuletzt aktualisiert am: "
+msgstr ""
+
+#: templates/base.html:60
+msgid "Validierung des HTML5 Web-Standards"
+msgstr ""
+
+#: templates/base.html:60
+msgid "Validierung der Design-Auszeichnungssprache-Standards"
+msgstr ""
+
+#: templates/base.html:60
+msgid "Erklärung von Web-Zugansoptimierungsrichtlinien"
+msgstr ""
+
+#: templates/registration/activation_complete.html:5
+msgid "Activation complete!"
+msgstr ""
+
+#: templates/registration/activation_email.txt:2
+msgid "Just one more step to activate your account on"
+msgstr ""
+
+#: templates/registration/activation_email.txt:4
+msgid "Go to"
+msgstr ""
+
+#: templates/registration/activation_email.txt:6
+msgid "to activate!"
+msgstr ""
+
+#: templates/registration/activation_email.txt:8
+#, python-format
+msgid ""
+"All the best,\n"
+"\n"
+"The %(sitename)s Team"
+msgstr ""
+
+#: templates/registration/registration_complete.html:5
+msgid "Registration confirmed!"
+msgstr ""
+
+#: templates/registration/registration_complete.html:6
+msgid "Check your mails for activation link."
+msgstr ""

File freieit/settings.py

 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
 # Example: "/home/media/media.lawrence.com/static/"
-STATIC_ROOT = ''
+STATIC_ROOT = os.path.dirname(os.path.dirname(__file__))+'/_static_dump'
 
 # URL prefix for static files.
 # Example: "http://media.lawrence.com/static/"
     'threaded_multihost.middleware.ThreadLocalMiddleware',
     # Uncomment the next line for simple clickjacking protection:
     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+    'django.middleware.locale.LocaleMiddleware',
 )
 
 ROOT_URLCONF = 'freieit.urls'

File freieit/templates/base.html

 {% load static %}
+{% load i18n %}
 
 <!DOCTYPE html>
 <html lang="de">
   <head>
     <meta charset="utf-8" />
     <link rel="shortcut icon" type="image/x-icon" href="{% static "fit-icon.png" %}"/>
-    <title>free.it &ndash; Übersicht</title>
-    <meta name="description" content="Startseite: Das bietet der clc."/>
-    <meta name="keywords" lang="de" content="Freie Software Support Hilfe Experten Open Source FOSS FLOSS Endanwender privat vor Ort Besuch"/>
+    <title>{% trans "free.it &ndash; Übersicht" %}</title>
+    <meta name="description" content="{% trans "Startseite: Das bietet der clc." %}"/>
+    <meta name="keywords" lang="de" content="{% trans "Freie Software Support Hilfe Experten Open Source FOSS FLOSS Endanwender privat vor Ort Besuch" %}"/>
     <!--[if lt IE 9]>
       <script language="JavaScript">
         var e = ("abbr,article,aside,audio,canvas,datalist,details,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video").split(',');
   <body>
     <article>
       <header>
-        <div class="logo"><a href="/"><img src="{% static "freie.it.png" %}" alt="free.it: Free Software Support"/></a></div>
-        <h1>Professionelle Unterstützung<br />für <a href="/free_software" title="Wieso Freie Software?">Freie Software</a> finden.</h1>
+        <div class="logo"><a href="/"><img src="{% static "freie.it.png" %}" alt="{% trans "freie.it: Free Software Support" %}"/></a></div>
+        <h1>{% trans "Professionelle Unterstützung" %}<br />{% trans "für" %} <a href="/free_software" title="{% trans "Wieso Freie Software?" %}">{% trans "Freie Software" %}</a> {% trans "finden." %}</h1>
       </header>
 
       {% block content %}
           <ul>
             <li>
               {% if user.is_authenticated %}
-                <a href="{% url invitation.views.invite %}">Invite an expert</a> /
-                <a href="{% url logout %}">logout {{ user.username }}</a>
+                <a href="{% url invitation.views.invite %}">{% trans "Invite an expert" %}</a> /
+                <a href="{% url logout %}">{% trans "logout" %} {{ user.username }}</a>
               {% else %}
                 <a href="{% url login %}">Login</a>
-                {# / <a href="/accounts/register">registrieren</a></li> #}
+                {# / <a href="/accounts/register">{% trans "registrieren" %}</a></li> #}
               {% endif %}
-            <li><a href="/terms_of_business">Geschäftsbedingungen</a></li>
-            <li><a href="/become_expert">freie.it Expert_in werden</a></li>
-            <li><a href="/contact">Kontakt</a></li>
+            <li><a href="/terms_of_business">{% trans "Geschäftsbedingungen" %}</a></li>
+            <li><a href="/become_expert">{% trans "freie.it Expert_in werden" %}</a></li>
+            <li><a href="/contact">{% trans "Kontakt" %}</a></li>
           </ul>
           <ul>
-            <li><a href="/free_software">Definition: Freie Software</a></li>
-            <li><a href="/tips_and_tricks">Tipps & Tricks</a></li>
-            <li><a href="/links">Links</a></li>
-            <li><a href="/faq">FAQ</a></li>
+            <li><a href="/free_software">{% trans "Definition: Freie Software" %}</a></li>
+            <li><a href="/tips_and_tricks">{% trans "Tipps & Tricks" %}</a></li>
+            <li><a href="/links">{% trans "Links" %}</a></li>
+            <li><a href="/faq">{% trans "FAQ" %}</a></li>
           </ul>
         </div>
 
-        <p id="dat">Zuletzt aktualisiert am: <time datetime="2012-04-13">13. April 2012</time></p>
-        <p><a href="http://validator.w3.org/check?uri=referer" title="Validierung des HTML5 Web-Standards" lang="en" hreflang="en"><abbr title="Extenisble Hypertext Markup Language, Version 5">HTML5</abbr></a> &bull; <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validierung der Design-Auszeichnungssprache-Standards" lang="en" hreflang="en"><abbr title="Cascading Stylesheets, Version 3">CSS3</abbr></a> &bull; <a href="http://www.w3.org/WAI/WCAG20/glance/" title="Erklärung von Web-Zugansoptimierungsrichtlinien" lang="en" hreflang="en"><abbr title="Web Content Accessibility Guidelines, Version 2">WCAG 2</abbr></a></p>
+        <p id="dat">{% trans "Zuletzt aktualisiert am: "%}<time datetime="2012-04-13">13. April 2012</time></p>
+        <p><a href="http://validator.w3.org/check?uri=referer" title="{% trans "Validierung des HTML5 Web-Standards" %}" lang="en" hreflang="en"><abbr title="Extenisble Hypertext Markup Language, Version 5">HTML5</abbr></a> &bull; <a href="http://jigsaw.w3.org/css-validator/check/referer" title="{% trans "Validierung der Design-Auszeichnungssprache-Standards" %}" lang="en" hreflang="en"><abbr title="Cascading Stylesheets, Version 3">CSS3</abbr></a> &bull; <a href="http://www.w3.org/WAI/WCAG20/glance/" title="{% trans "Erklärung von Web-Zugansoptimierungsrichtlinien" %}" lang="en" hreflang="en"><abbr title="Web Content Accessibility Guidelines, Version 2">WCAG 2</abbr></a></p>
         {% endblock footer %}
       </footer>
     </article>