html: in-dev for translations

This commit is contained in:
Cyrille L 2022-11-23 18:25:31 +01:00
parent f364a1b901
commit a3c2faf564
1 changed files with 17 additions and 10 deletions

View File

@ -20,8 +20,13 @@ import re
import check, log, domain
trans = [
[ 'Licence', 'License' ], # 0,1
[ 'Générateur', 'Generator' ], # 2,3
[ 'Licence', 'License' ], # 0
[ 'Générateur', 'Generator' ], # 1
[ 'À propos de', 'About' ], # 2
[ 'Envoyer un courriel à ', 'Send a mail to' ], # 3
[ 'Détails de la licence', 'License\'s details'], # 4
[ 'Courriel', 'Mail' ], # 5
[ 'Site web généré par', 'Website generated by']
]
#=======================================#
@ -148,7 +153,8 @@ def html_main_page(wip_html):
#--------------------
tytogen = 'https://git.a-lec.org/echolib/tyto-litterateur'
footers = '<footer id="footer">\n' + \
' <h1 id="footer-title">%s</h1>\n'%domain.domain_title + \
' <h1 id="footer-title">%s %s</h1>\n'%(
trans[2][fl], domain.domain_title) + \
' <div id="footer-infos">\n' + \
' <p id="site-about">%s<p>\n'%domain.domain_about + \
' </div>\n' + \
@ -161,26 +167,27 @@ def html_main_page(wip_html):
domain.domain_title, domain.domain_url
) + \
' </li>\n' + \
' <li class="site-list">License: \n' + \
' <a id="site-mail" href="mailto:%s"\n'%domain.domain_mail +\
' title="Contact %s">%s</a>\n'%(
domain.domain_title, domain.domain_mail
' <li class="site-list">%s: \n'%trans[5][fl] + \
' <a id="site-mail" href="mailto:%s"\n'%(
domain.domain_mail) +\
' title="%s %s">%s</a>\n'%(trans[3][fl],
domain.domain_title, domain.domain_mail
) + \
' </li>\n' + \
' <li class="site-list">%s: \n'%trans[0][fl] + \
' <a id="licurl" href="%s"\n'%domain.domain_lic_url +\
' title="License informations">%s</a>\n'%(
' title="%s">%s</a>\n'%(trans[4][fl],
domain.domain_license
) + \
' </li>\n' + \
' <li class="site-list"><abbr title="Really Simple Syndication">RSS/<abbr>: \n' + \
' <li class="site-list"><abbr title="Really Simple Syndication">RSS</abbr>: \n' + \
' <a id="site-rss" href="/rss.xml"\n' +\
' title="Syndication %s">/rss.xml</a>\n'%domain.domain_title + \
' </li>\n' + \
' <li class="site-list">%s: \n'%trans[1][fl] + \
' <a id="tytogen" href="%s"\n'%tytogen +\
' type="application/rss+xml"\n' + \
' title="Website generated by Tyto - Littérateur">Tyto - Littérateur</a>\n' + \
' title="%s Tyto - Littérateur">Tyto - Littérateur</a>\n'%trans[6][fl] + \
' </li>\n' + \
' </ul>\n' + \
' </div>\n' + \