You need to download WireCloud's source code from the github repository:
$ git clone https://github.com/Wirecloud/wirecloud.git
Next step is creating or updating the catalogue of messages to translate, this can be accomplished with the following commands:
$ cd <wirecloud_repo_path>/src $ cd <module> $ django-admin.py makemessages -l <locale> $ django-admin.py makemessages -l <locale> -d djangojs
wirecloud_repo_pathis the path where the working copy of the WireCloud's git repository has been downloaded
moduleis the django module to translate. In WireCloud there are 3 core modules:
localeis the locale of the messages files that are going to be created/updated. e.g. "es_MX" for Mexican Spanish, "de" for German, ...
You will be able to edit the
djangojs.po files located at
wirecloud_repo_path>/<module>/locale/<locale>/LC_MESSAGES/, after running the command of the previous slide. Those files can be edited manually or any generic PO file editor.
Once you feel comfortable with your translated message catalogue, you can compile it for testing purporses by running the following code (for each module):
$ cd <wirecloud_repo_path>/src $ cd <module> $ django-admin.py compilemessages
After compiling messages, you can test it by running WireCloud. As we're developing, the recommended way is by executing the runserver command:
$ python manage.py runserver --insecure