Skip to content
Permalink
Browse files

cannot use locale-based (#1590)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 18, 2015
1 parent adc727f commit 5c9045352408a3945dea0d30d32c16ad37559662
Showing with 4 additions and 5 deletions.
  1. +1 −1 nikola/plugins/task/galleries.py
  2. +2 −2 nikola/plugins/task/listings.py
  3. +1 −1 nikola/post.py
  4. +0 −1 requirements.txt
@@ -235,7 +235,7 @@ def gen_tasks(self):
folders.append((folder, ft))

context["folders"] = natsort.natsorted(
folders, alg=natsort.ns.L | natsort.ns.F | natsort.ns.IC)
folders, alg=natsort.ns.F | natsort.ns.IC)
context["crumbs"] = crumbs
context["permalink"] = self.site.link("gallery", gallery, lang)
context["enable_comments"] = self.kw['comments_in_galleries']
@@ -144,9 +144,9 @@ def render_listing(in_name, out_name, input_folder, output_folder, folders=[], f
'permalink': permalink,
'lang': self.kw['default_lang'],
'folders': natsort.natsorted(
folders, alg=natsort.ns.L | natsort.ns.F | natsort.ns.IC),
folders, alg=natsort.ns.F | natsort.ns.IC),
'files': natsort.natsorted(
files, alg=natsort.ns.L | natsort.ns.F | natsort.ns.IC),
files, alg=natsort.ns.F | natsort.ns.IC),
'description': title,
'source_link': source_link,
}
@@ -188,7 +188,7 @@ def __init__(
for lang in self.translated_to:
self._tags[lang] = natsort.natsorted(
list(set([x.strip() for x in self.meta[lang]['tags'].split(',')])),
alg=natsort.ns.L | natsort.ns.F | natsort.ns.IC))
alg=natsort.ns.F | natsort.ns.IC)
self._tags[lang] = [t for t in self._tags[lang] if t]
if 'draft' in self._tags[lang]:
is_draft = True
@@ -12,4 +12,3 @@ logbook>=0.7.0
blinker>=1.3
setuptools>=5.4.1
natsort>=3.5.2
PyICU>=1.8

0 comments on commit 5c90453

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