mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
better log info for doubls slug/empty slug
This commit is contained in:
parent
0441127c41
commit
9c99db7119
1 changed files with 4 additions and 0 deletions
|
|
@ -164,9 +164,13 @@ def process_translations(content_list):
|
||||||
len_ = len(default_lang_items)
|
len_ = len(default_lang_items)
|
||||||
if len_ > 1:
|
if len_ > 1:
|
||||||
warning(u'there are %s variants of "%s"' % (len_, slug))
|
warning(u'there are %s variants of "%s"' % (len_, slug))
|
||||||
|
for x in default_lang_items:
|
||||||
|
warning(' %s' % x.filename)
|
||||||
elif len_ == 0:
|
elif len_ == 0:
|
||||||
default_lang_items = items[:1]
|
default_lang_items = items[:1]
|
||||||
|
|
||||||
|
if not slug:
|
||||||
|
warning('empty slug for %r' %( default_lang_items[0].filename,))
|
||||||
index.extend(default_lang_items)
|
index.extend(default_lang_items)
|
||||||
translations.extend(filter(
|
translations.extend(filter(
|
||||||
lambda x: x not in default_lang_items,
|
lambda x: x not in default_lang_items,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue