Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
nm.debian.org
Commits
cfb31f02
Commit
cfb31f02
authored
Aug 24, 2018
by
Carsten Schoenert
Browse files
README: Adding paragraph about howto do l10n work
parent
88b6f93d
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
cfb31f02
...
...
@@ -63,3 +63,32 @@ Unusual things in the design:
*
`backend.mixins.VisitorMixin`
is the root of a class hierarchy of mixins used
by most views in the site; those mixins implement the basis of resource
instantiation and permission checking.
## WebUI Translation
The NM Front Desk web application is supporting localization's due the
possibility of build in l10n support. Currently there are the languages German,
French, Spanish and Italian prepared. You might want to help out to improve the
existing l10n strings or add more languages. To do this you will need the
following steps.
Updating the current strings of the language you want to work on. E.g. for
German. (Note: If you don't use a single language as specification all
languages will be updated.)
./manage.py makemessages -l de
Next simply use the preferred tool for working on the .po file which can be
found in the folder
`locale/$(LANG)/LC_MESSAGES/django.po`
.
To test your work you need to create the compiled catalog of the l10n strings.
./manage.py compilemessages
Next run the local Django webserver.
./manage.py runserver
Control your work with the preferred browser by calling the URI
'localhost:8000'. Note, you need to call
`./manage.py compilemessages`
again
once you have modified the
*
.po file in order to improve the preferred
translation.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment