From: Michael S. Z. <ms...@go...> - 2003-11-13 14:13:08
|
On Thursday 13 November 2003 06:15 am, Sylvie Greverend wrote: > It is a big usability error to assign a language with a country flag. Also, many countries have only one flag but multiple national languages. > I don't think it is a good idea to put this kind of mistake in tiki, if we > want to put consider as good multilingual software > Sylvie > > > -----Original Message----- > > From: tik...@li... > > [mailto:tik...@li...]On Behalf Of > > mar...@us... > > Sent: Wednesday, November 12, 2003 11:14 PM > > To: tik...@li... > > Subject: [Tikiwiki-cvs] tiki/modules mod-switch_lang2.php,NONE,1.1 > > > > > > Update of /cvsroot/tikiwiki/tiki/modules > > In directory sc8-pr-cvs1:/tmp/cvs-serv20621/modules > > > > Added Files: > > mod-switch_lang2.php > > Log Message: > > An alternative module-switch_lang2 using the flags. > > > > --- NEW FILE: mod-switch_lang2.php --- > > <?php > > // tiki-setup has already set the $language variable > > $languages = array(); > > $languages = $tikilib->list_languages(); > > > > $langs = array(); > > foreach($languages as $lingua) { > > switch($lingua["value"]) { > > case 'cs': $flag = "img/flags/Czech_Republic.gif"; break; > > case 'da': $flag = "img/flags/Denmark.gif"; break; > > //case 'de': $flag = "img/flags/Germany.gif"; break; > > case 'de': $flag = "img/flags/German.gif"; break; // special flag > > //case 'en': $flag = "img/flags/United_Kingdom.gif"; break; > > case 'en': $flag = "img/flags/English.gif"; break; // special > > flag case 'es': $flag = "img/flags/Spain.gif"; break; > > //case 'el': $flag = "img/flags/Greek.gif"; break; > > case 'fr': $flag = "img/flags/France.gif"; break; > > case 'he': $flag = "img/flags/Israel.gif"; break; > > case 'it': $flag = "img/flags/Italy.gif"; break; > > case 'ja': $flag = "img/flags/Japan.gif"; break; > > case 'nl': $flag = "img/flags/Netherlands.gif"; break; > > case 'no': $flag = "img/flags/Norway.gif"; break; > > case 'pl': $flag = "img/flags/Poland.gif"; break; > > case 'ru': $flag = "img/flags/Russia.gif"; break; > > case 'sv': $flag = "img/flags/Sweden.gif"; break; > > case 'tw': $flag = "img/flags/Taiwan.gif"; break; > > case 'cn': $flag = "img/flags/China.gif"; break; > > default: $flag = "img/flags/Other.gif"; > > } > > $tmp = array(); > > $tmp["value"] = $lingua["value"]; > > $tmp["name"] = $lingua["name"]; > > $tmp["flag"] = $flag; > > $langs[] = $tmp; > > } > > $smarty->assign_by_ref('languages', $langs); > > ?> > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > Tikiwiki-cvs mailing list > > Tik...@li... > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > Tikiwiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel |