Localization/customization of Pop-up window

2246
3
07-07-2011 03:37 AM
AW1
by
New Contributor
Hi,

I'm having trouble changing the default text strings on the Pop-up window.
I'm following the instructions found here:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_bundle.html

But it seems to have no effect. I can detect that for example the variable esri.bundle.widgets.popup.NLS_noInfo gets changed from 'No information available' to my custom string, but the popup in the map still shows 'No information available'.

Any ideas?

Thanks in advance!
0 Kudos
3 Replies
SaurabhGupta
New Contributor II
Hi,

I used the following code in my init and was able to see the strings change.

esri.bundle.widgets.popup.NLS_searching = "Looking..."
esri.bundle.widgets.popup.NLS_noAttach = "Nothin here!";

I am also attaching the sample code.

Hope this helps.
0 Kudos
SiqiLi
by Esri Contributor
Esri Contributor
Hi,

I used the following code in my init and was able to see the strings change.

esri.bundle.widgets.popup.NLS_searching = "Looking..."
esri.bundle.widgets.popup.NLS_noAttach = "Nothin here!";

I am also attaching the sample code.

Hope this helps.



Hi Saurabh,

I was actually wondering how to do this too. Thanks for the post. It works.
0 Kudos
AW1
by
New Contributor
Hi,

I used the following code in my init and was able to see the strings change.

esri.bundle.widgets.popup.NLS_searching = "Looking..."
esri.bundle.widgets.popup.NLS_noAttach = "Nothin here!";

I am also attaching the sample code.

Hope this helps.


Thanks a lot! I got it to work. I looked in your example to see what I did different, and it turned out that changing the variables at the top of the init function (like you did) worked, whereas I originally tried to change them at the end of the init function.

Thanks again!
0 Kudos