Skip to content

Commit

Permalink
Error message when timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainar committed Feb 27, 2016
1 parent 4f9d088 commit a3bac97
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lg/ar.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
define("_YOU_ARE_HERE", "! انتم هنا");
define("_CENTER_BUTTON", "وسط الخريطة");
define("_WELCOME_MESSAGE", "! مرحبا");
define("_ERROR_API", "An error occured while contacting the API. You may have asked for too many POI. <a href=\"index.php\">Go back to homepage and retry!</a>");

//===> paths.php
define("_CONNECT_NECESS", "<p>You need to log in to use to this function.");
Expand Down
1 change: 1 addition & 0 deletions lg/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
define("_CART_IS_EMPTY_POPUP", "Your cart is empty, please fill it before exporting it! ;)");
define("_YOU_ARE_HERE", "You're here!");
define("_CENTER_BUTTON", "Center on my position");
define("_ERROR_API", "An error occured while contacting the API. You may have asked for too many POI. <a href=\"index.php\">Go back to homepage and retry!</a>");

//===> paths.php
define("_CONNECT_NECESS", "<p>You need to log in to use to this function.");
Expand Down
1 change: 1 addition & 0 deletions lg/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
define("_CART_IS_EMPTY_POPUP", "Votre parcours est vide, remplissez le avant de l\'exporter ! ;)");
define("_YOU_ARE_HERE", "Vous êtes ici !");
define("_CENTER_BUTTON", "Centrer la carte");
define("_ERROR_API", "Erreur : l'API n'a pas répondu à temps. Peut-être que vous avez demandé un trop grand nombre de points d'intérêt. <a href=\"index.php\">Rééssayez !</a>");

//===> paths.php
define("_CONNECT_NECESS", "<p>Enregistrez-vous pour utiliser votre compte :");
Expand Down
1 change: 1 addition & 0 deletions lg/zh.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
define("_CART_IS_EMPTY_POPUP", "您的地图为空,请在导出前加入景点和路线;)");
define("_YOU_ARE_HERE", "您在这里 !");
define("_CENTER_BUTTON", "以我的位置为中央显示");
define("_ERROR_API", "An error occured while contacting the API. You may have asked for too many POI. <a href=\"index.php\">Go back to homepage and retry!</a>");

//===> paths.php
define("_CONNECT_NECESS", "<p>您需要登录以便使用此项功能");
Expand Down
4 changes: 4 additions & 0 deletions map.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@

//==> If no error, we put the POI array in a json to use it with JavaScript
$poi_array_json_encoded = json_encode($api_answer_array['poi']);

if($poi_array_json_encoded == 'null')
die("<p><br/>"._ERROR_API."</p><br/>");

$thePathWasSaved = false;
}
//****************************************************************
Expand Down

0 comments on commit a3bac97

Please sign in to comment.