Hi,
I will change the language of directon widget,I mean the words of red underline in this image, image link
But,i search in locale language folder and i cant find any word of direction widget(words of red underline in attachment)!!!
I try to change language of direction in "DirectionsWidget.xml" with "<directionslanguage>" tag, but i cant change it!
Q: Is there any way that change language the words(in attachment image) by tags in DirectionsWidget.xml or by action script or ...?
Hi Robert
Where is the RouteWidget.xml and how I changed to the words that does not exist in default languages like persian?
thanks
Scott,
The routes language can be set using this tag in the xml
<directionslanguage>nl-NL</directionslanguage>
Here are the supported languages:
"directionsSupportedLanguages": [
"ar",
"cs",
"de",
"es",
"et",
"fr",
"he",
"it",
"ja",
"ko",
"lt",
"lv",
"nl",
"pl",
"pt-BR",
"pt-PT",
"ru",
"sv",
"tr",
"zh-CN",
"en"
]
Hi, Robert
I appreciate for your answer.
1.I search for "RouteWidget.xml" in my hard drive (specially in api folder) but I can not find such file name. Could you guide me where the "RouteWidget.xml" file is?
2. Another question is what can we do for unsupported languages like Persian. I would be happy that find a file to hard code the directions instruction(like "go forward" or "start at" )into that. I mean the red line expressions in the following picture.
best regards.
Scott,
You asked
Where is the RouteWidget.xml
So I assumed that you where talking about my custom Route Widget for Flex Viewer. Based on the image I see that you are actually talking about the Directions widget. so it would be Directions.xml (Assuming that you are talking about using Flex Viewer). All you need to do is add the xml tag I posted earlier to change the directions to one of the supported languages. Your only option for adding a unsupported language is to publish your own route service on your own server using your own data. You can not add a language to a service that is hosted by esri route service.
Thank you very much. I am using ArcGIS api for JavaScript. Can you guide me.
And what do you mean by "to publish your own route service on your own server"?
Does it mean that I must not use arcgis server?
Scott,
You are posting to the ArcGIS Viewer for Flex forum Space. If this question is actually about the directions dijit in the JS API then you need to ask this question in the JS API forum space.
"to publish your own route service on your own server" means that if you want to support a language that is not currently supported in the list of languages I provided earlier than you are out of luck unless you want to publish your own network analyst route service using your own data to your own ArcGIS Server.