-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
62 lines (35 loc) · 1.55 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
After GIT clone
===============
Init the submodules:
git submodule init
Update the submodules:
git submodule update
Update the svn external repositories
sh hooks/svnrepos.sh
Installation
============
Install the buildout environment:
python bootstrap.py --distribute --version 1.5.2 --distribute --download-base http://pypi.camptocamp.net/ --setup-source http://pypi.camptocamp.net/distribute_setup.py
Install the project:
buildout/bin/buildout
If you have a custom buildout config file, you should instead run:
buildout/bin/buildout -c buildout_myconfig.cfg
Now look at apache/README.txt and go configure your Apache virtual host.
Internationalization
====================
Getting Started
---------------
1) Uncomment the 'message_extractors' option in setup.py.
2) Extract all messages from the project:
buildout/bin/python setup.py extract_messages
3) Initialize a catalog for every supported language, for example:
buildout/bin/python setup.py init_catalog -l fr
buildout/bin/python setup.py init_catalog -l en
4) Edit the .po files in geoadmin/i18n/*/LC_MESSAGES/geoadmin.po
5) Finally, compile the .po file to a .mo file:
buildout/bin/python setup.py compile_catalog
Source: http://wiki.pylonshq.com/display/pylonsdocs/Internationalization+and+Localization
JavaScript translations
-----------------------
The JavaScript translated strings are stored in the BOD database. In order to produce the JavaScript files lang.js in the i18n directory, start this command:
./buildout/bin/buildout -c buildout_myconfig.cfg install jstranslate