Commit 43ebeb80 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #855 from pawl/use_crowdin

Move translations to Crowdin
parents 1bc712e1 517377a9
Flask-Admin Flask-Admin
=========== ===========
.. image:: https://d322cqt584bo4o.cloudfront.net/flask-admin/localized.png
:target: https://crowdin.com/project/flask-admin
.. image:: https://travis-ci.org/flask-admin/flask-admin.png?branch=master .. image:: https://travis-ci.org/flask-admin/flask-admin.png?branch=master
:target: https://travis-ci.org/flask-admin/flask-admin :target: https://travis-ci.org/flask-admin/flask-admin
...@@ -96,3 +99,5 @@ Please note that you will need to install some additional dependencies in order ...@@ -96,3 +99,5 @@ Please note that you will need to install some additional dependencies in order
Flask-Admin is built with the help of `Bootstrap <http://getbootstrap.com/>`_ and `Select2 <https://github.com/ivaynberg/select2>`_. Flask-Admin is built with the help of `Bootstrap <http://getbootstrap.com/>`_ and `Select2 <https://github.com/ivaynberg/select2>`_.
If you want to localize your application, install the `Flask-BabelEx <https://pypi.python.org/pypi/Flask-BabelEx>`_ package. If you want to localize your application, install the `Flask-BabelEx <https://pypi.python.org/pypi/Flask-BabelEx>`_ package.
You can help improve Flask-Admin's translations through Crowdin: https://crowdin.com/project/flask-admin
...@@ -9,7 +9,7 @@ msgid "" ...@@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Flask-Admin VERSION\n" "Project-Id-Version: Flask-Admin VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-03-29 16:29+0200\n" "POT-Creation-Date: 2015-04-22 20:22-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -18,7 +18,7 @@ msgstr "" ...@@ -18,7 +18,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n" "Generated-By: Babel 1.3\n"
#: ../flask_admin/base.py:426 #: ../flask_admin/base.py:427
msgid "Home" msgid "Home"
msgstr "" msgstr ""
...@@ -155,10 +155,10 @@ msgid "Cannot edit %(name)s." ...@@ -155,10 +155,10 @@ msgid "Cannot edit %(name)s."
msgstr "" msgstr ""
#: ../flask_admin/contrib/fileadmin.py:881 #: ../flask_admin/contrib/fileadmin.py:881
#: ../flask_admin/contrib/mongoengine/view.py:625 #: ../flask_admin/contrib/mongoengine/view.py:626
#: ../flask_admin/contrib/peewee/view.py:429 #: ../flask_admin/contrib/peewee/view.py:429
#: ../flask_admin/contrib/pymongo/view.py:348 #: ../flask_admin/contrib/pymongo/view.py:349
#: ../flask_admin/contrib/sqla/view.py:954 #: ../flask_admin/contrib/sqla/view.py:956
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
...@@ -252,57 +252,57 @@ msgstr "" ...@@ -252,57 +252,57 @@ msgstr ""
msgid "not between" msgid "not between"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:519 #: ../flask_admin/contrib/mongoengine/view.py:520
#, python-format #, python-format
msgid "Failed to get model. %(error)s" msgid "Failed to get model. %(error)s"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:538 #: ../flask_admin/contrib/mongoengine/view.py:539
#: ../flask_admin/contrib/peewee/view.py:380 #: ../flask_admin/contrib/peewee/view.py:380
#: ../flask_admin/contrib/pymongo/view.py:283 #: ../flask_admin/contrib/pymongo/view.py:284
#: ../flask_admin/contrib/sqla/view.py:886 #: ../flask_admin/contrib/sqla/view.py:888
#, python-format #, python-format
msgid "Failed to create record. %(error)s" msgid "Failed to create record. %(error)s"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:564 #: ../flask_admin/contrib/mongoengine/view.py:565
#: ../flask_admin/contrib/peewee/view.py:399 #: ../flask_admin/contrib/peewee/view.py:399
#: ../flask_admin/contrib/pymongo/view.py:308 #: ../flask_admin/contrib/pymongo/view.py:309
#: ../flask_admin/contrib/sqla/view.py:912 ../flask_admin/model/base.py:1670 #: ../flask_admin/contrib/sqla/view.py:914 ../flask_admin/model/base.py:1671
#: ../flask_admin/model/base.py:1679 #: ../flask_admin/model/base.py:1680
#, python-format #, python-format
msgid "Failed to update record. %(error)s" msgid "Failed to update record. %(error)s"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:588 #: ../flask_admin/contrib/mongoengine/view.py:589
#: ../flask_admin/contrib/peewee/view.py:415 #: ../flask_admin/contrib/peewee/view.py:415
#: ../flask_admin/contrib/pymongo/view.py:334 #: ../flask_admin/contrib/pymongo/view.py:335
#: ../flask_admin/contrib/sqla/view.py:938 #: ../flask_admin/contrib/sqla/view.py:940
#, python-format #, python-format
msgid "Failed to delete record. %(error)s" msgid "Failed to delete record. %(error)s"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:626 #: ../flask_admin/contrib/mongoengine/view.py:627
#: ../flask_admin/contrib/peewee/view.py:430 #: ../flask_admin/contrib/peewee/view.py:430
#: ../flask_admin/contrib/pymongo/view.py:349 #: ../flask_admin/contrib/pymongo/view.py:350
#: ../flask_admin/contrib/sqla/view.py:955 #: ../flask_admin/contrib/sqla/view.py:957
msgid "Are you sure you want to delete selected records?" msgid "Are you sure you want to delete selected records?"
msgstr "" msgstr ""
#: ../flask_admin/contrib/mongoengine/view.py:635 #: ../flask_admin/contrib/mongoengine/view.py:636
#: ../flask_admin/contrib/peewee/view.py:446 #: ../flask_admin/contrib/peewee/view.py:446
#: ../flask_admin/contrib/pymongo/view.py:359 #: ../flask_admin/contrib/pymongo/view.py:360
#: ../flask_admin/contrib/sqla/view.py:971 ../flask_admin/model/base.py:1618 #: ../flask_admin/contrib/sqla/view.py:973 ../flask_admin/model/base.py:1619
#, python-format #, python-format
msgid "Record was successfully deleted." msgid "Record was successfully deleted."
msgid_plural "%(count)s records were successfully deleted." msgid_plural "%(count)s records were successfully deleted."
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: ../flask_admin/contrib/mongoengine/view.py:641 #: ../flask_admin/contrib/mongoengine/view.py:642
#: ../flask_admin/contrib/peewee/view.py:452 #: ../flask_admin/contrib/peewee/view.py:452
#: ../flask_admin/contrib/pymongo/view.py:364 #: ../flask_admin/contrib/pymongo/view.py:365
#: ../flask_admin/contrib/sqla/view.py:979 #: ../flask_admin/contrib/sqla/view.py:981
#, python-format #, python-format
msgid "Failed to delete records. %(error)s" msgid "Failed to delete records. %(error)s"
msgstr "" msgstr ""
...@@ -325,7 +325,7 @@ msgid_plural "At least %d items are required" ...@@ -325,7 +325,7 @@ msgid_plural "At least %d items are required"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: ../flask_admin/contrib/sqla/view.py:865 #: ../flask_admin/contrib/sqla/view.py:867
#, python-format #, python-format
msgid "Integrity error. %(message)s" msgid "Integrity error. %(message)s"
msgstr "" msgstr ""
...@@ -342,11 +342,11 @@ msgstr "" ...@@ -342,11 +342,11 @@ msgstr ""
msgid "Invalid file extension" msgid "Invalid file extension"
msgstr "" msgstr ""
#: ../flask_admin/model/base.py:1280 #: ../flask_admin/model/base.py:1281
msgid "There are no items in the table." msgid "There are no items in the table."
msgstr "" msgstr ""
#: ../flask_admin/model/base.py:1304 #: ../flask_admin/model/base.py:1305
#, python-format #, python-format
msgid "Invalid Filter Value: %(value)s" msgid "Invalid Filter Value: %(value)s"
msgstr "" msgstr ""
...@@ -355,7 +355,7 @@ msgstr "" ...@@ -355,7 +355,7 @@ msgstr ""
msgid "Record was successfully created." msgid "Record was successfully created."
msgstr "" msgstr ""
#: ../flask_admin/model/base.py:1578 ../flask_admin/model/base.py:1675 #: ../flask_admin/model/base.py:1578 ../flask_admin/model/base.py:1676
msgid "Record was successfully saved." msgid "Record was successfully saved."
msgstr "" msgstr ""
......
#!/bin/sh
# get newest translations from Crowdin
cd ../flask_admin/translations/
curl http://api.crowdin.net/api/project/flask-admin/export?key=`cat ~/.crowdin.flaskadmin.key`
wget http://api.crowdin.net/api/project/flask-admin/download/all.zip?key=`cat ~/.crowdin.flaskadmin.key` -O all.zip
# unzip and move .po files in subfolders called LC_MESSAGES
unzip -o all.zip
find . -maxdepth 2 -name "*.po" -exec bash -c 'mkdir -p $(dirname {})/LC_MESSAGES; mv {} $(dirname {})/LC_MESSAGES/admin.po' \;
rm all.zip
#!/bin/sh
sh babel.sh
curl -F "files[/admin.pot]=@admin.pot" http://api.crowdin.net/api/project/flask-admin/update-file?key=`cat ~/.crowdin.flaskadmin.key`
Translations are ONLY handled through Crowdin!
https://crowdin.com/project/flask-admin
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment