private static Intent startup_intent = null;\r
private static long startup_intent_timestamp = 0L;\r
public static String my_display_density = "mdpi";\r
- private boolean searchBoxShown = false;\r
+ private boolean searchBoxShown = false;\r
public static final int MAPDOWNLOAD_PRI_DIALOG = 1;\r
public static final int MAPDOWNLOAD_SEC_DIALOG = 2;\r
public static final int SEARCHRESULTS_WAIT_DIALOG = 3;\r
+ "/has_run_once.txt";\r
\r
\r
- // space !!\r
- static final String m = " ";\r
-\r
- static final String NAVIT_JAVA_MENU_download_first_map_en = "download first map";\r
- static final String NAVIT_JAVA_MENU_download_first_map_fr = "télécharchez 1ere carte";\r
- static final String NAVIT_JAVA_MENU_download_first_map_nl = "download eerste kaart";\r
- static final String NAVIT_JAVA_MENU_download_first_map_de = "1te karte runterladen";\r
-\r
- static final String INFO_BOX_TITLE_en = "Welcome to Navit";\r
- static final String INFO_BOX_TITLE_fr = "Bienvenue chez Navit";\r
- static final String INFO_BOX_TITLE_nl = "Welkom bij Navit";\r
- static final String INFO_BOX_TITLE_de = "Willkommen bei Navit";\r
-\r
- static final String INFO_BOX_TEXT_en = m\r
- + "You are running Navit for the first time!\n\n"\r
- + m\r
- + "To start select \""\r
- + NAVIT_JAVA_MENU_download_first_map_en\r
- + "\"\n"\r
- + m\r
- + "from the menu, and download a map\n"\r
- + m\r
- + "for your current Area.\n"\r
- + m\r
- + "This will download a large file, so please\n"\r
- + m\r
- + "make sure you have a flatrate or similar!\n\n"\r
- + m\r
- + "Mapdata:\n"\r
- + m\r
- + "CC-BY-SA OpenStreetMap Project\n\n"\r
- + m\r
- + "For more information on Navit\n"\r
- + m\r
- + "visit our Website\n"\r
- + m\r
- + "http://wiki.navit-project.org/\n"\r
- + "\n"\r
- + m\r
- + " Have fun using Navit.";\r
- static final String INFO_BOX_TEXT_fr = m\r
-\r
- + "Vous exécutez Navit pour la première fois\n\n"\r
- + m\r
- + "Pour commencer, sélectionnez \n \""\r
-\r
- + NAVIT_JAVA_MENU_download_first_map_fr\r
- + "\"\n"\r
- + m\r
-\r
- + "du menu et télechargez une carte\n de votre région.\n"\r
- + m\r
-\r
- + "Les cartes sont volumineux, donc\n il est préférable d'avoir une connection\n internet illimitée!\n\n"\r
- + m\r
- + "Mapdata:\n"\r
- + m\r
- + "CC-BY-SA OpenStreetMap Project\n\n"\r
- + m\r
- + "Pour plus d'infos sur Navit\n"\r
- + m\r
- + "visitez notre site internet\n"\r
- + m\r
-\r
- + "http://wiki.navit-project.org/\n"\r
- + "\n"\r
- + m\r
- + " Amusez vous avec Navit.";\r
- static final String INFO_BOX_TEXT_de = m\r
- + "Sie starten Navit zum ersten Mal!\n\n"\r
- + m\r
- + "Zum loslegen im Menu \""\r
- + NAVIT_JAVA_MENU_download_first_map_en\r
- + "\"\n"\r
- + m\r
- + "auswählen und Karte für die\n"\r
- + m\r
- + "gewünschte Region downloaden.\n"\r
- + m\r
- + "Die Kartendatei ist sehr gross,\n"\r
- + m\r
- + "bitte flatrate oder ähnliches aktivieren!\n\n"\r
- + m\r
- + "Kartendaten:\n"\r
- + m\r
- + "CC-BY-SA OpenStreetMap Project\n\n"\r
- + m\r
- + "Für mehr Infos zu Navit\n"\r
- + m\r
- + "bitte die Website besuchen\n"\r
- + m\r
- + "http://wiki.navit-project.org/\n"\r
- + "\n"\r
- + m\r
- + " Viel Spaß mit Navit.";\r
- static final String INFO_BOX_TEXT_nl = m\r
-\r
- + "U voert Navit voor de eerste keer uit.\n\n"\r
- + m\r
- + "Om te beginnen, selecteer \n \""\r
-\r
- + NAVIT_JAVA_MENU_download_first_map_nl\r
- + "\"\n"\r
- + m\r
-\r
- + "uit het menu en download een kaart\n van je regio.\n"\r
- + m\r
-\r
- + "De kaarten zijn groot,\n het is dus aangeraden om een \n ongelimiteerde internetverbinding te hebben!\n\n"\r
- + m\r
- + "Mapdata:\n"\r
- + m\r
- + "CC-BY-SA OpenStreetMap Project\n\n"\r
- + m\r
-\r
- + "Voor meer info over Navit\n"\r
- + m\r
- + "bezoek onze site\n"\r
- + m\r
-\r
- + "http://wiki.navit-project.org/\n"\r
- + "\n"\r
- + m\r
- + " Nog veel plezier met Navit.";\r
-\r
- static final String NAVIT_JAVA_MENU_MOREINFO_en = "More info";\r
- static final String NAVIT_JAVA_MENU_MOREINFO_fr = "plus d'infos";\r
- static final String NAVIT_JAVA_MENU_MOREINFO_nl = "meer info";\r
- static final String NAVIT_JAVA_MENU_MOREINFO_de = "Mehr infos";\r
-\r
- static final String NAVIT_JAVA_MENU_ZOOMIN_en = "zoom in";\r
- static final String NAVIT_JAVA_MENU_ZOOMIN_fr = "zoom-avant";\r
- static final String NAVIT_JAVA_MENU_ZOOMIN_nl = "inzoomen";\r
- static final String NAVIT_JAVA_MENU_ZOOMIN_de = "zoom in";\r
-\r
- static final String NAVIT_JAVA_MENU_ZOOMOUT_en = "zoom out";\r
- static final String NAVIT_JAVA_MENU_ZOOMOUT_fr = "zoom-arrière";\r
- static final String NAVIT_JAVA_MENU_ZOOMOUT_nl = "uitzoomen";\r
- static final String NAVIT_JAVA_MENU_ZOOMOUT_de = "zoom out";\r
-\r
- static final String NAVIT_JAVA_MENU_EXIT_en = "Exit Navit";\r
- static final String NAVIT_JAVA_MENU_EXIT_fr = "quittez Navit";\r
- static final String NAVIT_JAVA_MENU_EXIT_nl = "Navit afsluiten";\r
- static final String NAVIT_JAVA_MENU_EXIT_de = "Navit Beenden";\r
-\r
- static final String NAVIT_JAVA_MENU_TOGGLE_POI_en = "toggle POI";\r
- static final String NAVIT_JAVA_MENU_TOGGLE_POI_fr = "POI on/off";\r
- static final String NAVIT_JAVA_MENU_TOGGLE_POI_nl = "POI aan/uit";\r
- static final String NAVIT_JAVA_MENU_TOGGLE_POI_de = "POI ein/aus";\r
-\r
- static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_en = "drive here";\r
- static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_fr = "conduisez";\r
- static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_nl = "Ga naar hier";\r
- static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_de = "Ziel setzen";\r
-\r
- static final String NAVIT_JAVA_MENU_download_second_map_en = "download 2nd map";\r
- static final String NAVIT_JAVA_MENU_download_second_map_fr = "télécharchez 2ème carte";\r
- static final String NAVIT_JAVA_MENU_download_second_map_nl = "download 2de kaart";\r
- static final String NAVIT_JAVA_MENU_download_second_map_de = "2te karte runterladen";\r
-\r
- // default values\r
- static String NAVIT_JAVA_MENU_download_first_map = NAVIT_JAVA_MENU_download_first_map_en;\r
- static String NAVIT_JAVA_MENU_download_second_map = NAVIT_JAVA_MENU_download_second_map_en;\r
- static String INFO_BOX_TITLE = INFO_BOX_TITLE_en;\r
- static String INFO_BOX_TEXT = INFO_BOX_TEXT_en;\r
- static String NAVIT_JAVA_MENU_MOREINFO = NAVIT_JAVA_MENU_MOREINFO_en;\r
- static String NAVIT_JAVA_MENU_ZOOMIN = NAVIT_JAVA_MENU_ZOOMIN_en;\r
- static String NAVIT_JAVA_MENU_ZOOMOUT = NAVIT_JAVA_MENU_ZOOMOUT_en;\r
- static String NAVIT_JAVA_MENU_EXIT = NAVIT_JAVA_MENU_EXIT_en;\r
- static String NAVIT_JAVA_MENU_TOGGLE_POI = NAVIT_JAVA_MENU_TOGGLE_POI_en;\r
- static String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_en;\r
-\r
\r
private boolean extractRes(String resname, String result)\r
{\r
// hardcoded strings for now, use routine down below later!!\r
if (lang.compareTo("de") == 0)\r
{\r
- NAVIT_JAVA_MENU_download_first_map = NAVIT_JAVA_MENU_download_first_map_de;\r
- NAVIT_JAVA_MENU_download_second_map = NAVIT_JAVA_MENU_download_second_map_de;\r
- INFO_BOX_TITLE = INFO_BOX_TITLE_de;\r
- INFO_BOX_TEXT = INFO_BOX_TEXT_de;\r
- NAVIT_JAVA_MENU_MOREINFO = NAVIT_JAVA_MENU_MOREINFO_de;\r
- NAVIT_JAVA_MENU_ZOOMIN = NAVIT_JAVA_MENU_ZOOMIN_de;\r
- NAVIT_JAVA_MENU_ZOOMOUT = NAVIT_JAVA_MENU_ZOOMOUT_de;\r
- NAVIT_JAVA_MENU_EXIT = NAVIT_JAVA_MENU_EXIT_de;\r
- NAVIT_JAVA_MENU_TOGGLE_POI = NAVIT_JAVA_MENU_TOGGLE_POI_de;\r
- NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map_de;\r
+ NavitTextTranslations.INFO_BOX_TITLE = NavitTextTranslations.INFO_BOX_TITLE_de;\r
+ NavitTextTranslations.INFO_BOX_TEXT = NavitTextTranslations.INFO_BOX_TEXT_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO = NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_EXIT = NavitTextTranslations.NAVIT_JAVA_MENU_EXIT_de;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI = NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI_de;\r
+ NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_de;\r
}\r
else if (lang.compareTo("fr") == 0)\r
{\r
- NAVIT_JAVA_MENU_download_first_map = NAVIT_JAVA_MENU_download_first_map_fr;\r
- NAVIT_JAVA_MENU_download_second_map = NAVIT_JAVA_MENU_download_second_map_fr;\r
- INFO_BOX_TITLE = INFO_BOX_TITLE_fr;\r
- INFO_BOX_TEXT = INFO_BOX_TEXT_fr;\r
- NAVIT_JAVA_MENU_MOREINFO = NAVIT_JAVA_MENU_MOREINFO_fr;\r
- NAVIT_JAVA_MENU_ZOOMIN = NAVIT_JAVA_MENU_ZOOMIN_fr;\r
- NAVIT_JAVA_MENU_ZOOMOUT = NAVIT_JAVA_MENU_ZOOMOUT_fr;\r
- NAVIT_JAVA_MENU_EXIT = NAVIT_JAVA_MENU_EXIT_fr;\r
- NAVIT_JAVA_MENU_TOGGLE_POI = NAVIT_JAVA_MENU_TOGGLE_POI_fr;\r
- NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map_fr;\r
+ NavitTextTranslations.INFO_BOX_TITLE = NavitTextTranslations.INFO_BOX_TITLE_fr;\r
+ NavitTextTranslations.INFO_BOX_TEXT = NavitTextTranslations.INFO_BOX_TEXT_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO = NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_EXIT = NavitTextTranslations.NAVIT_JAVA_MENU_EXIT_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI = NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI_fr;\r
+ NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_fr;\r
}\r
else if (lang.compareTo("nl") == 0)\r
{\r
- NAVIT_JAVA_MENU_download_first_map = NAVIT_JAVA_MENU_download_first_map_nl;\r
- NAVIT_JAVA_MENU_download_second_map = NAVIT_JAVA_MENU_download_second_map_nl;\r
- INFO_BOX_TITLE = INFO_BOX_TITLE_nl;\r
- INFO_BOX_TEXT = INFO_BOX_TEXT_nl;\r
- NAVIT_JAVA_MENU_MOREINFO = NAVIT_JAVA_MENU_MOREINFO_nl;\r
- NAVIT_JAVA_MENU_ZOOMIN = NAVIT_JAVA_MENU_ZOOMIN_nl;\r
- NAVIT_JAVA_MENU_ZOOMOUT = NAVIT_JAVA_MENU_ZOOMOUT_nl;\r
- NAVIT_JAVA_MENU_EXIT = NAVIT_JAVA_MENU_EXIT_nl;\r
- NAVIT_JAVA_MENU_TOGGLE_POI = NAVIT_JAVA_MENU_TOGGLE_POI_nl;\r
- NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map = NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map_nl;\r
+ NavitTextTranslations.INFO_BOX_TITLE = NavitTextTranslations.INFO_BOX_TITLE_nl;\r
+ NavitTextTranslations.INFO_BOX_TEXT = NavitTextTranslations.INFO_BOX_TEXT_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO = NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT = NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_EXIT = NavitTextTranslations.NAVIT_JAVA_MENU_EXIT_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI = NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI_nl;\r
+ NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NavitTextTranslations.NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_nl;\r
}\r
// hardcoded strings for now, use routine down below later!!\r
// hardcoded strings for now, use routine down below later!!\r
* show info box for first time users\r
*/\r
AlertDialog.Builder infobox = new AlertDialog.Builder(this);\r
- infobox.setTitle(INFO_BOX_TITLE);\r
+ infobox.setTitle(NavitTextTranslations.INFO_BOX_TITLE);\r
infobox.setCancelable(false);\r
final TextView message = new TextView(this);\r
message.setFadingEdgeLength(20);\r
//rlp.leftMargin = 8; -> we use "m" string\r
\r
message.setLayoutParams(rlp);\r
- final SpannableString s = new SpannableString(INFO_BOX_TEXT);\r
+ final SpannableString s = new SpannableString(NavitTextTranslations.INFO_BOX_TEXT);\r
Linkify.addLinks(s, Linkify.WEB_URLS);\r
message.setText(s);\r
message.setMovementMethod(LinkMovementMethod.getInstance());\r
infobox.setView(message);\r
\r
+ //TRANS\r
infobox.setPositiveButton("Ok", new DialogInterface.OnClickListener()\r
{\r
public void onClick(DialogInterface arg0, int arg1)\r
Log.e("Navit", "Ok, user saw the infobox");\r
}\r
});\r
- infobox.setNeutralButton(NAVIT_JAVA_MENU_MOREINFO, new DialogInterface.OnClickListener()\r
+\r
+ infobox.setNeutralButton(NavitTextTranslations.NAVIT_JAVA_MENU_MOREINFO, new DialogInterface.OnClickListener()\r
{\r
public void onClick(DialogInterface arg0, int arg1)\r
{\r
}\r
else\r
{\r
- if (unparsable_info_box && !searchBoxShown )\r
+ if (unparsable_info_box && !searchBoxShown)\r
{\r
- \r
+\r
searchBoxShown = true;\r
String searchString = intent_data.split("q=")[1];\r
searchString = searchString.split("&")[0];\r
searchString = URLDecoder.decode(searchString); // decode the URL: e.g. %20 -> space\r
- Log.e("Navit","Search String :" + searchString);\r
+ Log.e("Navit", "Search String :" + searchString);\r
executeSearch(searchString);\r
}\r
}\r
menu.clear();\r
\r
// group-id,item-id,sort order number\r
- menu.add(1, 1, 100, NAVIT_JAVA_MENU_ZOOMIN);\r
- menu.add(1, 2, 200, NAVIT_JAVA_MENU_ZOOMOUT);\r
+ menu.add(1, 1, 100, NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMIN);\r
+ menu.add(1, 2, 200, NavitTextTranslations.NAVIT_JAVA_MENU_ZOOMOUT);\r
\r
- menu.add(1, 3, 300, NAVIT_JAVA_MENU_download_first_map);\r
- menu.add(1, 5, 400, NAVIT_JAVA_MENU_TOGGLE_POI);\r
+ menu.add(1, 3, 300, NavitTextTranslations.NAVIT_JAVA_MENU_download_first_map);\r
+ menu.add(1, 5, 400, NavitTextTranslations.NAVIT_JAVA_MENU_TOGGLE_POI);\r
\r
- menu.add(1, 6, 500, "Address search");\r
+ menu.add(1, 6, 500, "Address search"); //TRANS\r
\r
- menu.add(1, 4, 600, NAVIT_JAVA_MENU_download_second_map);\r
+ menu.add(1, 4, 600, NavitTextTranslations.NAVIT_JAVA_MENU_download_second_map);\r
menu.add(1, 88, 800, "--");\r
- menu.add(1, 99, 900, NAVIT_JAVA_MENU_EXIT);\r
+ menu.add(1, 99, 900, NavitTextTranslations.NAVIT_JAVA_MENU_EXIT);\r
return true;\r
}\r
\r
if (Navit_last_address_search_string.equals(""))\r
{\r
// empty search string entered\r
- Toast.makeText(getApplicationContext(), "No address found", Toast.LENGTH_LONG).show();\r
+ Toast.makeText(getApplicationContext(), "No address found", Toast.LENGTH_LONG).show(); //TRANS\r
}\r
else\r
{\r
Navit.NavitDownloaderSecSelectMap_id);\r
break;\r
case 5 :\r
- // toggle the normal POI layers (to avoid double POIs)\r
+ // toggle the normal POI layers (to avoid double POIs) --> why is this double ???\r
msg = new Message();\r
b = new Bundle();\r
b.putInt("Callback", 5);\r
N_NavitGraphics.callback_handler.sendMessage(msg);\r
\r
\r
- // toggle full POI icons on/off\r
+ // toggle full POI icons on/off --> why is this double ???\r
msg = new Message();\r
b = new Bundle();\r
b.putInt("Callback", 5);\r
case 6 :\r
// ok startup address search activity\r
Intent search_intent = new Intent(this, NavitAddressSearchActivity.class);\r
- search_intent.putExtra("title", "Enter: City and Street");\r
+ search_intent.putExtra("title", "Enter: City and Street"); //TRANS\r
search_intent.putExtra("address_string", Navit_last_address_search_string);\r
String pm_temp = "0";\r
if (Navit_last_address_partial_match)\r
{\r
// empty search string entered\r
Toast.makeText(getApplicationContext(), "No search string entered",\r
- Toast.LENGTH_LONG).show();\r
+ Toast.LENGTH_LONG).show(); //TRANS\r
}\r
else\r
{\r
getApplicationContext(),\r
"setting destination to "\r
+ Navit.NavitAddressResultList_foundItems\r
- .get(destination_id).addr, Toast.LENGTH_LONG).show();\r
+ .get(destination_id).addr, Toast.LENGTH_LONG).show(); //TRANS\r
\r
Message msg = new Message();\r
Bundle b = new Bundle();\r
b.putInt("dialog_num", this.dialog_num);\r
b.putInt("max", Navit.ADDRESS_RESULTS_DIALOG_MAX);\r
b.putInt("cur", this.spinner_current_value % (Navit.ADDRESS_RESULTS_DIALOG_MAX + 1));\r
- b.putString("title", "getting search results");\r
- b.putString("text", "searching ...");\r
+ b.putString("title", "getting search results"); //TRANS\r
+ b.putString("text", "searching ..."); //TRANS\r
msg.setData(b);\r
mHandler.sendMessage(msg);\r
try\r
b.putInt("dialog_num", this.my_dialog_num);\r
b.putInt("max", Navit.ADDRESS_RESULTS_DIALOG_MAX);\r
b.putInt("cur", 0);\r
- b.putString("title", "getting search results");\r
- b.putString("text", "searching ...");\r
+ b.putString("title", "getting search results"); //TRANS\r
+ b.putString("text", "searching ..."); //TRANS\r
msg.setData(b);\r
mHandler.sendMessage(msg);\r
\r
msg = mHandler.obtainMessage();\r
b = new Bundle();\r
msg.what = 3;\r
- b.putString("text", "No Results found!");\r
+ b.putString("text", "No Results found!"); //TRANS\r
msg.setData(b);\r
mHandler.sendMessage(msg);\r
}\r
{\r
System.loadLibrary("navit");\r
}\r
- \r
+\r
/*\r
- * Show a search activity with the string "search" filled in\r
- */\r
+ * Show a search activity with the string "search" filled in\r
+ */\r
private void executeSearch(String search)\r
{\r
Intent search_intent = new Intent(this, NavitAddressSearchActivity.class);\r
- search_intent.putExtra("title", "Enter: City and Street");\r
+ search_intent.putExtra("title", "Enter: City and Street"); //TRANS\r
search_intent.putExtra("address_string", search);\r
String pm_temp = "0";\r
if (Navit_last_address_partial_match)\r
--- /dev/null
+package org.navitproject.navit;\r
+\r
+public class NavitTextTranslations\r
+{\r
+ // space !!\r
+ static final String m = " ";\r
+\r
+ static final String NAVIT_JAVA_MENU_download_first_map_en = "download first map";\r
+ static final String NAVIT_JAVA_MENU_download_first_map_fr = "télécharchez 1ere carte";\r
+ static final String NAVIT_JAVA_MENU_download_first_map_nl = "download eerste kaart";\r
+ static final String NAVIT_JAVA_MENU_download_first_map_de = "1te karte runterladen";\r
+\r
+ static final String INFO_BOX_TITLE_en = "Welcome to Navit";\r
+ static final String INFO_BOX_TITLE_fr = "Bienvenue chez Navit";\r
+ static final String INFO_BOX_TITLE_nl = "Welkom bij Navit";\r
+ static final String INFO_BOX_TITLE_de = "Willkommen bei Navit";\r
+\r
+ static final String INFO_BOX_TEXT_en = m\r
+ + "You are running Navit for the first time!\n\n"\r
+ + m\r
+ + "To start select \""\r
+ + NAVIT_JAVA_MENU_download_first_map_en\r
+ + "\"\n"\r
+ + m\r
+ + "from the menu, and download a map\n"\r
+ + m\r
+ + "for your current Area.\n"\r
+ + m\r
+ + "This will download a large file, so please\n"\r
+ + m\r
+ + "make sure you have a flatrate or similar!\n\n"\r
+ + m\r
+ + "Mapdata:\n"\r
+ + m\r
+ + "CC-BY-SA OpenStreetMap Project\n\n"\r
+ + m\r
+ + "For more information on Navit\n"\r
+ + m\r
+ + "visit our Website\n"\r
+ + m\r
+ + "http://wiki.navit-project.org/\n"\r
+ + "\n"\r
+ + m\r
+ + " Have fun using Navit.";\r
+ static final String INFO_BOX_TEXT_fr = m\r
+\r
+ + "Vous exécutez Navit pour la première fois\n\n"\r
+ + m\r
+ + "Pour commencer, sélectionnez \n \""\r
+\r
+ + NAVIT_JAVA_MENU_download_first_map_fr\r
+ + "\"\n"\r
+ + m\r
+\r
+ + "du menu et télechargez une carte\n de votre région.\n"\r
+ + m\r
+\r
+ + "Les cartes sont volumineux, donc\n il est préférable d'avoir une connection\n internet illimitée!\n\n"\r
+ + m\r
+ + "Mapdata:\n"\r
+ + m\r
+ + "CC-BY-SA OpenStreetMap Project\n\n"\r
+ + m\r
+ + "Pour plus d'infos sur Navit\n"\r
+ + m\r
+ + "visitez notre site internet\n"\r
+ + m\r
+\r
+ + "http://wiki.navit-project.org/\n"\r
+ + "\n"\r
+ + m\r
+ + " Amusez vous avec Navit.";\r
+ static final String INFO_BOX_TEXT_de = m\r
+ + "Sie starten Navit zum ersten Mal!\n\n"\r
+ + m\r
+ + "Zum loslegen im Menu \""\r
+ + NAVIT_JAVA_MENU_download_first_map_en\r
+ + "\"\n"\r
+ + m\r
+ + "auswählen und Karte für die\n"\r
+ + m\r
+ + "gewünschte Region downloaden.\n"\r
+ + m\r
+ + "Die Kartendatei ist sehr gross,\n"\r
+ + m\r
+ + "bitte flatrate oder ähnliches aktivieren!\n\n"\r
+ + m\r
+ + "Kartendaten:\n"\r
+ + m\r
+ + "CC-BY-SA OpenStreetMap Project\n\n"\r
+ + m\r
+ + "Für mehr Infos zu Navit\n"\r
+ + m\r
+ + "bitte die Website besuchen\n"\r
+ + m\r
+ + "http://wiki.navit-project.org/\n"\r
+ + "\n" + m\r
+ + " Viel Spaß mit Navit.";\r
+ static final String INFO_BOX_TEXT_nl = m\r
+\r
+ + "U voert Navit voor de eerste keer uit.\n\n"\r
+ + m\r
+ + "Om te beginnen, selecteer \n \""\r
+\r
+ + NAVIT_JAVA_MENU_download_first_map_nl\r
+ + "\"\n"\r
+ + m\r
+\r
+ + "uit het menu en download een kaart\n van je regio.\n"\r
+ + m\r
+\r
+ + "De kaarten zijn groot,\n het is dus aangeraden om een \n ongelimiteerde internetverbinding te hebben!\n\n"\r
+ + m\r
+ + "Mapdata:\n"\r
+ + m\r
+ + "CC-BY-SA OpenStreetMap Project\n\n"\r
+ + m\r
+\r
+ + "Voor meer info over Navit\n"\r
+ + m\r
+ + "bezoek onze site\n"\r
+ + m\r
+\r
+ + "http://wiki.navit-project.org/\n"\r
+ + "\n"\r
+ + m\r
+ + " Nog veel plezier met Navit.";\r
+\r
+ static final String NAVIT_JAVA_MENU_MOREINFO_en = "More info";\r
+ static final String NAVIT_JAVA_MENU_MOREINFO_fr = "plus d'infos";\r
+ static final String NAVIT_JAVA_MENU_MOREINFO_nl = "meer info";\r
+ static final String NAVIT_JAVA_MENU_MOREINFO_de = "Mehr infos";\r
+\r
+ static final String NAVIT_JAVA_MENU_ZOOMIN_en = "zoom in";\r
+ static final String NAVIT_JAVA_MENU_ZOOMIN_fr = "zoom-avant";\r
+ static final String NAVIT_JAVA_MENU_ZOOMIN_nl = "inzoomen";\r
+ static final String NAVIT_JAVA_MENU_ZOOMIN_de = "zoom in";\r
+\r
+ static final String NAVIT_JAVA_MENU_ZOOMOUT_en = "zoom out";\r
+ static final String NAVIT_JAVA_MENU_ZOOMOUT_fr = "zoom-arrière";\r
+ static final String NAVIT_JAVA_MENU_ZOOMOUT_nl = "uitzoomen";\r
+ static final String NAVIT_JAVA_MENU_ZOOMOUT_de = "zoom out";\r
+\r
+ static final String NAVIT_JAVA_MENU_EXIT_en = "Exit Navit";\r
+ static final String NAVIT_JAVA_MENU_EXIT_fr = "quittez Navit";\r
+ static final String NAVIT_JAVA_MENU_EXIT_nl = "Navit afsluiten";\r
+ static final String NAVIT_JAVA_MENU_EXIT_de = "Navit Beenden";\r
+\r
+ static final String NAVIT_JAVA_MENU_TOGGLE_POI_en = "toggle POI";\r
+ static final String NAVIT_JAVA_MENU_TOGGLE_POI_fr = "POI on/off";\r
+ static final String NAVIT_JAVA_MENU_TOGGLE_POI_nl = "POI aan/uit";\r
+ static final String NAVIT_JAVA_MENU_TOGGLE_POI_de = "POI ein/aus";\r
+\r
+ static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_en = "drive here";\r
+ static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_fr = "conduisez";\r
+ static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_nl = "Ga naar hier";\r
+ static final String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_de = "Ziel setzen";\r
+\r
+ static final String NAVIT_JAVA_MENU_download_second_map_en = "download 2nd map";\r
+ static final String NAVIT_JAVA_MENU_download_second_map_fr = "télécharchez 2ème carte";\r
+ static final String NAVIT_JAVA_MENU_download_second_map_nl = "download 2de kaart";\r
+ static final String NAVIT_JAVA_MENU_download_second_map_de = "2te karte runterladen";\r
+\r
+ // default values\r
+ static String NAVIT_JAVA_MENU_download_first_map = NAVIT_JAVA_MENU_download_first_map_en;\r
+ static String NAVIT_JAVA_MENU_download_second_map = NAVIT_JAVA_MENU_download_second_map_en;\r
+ static String INFO_BOX_TITLE = INFO_BOX_TITLE_en;\r
+ static String INFO_BOX_TEXT = INFO_BOX_TEXT_en;\r
+ static String NAVIT_JAVA_MENU_MOREINFO = NAVIT_JAVA_MENU_MOREINFO_en;\r
+ static String NAVIT_JAVA_MENU_ZOOMIN = NAVIT_JAVA_MENU_ZOOMIN_en;\r
+ static String NAVIT_JAVA_MENU_ZOOMOUT = NAVIT_JAVA_MENU_ZOOMOUT_en;\r
+ static String NAVIT_JAVA_MENU_EXIT = NAVIT_JAVA_MENU_EXIT_en;\r
+ static String NAVIT_JAVA_MENU_TOGGLE_POI = NAVIT_JAVA_MENU_TOGGLE_POI_en;\r
+ static String NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE = NAVIT_JAVA_OVERLAY_BUBBLE_DRIVEHERE_en;\r
+\r
+\r
+}\r