Localizing SVG Graphics

Taking the concept of dynamic graphics one step further, you can “localize” your graphics based upon a user's preferred language. By designing your textual content to draw upon an external data source, your graphic can appear in one of the many languages to which your content has been translated.

For instance, if both English- and Spanish-speaking users frequent your SVG-designed site, you could run a detection script that determines the operating system language of the user. If the user is Spanish-speaking, the graphical navigation bars and page titles could change to accommodate his familiar language.

Such a possibility is quite a selling point for designing your graphical content in SVG. Database-driven content solutions ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.