Changeset View
Changeset View
Standalone View
Standalone View
README.md
| Show All 28 Lines | |||||
| Alternatively, provide a `pillar/config_local.py` that changes the relevant | Alternatively, provide a `pillar/config_local.py` that changes the relevant | ||||
| settings. | settings. | ||||
| ``` | ``` | ||||
| git clone git@git.blender.org:pillar-python-sdk.git ../pillar-python-sdk | git clone git@git.blender.org:pillar-python-sdk.git ../pillar-python-sdk | ||||
| pip install -e ../pillar-python-sdk | pip install -e ../pillar-python-sdk | ||||
| pip install -U -r requirements.txt | pip install -U -r requirements.txt | ||||
| pip install -e . | pip install -e . | ||||
| python pillar/cli/translations.py compile | |||||
sybren: Running code from inside the source tree like this isn't that nice. Can't it be an entry point… | |||||
| ``` | ``` | ||||
| ## HDRi viewer | ## HDRi viewer | ||||
| The HDRi viewer uses [Google VRView](https://github.com/googlevr/vrview). To upgrade, | The HDRi viewer uses [Google VRView](https://github.com/googlevr/vrview). To upgrade, | ||||
| get those files: | get those files: | ||||
| * [three.min.js](https://raw.githubusercontent.com/googlevr/vrview/master/build/three.min.js) | * [three.min.js](https://raw.githubusercontent.com/googlevr/vrview/master/build/three.min.js) | ||||
| Show All 14 Lines | |||||
| Pillar requires [Celery](http://www.celeryproject.org/) for background task processing. This in | Pillar requires [Celery](http://www.celeryproject.org/) for background task processing. This in | ||||
| turn requires a backend and a broker, for which the default Pillar configuration uses Redis and | turn requires a backend and a broker, for which the default Pillar configuration uses Redis and | ||||
| RabbitMQ. | RabbitMQ. | ||||
| You can run the Celery Worker using `manage.py celery worker`. | You can run the Celery Worker using `manage.py celery worker`. | ||||
| Find other Celery operations with the `manage.py celery` command. | Find other Celery operations with the `manage.py celery` command. | ||||
| ## Translations | |||||
| If the language you want to support doesn't exist, you need to run): | |||||
| `python pillar/cli/translations.py init es` | |||||
| Every time a new string is marked for translation you need to update the entire catalog: | |||||
| `python pillar/cli/translations.py update` | |||||
| And once more strings are translated, you need to compile the translations: | |||||
| `python pillar/cli/translations.py update` | |||||
| To see how to mark strings for translation look at the Python code for `gettext` or the .pug templates for `_(`. | |||||
sybrenUnsubmitted Not Done Inline ActionsCan you make those "look at" targets links to (a webpage showing) their actual sources? sybren: Can you make those "look at" targets links to (a webpage showing) their actual sources? | |||||
dfelintoAuthorUnsubmitted Not Done Inline ActionsYou mean: dfelinto: You mean:
(1) https://docs.python.org/3/library/gettext.html
(2) http://babel.pocoo. | |||||
sybrenUnsubmitted Not Done Inline ActionsI mean whatever you mean with "look at the Python code". If you tell people to look at something, it's nice to let them know where they can find it. sybren: I mean whatever you mean with "look at the Python code". If you tell people to look at… | |||||
Running code from inside the source tree like this isn't that nice. Can't it be an entry point defined in setup.py?