Skip to content

Commit

Permalink
Merge pull request #12400 from grandoc/new_branch_09_11_2019
Browse files Browse the repository at this point in the history
internationalization
  • Loading branch information
eldy committed Nov 9, 2019
2 parents 431337e + d760b79 commit 84f5502
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion htdocs/adherents/agenda.php
Expand Up @@ -110,7 +110,7 @@
$form = new Form($db);

/*
* Fiche categorie de client et/ou fournisseur
* Customer and/or supplier category sheet
*/
if ($object->id > 0)
{
Expand Down
8 changes: 4 additions & 4 deletions htdocs/adherents/subscription.php
Expand Up @@ -24,7 +24,7 @@
/**
* \file htdocs/adherents/subscription.php
* \ingroup member
* \brief Onglet d'ajout, edition, suppression des adhesions d'un adherent
* \brief tab for Adding, editing, deleting a member's memberships
*/

require '../main.inc.php';
Expand Down Expand Up @@ -86,7 +86,7 @@
// Define variables to know what current user can do on properties of user linked to edited member
if ($object->user_id)
{
// $user est le user qui edite, $object->user_id est l'id de l'utilisateur lies au membre edite
// $user is the user editing, $object->user_id is the user's id linked to the edited member
$caneditfielduser=( (($user->id == $object->user_id) && $user->rights->user->self->creer)
|| (($user->id != $object->user_id) && $user->rights->user->user->creer) );
$caneditpassworduser=( (($user->id == $object->user_id) && $user->rights->user->self->password)
Expand Down Expand Up @@ -554,12 +554,12 @@
if (! $adht->subscription)
{
print $langs->trans("SubscriptionNotRecorded");
if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Display a delay picto only if it is not a draft and is not canceled
}
else
{
print $langs->trans("SubscriptionNotReceived");
if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Affiche picto retard uniquement si non brouillon et non resilie
if ($object->statut > 0) print " ".img_warning($langs->trans("Late")); // Display a delay picto only if it is not a draft and is not canceled
}
}
print '</td></tr>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/adherents/type.php
Expand Up @@ -412,7 +412,7 @@
$object->fetch_optionals();

/*
* Confirmation suppression
* Confirmation deletion
*/
if ($action == 'delete')
{
Expand Down
6 changes: 3 additions & 3 deletions htdocs/adherents/type_ldap.php
Expand Up @@ -121,7 +121,7 @@
dol_fiche_end();

/*
* Barre d'actions
* Action bar
*/

print '<div class="tabsAction">';
Expand All @@ -137,7 +137,7 @@



// Affichage attributs LDAP
// Display LDAP attributes
print load_fiche_titre($langs->trans("LDAPInformationsForThisMemberType"));

print '<table width="100%" class="noborder">';
Expand All @@ -147,7 +147,7 @@
print '<td>'.$langs->trans("Value").'</td>';
print '</tr>';

// Lecture LDAP
// LDAP reading
$ldap=new Ldap();
$result=$ldap->connect_bind();
if ($result > 0)
Expand Down
10 changes: 5 additions & 5 deletions htdocs/adherents/type_translation.php
Expand Up @@ -22,7 +22,7 @@
/**
* \file htdocs/adherents/type_translation.php
* \ingroup product
* \brief Page de traduction des produits
* \brief Member translation page
*/

require '../main.inc.php';
Expand Down Expand Up @@ -50,7 +50,7 @@
* Actions
*/

// retour a l'affichage des traduction si annulation
// return to translation display if cancellation
if ($cancel == $langs->trans("Cancel"))
{
$action = '';
Expand All @@ -70,7 +70,7 @@
$object->fetch($id);
$current_lang = $langs->getDefaultLang();

// update de l'objet
// update of object
if ( $_POST["forcelangprod"] == $current_lang )
{
$object->label = $_POST["libelle"];
Expand All @@ -84,7 +84,7 @@
$object->multilangs[$_POST["forcelangprod"]]["other"] = dol_htmlcleanlastbr($_POST["other"]);
}

// sauvegarde en base
// backup into database
if ( $object->setMultiLangs($user) > 0 )
{
$action = '';
Expand All @@ -103,7 +103,7 @@
$object->fetch($id);
$current_lang = $langs->getDefaultLang();

foreach ($object->multilangs as $key => $value) // enregistrement des nouvelles valeurs dans l'objet
foreach ($object->multilangs as $key => $value) // saving new values in the object
{
if ( $key == $current_lang )
{
Expand Down

0 comments on commit 84f5502

Please sign in to comment.