Specifying Non-English Resource Files and Fonts

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:
  1. 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.
  2. 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.
  3. Name your resources file MVAResources.properties.
  4. Store your resources file in the same directory as either the HTML output file or the sas.graph.metaviewapplet.jar file.
  5. In the SAS program, remove the LOGRESOURCES parameter specification.
  6. 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.
  7. Run your program and test your Web output.
For information about specifying applet parameters, see Specifying Applet Parameters Using the ODS PARAMETERS= Statement. For reference information about the Metaview applet parameters, see Metaview Applet Parameters.