[mapguide-users] Fusion: How do I define taskPaneTitle, legendTitle, etc?

Zac Spitzer zac.spitzer at gmail.com
Wed Sep 26 00:19:20 PDT 2012


the fusion localisation only kicks if the OL localisation works

On Wed, Sep 26, 2012 at 4:56 PM, David Wilhelmsson
<david.wilhelmsson at 65nord.se> wrote:
> Hi,
>
> Unfortunately, I'm not having any success creating my own language strings.
> Here's what I've done:
>
> 1. Copy fusion/text/en.json -> fusion/text/[language code].json
> 2. Edited fusion/text/[language code].json line 1 ->
> Fusion.Strings.[language code] = {
> 3. Translated the rest of fusion/text/[language code].json
>
> 4. Copy fusion/text/en -> fusion/text/[language code]
> 5. Translated fusion/text/[language code]
>
> 6. Copy fusion/lib/OpenLayers/Lang/en.js ->
> fusion/lib/OpenLayers/Lang/[language code].js
> 7. Edited fusion/lib/OpenLayers/Lang/[language code].js line 15 ->
> OpenLayers.Lang.[language code] = {
> 8. Translate the rest of fusion/lib/OpenLayers/Lang/[language code].js
>
> 9. Restarted the MapGuide Server service (just in case)
>
> 10. Visited [fusion url]&locale=fr to test the partial french translation
> with MapGuide 2.2 -> works
> 11. Visited [fusion url]&locale=[language code] -> falls back to English and
> does not include the translated strings bundles
>
> As a test, I copied fusion/text/fr.json and fusion/text/fr from my MapGuide
> 2.2 installation to MapGuide 2.4 RC2 and visited [fusion url]&locale=fr in
> my MapGuide 2.4 RC2 installation and that also fell back to English and did
> not display the partial French translation.
>
> It feels like I'm missing a step to register the new [language code] with
> fusion so that it knows that [language code] exists. Can anyone point me in
> the right direction?
>
> Kind regards,
> Dave.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Fusion-How-do-I-define-taskPaneTitle-legendTitle-etc-tp5004258p5004494.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168


More information about the mapguide-users mailing list