Skip to content

Commit

Permalink
Disabling also_create_classifications_from_other_languages for tags a…
Browse files Browse the repository at this point in the history
…nd categories, and deprecating the setting (getnikola#2785).
  • Loading branch information
felixfontein committed Jun 16, 2017
1 parent 7a35f79 commit 4554f76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nikola/plugin_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,13 @@ class Taxonomy(BasePlugin):
Whether post lists resp. indexes should be created for empty
classifications.
also_create_classifications_from_other_languages = True:
also_create_classifications_from_other_languages = False:
Whether to include all classifications for all languages in every
language, or only the classifications for one language in its language's
pages.
WARNING: This is deprecated and will be removed eventually.
add_other_languages_variable = False:
In case this is `True`, each classification page will get a list
of triples `(other_lang, other_classification, title)` of classifications
Expand Down Expand Up @@ -634,7 +636,7 @@ class Taxonomy(BasePlugin):
apply_to_pages = False
minimum_post_count_per_classification_in_overview = 1
omit_empty_classifications = False
also_create_classifications_from_other_languages = True
also_create_classifications_from_other_languages = False # deprecated
add_other_languages_variable = False
path_handler_docstrings = {
'taxonomy_index': '',
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ClassifyCategories(Taxonomy):
apply_to_pages = False
minimum_post_count_per_classification_in_overview = 1
omit_empty_classifications = True
also_create_classifications_from_other_languages = True
also_create_classifications_from_other_languages = False
add_other_languages_variable = True
path_handler_docstrings = {
'category_index': """A link to the category index.
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ClassifyTags(Taxonomy):
apply_to_posts = True
apply_to_pages = False
omit_empty_classifications = True
also_create_classifications_from_other_languages = True
also_create_classifications_from_other_languages = False
add_other_languages_variable = True
path_handler_docstrings = {
'tag_index': """A link to the tag index.
Expand Down

0 comments on commit 4554f76

Please sign in to comment.