These are chat archives for fossasia/open-event-server

11th
Oct 2016
Ankit Saini
@sainiak009
Oct 11 2016 13:36
@niranjan94 @mariobehling @SaptakS This is regarding issue #2046 : I can make a tab in admin section from where we can download and upload .po files but to implement them on system these files needs to be converted into .mo files by running "pybabel compile' command in terminal and these mo files will be used directly by the system. So, Is there any way to run "pybabel compile" from admin panel?
OR
Other thing which can be done is that: we can download po files - edit them - change them to mo and upload them directly to our translations folder. In this case we don't need to run "pybabel compile". For conversion from po to mo online tools are available like : http://tools.konstruktors.com/
Niranjan Rajendran
@niranjan94
Oct 11 2016 13:40
We could have the compile part of our app's build process.
Ankit Saini
@sainiak009
Oct 11 2016 13:51
@niranjan94 Can you please explain it a bit more. Is build process runs only while installing or every time we run server or you are saying about build systems like gulp/grunt ?
Niranjan Rajendran
@niranjan94
Oct 11 2016 13:54
We could do the initial compile every time the server is started. And when any changes are made to the translation file (by uploading the .po file) we could run the command as a part of the upload process. (i.e) the file gets uploaded, and then compiled.
Ankit Saini
@sainiak009
Oct 11 2016 13:55
Okay thanks
Mario Behling
@mariobehling
Oct 11 2016 20:20
:+1: