-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# mapapps-custom-nls | ||
# Custom nls | ||
This bundle allows to customize the default nls strings that are used in map.apps (e.g. for tool titles or other ui elements) | ||
|
||
If you want to change the title of a ui element in map.apps, you can simply do this by adding nls files to your app. But if you want to apply text changes to multiple apps, using a custom nls bundle is a better solution. Adding or changing strings in the future can be done in that bundle and once you have uploaded the new version of this bundle, all apps use the new text strings immediately. | ||
|
||
### Sample App ### | ||
http://www.mapapps.de/mapapps/resources/apps/downloads_customnls/index.html | ||
(In this sample app, the title of the Map Flow tool in the lower left corner is changed from "Map Content"/"Karteninhalt" to "Topics"/"Themen".) | ||
|
||
Usage Guide | ||
------------------ | ||
To add your own nls customizations, at first download the bundle and extract the zip file. In the zip file you will find two bundle.js files in the folder "nls" (for English) and in "nls/de" (for German). | ||
|
||
Open this files in a text editor and add the nls strings that you want to customize. A full list of all available nls string can be found here: | ||
|
||
After saving your changes, zip all contents of the bundle folder and upload the zip file via the map.apps Manager bundle management tab. | ||
|
||
Now add the bundle to all of your apps, that should use the customized nls strings. |