|
@@ -0,0 +1,17 @@
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+SEARX_DIR='searx'
|
|
|
+
|
|
|
+pybabel extract -F babel.cfg -o messages.pot $SEARX_DIR
|
|
|
+for f in `ls $SEARX_DIR'/translations/'`; do
|
|
|
+ pybabel update -i messages.pot -d $SEARX_DIR'/translations/' -l $f
|
|
|
+
|
|
|
+ sed -i 's/#~ //' $SEARX_DIR'/translations/'$f'/LC_MESSAGES/messages.po'
|
|
|
+done
|
|
|
+
|
|
|
+echo '[!] update done, edit .po files if required and run pybabel compile -d searx/translations/'
|