Reduce need of translations
This commit is contained in:
parent
89bf35a8bf
commit
56c2dc2614
@ -228,9 +228,10 @@ class FormWebsite
|
||||
* @param int $pageid Preselected container ID
|
||||
* @param int $showempty Show empty record
|
||||
* @param string $action Action on page that use this select list
|
||||
* @param string $morecss More CSS
|
||||
* @return string HTML select component with list of type of containers
|
||||
*/
|
||||
public function selectContainer($website, $htmlname = 'pageid', $pageid = 0, $showempty = 0, $action = '')
|
||||
public function selectContainer($website, $htmlname = 'pageid', $pageid = 0, $showempty = 0, $action = '', $morecss = 'minwidth200')
|
||||
{
|
||||
global $langs;
|
||||
|
||||
@ -239,11 +240,11 @@ class FormWebsite
|
||||
$out='';
|
||||
if ($atleastonepage && $action != 'editsource')
|
||||
{
|
||||
$out.='<select name="'.$htmlname.'" id="'.$htmlname.'" class="minwidth200 maxwidth300">';
|
||||
$out.='<select name="'.$htmlname.'" id="'.$htmlname.'" class="maxwidth300'.($morecss ? ' '.$morecss : '').'">';
|
||||
}
|
||||
else
|
||||
{
|
||||
$out.='<select name="pageidbis" id="pageid" class="minwidth200 maxwidth300" disabled="disabled">';
|
||||
$out.='<select name="pageidbis" id="pageid" class="maxwidth300'.($morecss ? ' '.$morecss : '').'" disabled="disabled">';
|
||||
}
|
||||
|
||||
if ($showempty || ! $atleastonepage) $out.='<option value="-1"> </option>';
|
||||
|
||||
@ -5030,7 +5030,7 @@ function migrate_users_socialnetworks()
|
||||
dol_print_error($db);
|
||||
$db->rollback();
|
||||
}
|
||||
print '<b>'.$langs->trans('MigrationUsersSocialNetworks')."</b><br>\n";
|
||||
print '<b>'.$langs->trans('MigrationFieldsSocialNetworks', 'Users')."</b><br>\n";
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -5121,7 +5121,7 @@ function migrate_members_socialnetworks()
|
||||
dol_print_error($db);
|
||||
$db->rollback();
|
||||
}
|
||||
print '<b>'.$langs->trans('MigrationMembersSocialNetworks')."</b><br>\n";
|
||||
print '<b>'.$langs->trans('MigrationFieldsSocialNetworks', 'Members')."</b><br>\n";
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -5216,7 +5216,7 @@ function migrate_contacts_socialnetworks()
|
||||
dol_print_error($db);
|
||||
$db->rollback();
|
||||
}
|
||||
print '<b>'.$langs->trans('MigrationContactsSocialNetworks')."</b><br>\n";
|
||||
print '<b>'.$langs->trans('MigrationFieldsSocialNetworks', 'Contacts')."</b><br>\n";
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -5306,6 +5306,6 @@ function migrate_thirdparties_socialnetworks()
|
||||
dol_print_error($db);
|
||||
$db->rollback();
|
||||
}
|
||||
print '<b>'.$langs->trans('MigrationThirdpartiesSocialNetworks')."</b><br>\n";
|
||||
print '<b>'.$langs->trans('MigrationFieldsSocialNetworks', 'Thirdparties')."</b><br>\n";
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
@ -205,10 +205,7 @@ MigrationRemiseExceptEntity=Update entity field value of llx_societe_remise_exce
|
||||
MigrationUserRightsEntity=Update entity field value of llx_user_rights
|
||||
MigrationUserGroupRightsEntity=Update entity field value of llx_usergroup_rights
|
||||
MigrationUserPhotoPath=Migration of photo paths for users
|
||||
MigrationUsersSocialNetworks=Migration of users fields social networks
|
||||
MigrationMembersSocialNetworks=Migration of members fields social networks
|
||||
MigrationContactsSocialNetworks=Migration of contacts fields social networks
|
||||
MigrationThirdpartiesSocialNetworks=Migration of thirdparties fields social networks
|
||||
MigrationFieldsSocialNetworks=Migration of users fields social networks (%s)
|
||||
MigrationReloadModule=Reload module %s
|
||||
MigrationResetBlockedLog=Reset module BlockedLog for v7 algorithm
|
||||
ShowNotAvailableOptions=Show unavailable options
|
||||
|
||||
@ -3059,9 +3059,10 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
||||
}
|
||||
elseif ($result > 0)
|
||||
{
|
||||
$translationof = $sourcepage->id;
|
||||
$translationof = 0;
|
||||
//$translationof = $sourcepage->id;
|
||||
print '<span class="opacitymedium">'.$langs->trans('ThisPageIsTranslationOf').'</span> ';
|
||||
print $formwebsite->selectContainer($website, 'pageidfortranslation', $sourcepage->id, 1, $action);
|
||||
print $formwebsite->selectContainer($website, 'pageidfortranslation', $translationof, 1, $action, 'minwidth300');
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user