[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r21793: {check} switch to html characters; get rid of the flags (check/trunk/cgi-bin)
Author: arma
Date: 2010-03-03 23:14:10 +0000 (Wed, 03 Mar 2010)
New Revision: 21793
Modified:
check/trunk/cgi-bin/TorCheck.py
Log:
switch to html characters; get rid of the flags
Modified: check/trunk/cgi-bin/TorCheck.py
===================================================================
--- check/trunk/cgi-bin/TorCheck.py 2010-03-03 22:58:16 UTC (rev 21792)
+++ check/trunk/cgi-bin/TorCheck.py 2010-03-03 23:14:10 UTC (rev 21793)
@@ -85,15 +85,15 @@
locale_descriptions = {
'de' : 'Deutsch',
'en_US' : 'English',
- 'es' : 'espaÃol',
+ 'es' : 'español',
'fa_IR' : 'fa_IR',
- 'fr' : 'franÃais',
+ 'fr' : 'français',
'it_IT' : 'Italiano',
- 'ja' : '(Nihogo)',
+ 'ja' : '日本語 (Nihongo)',
'pl' : 'polski',
- 'pt_BR' : 'PortuguÃs',
- 'ru' : 'ÐÑÑÑÐÐÐ (Russkij)',
- 'zh_CN' : '(Simplified Chinese)' }
+ 'pt_BR' : 'Português',
+ 'ru' : 'Русский (Russkij)',
+ 'zh_CN' : '中文(简)' }
return locale_descriptions
def getLocaleName(lang):
@@ -265,13 +265,14 @@
# We want to display little pretty images so users can choose their language
locales = getLocales()
+ req.write('<p>This page is also available in the following languages:')
+ req.write('</p><p>')
for item in sorted(locales.keys()):
- req.write('<a href="?lang=%s">' % item )
- req.write('<acronym title="%s">' % locales[item] )
- req.write('<img src="images/%s.png" ' % item )
- req.write('alt="%s" width="24" height="16">' % item )
- req.write('</acronym>')
- req.write('</a> ')
+ req.write('<a href="?lang=%s" ' % item )
+ req.write('hreflang="%s" ' % item )
+ req.write('lang="%s" rel="alternate">' % item )
+ req.write('%s</a> ' % locales[item] )
+ req.write('</p>')
req.write('</tt>')
req.write('</small>')
req.write('</center>\n')