###### Translation data, move out, see create-weblinks-itexi.py
translations = {
+ 'cs': {
+ 'English': 'Česky',
+ 'Other languages': 'Jiné jazyky',
+ },
'de': {
'English': 'Deutsch',
'Other languages': 'Andere Sprachen',
'Other languages': 'Altre lingue',
},
'ja': {
- 'English': 'Japanese',
+ 'English': '日本語',
'Other languages': '他の言語',
},
'nl': {
'English': 'Nederlands',
'Other languages': 'Andere talen',
},
+ 'zh': {
+ 'English': '中文',
+ 'Other languages': '其它语言',
+ },
}
# needs at least: make -C po or make- C Documentation/po
### alter links as appropriate
link = getLocalHref(line)
if (link != ""):
- # quesitonable
- if (link.endswith(".html")):
- langlink = addLangExt(link[:-5], lang, "html")
- line = line.replace(link, langlink)
- if (link.endswith(".pdf")):
- langlink = addLangExt(link[:-4], lang, "pdf")
- line = line.replace(link, langlink)
+ # questionable
+ if (not link.startswith("../doc/")):
+ if (link.endswith(".html")):
+ langlink = addLangExt(link[:-5], lang, "html")
+ line = line.replace(link, langlink)
+ if (link.endswith(".pdf")):
+ langlink = addLangExt(link[:-4], lang, "pdf")
+ line = line.replace(link, langlink)
### add google tracker header
if (line.find("</head>") >= 0):
outfile.write("""<!-- Google tracking !-->