Add Norwegian translation

Fixes #304
This commit is contained in:
Roland Geider
2016-07-11 23:12:41 +02:00
parent 4d7114cb84
commit b18faf36bd
9 changed files with 2037 additions and 1473 deletions

View File

@@ -29,6 +29,7 @@ Translators
* Czech: Tomáš Z.
* Dutch: David Machiels
* Greek: Mark Nicolaou
* Norwegian: Kjetil Elde
* Portuguese: Jefferson Campos http://jeffersoncampos.eti.br
* Russian: Inna
* Spanish: acv2facundo

View File

@@ -13,9 +13,16 @@ Upgrade steps from 1.7:
* Download new JS packages: ``python manage.py bower install`` (note that you
might have to delete first wger/core/static/bower_components)
* Update static files (only production): ``python manage.py collectstatic``
* Load new the languages fixtures as well as their configuration
``python manage.py loaddata languages`` and
``python manage.py loaddata language_config``
* New config option in settings.py: ``WGER_SETTINGS['TWITTER']``. Set this if
your instance has its own twitter account.
New languages:
* Norwegian (many thanks to Kjetil Elde `@w00p`_ `#304`_)
New features:
* Add repetition (minutes, kilometer, etc.) and weight options (kg, lb, plates, until failure) to sets `#216`_ and `#217`_
@@ -48,8 +55,10 @@ Other improvements and bugfixes: `#243`_, `#279`_, `#275`_, `#270`_, `#258`_, `#
.. _#282: https://github.com/wger-project/wger/issues/282
.. _#296: https://github.com/wger-project/wger/issues/296
.. _#297: https://github.com/wger-project/wger/issues/297
.. _#304: https://github.com/wger-project/wger/issues/304
.. _@alelevinas: https://github.com/alelevinas
.. _@alokhan: https://github.com/alokhan
.. _@w00p: https://github.com/w00p

View File

@@ -57,7 +57,7 @@ activated in the django settings file and in the application itself.
* while in ``extras/scripts``, export the whole database to a json file with::
python ../../manage.py dumpdata --indent 4 --natural > data.json
python ../../manage.py dumpdata --indent 4 --natural-foreign > data.json
* filter the database dump, this will generate a json file for each "important"
module::

View File

@@ -19,7 +19,7 @@ Simple script that filters the output of django's dumpdata command into more
manageable chunks.
Create the data.json e.g. with:
python ../../manage.py dumpdata --indent 4 --natural > data.json
python ../../manage.py dumpdata --indent 4 --natural-foreign > data.json
'''
import json

File diff suppressed because it is too large Load Diff

View File

@@ -1,82 +1,90 @@
[
{
"model": "core.language",
"fields": {
"short_name": "de",
"full_name": "Deutsch"
},
"model": "core.language",
"pk": 1
},
{
"model": "core.language",
"fields": {
"short_name": "en",
"full_name": "English"
},
"model": "core.language",
"pk": 2
},
{
"model": "core.language",
"fields": {
"short_name": "bg",
"full_name": "\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"
},
"model": "core.language",
"pk": 3
},
{
"model": "core.language",
"fields": {
"short_name": "es",
"full_name": "Espa\u00f1ol"
},
"model": "core.language",
"pk": 4
},
{
"model": "core.language",
"fields": {
"short_name": "ru",
"full_name": "\u0420\u0443\u0441\u0441\u043a\u0438\u0439"
},
"model": "core.language",
"pk": 5
},
{
"model": "core.language",
"fields": {
"short_name": "nl",
"full_name": "Nederlands"
},
"model": "core.language",
"pk": 6
},
{
"model": "core.language",
"fields": {
"short_name": "pt",
"full_name": "Portugu\u00eas"
},
"model": "core.language",
"pk": 7
},
{
"model": "core.language",
"fields": {
"short_name": "el",
"full_name": "\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"
},
"model": "core.language",
"pk": 8
},
{
"model": "core.language",
"fields": {
"short_name": "cs",
"full_name": "\u010de\u0161tina"
},
"model": "core.language",
"pk": 9
},
{
"model": "core.language",
"fields": {
"short_name": "sv",
"full_name": "Svenska"
},
"model": "core.language",
"pk": 10
},
{
"fields": {
"short_name": "no",
"full_name": "Norsk"
},
"model": "core.language",
"pk": 11
}
]

View File

@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="186.18201"
id="svg4472"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:version="0.91 r13725"
sodipodi:docname="flag-no.svg"
sodipodi:version="0.32"
version="1.0"
width="256">
<metadata
id="metadata3">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:title></dc:title>
<dc:description />
<dc:subject>
<rdf:Bag>
<rdf:li>unsorted</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:publisher>
<cc:Agent
rdf:about="http://www.openclipart.org/">
<dc:title>Open Clip Art Library, Source: Wikimedia Commons, Source: Wikimedia Commons, Source: Wikimedia Commons, Source: Wikimedia Commons</dc:title>
</cc:Agent>
</dc:publisher>
<dc:creator>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title />
</cc:Agent>
</dc:rights>
<dc:date />
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<cc:license
rdf:resource="http://en.wikipedia.org/wiki/Public_domain" />
<dc:language>en</dc:language>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs4485">
<inkscape:perspective
id="perspective4489"
inkscape:persp3d-origin="550 : 266.66667 : 1"
inkscape:vp_x="0 : 400 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="1100 : 400 : 1"
sodipodi:type="inkscape:persp3d" />
</defs>
<sodipodi:namedview
bordercolor="#666666"
borderopacity="1.0"
gridtolerance="10.0"
guidetolerance="10.0"
id="base"
inkscape:current-layer="svg4472"
inkscape:cx="167.29726"
inkscape:cy="-10.443031"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:window-height="710"
inkscape:window-width="963"
inkscape:window-x="520"
inkscape:window-y="87"
inkscape:zoom="0.50818182"
objecttolerance="10.0"
pagecolor="#ffffff"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-maximized="0" />
<rect
height="186.18201"
id="rect4474"
style="fill:#ef2b2d"
width="256"
x="0"
y="0" />
<rect
height="186.18201"
id="rect4476"
style="fill:#ffffff"
width="46.545456"
x="69.818184"
y="0" />
<rect
height="46.545502"
id="rect4478"
style="fill:#ffffff"
width="256"
x="0"
y="69.818253" />
<rect
height="186.18201"
id="rect4480"
style="fill:#002868"
width="23.272728"
x="81.454544"
y="0" />
<rect
height="23.272751"
id="rect4482"
style="fill:#002868"
width="256"
x="0"
y="81.454613" />
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff