Search the web
Sign In
New User? Sign Up
SVG-Mobile
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem in displaying multi-lingual text on devices!   Message List  
Reply | Forward Message #412 of 438 |
Re: [SVG-Mobile] Problem in displaying multi-lingual text on devices!

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




Tue Apr 11, 2006 3:43 pm

nantonos_aedui
Offline Offline
Send Email Send Email

Forward
Message #412 of 438 |
Expand Messages Author Sort by Date

I am developing buttons with multilingual support (swedish, english) for SVGT. The idea is the button text should adapt itself according to the locale...
Salman
mailsalmanahmed
Offline Send Email
Apr 11, 2006
3:26 pm

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>...
Chris Lilley
nantonos_aedui
Offline Send Email
Apr 11, 2006
3:43 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help