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

Unified Diff: cms/utils.py

Issue 29317015: Issue 2625 - [cms] Crowdin synchronisation script (Closed)
Patch Set: Addressed Wladimir's feedback Created July 2, 2015, 12:29 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
« cms/sources.py ('K') | « cms/sources.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/utils.py
diff --git a/cms/utils.py b/cms/utils.py
index 0c7b8bea7e44da7c7b776acf6c4830c4010d927d..d79255554aca6ac5507871bd2ba80e475e82996f 100644
--- a/cms/utils.py
+++ b/cms/utils.py
@@ -17,7 +17,8 @@
from cms.converters import converters, TemplateConverter
-def get_page_params(source, locale, page, format=None, site_url_override=None):
+def get_page_params(source, locale, page, format=None, site_url_override=None,
+ record_default_strings=None):
Wladimir Palant 2015/07/08 23:11:09 Nit: This should be record_default_string as the c
kzar 2015/07/11 19:21:18 Done.
# Guess page format if omitted, but default to Markdown for friendlier exceptions
if format is None:
for format in converters.iterkeys():
@@ -33,6 +34,7 @@ def get_page_params(source, locale, page, format=None, site_url_override=None):
"page": page,
"pagedata": source.read_page(page, format),
"config": source.read_config(),
+ "record_default_strings": record_default_strings,
}
localefile = page
@@ -77,8 +79,10 @@ def get_page_params(source, locale, page, format=None, site_url_override=None):
return params
-def process_page(source, locale, page, format=None, site_url_override=None):
+def process_page(source, locale, page, format=None, site_url_override=None,
+ record_default_strings=None):
return TemplateConverter(
- get_page_params(source, locale, page, format, site_url_override),
+ get_page_params(source, locale, page, format,
+ site_url_override, record_default_strings),
key="templatedata"
)()
« cms/sources.py ('K') | « cms/sources.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld