Select to view content in your preferred language

Draw Widget tooltips

2202
10
03-17-2011 04:19 AM
HugoDurana
Emerging Contributor
Good afternoon all,

I am having a hard time figuring out how to change the tooltips of the draw operations.

Example:
I click on the Draw Circle. The tooltip that is next to the cursor says:
"Press down to start and let go to finish"

Where can i change this text?

TIA,
Hugo
Tags (2)
0 Kudos
10 Replies
IvanBespalov
Frequent Contributor
The last ESRI release version of API for FLEX (2.5) has help document with name Localization. This document provide link to ESRIMessages.properties file and description: how to use it.

Today we do not need to hack ESRI code (in old versions "ESRIMessages.properties" were hidden 😞 ).
...
var rb:IResourceBundle = resourceManager.getResourceBundle("en_US", "ESRIMessages") as IResourceBundle;
...


1 - Create folder in you project solution (if not exists): "locale" folder. In "locale" create folder "myLanguage". Put "ESRIMessages.properties" in.
2 - Translate strings.
3 - Go to Project > Flex Compiler.
4 - Set the Additional compiler arguments:
-locale=myLanguage  -source-path=locale/{locale}


But, yes. Hacking method still works. :cool:
0 Kudos