easyeditor-dev / EasyEditor

Simple source code editor for web
https://easyeditor.herokuapp.com
Other
1 stars 3 forks source link
easy-to-use editor flask heroku-flask

Easyeditor

Deploy Build Status Coverage Status

Just do it!

Korean translation

This is easy and simple web editor. This is useful if it is bothersome to install the editor to coded as usual.

Major function

For Development

$ git clone https://github.com/maxtortime/EasyEditor.git
# Install python3, pip, virtualenv, bower
$ virtualenv -p $(which python3) venv
$ . venv/bin/activate
(venv) $ pip install -r requirements.txt
$ bower install
$ python3 easyeditor.py

Translation

Basic language is Korean. Please wrap Korean words by _(한국어 문장) in HTML. Python example is following.

gettext(u'A simple string')
gettext(u'Value: %(value)s', value=42)
ngettext(u'%(num)s Apple', u'%(num)s Apples', number_of_apples)

After wrapping Korean words, Please invoke following commands.

$ pybabel extract -F babel.cfg -o messages.pot .
$ pybabel init -i messages.pot -d translations -l 'iso lang code ex) en,ja'
# Translate messages.po file at translations directory.
# Automatically running at deployment
$ pybabel compile -d translations