Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61346175
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, May 6, 02:34
Size
1 KB
Mime Type
text/x-makefile
Expires
Wed, May 8, 02:34 (2 d)
Engine
blob
Format
Raw Data
Handle
17498811
Attached To
rEDXLOCALE edx-locale
Makefile
View Options
SHELL := /bin/bash
OS := $(shell uname)
all: clean init mo
@echo " ===> Done"
init:
@echo " ===> Initialize."
@if test -d venv; then \
echo "init has been done early. You can remove directory venv to recreate environment."; \
else \
mkdir -p venv && \
virtualenv venv --system-site-packages && \
source venv/bin/activate && \
pip install -r requirements.txt && \
rm -Rf .tx && \
tx init --user=api --token='1/d4eb01906f12e288e33733b098b3a1b45220e572' --host=www.transifex.com && \
echo '[open-edx-releases.release-ginkgo]' >> .tx/config && \
echo 'source_file = <lang>_translation' >> .tx/config && \
echo 'source_lang = en_US' >> .tx/config && \
echo 'type = PO' >> .tx/config; \
fi;
mo:
@echo " ===> Download FR translation file(conf/locale/fr/LC_MESSAGES/django.po)/merge/compile"
@source venv/bin/activate && \
tx pull -l fr && \
mv .tx/open-edx-releases.release-ginkgo/fr_translation conf/locale/fr/LC_MESSAGES/django.po && \
msgcat conf/locale/fr/LC_MESSAGES/extra.po conf/locale/fr/LC_MESSAGES/django.po -o conf/locale/fr/LC_MESSAGES/merge.po --use-first && \
msgfmt conf/locale/fr/LC_MESSAGES/merge.po --output-file conf/locale/fr/LC_MESSAGES/django.mo && \
rm conf/locale/fr/LC_MESSAGES/merge.po
clean:
@echo " ===> Clean working directories."
@rm -Rf .tx venv
Event Timeline
Log In to Comment