first step of language files.
--- a/.hgignore Mon Jan 28 18:49:51 2013 +0100
+++ b/.hgignore Tue Jan 29 11:13:14 2013 +0100
@@ -7,6 +7,7 @@
^web/static/site$
syntax: regexp
^\.pydevproject$
+^\.project$
^\.settings/org\.eclipse\.core\.resources\.prefs$
^\.settings/org\.eclipse\.core\.runtime\.prefs$
Binary file src/egonomy/locale/en/LC_MESSAGES/django.mo has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/egonomy/locale/en/LC_MESSAGES/django.po Tue Jan 29 11:13:14 2013 +0100
@@ -0,0 +1,66 @@
+# 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-29 03:51-0600\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:126
+msgid "French"
+msgstr ""
+
+#: settings.py:127
+msgid "English"
+msgstr ""
+
+#: templates/egonomy_annotate_picture.html:5
+msgid "Annotate a picture"
+msgstr ""
+
+#: templates/egonomy_base.html:23
+msgid "by"
+msgstr ""
+
+#: templates/egonomy_base.html:25
+msgid "Search"
+msgstr ""
+
+#: templates/egonomy_base.html:28
+msgid "Login"
+msgstr ""
+
+#: templates/egonomy_home.html:5
+msgid "Home"
+msgstr ""
+
+#: templates/egonomy_home.html:12
+msgid "Last annotated pictures"
+msgstr ""
+
+#: templates/egonomy_home.html:20 templates/egonomy_home.html.py:28
+#: templates/egonomy_home.html:36 templates/egonomy_home.html.py:44
+#: templates/egonomy_home.html:64 templates/egonomy_home.html.py:77
+#: templates/egonomy_home.html:90 templates/egonomy_home.html.py:103
+msgid "Annotated by"
+msgstr ""
+
+#: templates/egonomy_home.html:51
+msgid "Last modified fragments"
+msgstr ""
+
+#: templates/egonomy_home.html:63 templates/egonomy_home.html.py:76
+#: templates/egonomy_home.html:89 templates/egonomy_home.html.py:102
+msgid "Fragment from"
+msgstr ""
Binary file src/egonomy/locale/fr/LC_MESSAGES/django.mo has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/egonomy/locale/fr/LC_MESSAGES/django.po Tue Jan 29 11:13:14 2013 +0100
@@ -0,0 +1,74 @@
+# 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-29 03:51-0600\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=2; plural=(n > 1)\n"
+
+#: settings.py:126
+msgid "French"
+msgstr "Français"
+
+#: settings.py:127
+msgid "English"
+msgstr "Anglais"
+
+#: templates/egonomy_annotate_picture.html:5
+msgid "Annotate a picture"
+msgstr "Annoter une image"
+
+#: templates/egonomy_base.html:23
+msgid "by"
+msgstr "par"
+
+#: templates/egonomy_base.html:25
+msgid "Search"
+msgstr "Rechercher"
+
+#: templates/egonomy_base.html:28
+msgid "Login"
+msgstr "Se connecter"
+
+#: templates/egonomy_home.html:5
+msgid "Home"
+msgstr "Accueil"
+
+#: templates/egonomy_home.html:12
+msgid "Last annotated pictures"
+msgstr "Dernières images annotées"
+
+#: templates/egonomy_home.html:20
+#: templates/egonomy_home.html.py:28
+#: templates/egonomy_home.html:36
+#: templates/egonomy_home.html.py:44
+#: templates/egonomy_home.html:64
+#: templates/egonomy_home.html.py:77
+#: templates/egonomy_home.html:90
+#: templates/egonomy_home.html.py:103
+msgid "Annotated by"
+msgstr "Annoté par"
+
+#: templates/egonomy_home.html:51
+msgid "Last created fragments"
+msgstr "Derniers fragments créés"
+
+#: templates/egonomy_home.html:63
+#: templates/egonomy_home.html.py:76
+#: templates/egonomy_home.html:89
+#: templates/egonomy_home.html.py:102
+msgid "Fragment from"
+msgstr "Fragment de"
+
--- a/src/egonomy/settings.py Mon Jan 28 18:49:51 2013 +0100
+++ b/src/egonomy/settings.py Tue Jan 29 11:13:14 2013 +0100
@@ -121,6 +121,12 @@
'egonomy',
)
+ugettext = lambda s: s
+LANGUAGES = (
+ ('fr', ugettext('French')),
+ ('en', ugettext('English')),
+)
+
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
--- a/src/egonomy/templates/egonomy_home.html Mon Jan 28 18:49:51 2013 +0100
+++ b/src/egonomy/templates/egonomy_home.html Tue Jan 29 11:13:14 2013 +0100
@@ -48,7 +48,7 @@
<!-- Liste des derniers fragments modifiés -->
<div class="column column-half">
- <h2>{% trans "Last modified fragments" %}</h2>
+ <h2>{% trans "Last created fragments" %}</h2>
<ul class="fullwidth">
<li class="subcol subcol-half-fourth">
<div class="center-image">