diff --git a/htdocs/.gitignore b/htdocs/.gitignore index bc4b1c974ae..1af8fc3719b 100644 --- a/htdocs/.gitignore +++ b/htdocs/.gitignore @@ -7,3 +7,4 @@ /google /skincoloreditor /pos +/ultimatepdf diff --git a/htdocs/admin/system/perf.php b/htdocs/admin/system/perf.php index f0f95b62d15..563bb3e8385 100644 --- a/htdocs/admin/system/perf.php +++ b/htdocs/admin/system/perf.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2013 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -403,7 +403,7 @@ if ($conf->db->type == 'mysql' || $conf->db->type == 'mysqli') // Product search print '
'; -print ''.$langs->trans("ProductSearch").': '; +print ''.$langs->trans("SearchOptim").': '; print '
'; $tab = array(); $sql = "SELECT COUNT(*) as nb"; @@ -434,15 +434,23 @@ if ($resql) // Browser print '
'; -print ''.$langs->trans("Browser").': '; -var_dump($conf->browser); +print ''.$langs->trans("Browser").':
'; +if (! in_array($conf->browser->name, array('chrome','opera','safari','firefox'))) +{ + print img_picto('','warning.png').' '.$langs->trans("BrowserIsKO",$conf->browser->name); +} +else +{ + print img_picto('','tick.png').' '.$langs->trans("BrowserIsOK",$conf->browser->name); +} print '
'; // Database statistics update +/* print '
'; print ''.$langs->trans("DatabaseStatistics").': '; print '
'; - +*/ llxFooter(); diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 43f9b80c3d9..80f2d76557b 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -986,7 +986,10 @@ YouUseBestDriver=You use driver %s that is best driver available currently. YouDoNotUseBestDriver=You use drive %s but driver %s is recommanded. SearchProduct=Optimisation recherche produits NbOfProductIsLowerThanNoPb=You have only %s products/services into database. This does not required any particular optimization. - +SearchOptim=Search optimization +YouHaveXProductUseSearchOptim=You have %s product into database. You should add the constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 into Home-Setup-Other, you limit the search to the beginning of strings making possible for database to use index and you should get an immediate response. +BrowserIsOK=You are using the web browser %s. This browser is ok for security and performance. +BrowserIsKO=You are using the web browser %s. This browser is known to be a bad choice for security, performance and reliability. We recommand you to use Firefox, Chrome, Opera or Safari. ##### Module password generation PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: 8 characters containing shared numbers and characters in lowercase. PasswordGenerationNone=Do not suggest any generated password. Password must be type in manually. diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 7f922675783..a057e02944c 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -1002,6 +1002,10 @@ TestNotPossibleWithCurrentBrowsers=Détection automatique non possible YouUseBestDriver=Vous utilisez le driver %s qui est le driver recommandé actuellement. YouDoNotUseBestDriver=Vous utilisez le driver %s mais le driver %s est recommandé. NbOfProductIsLowerThanNoPb=Vous n'avez que %s produits/services en base. Ceci ne requiert pas d'optimisation particulière. +SearchOptim=Optimization des recherches +YouHaveXProductUseSearchOptim=Vous avez %s produits/services en base. Il est recommandé d'ajouter la constante PRODUCT_DONOTSEARCH_ANYWHERE à 1 dans Accueil-Configuration-Divers, vous limiterez ainsi la recherche au début de la chaine rendant possible l'utilisation de l'index et obtiendrez une réponse immédiate. +BrowserIsOK=Vous utilisez le navigateur %s. Ce navigateur est réputé optimisé pour la sécurité et performance. +BrowserIsKO=Vous utilisez le navigateur %s. Ce navigateur est déconseillé pour des raisons de sécurité, performance et qualité des pages restituées. Nous vous recommandons d'utiliser Firefox, Chrome, Opera ou Safari. ##### Module password generation PasswordGenerationStandard=Renvoie un mot de passe généré selon l'algorithme interne de Dolibarr : 8 caractères, chiffres et caractères en minuscules mélangés. PasswordGenerationNone=Ne propose pas de mots de passe générés. Le mot de passe est à saisir manuellement.