Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into 4291-werkzeug-dev…
Browse files Browse the repository at this point in the history
…-server
  • Loading branch information
tino097 committed Sep 28, 2018
2 parents 66b54bf + 523c6e6 commit bbc3050
Show file tree
Hide file tree
Showing 19 changed files with 24,876 additions and 197 deletions.
34 changes: 27 additions & 7 deletions README.rst
Expand Up @@ -20,6 +20,10 @@ CKAN: The Open Source Data Portal Software
:target: https://coveralls.io/github/ckan/ckan?branch=master
:alt: Coverage Status

.. image:: https://badges.gitter.im/gitterHQ/gitter.svg
:target: https://gitter.im/ckan/chat
:alt: Chat on Gitter

**CKAN is the world’s leading open-source data portal platform**.
CKAN makes it easy to publish, share and work with data. It's a data management
system that provides a powerful platform for cataloging, storing and accessing
Expand All @@ -36,7 +40,7 @@ See the `CKAN Documentation <http://docs.ckan.org>`_ for installation instructio
Support
-------
If you need help with CKAN or want to ask a question, use either the
`ckan-dev`_ mailing list or the `CKAN tag on Stack Overflow`_ (try
`ckan-dev`_ mailing list, the `CKAN chat on Gitter`_, or the `CKAN tag on Stack Overflow`_ (try
searching the Stack Overflow and ckan-dev `archives`_ for an answer to your
question first).

Expand All @@ -47,9 +51,9 @@ If you find a potential security vulnerability please email security@ckan.org,
rather than creating a public issue on GitHub.

.. _CKAN tag on Stack Overflow: http://stackoverflow.com/questions/tagged/ckan
.. _ckan-dev: https://lists.okfn.org/mailman/listinfo/ckan-dev
.. _archives: https://www.google.com/search?q=%22%5Bckan-dev%5D%22+site%3Alists.okfn.org.
.. _GitHub Issues: https://github.com/ckan/ckan/issues
.. _CKAN chat on Gitter: https://gitter.im/ckan/chat


Contributing to CKAN
Expand All @@ -58,17 +62,33 @@ Contributing to CKAN
For contributing to CKAN or its documentation, see
`CONTRIBUTING <https://github.com/ckan/ckan/blob/master/CONTRIBUTING.rst>`_.

If you want to talk about CKAN development say hi to the CKAN developers on the
`ckan-dev`_ mailing list, in the `#ckan`_ IRC channel, or on `BotBot`_.
Mailing List
~~~~~~~~~~~~

Subscribe to the `ckan-dev`_ mailing list to receive news about upcoming releases and
future plans as well as questions and discussions about CKAN development, deployment, etc.

Community Chat
~~~~~~~~~~~~~~

If you want to talk about CKAN development say hi to the CKAN developers and members of
the CKAN community on the public `CKAN chat on Gitter`_. Gitter is free and open-source;
you can sign in with your GitHub, GitLab, or Twitter account.

The logs for the old `#ckan`_ IRC channel (2014 to 2018) can be found here:
https://github.com/ckan/irc-logs.

Wiki
~~~~

If you've figured out how to do something with CKAN and want to document it for
others, make a new page on the `CKAN wiki`_, and tell us about it on
ckan-dev mailing list.
others, make a new page on the `CKAN wiki`_ and tell us about it on the
ckan-dev mailing list or on Gitter.

.. _ckan-dev: http://lists.okfn.org/mailman/listinfo/ckan-dev
.. _#ckan: http://webchat.freenode.net/?channels=ckan
.. _CKAN Wiki: https://github.com/ckan/ckan/wiki
.. _BotBot: https://botbot.me/freenode/ckan/
.. _CKAN chat on Gitter: https://gitter.im/ckan/chat


Copying and License
Expand Down
13 changes: 12 additions & 1 deletion ckan/lib/helpers.py
Expand Up @@ -587,7 +587,7 @@ def ckan_version():

@core_helper
def lang_native_name(lang=None):
''' Return the langage name currently used in it's localised form
''' Return the language name currently used in it's localised form
either from parameter or current environ setting'''
lang = lang or lang()
locale = i18n.get_locales_dict().get(lang)
Expand All @@ -596,6 +596,17 @@ def lang_native_name(lang=None):
return lang


@core_helper
def is_rtl_language():
return lang() in config.get('ckan.i18n.rtl_languages',
'he ar fa_IR').split()


@core_helper
def get_rtl_css():
return config.get('ckan.i18n.rtl_css', '/base/css/main-rtl.css')


class Message(object):
'''A message returned by ``Flash.pop_messages()``.
Expand Down

0 comments on commit bbc3050

Please sign in to comment.