<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, that is what I am talking about.<br>
I have not used WebLayouts, as the viewer is very cumbersome to tweak
beyond the settings avalible in the WebLayout setup.<br>
You can do it runtime, on the actual layout, instead of using the
template approach.<br>
The placeholders would then be the English words.<br>
<br>
I have built an API that allows typed access to the WebLayout, which
will make this task easy:<br>
<tt><br>
WebLayout layout = con.GetWebLayout(...);<br>
foreach(UIItemType button in layout.ContextMenu.MenuItem)<br>
if (button as CommandItemType != null)<br>
(button as CommandItemType).Command = TranslateString((button as
CommandItemType).Command);<br>
con.SaveResource(layout);<br>
</tt><br>
The API is for .Net only.<br>
<a class="moz-txt-link-freetext" href="http://code.google.com/p/mapstudioos/wiki/HowToUseMapGuideAPI">http://code.google.com/p/mapstudioos/wiki/HowToUseMapGuideAPI</a><br>
<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Jim O'Leary skrev:
<blockquote cite="mid:16420567.post@talk.nabble.com" type="cite">
<pre wrap="">Kenneth
Are you talking about dynamically generating a web layout by opening a web
layout XML file with placeholdrs in it, interpolating the strings for the
given language, and writing it to the session repository? Have you done any
work on this?
Thanks
Kenneth, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Ok.
I guess it would be simple to write a small app that loads the weblayot
xml, translates the fields, and writes it into the session repository.
Thanks for you reply.
Regards, Kenneth, GEOGRAF A/S
Chris Claydon wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Unfortunately there's no way to do this yet. You'll need to create a
copy of your weblayout, and localize the strings it contains.
Chris.
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: May 25, 2007 5:53 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Localizing menus and toolbar
Is there a way to localize the toolbar and menu's?
The current localizations work fine (except for the API default locale
problem), but only allows localization of "MapGuide" items, and not the
userdefined items. I would like to use a similar approach for having
multiple languages for the same WebLayout.
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
-----
Jim O&#8217;Leary
Technical
Consultant
Pacific Alliance
Technologies
2nd Floor, 24 East 4th Ave, Vancouver
BC, Canada
V5T1E8
TEL 604.676.6000 TOL 877.691.9171 FAX 604.682.0962
WEB <a class="moz-txt-link-freetext" href="http://www.pat.ca/">http://www.pat.ca/</a> <a class="moz-txt-link-abbreviated" href="http://www.pat.ca">www.pat.ca</a>
</pre>
</blockquote>
</body>
</html>