On Tuesday, April 11, 2006, 5:25:24 PM, Salman wrote:
S> I am developing buttons with multilingual support (swedish, english)
S> for SVGT. The idea is the
S> button text should adapt itself according to the locale langauage of
S> the mobile.
S> I tested this using systemLanguage feature in switch element as
S> follows.
S> <g font-size="25pt">
S> <switch>
S> <g systemLanguage="en-UK">
S> <text x="10" y="30">English.</text>
S> </g>
S> <g systemLanguage="sv">
S> <text x="10" y="30">Svensksa.</text>
S> </g>
S> </switch>
S> </g>
Note that if the users preferred language is en-us, or Norwegian,or basically
anything other than UK English (which is generally written en-gb) and Swedish,
they won't see anything. Having a fallback case on your switch is probably a
good idea here.
S> I used OpenWave mobile Simulator V7 who support displaying SVGT
S> content. Text in the appropriate language is displayed based on the
S> current language of mobile simulator. It works in IE too. However all
S> SE K750/K600/V800 only display swedish text even after setting
S> English as the phone language. Any thoughts!
Its possible that the binary of the svg player is hard coded to a particular
language and does not react to OS changes. Have you sent mail to Ikivo about
this?
S> Is it the problem with Sony Ericsson devices or the SVG player?
S> Below is a sample file for reference.
S> Regards,
S> Salmi
S> =============================================================
S> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
S> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
S> <svg width="375px" height="200px" viewBox="0 0 375 200">
S> <title>Use of switch element</title>
S> <g font-size="25pt">
S> <switch>
S>
S> <g systemLanguage="en-USA">
that should be en-US by the way
S> <text x="10" y="30">English USA</text>
S> </g>
S>
S> <g systemLanguage="en-UK">
and that should be en-GB
S> <text x="10" y="30">English UK</text>
S> </g>
S> <g systemLanguage="en">
S> <text x="10" y="30">English</text>
S> </g>
S> <g systemLanguage="sv">
S> <text x="10" y="30">Svenksa</text>
S> </g>
add
<g>
<text x="10" y="30">No language set</text>
</g>
S> </switch>
S> </g>
S> </svg>
S> ===============================================================
S>
S> Yahoo! Groups Links
S>
--
Chris Lilley mailto:chris@...
Chair, W3C SVG Working Group
W3C Graphics Activity Lead
Co-Chair, W3C Hypertext CG