Skip to content
Permalink
Browse files

Improved comment.

  • Loading branch information
felixfontein committed May 25, 2017
1 parent aa678b9 commit a4c0a4a2b8731cee9119084cbf2e7dd6babc941d
Showing with 4 additions and 3 deletions.
  1. +4 −3 nikola/utils.py
@@ -1977,9 +1977,10 @@ def has_translations(self, classification, lang):
"""Return whether we know about the classification in that language.
Note that this function returning ``True`` does not mean that
``get_translations`` returns a non-empty list, but only that
this classification was explicitly added with ``add_translation``
at some point.
``get_translations`` returns a non-empty dict or that
``get_translations_as_list`` returns a non-empty list, but only
that this classification was explicitly added with
``add_translation`` at some point.
"""
return self._data[lang].get(classification) is not None

0 comments on commit a4c0a4a

Please sign in to comment.
You can’t perform that action at this time.