[mapguide-trac] #1915: Labels failed to display for flexible
web layout
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Jan 16 04:13:28 EST 2012
#1915: Labels failed to display for flexible web layout
-----------------------+----------------------------------------------------
Reporter: liuar | Owner: liuar
Type: defect | Status: new
Priority: low | Milestone:
Component: General | Version: 2.1.0
Severity: trivial | Keywords:
External_id: |
-----------------------+----------------------------------------------------
Comment(by liuar):
This is caused by the cache in PhpLocalizer.cpp in php api. It uses a map
to cache localized texts and uses the local as the key. However, the local
for flexible web layout and basic web layout are both "en". That means if
user loads basic web layout before the flexible weblayout, then the
localized string for flexible web layout will never be cached and
displyed, vice versa. [[BR]]
[[BR]]
To resolve the problem, I changes the key of the caching structure from
local to LocalizationPath+Local, and both localized strings for basic web
layout and flexible web layout will be cached.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1915#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list