Hi,I will change the language of directon widget,I mean the words of red underline in this image, image linkBut,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.
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.