Trad: Traduction complète de la page setup du module webcalendar.
This commit is contained in:
parent
40ce13debe
commit
8498863ca5
@ -23,7 +23,7 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/admin/webcalendar.php
|
\file htdocs/admin/webcalendar.php
|
||||||
\ingroup webcal
|
\ingroup webcal
|
||||||
\brief Page de configuration du module webcalendar
|
\brief Page de configuration du module webcalendar
|
||||||
@ -35,10 +35,12 @@ require("./pre.inc.php");
|
|||||||
if (!$user->admin)
|
if (!$user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
$langs->load("admin");
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print_titre("Configuration du lien vers le calendrier partagé");
|
print_titre($langs->trans("WebCalSetup"));
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
$def = array();
|
$def = array();
|
||||||
@ -53,10 +55,13 @@ $phpwebcalendar_syncro=trim($_POST["phpwebcalendar_syncro"]);
|
|||||||
$actionsave=$_POST["save"];
|
$actionsave=$_POST["save"];
|
||||||
$actiontest=$_POST["test"];
|
$actiontest=$_POST["test"];
|
||||||
|
|
||||||
// Positionne la variable pour le test d'affichage de l'icone
|
// Test saisie mot de passe
|
||||||
if ($actionsave)
|
if ($phpwebcalendar_pass != $phpwebcalendar_pass2)
|
||||||
{
|
{
|
||||||
if ($phpwebcalendar_pass == $phpwebcalendar_pass2)
|
$ok="<font class=\"error\">".$langs->trans("ErrorPasswordDiffers")."</font>";
|
||||||
|
}
|
||||||
|
// Positionne la variable pour le test d'affichage de l'icone
|
||||||
|
elseif ($actionsave)
|
||||||
{
|
{
|
||||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'PHPWEBCALENDAR_URL';";
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'PHPWEBCALENDAR_URL';";
|
||||||
$db->query($sql);
|
$db->query($sql);
|
||||||
@ -96,12 +101,7 @@ if ($actionsave)
|
|||||||
|
|
||||||
if ($result && $result1 && $result2 && $result3 && $result4 && $result5)
|
if ($result && $result1 && $result2 && $result3 && $result4 && $result5)
|
||||||
{
|
{
|
||||||
$ok = "<br><font class=\"ok\">Les identifiants Webcalendar ont été sauvegardés avec succès.</font>";
|
$ok = "<font class=\"ok\">".$langs->trans("WebCalSetupSaved")."</font>";
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$ok="<br><font class=\"error\">Le mot de passe n'est pas identique, veuillez le saisir à nouveau</font><br>\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ if (! $phpwebcalendar_dbname) { $phpwebcalendar_dbname=PHPWEBCALENDAR_DBNAME;
|
|||||||
if (! $phpwebcalendar_user) { $phpwebcalendar_user=PHPWEBCALENDAR_USER; }
|
if (! $phpwebcalendar_user) { $phpwebcalendar_user=PHPWEBCALENDAR_USER; }
|
||||||
if (! $phpwebcalendar_pass) { $phpwebcalendar_pass=PHPWEBCALENDAR_PASS; }
|
if (! $phpwebcalendar_pass) { $phpwebcalendar_pass=PHPWEBCALENDAR_PASS; }
|
||||||
if (! $phpwebcalendar_pass2) { $phpwebcalendar_pass2=PHPWEBCALENDAR_PASS; }
|
if (! $phpwebcalendar_pass2) { $phpwebcalendar_pass2=PHPWEBCALENDAR_PASS; }
|
||||||
if (! $phpwebcalendar_syncro) { $phpwebcalendar_syncro="nobydefault"; }
|
if (! $phpwebcalendar_syncro) { $phpwebcalendar_syncro=PHPWEBCALENDAR_SYNCRO; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -124,19 +124,19 @@ print "<table class=\"noborder\">
|
|||||||
<td>".$langs->trans("Value")."</td>
|
<td>".$langs->trans("Value")."</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=\"impair\">
|
<tr class=\"impair\">
|
||||||
<td>Adresse URL d'accès au calendrier</td>
|
<td>".$langs->trans("WebCalURL")."</td>
|
||||||
<td><input type=\"text\" name=\"phpwebcalendar_url\" value=\"". $phpwebcalendar_url . "\" size=\"45\"></td>
|
<td><input type=\"text\" name=\"phpwebcalendar_url\" value=\"". $phpwebcalendar_url . "\" size=\"45\"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=\"pair\">
|
<tr class=\"pair\">
|
||||||
<td>Serveur où la base du calendrier est hébergée</td>
|
<td>".$langs->trans("WebCalServer")."</td>
|
||||||
<td><input type=\"text\" name=\"phpwebcalendar_host\" value=\"". $phpwebcalendar_host . "\" size=\"45\"></td>
|
<td><input type=\"text\" name=\"phpwebcalendar_host\" value=\"". $phpwebcalendar_host . "\" size=\"45\"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=\"impair\">
|
<tr class=\"impair\">
|
||||||
<td>Nom de la base de données</td>
|
<td>".$langs->trans("WebCalDatabaseName")."</td>
|
||||||
<td><input type=\"text\" name=\"phpwebcalendar_dbname\" value=\"". $phpwebcalendar_dbname . "\" size=\"45\"></td>
|
<td><input type=\"text\" name=\"phpwebcalendar_dbname\" value=\"". $phpwebcalendar_dbname . "\" size=\"45\"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=\"pair\">
|
<tr class=\"pair\">
|
||||||
<td>Identifiant d'accès à la base</td>
|
<td>".$langs->trans("WebCalUser")."</td>
|
||||||
<td><input type=\"text\" name=\"phpwebcalendar_user\" value=\"". $phpwebcalendar_user . "\" size=\"45\"></td>
|
<td><input type=\"text\" name=\"phpwebcalendar_user\" value=\"". $phpwebcalendar_user . "\" size=\"45\"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=\"impair\">
|
<tr class=\"impair\">
|
||||||
@ -151,46 +151,42 @@ print "<table class=\"noborder\">
|
|||||||
<td>".$langs->trans("WebCalSyncro")."</td>
|
<td>".$langs->trans("WebCalSyncro")."</td>
|
||||||
<td>";
|
<td>";
|
||||||
print '<select name="phpwebcalendar_syncro">';
|
print '<select name="phpwebcalendar_syncro">';
|
||||||
print '<option value="always"'.($phpwebcalendar_syncro=='always'?' selected':'').'>'.$langs->trans("WebCalAllways");
|
print '<option value="always"'.($phpwebcalendar_syncro=='always'?' selected':'').'>'.$langs->trans("WebCalAllways").'</option>';
|
||||||
print '<option value="yesbydefault"'.($phpwebcalendar_syncro=='yesbydefault'?' selected':'').'>'.$langs->trans("WebCalYesByDefault");
|
print '<option value="yesbydefault"'.($phpwebcalendar_syncro=='yesbydefault'?' selected':'').'>'.$langs->trans("WebCalYesByDefault").'</option>';
|
||||||
print '<option value="nobydefault"'.(!$phpwebcalendar_syncro || $phpwebcalendar_syncro=='nobydefault'?' selected':'').'>'.$langs->trans("WebCalNoByDefault");
|
print '<option value="nobydefault"'.((! $phpwebcalendar_syncro || $phpwebcalendar_syncro=='nobydefault')?' selected':'').'>'.$langs->trans("WebCalNoByDefault").'</option>';
|
||||||
print '<option value="never"'.($phpwebcalendar_syncro=='never'?' selected':'').'>'.$langs->trans("WebCalNever");
|
print '<option value="never"'.($phpwebcalendar_syncro=='never'?' selected':'').'>'.$langs->trans("WebCalNever").'</option>';
|
||||||
print '</select>';
|
print '</select>';
|
||||||
print "</td>
|
print '</td></tr></table>';
|
||||||
</tr>
|
print '<br>';
|
||||||
<tr class=\"pair\">
|
print "<input type=\"submit\" name=\"test\" value=\"".$langs->trans("TestConnection")."\">";
|
||||||
<td colspan=\"2\" align=\"center\">
|
print " ";
|
||||||
<input type=\"submit\" name=\"test\" value=\"".$langs->trans("TestConnection")."\">
|
print "<input type=\"submit\" name=\"save\" value=\"".$langs->trans("Save")."\">";
|
||||||
<input type=\"submit\" name=\"save\" value=\"".$langs->trans("Save")."\">
|
print "</form>\n";
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>\n";
|
|
||||||
|
|
||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
if ($ok) print "$ok<br>";
|
if ($ok) print "<br>$ok<br>";
|
||||||
|
|
||||||
|
|
||||||
// Test de la connection a la database webcalendar
|
// Test de la connection a la database webcalendar
|
||||||
if ($actiontest)
|
if ($actiontest && ($phpwebcalendar_pass == $phpwebcalendar_pass2))
|
||||||
{
|
{
|
||||||
$webcal = new DoliDb('',$phpwebcalendar_host,$phpwebcalendar_user,$phpwebcalendar_pass,$phpwebcalendar_dbname);
|
$webcal = new DoliDb('',$phpwebcalendar_host,$phpwebcalendar_user,$phpwebcalendar_pass,$phpwebcalendar_dbname);
|
||||||
|
|
||||||
if ($webcal->connected == 1 && $webcal->database_selected == 1)
|
if ($webcal->connected == 1 && $webcal->database_selected == 1)
|
||||||
{
|
{
|
||||||
print "<br><font class=\"ok\">La connection au serveur '$phpwebcalendar_host' sur la base '$phpwebcalendar_dbname' a réussi.</font><br>";
|
print "<br><font class=\"ok\">".$langs->trans("WebCalTestOk",$phpwebcalendar_host,$phpwebcalendar_dbname,$phpwebcalendar_user)."</font><br>";
|
||||||
$webcal->close();
|
$webcal->close();
|
||||||
}
|
}
|
||||||
elseif ($webcal->connected == 1)
|
elseif ($webcal->connected == 1)
|
||||||
{
|
{
|
||||||
print "<br><font class=\"error\">La connection au serveur '$phpwebcalendar_host' a réussi mais la base '$phpwebcalendar_dbname' n'a pu être accédée.</font><br>";
|
print "<br><font class=\"error\">".$langs->trans("WebCalTestKo1",$phpwebcalendar_host,$phpwebcalendar_dbname)."</font><br>";
|
||||||
$webcal->close();
|
$webcal->close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<br><font class=\"error\">La connection au serveur '$phpwebcalendar_host' à échoué.</font><br>";
|
print "<br><font class=\"error\">".$langs->trans("WebCalTestKo2",$phpwebcalendar_host,$phpwebcalendar_user)."</font><br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -74,8 +74,18 @@ MenuTopManager=Top menu manager
|
|||||||
MessageOfDay=Message of day
|
MessageOfDay=Message of day
|
||||||
DefaultLanguage=Default language to use (language code)
|
DefaultLanguage=Default language to use (language code)
|
||||||
SystemSuccessfulyUpdated=Your sustem has been updated successfully
|
SystemSuccessfulyUpdated=Your sustem has been updated successfully
|
||||||
|
##### Webcal setup #####
|
||||||
|
WebCal Setup=Webcalendar link setup
|
||||||
WebCalSyncro=Add Dolibarr Event to WebCalendar
|
WebCalSyncro=Add Dolibarr Event to WebCalendar
|
||||||
WebCalAllways=Always, no asking
|
WebCalAllways=Always, no asking
|
||||||
WebCalYesByDefault=On demand (yes by default)
|
WebCalYesByDefault=On demand (yes by default)
|
||||||
WebCalNoByDefault=On demand (no by default)
|
WebCalNoByDefault=On demand (no by default)
|
||||||
WebCalNever=Never
|
WebCalNever=Never
|
||||||
|
WebCalURL=URL for calendar access
|
||||||
|
WebCalServer=Server hosting calendar database
|
||||||
|
WebCalDatabaseName=Database name
|
||||||
|
WebCalUser=User to access database
|
||||||
|
WebCalSetupSaved=Webcalendar setup saved successfully.
|
||||||
|
WebCalTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
||||||
|
WebCalTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
||||||
|
WebCalTestKo2=Connection to server '%s' with user '%s' failed.
|
||||||
@ -1,8 +1,9 @@
|
|||||||
# Dolibarr language file - en_US - other
|
# Dolibarr language file - en_US - other
|
||||||
Calendar=Calendar
|
Calendar=Calendar
|
||||||
LoginWebcal=Login for Webcalendar
|
LoginWebcal=Login for Webcalendar
|
||||||
ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login <b>%s</b> is not defined.
|
|
||||||
AddCalendarEntry=Add entry in calendar
|
AddCalendarEntry=Add entry in calendar
|
||||||
|
ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login <b>%s</b> is not defined.
|
||||||
|
ErrorPasswordDiffers=Passwords differs, please type them again.
|
||||||
Mailing=Mailing
|
Mailing=Mailing
|
||||||
MailingDesc=This page allows you to send mailings to a group of people.
|
MailingDesc=This page allows you to send mailings to a group of people.
|
||||||
MailingResult=Sending mails result
|
MailingResult=Sending mails result
|
||||||
|
|||||||
@ -74,8 +74,18 @@ MenuTopManager=Gestionnaire du menu du haut
|
|||||||
MessageOfDay=Message du jour
|
MessageOfDay=Message du jour
|
||||||
DefaultLanguage=Langue par défaut à utiliser (code langue)
|
DefaultLanguage=Langue par défaut à utiliser (code langue)
|
||||||
SystemSuccessfulyUpdated=Votre système a été mis à jour avec succès
|
SystemSuccessfulyUpdated=Votre système a été mis à jour avec succès
|
||||||
|
##### Webcal setup #####
|
||||||
|
WebCalSetup=Configuration du lien vers le calendrier Webcalendar
|
||||||
WebCalSyncro=Intégrer les évênements Dolibarr dans WebCalendar
|
WebCalSyncro=Intégrer les évênements Dolibarr dans WebCalendar
|
||||||
WebCalAllways=Toujours, sans demander
|
WebCalAllways=Toujours, sans demander
|
||||||
WebCalYesByDefault=Sur demande (oui par défaut)
|
WebCalYesByDefault=Sur demande (oui par défaut)
|
||||||
WebCalNoByDefault=Sur demande (non par défaut)
|
WebCalNoByDefault=Sur demande (non par défaut)
|
||||||
WebCalNever=Jamais
|
WebCalNever=Jamais
|
||||||
|
WebCalURL=Adresse URL d'accès au calendrier
|
||||||
|
WebCalServer=Serveur où la base du calendrier est hébergée
|
||||||
|
WebCalDatabaseName=Nom de la base de données
|
||||||
|
WebCalUser=Identifiant d'accès à la base
|
||||||
|
WebCalSetupSaved=Les identifiants Webcalendar ont été sauvegardés avec succès.
|
||||||
|
WebCalTestOk=La connection au serveur '%s' sur la base '%s' par le user '%s' a réussi.
|
||||||
|
WebCalTestKo1=La connection au serveur '%s' a réussi mais la base '%s' n'a pu être accédée.
|
||||||
|
WebCalTestKo2=La connection au serveur '%s' par le user '%s' à échoué.
|
||||||
@ -3,6 +3,7 @@ Calendar=Calendrier
|
|||||||
LoginWebcal=Login Webcalendar
|
LoginWebcal=Login Webcalendar
|
||||||
AddCalendarEntry=Ajouter entrée dans le calendrier
|
AddCalendarEntry=Ajouter entrée dans le calendrier
|
||||||
ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr <b>%s</b> n'est pas défini.
|
ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr <b>%s</b> n'est pas défini.
|
||||||
|
ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les saisir à nouveau
|
||||||
Mailing=Mailing
|
Mailing=Mailing
|
||||||
MailingDesc=Cet écran vous permet d'envoyer des mailing à un groupe de personne.
|
MailingDesc=Cet écran vous permet d'envoyer des mailing à un groupe de personne.
|
||||||
MailingResult=Résultat de l'envoi du mailing
|
MailingResult=Résultat de l'envoi du mailing
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user