Skip to content
Snippets Groups Projects
Commit 033636da authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5234 fix vars lang

parent 981d51d7
No related branches found
No related tags found
No related merge requests found
...@@ -109,4 +109,5 @@ if (!defined("_TAGCLICKTODEL")) ...@@ -109,4 +109,5 @@ if (!defined("_TAGCLICKTODEL"))
define("_TAGCLICKTODEL", "Erase"); define("_TAGCLICKTODEL", "Erase");
if (!defined("_NAME_TAGS")) if (!defined("_NAME_TAGS"))
define("_NAME_TAGS", "Tag's name"); define("_NAME_TAGS", "Tag's name");
if (!defined("_ADD_TAG_CONFIRM"))
define("_ADD_TAG_CONFIRM", "This word will be added as ".strtolower(_TAG_DEFAULT).".");
...@@ -115,4 +115,5 @@ if (!defined("_PRIVATE_TAGS")) ...@@ -115,4 +115,5 @@ if (!defined("_PRIVATE_TAGS"))
define("_PRIVATE_TAGS", "Restreindre les ".strtolower(_TAGS_DEFAULT)." à l'entité de l'utilisateur (Niveau direction)"); define("_PRIVATE_TAGS", "Restreindre les ".strtolower(_TAGS_DEFAULT)." à l'entité de l'utilisateur (Niveau direction)");
if (!defined("_PRIVATE_TAGS_DESC")) if (!defined("_PRIVATE_TAGS_DESC"))
define("_PRIVATE_TAGS_DESC", "L'utilisateur ne verra que les ".strtolower(_TAGS_DEFAULT)." qui ont été restreints à sa direction (l'ajout / modification associera le mot clé automatiquement à sa direction)."); define("_PRIVATE_TAGS_DESC", "L'utilisateur ne verra que les ".strtolower(_TAGS_DEFAULT)." qui ont été restreints à sa direction (l'ajout / modification associera le mot clé automatiquement à sa direction).");
if (!defined("_ADD_TAG_CONFIRM"))
define("_ADD_TAG_CONFIRM", "Ce mot sera ajouté en tant que ".strtolower(_TAG_DEFAULT).".");
...@@ -49,9 +49,9 @@ if (!is_array($_SESSION['tagsuser'])) { ...@@ -49,9 +49,9 @@ if (!is_array($_SESSION['tagsuser'])) {
//print_r($tags_list); //print_r($tags_list);
if($modify_keyword){ if($modify_keyword){
$frm_str .='<select id="tag_userform" name="tag_userform[]" multiple="" data-placeholder="Aucun mot clé">'; $frm_str .='<select id="tag_userform" name="tag_userform[]" multiple="" data-placeholder=" ">';
}else{ }else{
$frm_str .='<select disabled="disabled" id="tag_userform" title="Vous n\'avez pas le droit d\'associer de mots clés" name="tag_userform[]" multiple="" data-placeholder="Aucun mot clé">'; $frm_str .='<select disabled="disabled" id="tag_userform" title="Vous n\'avez pas le droit d\'associer de mots-clés" name="tag_userform[]" multiple="" data-placeholder=" ">';
} }
if (!empty($tags_list)) { if (!empty($tags_list)) {
......
...@@ -74,7 +74,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>'; ...@@ -74,7 +74,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>';
$frm_str .= '<script type="text/javascript">load_tags('.$rttagfinaldetail.', \''.$s_id.'\', \''.$coll_id.'\');'; $frm_str .= '<script type="text/javascript">load_tags('.$rttagfinaldetail.', \''.$s_id.'\', \''.$coll_id.'\');';
$frm_str .= 'new Chosen($(\'tag_userform\'),{width: "95%", disable_search_threshold: 10, search_contains: true});'; $frm_str .= 'new Chosen($(\'tag_userform\'),{width: "95%", disable_search_threshold: 10, search_contains: true});';
if ($core_tools->test_service('create_tag', 'tags', false) == 1) { if ($core_tools->test_service('create_tag', 'tags', false) == 1) {
$frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("ce mot sera ajouté en tant que mot clé")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});'; $frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("'._ADD_TAG_CONFIRM.'")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});';
} }
$frm_str .= '</script>'; $frm_str .= '</script>';
......
...@@ -66,7 +66,7 @@ $frmStr .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>'; ...@@ -66,7 +66,7 @@ $frmStr .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>';
$frmStr .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');'; $frmStr .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');';
$frmStr .= 'new Chosen($(\'tag_userform\'),{width: "226px", disable_search_threshold: 10,search_contains: true});'; $frmStr .= 'new Chosen($(\'tag_userform\'),{width: "226px", disable_search_threshold: 10,search_contains: true});';
if ($core_tools->test_service('create_tag', 'tags', false) == 1) { if ($core_tools->test_service('create_tag', 'tags', false) == 1) {
$frmStr .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("ce mot sera ajouté en tant que mot clé")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});'; $frmStr .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("'._ADD_TAG_CONFIRM.'")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});';
} }
$frmStr .= '</script>'; $frmStr .= '</script>';
?> ?>
\ No newline at end of file
...@@ -60,7 +60,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>'; ...@@ -60,7 +60,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>';
$frm_str .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');'; $frm_str .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');';
$frm_str .= 'new Chosen($(\'tag_userform\'),{width: "95%", disable_search_threshold: 10, search_contains: true});'; $frm_str .= 'new Chosen($(\'tag_userform\'),{width: "95%", disable_search_threshold: 10, search_contains: true});';
if ($core_tools->test_service('create_tag', 'tags', false) == 1) { if ($core_tools->test_service('create_tag', 'tags', false) == 1) {
$frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("ce mot sera ajouté en tant que mot clé")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});'; $frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("'._ADD_TAG_CONFIRM.'")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});';
} }
$frm_str .= '</script>'; $frm_str .= '</script>';
......
...@@ -65,7 +65,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>'; ...@@ -65,7 +65,7 @@ $frm_str .= '<input type="hidden" id="new_tag_label" name="new_tag_label"/>';
$frm_str .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');'; $frm_str .= '<script type="text/javascript">load_tags('.$route_tag_ui_script.', \''.$res_id.'\', \''.$coll_id.'\');';
$frm_str .= 'new Chosen($(\'tag_userform\'),{width: "226px", disable_search_threshold: 10,search_contains: true});'; $frm_str .= 'new Chosen($(\'tag_userform\'),{width: "226px", disable_search_threshold: 10,search_contains: true});';
if ($core_tools->test_service('create_tag', 'tags', false) == 1) { if ($core_tools->test_service('create_tag', 'tags', false) == 1) {
$frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("ce mot sera ajouté en tant que mot clé")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});'; $frm_str .= '$j( "#tag_userform_chosen input" ).focusout(function() {$j("#new_tag_label").val($j("#tag_userform_chosen input").val());if($j( "#tag_userform_chosen .no-results" ).length){if(confirm("'._ADD_TAG_CONFIRM.'")){add_this_tags('.$route_tag_add_tags_from_res.', '.$route_tag_ui_script.');}}});';
} }
$frm_str .= '</script>'; $frm_str .= '</script>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment