diff options
author | Julien Rioux <jrioux@physics.utoronto.ca> | 2012-03-21 10:46:03 -0400 |
---|---|---|
committer | Julien Rioux <jrioux@physics.utoronto.ca> | 2012-03-26 08:05:21 -0400 |
commit | 76249556809f7a916e9f2bdbe38d7bfc89a2e99d (patch) | |
tree | 21926133c6466fd18d60969a377f53d458c752f0 /scripts | |
parent | 2d28acb86f2e7b162dbdfa94b38544e3319f5a42 (diff) |
A new home for browser-language (issue 2412).
Copy the browser-language pages from origin/archive/web into
Documentation/misc and rewrite the links. Their new home is
under http://lilypond.org/website/misc.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/website_post.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index 129c1217d3..c60e3cdfcf 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -111,10 +111,10 @@ def addLangExt(filename, lang, ext): return text def makeFooter (filename, currentLang): - # TODO: add link to automatic language selection? - # still need to include this page in the new webpages somewhere footer = '''<p id="languages"> %(other)s: %(lst)s. +<br> +%(browser_language)s </p> ''' def link (lang): @@ -124,6 +124,9 @@ def makeFooter (filename, currentLang): return str % locals () lst = ', '.join ([link (lang) for lang in langs if lang != currentLang]) other = _ ('Other languages', currentLang) + browser_lang = _ ('About <a href="%s">automatic language selection</a>.', currentLang) + browser_language_url = "http://www.lilypond.org/website/misc/browser-language" + browser_language = browser_lang % browser_language_url return footer % locals () def getLocalHref(line): |