Skip to content

Commit

Permalink
#298 Added Japanese support
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed May 14, 2016
1 parent 6db2da4 commit f49d892
Show file tree
Hide file tree
Showing 22 changed files with 694 additions and 25 deletions.
1 change: 1 addition & 0 deletions docs/i18n.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ F.A.B. has support for seven languages (planning for some more):
- Russian
- German
- Polish
- Japanese

This means that all messages, builtin on the framework are translated to these languages.

Expand Down
8 changes: 8 additions & 0 deletions docs/versions.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Versions
========

Improvements and Bug fixes on 1.6.2
-----------------------------------

- New, Support for Japanese. Thanks to @giyokun.
- Fix, #312 Solves String encoding causing column labels to be prefixed with 'b' in Python 3x.
- Fix, #322 Solves Error on Inline cookie cached, when a record is deleted and it's pk is on the edit cookie


Improvements and Bug fixes on 1.6.1
-----------------------------------

Expand Down
3 changes: 2 additions & 1 deletion examples/quickcharts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
LANGUAGES = {
'en': {'flag':'gb', 'name':'English'},
'pt': {'flag':'pt', 'name':'Portugal'},
'es': {'flag':'es', 'name':'Espanol'}
'es': {'flag':'es', 'name':'Espanol'},
'ja_JP': {'flag': 'jp', 'name': 'Japanese'}
}


Expand Down
3 changes: 2 additions & 1 deletion examples/quickfiles/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
'es': {'flag':'es', 'name':'Spanish'},
'de': {'flag':'de', 'name':'German'},
'zh': {'flag':'cn', 'name':'Chinese'},
'ru': {'flag':'ru', 'name':'Russian'}
'ru': {'flag':'ru', 'name':'Russian'},
'ja_JP': {'flag': 'jp', 'name': 'Japanese'}
}


Expand Down
3 changes: 2 additions & 1 deletion examples/quickhowto/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
'de': {'flag': 'de', 'name': 'German'},
'zh': {'flag': 'cn', 'name': 'Chinese'},
'ru': {'flag': 'ru', 'name': 'Russian'},
'pl': {'flag': 'pl', 'name': 'Polish'}
'pl': {'flag': 'pl', 'name': 'Polish'},
'ja_JP': {'flag': 'jp', 'name': 'Japanese'}
}


Expand Down
Binary file modified flask_appbuilder/translations/de/LC_MESSAGES/messages.mo
Binary file not shown.
7 changes: 4 additions & 3 deletions flask_appbuilder/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ msgstr ""
"POT-Creation-Date: 2015-09-17 13:23+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.0\n"
"Generated-By: Babel 2.3.4\n"

#: flask_appbuilder/const.py:100
msgid "Access is Denied"
Expand All @@ -28,10 +29,10 @@ msgid "Not a valid choice"
msgstr "Kein gültiger Datumswert"

#: flask_appbuilder/messages.py:9
#: flask_appbuilder/templates/appbuilder/general/lib.html:305
#: flask_appbuilder/templates/appbuilder/general/charts/chart.html:8
#: flask_appbuilder/templates/appbuilder/general/charts/chart_time.html:10
#: flask_appbuilder/templates/appbuilder/general/charts/jsonchart.html:8
#: flask_appbuilder/templates/appbuilder/general/lib.html:305
#: flask_appbuilder/templates/appbuilder/general/model/list.html:8
msgid "Search"
msgstr "Suchen"
Expand Down Expand Up @@ -556,8 +557,8 @@ msgstr "Abmelden"
msgid "Login"
msgstr "Anmelden"

#: flask_appbuilder/templates/appbuilder/index.html:4
#: flask_appbuilder/templates/appbuilder/general/security/activation.html:5
#: flask_appbuilder/templates/appbuilder/index.html:4
msgid "Welcome"
msgstr "Willkommen"

Expand Down
Binary file modified flask_appbuilder/translations/es/LC_MESSAGES/messages.mo
Binary file not shown.
7 changes: 4 additions & 3 deletions flask_appbuilder/translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ msgstr ""
"POT-Creation-Date: 2015-09-17 13:23+0100\n"
"PO-Revision-Date: 2013-12-07 19:49+0000\n"
"Last-Translator: Oscar Ramirez <tuxskar@gmail.com>\n"
"Language: es\n"
"Language-Team: es <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.0\n"
"Generated-By: Babel 2.3.4\n"

#: flask_appbuilder/const.py:100
msgid "Access is Denied"
Expand All @@ -28,10 +29,10 @@ msgid "Not a valid choice"
msgstr "No es un valor de fecha válido"

#: flask_appbuilder/messages.py:9
#: flask_appbuilder/templates/appbuilder/general/lib.html:305
#: flask_appbuilder/templates/appbuilder/general/charts/chart.html:8
#: flask_appbuilder/templates/appbuilder/general/charts/chart_time.html:10
#: flask_appbuilder/templates/appbuilder/general/charts/jsonchart.html:8
#: flask_appbuilder/templates/appbuilder/general/lib.html:305
#: flask_appbuilder/templates/appbuilder/general/model/list.html:8
msgid "Search"
msgstr "Buscar"
Expand Down Expand Up @@ -551,8 +552,8 @@ msgstr "Salir"
msgid "Login"
msgstr "Inicar sesión"

#: flask_appbuilder/templates/appbuilder/index.html:4
#: flask_appbuilder/templates/appbuilder/general/security/activation.html:5
#: flask_appbuilder/templates/appbuilder/index.html:4
msgid "Welcome"
msgstr "Bienvenido"

Expand Down
Binary file not shown.
Loading

0 comments on commit f49d892

Please sign in to comment.