LANGUAGES_TEMPLATE = '''
<p id="languages">
%(language_available)s
- <br/>
+ <br>
%(browser_language)s
</p>
'''
rel_link = re.sub (r'out-www/.*$', '', prefix)
rel_link = re.sub (r'[^/]*/', '../', rel_link)
if 'input/regression' in prefix:
- indexfile = "Documentation/devel"
+ indexfile = "Documentation/devel/index"
else:
indexfile = "index"
s = docindex_link_re.sub ('href="' + rel_link + indexfile + '.html\"', s)
# in LANG doc index: don't rewrite .html suffixes
# as not all .LANG.html pages exist;
# the doc index should be translated and contain links with the right suffixes
- if prefix == 'Documentation/out-www/index':
+ # idem for NEWS
+ if prefix in ('Documentation/out-www/index', 'Documentation/topdocs/out-www/NEWS'):
page_flavors[file_name] = [lang_ext, s]
elif lang_ext == '':
page_flavors[file_name] = [lang_ext, s]