iphone - Translate String in a language (Enlgish) to other language (phone's current language) using buil-in API -


i calling google maps app show directions between "current location" , location. using following code,

nsstring* url = [nsstring stringwithformat:                   @"http://maps.google.com/maps?saddr=%@&daddr=%f,%f",                   @"current\%20location",                   destcoordinate.latitude, destcoordinate.longitude]; [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:url]]; 

note passing @"current\%20location" saddr. works fine if phones language set english. @pazustep, here, in post regarding finding current location, suggested wont work if language different. , obviously, solve issue, have use core location find current location , pass latitude , longitude google maps app. expecting other way solve issue without modifying implementation logic.

  1. is there built-in api available translate string "current location" , or string, current phone language?
  2. if not, there way tell google maps app translate string current language?

why not use core location latitude , longitude of current location , put in saddr?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -