Skip to content
Snippets Groups Projects
Commit 68bfacb3 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added support for translation in locale_settings.py

parent fbdf2132
No related branches found
No related tags found
No related merge requests found
eclipse.preferences.version=1
encoding//VIPSWeb/local_settings.py=UTF-8
encoding//common/util.py=utf-8
encoding//forecasts/models.py=utf-8
......@@ -22,6 +22,8 @@
## Settings for local instance of this application
## Change these for every new instance of the app
import os
# MUST be lazy, otherwise the app crashes
from django.utils.translation import ugettext_lazy as _
DEBUG = True
TEMPLATE_DEBUG = DEBUG
......@@ -138,10 +140,11 @@ CROP_GROUPS=[]
# Structure for the main (top) menu. Supports one level of child items,
# which are placed in dropdown menus
# The _() wrapping around labels enables translation
# Sample:
# MAIN_MENU=[
# {"url":"/forecasts", "label": "Forecasts"},
# {"url":"/messages", "label": "Messages"},
# {"url":"/forecasts", "label": _("Forecasts")},
# {"url":"/messages", "label": _("Messages")},
# {"label": "Other services", "child_items":[
# {"url":"/nopage", "label": "Test1"},
# {"separator": True},
......
No preview for this file type
......@@ -19,7 +19,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-19 14:47+0200\n"
"POT-Creation-Date: 2015-08-19 16:30+0200\n"
"PO-Revision-Date: 2014-05-14 09:31+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -30,6 +30,10 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.6.5\n"
#: local_settings.py:152
msgid "Working title"
msgstr ""
#: templates/404.html:3 templates/404.html.py:5
msgid "File not found"
msgstr ""
......@@ -90,7 +94,7 @@ msgstr ""
msgid "Messages"
msgstr "Съобщения"
#: templatetags/template_helper.py:73
#: templatetags/template_helper.py:74
#, fuzzy
msgid "Information"
msgstr "Друго действие"
......
No preview for this file type
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-19 14:47+0200\n"
"POT-Creation-Date: 2015-08-19 16:30+0200\n"
"PO-Revision-Date: 2015-02-13 11:26+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
......@@ -19,6 +19,10 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 1.7.4\n"
#: local_settings.py:152
msgid "Working title"
msgstr ""
#: templates/404.html:3 templates/404.html.py:5
msgid "File not found"
msgstr ""
......@@ -79,6 +83,6 @@ msgstr ""
msgid "Messages"
msgstr "Poruke"
#: templatetags/template_helper.py:73
#: templatetags/template_helper.py:74
msgid "Information"
msgstr ""
No preview for this file type
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-19 14:47+0200\n"
"POT-Creation-Date: 2015-08-19 16:30+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"
......@@ -18,6 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: local_settings.py:152
msgid "Working title"
msgstr ""
#: templates/404.html:3 templates/404.html.py:5
msgid "File not found"
msgstr ""
......@@ -78,6 +82,6 @@ msgstr ""
msgid "Messages"
msgstr "Viestit"
#: templatetags/template_helper.py:73
#: templatetags/template_helper.py:74
msgid "Information"
msgstr ""
No preview for this file type
......@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VIPSWeb\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-19 14:47+0200\n"
"POT-Creation-Date: 2015-08-19 16:30+0200\n"
"PO-Revision-Date: 2013-11-07 20:18+0200\n"
"Last-Translator: Tor-Einar Skog <tor-einar.skog@nibio.no>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -30,6 +30,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: local_settings.py:152
msgid "Working title"
msgstr "Arbeidstittel"
#: templates/404.html:3
#: templates/404.html.py:5
msgid "File not found"
......@@ -91,7 +95,7 @@ msgstr "Velg kultur eller zoom inn for å se liste over varsler"
msgid "Messages"
msgstr "Meldinger"
#: templatetags/template_helper.py:73
#: templatetags/template_helper.py:74
msgid "Information"
msgstr "Informasjon"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment