Opened 13 years ago
Closed 13 years ago
#1915 closed defect (fixed)
Labels failed to display for flexible web layout
Reported by: | liuar | Owned by: | liuar |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | General | Version: | 2.1.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
- Restart web extension to clear the cache.
- Open a basic web layout
- Open a flexible web layout and open a widget like Theme or FeatureInfo
Result: Labels on taskpane are not displayed.
Note:
See TracTickets
for help on using tickets.
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.
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.