Overview:
By default, all HTML5 viewers will use translation strings in the Mapping.en-US.json.js file found in in the viewer's Locales directory (usually C:\inetpub\wwwroot\Html5Viewer\Resources\Locales). It is possible to configure a HTML5 viewer to use a different locale file so it will display different text than the default “Search…” in the global search box.
Solution:
By default, all HTML5 viewers will use translation strings in the Mapping.en-US.json.js file found in in the viewer's Locales directory (usually C:\inetpub\wwwroot\Html5Viewer\Resources\Locales). It is possible to configure a HTML5 viewer to use a different locale file so it will display different text than the default “Search…” in the global search box.
Solution:
Instructions
- Browse to C:\inetpub\wwwroot\Html5Viewer\Resources\Locales and make a copy of Mapping.en-US.json.js. Make a note of the name
- Optionally move your copy to the Sites folder for the target site, or to a folder accessible for web hosting.
- Edit the new file and search for:
"language-search-placeholder": "Search...",
and replace "Search..." with the text you would like to appear in your viewer. - Save the file.
- Browse to: C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\[YOURSITENAME]\Viewers\[YOURVIEWERNAME]\VirtualDirectory\Resources\Config\Default and edit the Desktop.json.js file.
- Configure the uri for your updated locale file by editing the following section:
"id": "Mapping", "uri": "Resources/Compiled/Mapping.js", "locales": [ { "locale": "en-US", "uri": "Resources/Locales/[NEW FILE NAME FROM STEP 2].json.js" } ]
- Repeat steps 5 and 6 for Tablet.json.js and Handheld.json.js.
- Save and load viewer in browser.
Comments
0 comments
Article is closed for comments.