Andy Black wrote: > I'm trying to figure out how to localize our custom configuration (see > http://www.xlingpaper.org/). I'd like to merely augment the existing > XXE translations (at least Spanish and French) to also have > Spanish/French equivalents for our XLingPaper menu items, new file > templates, etc. I've been studying the configure.pdf documentation, > especially the translation section, but so far I have not had any > success in implementing anything. > > For example, within my XLingPap.xxe file, I have > > <include > location="configuration/templates.xml" > ></include > > > > The configuration/templates.xml file includes > > <cfg:template location="../templates/XLingPapTemplate.xml" > name="Paper (Section-oriented)"/> > > How do I refer to this in my properties file? I've tried adding an id > attribute to the above to give: > > <cfg:template id="paperTemplate" > location="../templates/XLingPapTemplate.xml" name="Paper > (Section-oriented)"/> > > and then created an XLingPap_es.properties file with this in it: > > # Spanish localizations for XLingPaper > # me 05/02/2011 > paperTemplate=ponencia (con secciones) > > I put this XLingPap_es.properties file in the same directory as the > XLingPap.xxe file. > > To my XLingPap.xxe file, I added the following > > <translation location="XLingPap_es.properties"/> > > I then set XXE to use the "español (México)" localization and restarted it. > > When I go to File / New, the XLingPaper section still has the English > description. > > I've tried including the XLingPap_es.properties file in the > es_translation.jar file, among many other things, but so far I > (obviously) have not figured out how to get this to work. If it makes > any difference, I've been trying this on a Windows XP machine, using > XXE 4.8.0 bundled with the private Java runtime. > > Any pointers you can give me will be greatly appreciated.
Standalone MathML document example: mathml_config/standalone/mathml.xxe --- <?xml version="1.0" encoding="ISO-8859-1"?> <configuration name="MathML" mimeType="application/mathml+xml" xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:mml="http://www.w3.org/1998/Math/MathML"> <translation location="mathml_en.properties" /> ... <template location="template/block.mml" name="Math Block" /> <template location="template/inline.mml" name="Inline Math" /> ... </configuration> --- The configuration references the .properties file containing the messages in the reference language. Here it's "en". mathml_config/standalone/mathml_en.properties --- template.block=Math Block template.inline=Inline Math --- The .properties file containing the messages in the reference language is used to map messages (e.g. "Math Block") to IDs (e.g. "template.block") mathml_config/standalone/mathml_fr.properties --- template.block=Bloc de Math template.inline=Ligne de Math --- The .properties file containing the messages in another language (here it's "fr") is required to use the same IDs. This file must not be referenced from the .xxe configuration file. Reference: http://www.xmlmind.com/xmleditor/_distrib/doc/configure/translation.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

