Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/bin/generate_static_pages.py

Issue 29337938: Issue 2992 - Localise pages with no strings (Closed)
Patch Set: Created March 8, 2016, 2:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/bin/generate_static_pages.py
diff --git a/cms/bin/generate_static_pages.py b/cms/bin/generate_static_pages.py
index 3df7882c6e2e09c558dbc05405de80f1f6443823..5cc9a73a699a414ff0260109da1fc45380bc9a59 100644
--- a/cms/bin/generate_static_pages.py
+++ b/cms/bin/generate_static_pages.py
@@ -92,7 +92,7 @@ def generate_pages(repo, output_dir):
for locale in locales:
if locale == defaultlocale:
pagelist.add((locale, page))
- elif source.has_locale(locale, page):
+ else:
params = get_page_params(source, locale, page, format)
if params["translation_ratio"] >= MIN_TRANSLATED:
pagelist.add((locale, page))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld