[ckan-changes] [ckan/ckan] c7677b: [#3196] Add Flask-babel requirement, hook into Fla...

GitHub noreply at github.com
Wed Aug 24 15:30:27 UTC 2016


  Branch: refs/heads/3196-i18n
  Home:   https://github.com/ckan/ckan
  Commit: c7677b94fdc018db77e3ae1832b7ee2aeebae77f
      https://github.com/ckan/ckan/commit/c7677b94fdc018db77e3ae1832b7ee2aeebae77f
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-24 (Wed, 24 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3196] Add Flask-babel requirement, hook into Flask middleware


  Commit: b1e5681f28ce3f74700998a72befc99b84c044a2
      https://github.com/ckan/ckan/commit/b1e5681f28ce3f74700998a72befc99b84c044a2
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-24 (Wed, 24 Aug 2016)

  Changed paths:
    M ckan/common.py
    M ckan/plugins/toolkit.py

  Log Message:
  -----------
  [#3196] Common translation functions for Flask and Pylons

Wrappers in ckan.common for `_` and `ungettext`. Flask-babel provides
the `gettext` and `ngettext` functions but they really use the unicode
versions internally so they are consitent with the current behaviour. We
ketp the `u...` names.


  Commit: d6aad5d1b6f7a231ced4a6996010b0d6b6948181
      https://github.com/ckan/ckan/commit/d6aad5d1b6f7a231ced4a6996010b0d6b6948181
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-24 (Wed, 24 Aug 2016)

  Changed paths:
    M ckan/lib/base.py
    M ckan/logic/action/__init__.py
    M ckan/logic/auth/delete.py
    M ckan/logic/auth/get.py
    M doc/contributing/string-i18n.rst

  Log Message:
  -----------
  [#3196] Consolidate i18n imports, update docs


Compare: https://github.com/ckan/ckan/compare/c7677b94fdc0^...d6aad5d1b6f7


More information about the ckan-changes mailing list