Changes between Version 17 and Version 18 of gsoc2011
- Timestamp:
- May 26, 2011, 9:43:06 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
gsoc2011
v17 v18 12 12 ||'''2[[br]] runtime substitution''' ||---||DATA "shapes/rivers_%language%.shp" [[br]] [[br]] with ''language'' being a request parameter or global setting || already [http://mapserver.org/cgi/runsub.html implemented] in mapserver for certain parameters [[br]] [[br]] all required substitution scenarios (parameters) covered? || 13 13 ||'''3[[br]] externalization''' [[br]] [[br]] using external files [[br]] ''lang.eng'' [[br]] ''lang.ger'' || "wms_title" "IDC_TITLE" [[br]] [[br]] IDC_TITLE=my title [[br]] IDC_TITLE=mein titel || DATA "IDC_SHAPES_RIVERS" [[br]] [[br]] IDC_SHAPES_RIVERS=shapes/rivers_eng.shp [[br]] IDC_SHAPES_RIVERS=shapes/rivers_ger.shp [[br]] or [[br]] IDC_SHAPES_RIVERS=shapes/eng/rivers.shp [[br]] IDC_SHAPES_RIVERS=shapes/ger/rivers.shp|| common way of internationalization, [[br]] many tools available to externalize strings [[br]] [[br]] at which time the externalized value should be resolved [[br]] (while parsing mapfile, [[br]] during msApplySubstitutions, ...)?|| 14 ||'''4[[br]] merge''' [[br]] [[br]] using INCLUDE ||---|| ''standard.map'' [[br]] LAYER [[br]]... [[br]] NAME "rivers" [[br]] INCLUDE "rivers.map" [[br]] ... [[br]] [[br]] ''eng/rivers.map'' [[br]] DATA "shapes/rivers_eng.shp" [[br]] [[br]] ''ger/rivers.map'' [[br]] DATA "shapes/rivers_ger.shp" || mostly [http://mapserver.org/mapfile/Include.html implemented] in mapserver [[br]] [[br]] based on current languange the corresponding map file needs to be included [[br]] [[br]] only usable for whole "blocks" [[br]] (like WEB/METADATA section)||14 ||'''4[[br]] merge''' [[br]] [[br]] using INCLUDE ||---|| ''standard.map'' [[br]] LAYER [[br]]... [[br]] NAME "rivers" [[br]] INCLUDE "rivers.map" [[br]] ... [[br]] [[br]] ''eng/rivers.map'' [[br]] DATA "shapes/rivers_eng.shp" [[br]] [[br]] ''ger/rivers.map'' [[br]] DATA "shapes/rivers_ger.shp" || mostly [http://mapserver.org/mapfile/Include.html implemented] in mapserver [[br]] [[br]] based on current languange the corresponding [[br]] map file needs to be included [[br]] [[br]] only usable for whole "blocks" [[br]] (like WEB/METADATA section)|| 15 15 ||'''5[[br]] override''' [[br]] [[br]] override certain values [[br]] of the original mapfile [[br]] e.g. with ''override.ger''|| "wms_title" "my title" !#1 [[br]] [[br]] 1="mein titel" ||LAYER [[br]]... [[br]] NAME "rivers" [[br]] DATA "shapes/rivers_eng.shp" !#2 [[br]] ... [[br]] [[br]] 2="shapes/rivers_ger.shp"|| identification of "key" e.g. by comment like !#1 and !#2[[br]] [[br]] other option could use XPath-like syntax [[br]] e.g. [[br]] WEB/METADATA/wms_title="mein titel" [[br]] LAYER[rivers]/DATA="shapes/rivers_ger.shp"|| 16 16