Skip to content

Commit 157daef

Browse files
committed
Merge pull request django-cms#2290 from ArtisAvotins/develop
Fixed a typo in both documentation and code. The word 'labes' is used instead of 'labels'
2 parents ee0a37f + a224be4 commit 157daef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cms/test_utils/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def configure(db_url, **extra):
205205
'plugin_modules': {
206206
'LinkPlugin': 'Different Grouper'
207207
},
208-
'plugin_labes': {
208+
'plugin_labels': {
209209
'LinkPlugin': 'Add a link'
210210
}
211211
},

cms/utils/placeholder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_toolbar_plugin_struct(plugins_list, slot, page, parent=None):
1414
The dictionary contains the label, the classname and the module for the
1515
plugin.
1616
Names and modules can be defined on a per-placeholder basis using
17-
'plugin_modules' and 'plugin_labes' attributes in CMS_PLACEHOLDER_CONF
17+
'plugin_modules' and 'plugin_labels' attributes in CMS_PLACEHOLDER_CONF
1818
1919
:param plugins_list: list of plugins valid for the placeholder
2020
:param slot: placeholder slot name
@@ -35,7 +35,7 @@ def get_toolbar_plugin_struct(plugins_list, slot, page, parent=None):
3535
continue
3636

3737
modules = get_placeholder_conf("plugin_modules", slot, template, default={})
38-
names = get_placeholder_conf("plugin_labes", slot, template, default={})
38+
names = get_placeholder_conf("plugin_labels", slot, template, default={})
3939
main_list.append({'value': plugin.value,
4040
'name': force_unicode(names.get(plugin.value, plugin.name)),
4141
'module': force_unicode(modules.get(plugin.value, plugin.module))})

docs/getting_started/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Example::
9696
'plugin_modules': {
9797
'LinkPlugin': 'Extra',
9898
}.
99-
'plugin_labes': {
99+
'plugin_labels': {
100100
'LinkPlugin': 'Add a link',
101101
}.
102102
},
@@ -139,7 +139,7 @@ plugins, as shown above with ``base.html content``.
139139
A dictionary of plugins and custom module names to group plugin in the
140140
toolbar UI.
141141

142-
``plugin_labes``
142+
``plugin_labels``
143143
A dictionary of plugins and custom labels to show in the toolbar UI.
144144

145145
``child_classes``

0 commit comments

Comments
 (0)