Select to view content in your preferred language

esri.bundle strings 3.5 AMD

1979
11
Jump to solution
07-25-2013 10:21 AM
CarlosMacias
Occasional Contributor
it looks like the strings can't be set directly .
esri.bundle.toolbars.draw.addMultipoint = 'new text';
I tried redefining the property with code similar to this thread using this jsfiddle but didn't work.



how do we change the strings using 3.5 AMD?
0 Kudos
1 Solution

Accepted Solutions
CarlosMacias
Occasional Contributor
it was because of my dojoConfig that I wasn't able to change the text.
I had it
var dojoConfig = {
        locale: "en",
        async: true,
        isDebug: true};

after commenting out the locale:"en" I can change the tooltip text.

View solution in original post

0 Kudos
11 Replies
DianaBenedict
Frequent Contributor
it looks like the strings can't be set directly .
esri.bundle.toolbars.draw.addMultipoint = 'new text';
I tried redefining the property with code similar to this thread using this jsfiddle but didn't work.



how do we change the strings using 3.5 AMD?


multipoint uses bundle.toolbars.draw.addMultipoint (as you pointed out)

the following seems to work for me based on the fiddle:

          bundle.toolbars.draw.addMultipoint = "new text";
          alert("default add point text: " + bundle.toolbars.draw.addMultipoint);
0 Kudos
CarlosMacias
Occasional Contributor
multipoint uses bundle.toolbars.draw.addMultipoint (as you pointed out)

the following seems to work for me based on the fiddle:

          bundle.toolbars.draw.addMultipoint = "new text";
          alert("default add point text: " + bundle.toolbars.draw.addMultipoint);


Yes I am able to see it but when I change it, it doesn't appear as the tooltip when I'm drawing.
This is exactly what I want to do but in AMD.
0 Kudos
CarlosMacias
Occasional Contributor
changing the strings in the draw toolbar using 3.5 AMD.

does anyone has an answer for this thread?
0 Kudos
EndreStokseth
Deactivated User
Derek Swingley answered this in this thread with link to example on jsfiddle
0 Kudos
JonathanUihlein
Esri Regular Contributor
Endre, cmacias mentioned both that thread and the jsfiddle example in the first post of this thread, saying that he already tried to follow that example and it did not work.

Are you still having problems, cmacias?
0 Kudos
CarlosMacias
Occasional Contributor
Yes, I am still unable to redefine the tooltip text.
0 Kudos
EndreStokseth
Deactivated User
Sorry about a quick answer that gave nothing new to the thread..


But I have done this using AMD & JS-API v 3.5. It worked fine.
Added an example to jsfiddler (basically the same as Derek Swingley did).

Hope this helps 🙂
0 Kudos
CarlosMacias
Occasional Contributor
it was because of my dojoConfig that I wasn't able to change the text.
I had it
var dojoConfig = {
        locale: "en",
        async: true,
        isDebug: true};

after commenting out the locale:"en" I can change the tooltip text.
0 Kudos
CarlosMacias
Occasional Contributor
try bundle.widgets.measurement.NLS_resultLabel instead of esri.bundle.widgets.measurement.NLS_resultLabel
0 Kudos