Generating Interactive Metagraphics Output |
The Metaview Applet supports Java 1.02, which is good in that it runs in most browsers. Unfortunately, Java 1.02 does not support the use of resource files and fonts, which would enable the automated use of translated text and localized formats as supported by Java 1.2. To overcome this limitation, the Metaview Applet enables you to name a resource file and a resource font by specifying applet parameters. In this resource file you can hard-code translated versions of the text that the Metaview Applet uses.
Follow these steps to manually translate the text in the Metaview Applet:
Specify the LOGRESOURCES parameter in your SAS job, generate the HTML, and view it in a browser. (See Metaview Applet Parameters.) The Metaview Applet will then write its tag/value pairs to the Java console.
Copy the tag/value pairs that you want to translate out of the Java console and paste them into your resources file. Then translate those values to your language. You do not need to translate all of the tag/value pairs. The defaults will be used where translations are not provided.
Store your resources file in the same directory as either the HTML output file or the sas.graph.metaviewapplet.jar file.
In the SAS program, remove the LOGRESOURCES parameter specification.
If your resources file requires a non-English text font, then specify that font as the value of the parameter RESOURCESFONTNAME. To display this font, your Web audience must have this font installed.
For information on specifying applet parameters, see Specifying Applet Parameters Using the ODS PARAMETERS= Statement. For reference information on the Metaview Applet parameters, see Metaview Applet Parameters.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.