Task #1730 : translate javascript message
This commit is contained in:
parent
b20c6e7c65
commit
052b9904b8
20 changed files with 1364 additions and 595 deletions
|
|
@ -49,7 +49,7 @@ function update_predef(p_type, p_direct, p_ac)
|
|||
if (a.length == 0)
|
||||
{
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box(content[48] + rec);
|
||||
}
|
||||
var code_html = getNodeText(html[0]);
|
||||
code_html = unescape_xml(code_html);
|
||||
|
|
@ -113,7 +113,7 @@ function update_name()
|
|||
*/
|
||||
function error_get_predef(request, json)
|
||||
{
|
||||
alert_box("Erreur mise à jour champs non possible");
|
||||
alert_box(content[49]);
|
||||
|
||||
}
|
||||
/**
|
||||
|
|
@ -224,7 +224,7 @@ function success_update_bank(req)
|
|||
if (a.length == 0)
|
||||
{
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box('UPDBK-'+content[48]+ rec);
|
||||
}
|
||||
var name_ctl = a[0].firstChild.nodeValue;
|
||||
var code_html = getNodeText(html[0]);
|
||||
|
|
@ -267,7 +267,7 @@ function success_get_last_date(req)
|
|||
if (a.length == 0)
|
||||
{
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box('GETLASTDA:'+content[48] + rec);
|
||||
}
|
||||
var name_ctl = a[0].firstChild.nodeValue;
|
||||
var code_html = getNodeText(html[0]);
|
||||
|
|
@ -298,7 +298,7 @@ function success_get_pj(request, json)
|
|||
*/
|
||||
function error_get_pj(request, json)
|
||||
{
|
||||
alert_box("Ajax a echoue");
|
||||
alert_box("GETPJ:"+content[48]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -644,7 +644,7 @@ function go_next_concerned()
|
|||
{
|
||||
if (elmt.checked == true)
|
||||
{
|
||||
return confirm("Si vous changez de page vous perdez les reconciliations, continuez ?");
|
||||
return confirm(content[52]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1028,13 +1028,13 @@ function success_dsp_letter(req)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box("DSPLETTER:"+content[48] + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
function error_dsp_letter(req)
|
||||
{
|
||||
alert_box('Erreur AJAX DSP_LETTER');
|
||||
alert_box("DSPLETTER:"+content[48]);
|
||||
}
|
||||
|
||||
function search_letter(obj)
|
||||
|
|
@ -1254,7 +1254,7 @@ function gestion_add_row()
|
|||
}
|
||||
function document_remove(p_dossier,p_div,p_jrid)
|
||||
{
|
||||
smoke.confirm('Effacer ?', function (e)
|
||||
smoke.confirm(content[50], function (e)
|
||||
{
|
||||
if (e) {
|
||||
new Ajax.Request('ajax_misc.php',
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ function result_poste_search(req)
|
|||
}
|
||||
catch(e)
|
||||
{
|
||||
alert_box("Impossible executer script de la reponse\n"+e.message);
|
||||
alert_box("RESPOSEAR"+content[48]+e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -235,7 +235,7 @@ function result_poste_search(req)
|
|||
*/
|
||||
function errorPoste()
|
||||
{
|
||||
alert_box('Ajax failed');
|
||||
alert_box(content[53]);
|
||||
}
|
||||
function pausecomp(millis)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ function folder_display(p_user)
|
|||
*/
|
||||
function folder_remove(p_user,p_dossier )
|
||||
{
|
||||
smoke.confirm ('Confirmer',
|
||||
smoke.confirm (content[50] ,
|
||||
function (e) {
|
||||
if (e ) {
|
||||
waiting_box();
|
||||
|
|
@ -119,7 +119,7 @@ function folder_add(p_user, p_dossier)
|
|||
var html = answer.getElementsByTagName('content');
|
||||
if (a.length == 0) {
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box('FOLDERADD-'+content[48] + rec);
|
||||
}
|
||||
|
||||
var content = getNodeText(html[0]);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function clean_Fid(p_ctl)
|
|||
}
|
||||
function errorFid(request,json)
|
||||
{
|
||||
alert_box('erreur : ajax fiche');
|
||||
alert_box('ERRFID'+content[48]);
|
||||
}
|
||||
/*!\brief this function fills the data from fid.php,
|
||||
* \param p_ctl object : field of the input,
|
||||
|
|
@ -184,7 +184,7 @@ function successFid(request,json)
|
|||
}
|
||||
function ajax_error_saldo(request,json)
|
||||
{
|
||||
alert_box('erreur : ajax solde ');
|
||||
alert_box('ERRSAL'+content[48]);
|
||||
}
|
||||
/*!\brief this function get the saldo
|
||||
* \param p_ctl the ctrl where we take the quick_code
|
||||
|
|
@ -246,7 +246,7 @@ function ajax_get_success(request,json)
|
|||
*/
|
||||
function ajax_get_failure(request,json)
|
||||
{
|
||||
alert_box("Ajax do not work for ajax_get");
|
||||
alert_box(content[53]);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,13 +41,13 @@ function add_row(p_table, p_seq)
|
|||
|
||||
if (mytable.rows.length > 15)
|
||||
{
|
||||
alert_box("Maximum 15 lignes ");
|
||||
alert_box(content[55]);
|
||||
return;
|
||||
}
|
||||
var amount = compute_total_table(p_table, p_seq);
|
||||
if (max < amount)
|
||||
{
|
||||
alert_box('Montant incorrect : max = ' + max + " calculé=" + amount);
|
||||
alert_box(content[48]+' '+content[56]+ ' '+max + content[57]+' '+ amount);
|
||||
return;
|
||||
}
|
||||
// For the detail view (modify_op) there is several form and then several time the
|
||||
|
|
@ -180,7 +180,7 @@ function verify_ca(div)
|
|||
}
|
||||
if (amount_error != 0)
|
||||
{
|
||||
alert_box('Désolé, les montants pour la comptabilité analytique sont incorrects');
|
||||
alert_box(content[54]);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
@ -328,7 +328,7 @@ function caod_checkTotal()
|
|||
*/
|
||||
function anc_remove_operation(p_dossier, p_oa_group)
|
||||
{
|
||||
smoke.confirm("Etes-vous sur de vouloir effacer cette operation ?\n",
|
||||
smoke.confirm(content[50]+"\n",
|
||||
function (a)
|
||||
{
|
||||
if ( a) {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ function cal()
|
|||
}
|
||||
catch(exception)
|
||||
{
|
||||
alert_box("Mauvaise formule\n"+p_variable);
|
||||
alert_box(content[48]+p_variable);
|
||||
return false;
|
||||
}
|
||||
p_history=p_variable+"="+result.toString()+'<br>'+p_history;
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ function result_card_search(req)
|
|||
}
|
||||
catch(e)
|
||||
{
|
||||
alert_box("Impossible executer script de la reponse\n"+e.message);
|
||||
alert_box(content[53]+"\n"+e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -392,7 +392,7 @@ function clean_Fid(p_ctl)
|
|||
}
|
||||
function errorFid(request,json)
|
||||
{
|
||||
alert_box('erreur : ajax fiche');
|
||||
alert_box(content[53]);
|
||||
}
|
||||
function update_value(text,li)
|
||||
{
|
||||
|
|
@ -533,7 +533,7 @@ function successFill_ipopcard(req,json)
|
|||
}
|
||||
catch(e)
|
||||
{
|
||||
alert_box("Impossible executer script de la reponse\n"+e.message);
|
||||
alert_box(content[53]+"\n"+e.message);
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ function controleBalance()
|
|||
{
|
||||
if ( checkTotalDirect() == true ) { return true;}
|
||||
else {
|
||||
smoke.alert('Balance incorrecte D/C');
|
||||
smoke.alert(content[58]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -82,13 +82,13 @@ function successRemoveOp(request,json)
|
|||
{
|
||||
try{
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
if ( answer.ago_id == -1 ) { alert_box ('Effacement non autorisé');return;}
|
||||
if ( answer.ago_id == -1 ) { alert_box (content[59]);return;}
|
||||
|
||||
var action="acop"+answer.ago_id;
|
||||
$(action).innerHTML="";
|
||||
var doc="op"+answer.ago_id;
|
||||
$(doc).style.color="red";
|
||||
$(doc).href="javascript:alert_box('Commentaire Effacé')";
|
||||
$(doc).href="javascript:alert_box(content[60])";
|
||||
$(doc).style.textDecoration="line-through";
|
||||
}catch(e){
|
||||
alert_box(e.message);
|
||||
|
|
@ -117,12 +117,12 @@ function remove_action(p_dossier,p_id,ag_id)
|
|||
onSuccess:function(request,json) {
|
||||
try{
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
if ( answer.act_id == -1 ) { alert_box ('Effacement non autorisé');return;}
|
||||
if ( answer.act_id == -1 ) { alert_box (content[59]);return;}
|
||||
var action="acact"+answer.act_id;
|
||||
$(action).innerHTML="";
|
||||
var doc="act"+answer.act_id;
|
||||
$(doc).style.color="red";
|
||||
$(doc).href="javascript:alert_box('Action Effacée')";
|
||||
$(doc).href="javascript:alert_box(content[60])";
|
||||
$(doc).style.textDecoration="line-through";
|
||||
} catch (e){ alert_box(e.message);}
|
||||
}
|
||||
|
|
@ -159,12 +159,12 @@ function remove_comment(p_dossier,p_id)
|
|||
function successRemoveComment(request,json)
|
||||
{
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
if ( answer.agc_id == -1 ) { alert_box ('Effacement non autorisé');return;}
|
||||
if ( answer.agc_id == -1 ) { alert_box (content[59]);return;}
|
||||
var action="accom"+answer.agc_id;
|
||||
$(action).innerHTML="";
|
||||
var doc="com"+answer.agc_id;
|
||||
$(doc).style.color="red";
|
||||
$(doc).href="javascript:alert_box('Commentaire Effacé')";
|
||||
$(doc).href="javascript:alert_box(content[60])";
|
||||
$(doc).style.textDecoration="line-through";
|
||||
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ function successRemoveDoc(request,json)
|
|||
$(action).innerHTML="";
|
||||
var doc="doc"+answer.d_id;
|
||||
$(doc).style.color="red";
|
||||
$(doc).href="javascript:alert_box('Document Effacé')";
|
||||
$(doc).href="javascript:alert_box(content[60])";
|
||||
$(doc).style.textDecoration="line-through";
|
||||
$('desc'+answer.d_id).innerHTML="";
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ function check_hour(p_ctl)
|
|||
var h=document.getElementById(p_ctl);
|
||||
var re = /^\d{1,2}:\d{2}$/;
|
||||
if ( trim(h.value) !='' && ! h.value.match(re))
|
||||
alert_box("Format de l'heure est HH:MM ")
|
||||
alert_box("HH:MM ")
|
||||
}
|
||||
catch (erreur)
|
||||
{
|
||||
|
|
@ -218,7 +218,7 @@ function check_hour(p_ctl)
|
|||
|
||||
function removeStock(s_id,p_dossier)
|
||||
{
|
||||
smoke.confirm("Confirmez-vous l'effacement de cette entrée dans le stock?",
|
||||
smoke.confirm(content[50],
|
||||
function (a) {
|
||||
if (a)
|
||||
{
|
||||
|
|
@ -244,7 +244,7 @@ function removeStock(s_id,p_dossier)
|
|||
*/
|
||||
function errorRemoveStock()
|
||||
{
|
||||
alert_box('Impossible d\'effacer ');
|
||||
alert_box(content[60]);
|
||||
}
|
||||
/**
|
||||
*@brief success when removing a document
|
||||
|
|
@ -300,7 +300,7 @@ function action_show(p_dossier)
|
|||
function action_add(p_dossier) {
|
||||
try {
|
||||
if ( $('action_add_div')) {
|
||||
alert_box('Désolé, événement en cours de création à sauver');
|
||||
alert_box(content[61]);
|
||||
return;
|
||||
}
|
||||
waiting_box();
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ var ManageTable = function (p_table_name)
|
|||
var ctl_row = xml.getElementsByTagName("ctl_row");
|
||||
if (status.length == 0 || ctl.length == 0 || html.length == 0)
|
||||
{
|
||||
throw "Invalid answer " + req.responseText;
|
||||
throw content[53] + req.responseText;
|
||||
|
||||
}
|
||||
var answer=[];
|
||||
|
|
@ -228,7 +228,7 @@ var ManageTable = function (p_table_name)
|
|||
|
||||
} else {
|
||||
remove_waiting_box();
|
||||
smoke.alert("Changement impossible");
|
||||
smoke.alert(content[48]);
|
||||
$("dtr").update(answer['html']);
|
||||
|
||||
}
|
||||
|
|
@ -306,7 +306,7 @@ var ManageTable = function (p_table_name)
|
|||
$(obj.id).setStyle({position: "fixed", top: '15%', width: "auto", "margin-left": "20%"});
|
||||
$(obj.id).update(x['html']);
|
||||
} catch (e) {
|
||||
smoke.alert("ERREUR " + e.message);
|
||||
smoke.alert(content[48] + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,6 +84,6 @@ function modify_document_success_box(req,json)
|
|||
}
|
||||
catch(e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n"+e.message);
|
||||
alert_box(content[53]+"\n"+e.message);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ function infodiv(req, json)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ function infodiv(req, json)
|
|||
*/
|
||||
function deleteRow(tb, obj)
|
||||
{
|
||||
smoke.confirm('Confirmez effacement',function (e)
|
||||
smoke.confirm(content[50],function (e)
|
||||
{
|
||||
if (e) {
|
||||
var td = obj.parentNode;
|
||||
|
|
@ -291,13 +291,13 @@ function toggleHideShow(p_obj, p_button)
|
|||
if (stat === 'none')
|
||||
{
|
||||
show(p_obj);
|
||||
str = str.replace(/Afficher/, 'Cacher');
|
||||
str = str.replace(/Afficher/, content[62]);
|
||||
g(p_button).value = str;
|
||||
}
|
||||
else
|
||||
{
|
||||
hide(p_obj);
|
||||
str = str.replace(/Cacher/, 'Afficher');
|
||||
str = str.replace(/Cacher/, content[63]);
|
||||
g(p_button).value = str;
|
||||
}
|
||||
}
|
||||
|
|
@ -394,21 +394,21 @@ function success_misc(req)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function loading()
|
||||
{
|
||||
var str = '<h2> Un instant ...</h2>';
|
||||
var str = '<h2>'+content[64]+'</h2>';
|
||||
str = str + '<image src="image/loading.gif" alt="chargement"></image>';
|
||||
return str;
|
||||
}
|
||||
|
||||
function ajax_misc_failure()
|
||||
{
|
||||
alert_box('Ajax Misc failed');
|
||||
alert_box(content[53]);
|
||||
}
|
||||
/**
|
||||
*@brief remove a document_modele
|
||||
|
|
@ -606,17 +606,7 @@ function success_set_tva_label(req)
|
|||
}
|
||||
|
||||
}
|
||||
/**
|
||||
*@brief set loading for waiting
|
||||
*@param name of ipopup
|
||||
*@see showIPopup
|
||||
*@deprecated
|
||||
*/
|
||||
function set_wait_obsolete(name)
|
||||
{
|
||||
var content = name + "_content";
|
||||
$(content).innerHTML = 'Un instant...<image src="image/loading.gif" border="0" alt="Chargement...">';
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a div without showing it
|
||||
* @param {type} obj
|
||||
|
|
@ -744,7 +734,7 @@ function waiting_node()
|
|||
function waiting_box()
|
||||
{
|
||||
var obj = {
|
||||
id: 'wait_box', html: '<h2 class="title">Chargement</h2>' + loading()
|
||||
id: 'wait_box', html: '<h2 class="title">'+content[65]+'</h2>' + loading()
|
||||
};
|
||||
var y = fixed_position(10, 250)
|
||||
obj.style = y + ";width:20%;margin-left:40%;";
|
||||
|
|
@ -806,7 +796,7 @@ function success_box(req, json)
|
|||
if (a.length === 0)
|
||||
{
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box(content[48] + rec);
|
||||
}
|
||||
var name_ctl = a[0].firstChild.nodeValue;
|
||||
var code_html = getNodeText(html[0]);
|
||||
|
|
@ -828,13 +818,13 @@ function success_box(req, json)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
}
|
||||
|
||||
function error_box()
|
||||
{
|
||||
alert_box('[error_box] ajax not implemented');
|
||||
alert_box(content[53]);
|
||||
}
|
||||
/**
|
||||
* show the ledger choice
|
||||
|
|
@ -898,7 +888,7 @@ function show_ledger_choice(json_obj)
|
|||
code_html.evalScripts();
|
||||
}
|
||||
catch (e) {
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1081,9 +1071,9 @@ function show_calc()
|
|||
shtml +="<div class=\"bxbutton\">";
|
||||
shtml += '<a class="icon" onclick="pin(\'calc1\')" id="pin_calc1"></a> <a onclick="removeDiv(\'calc1\');" href="javascript:void(0)" title="" class="icon">⨉</a>';
|
||||
shtml +="</div>";
|
||||
shtml += ' <h2 class="title">Calculatrice</h2>';
|
||||
shtml += '<form name="calc_line" method="GET" onSubmit="cal();return false;" >Calculatrice simplifiée: écrivez simplement les opérations que vous voulez puis la touche retour. exemple : 1+2+3*(1/5) <input class="input_text" type="text" size="30" id="inp" name="calculator"> <input type="button" value="Efface" class="button" onClick="Clean();return false;" > <input type="button" value="Efface historique" class="button" onClick="CleanHistory();return false;" > <input type="button" class="button" value="Fermer" onClick="removeDiv(\'calc1\')" >';
|
||||
shtml += '</form><span class="highligth" style="display:block" id="sub_total"> Taper une formule (ex 20*5.1) puis enter </span><span style="display:block" id="listing"> </span>';
|
||||
shtml += ' <h2 class="title">'+content[66]+'</h2>';
|
||||
shtml += '<form name="calc_line" method="GET" onSubmit="cal();return false;" >'+content[68]+'<input class="input_text" type="text" size="30" id="inp" name="calculator"> <input type="button" value="Efface" class="button" onClick="Clean();return false;" > <input type="button" value="Efface historique" class="button" onClick="CleanHistory();return false;" > <input type="button" class="button" value="Fermer" onClick="removeDiv(\'calc1\')" >';
|
||||
shtml += '</form><span class="highligth" style="display:block" id="sub_total"> '+ content[67]+' </span><span style="display:block" id="listing"> </span>';
|
||||
|
||||
var obj = {id: sid, html: shtml,
|
||||
drag: false, style: 'z-index:98'
|
||||
|
|
@ -1147,7 +1137,7 @@ function success_display_periode(req)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("success_display_periode Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1215,7 +1205,7 @@ function fill_box(req)
|
|||
console.error(e);
|
||||
console.error("log answer = "+req.responseText);
|
||||
}
|
||||
alert_box("Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1566,7 +1556,7 @@ function display_sub_menu(p_dossier,p_profile,p_dep,p_level)
|
|||
*/
|
||||
function remove_sub_menu(p_dossier,profile_menu_id)
|
||||
{
|
||||
confirm_box(null,'Confirme ?',
|
||||
confirm_box(null,content[47],
|
||||
function () {
|
||||
waiting_box();
|
||||
new Ajax.Request('ajax_misc.php',
|
||||
|
|
@ -2118,7 +2108,7 @@ function view_action(ag_id, dossier, modify)
|
|||
* @see HtmlInput::filter_table
|
||||
*/
|
||||
function filter_table(phrase, _id, colnr, start_row) {
|
||||
$('info_div').innerHTML = "Un instant";
|
||||
$('info_div').innerHTML = content[65];
|
||||
$('info_div').style.display = "block";
|
||||
var words = $(phrase).value.toLowerCase();
|
||||
var table = document.getElementById(_id);
|
||||
|
|
@ -2159,7 +2149,7 @@ function filter_table(phrase, _id, colnr, start_row) {
|
|||
}
|
||||
if (tot_found == 0) {
|
||||
if ($('info_' + _id)) {
|
||||
$('info_' + _id).innerHTML = " Aucun résultat ";
|
||||
$('info_' + _id).innerHTML = content[69]
|
||||
}
|
||||
} else {
|
||||
if ($('info_' + _id)) {
|
||||
|
|
@ -2167,6 +2157,7 @@ function filter_table(phrase, _id, colnr, start_row) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief
|
||||
* Display the task late or for today in dashboard
|
||||
|
|
@ -2293,7 +2284,7 @@ function show_bookmark(p_dossier) {
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2327,7 +2318,7 @@ function save_bookmark() {
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2359,7 +2350,7 @@ function remove_bookmark() {
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2413,7 +2404,7 @@ function show_tag(p_dossier, p_ac, p_tag_id, p_post)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box("answer_box Impossible executer script de la reponse\n" + e.message);
|
||||
alert_box(content[53]+"\n" + e.message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2533,7 +2524,7 @@ function action_tag_add(p_dossier, ag_id, t_id)
|
|||
*/
|
||||
function action_tag_remove(p_dossier, ag_id, t_id)
|
||||
{
|
||||
confirm_box(null,'Enlevez ce tags ?',function () {
|
||||
confirm_box(null,content[50],function () {
|
||||
try {
|
||||
waiting_box();
|
||||
var queryString = "t_id=" + t_id + "&ag_id=" + ag_id + "&op=tag_remove&gDossier=" + p_dossier;
|
||||
|
|
@ -3423,7 +3414,7 @@ function progress_bar_start(p_taskid,p_message)
|
|||
try {
|
||||
progressIdx++;
|
||||
// block the window
|
||||
var message="Un instant svp";
|
||||
var message=content[65];
|
||||
if ( p_message) {
|
||||
message=p_message;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ function todo_list_show(p_id)
|
|||
if (tl_id.length == 0)
|
||||
{
|
||||
var rec = req.responseText;
|
||||
alert_box('erreur :' + rec);
|
||||
alert_box(content[48] + rec);
|
||||
}
|
||||
var content = unescape_xml(getNodeText(tl_content[0]));
|
||||
todo_div.innerHTML=content;
|
||||
|
|
@ -81,13 +81,13 @@ function todo_list_show(p_id)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
alert_box(" Envoi ajax non possible" + e.message);
|
||||
alert_box(content[48] + e.message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function todo_list_show_error(request_json)
|
||||
{
|
||||
alert_box('failure');
|
||||
alert_box(content[48]);
|
||||
}
|
||||
function add_todo()
|
||||
{
|
||||
|
|
@ -95,7 +95,7 @@ function add_todo()
|
|||
}
|
||||
function todo_list_remove(p_ctl)
|
||||
{
|
||||
smoke.confirm('Effacer ?',
|
||||
smoke.confirm(content[50],
|
||||
function (e) {
|
||||
if ( !e ) {return;}
|
||||
$("tr" + p_ctl).hide();
|
||||
|
|
@ -141,7 +141,7 @@ function todo_list_save(p_form)
|
|||
alert_box(content[48] + rec);
|
||||
}
|
||||
if ( getNodeText(tl_id[0]) == '0') {
|
||||
smoke.alert('Note est vide');
|
||||
smoke.alert(content[49]);
|
||||
return;
|
||||
}
|
||||
var tr = $('tr'+p_form);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -146,7 +146,7 @@ class Pre_operation
|
|||
$this->detail=new Pre_op_advanced($this->db);
|
||||
break;
|
||||
default:
|
||||
throw new Exception('Load PreOperatoin failed'.$this->od_jrn_type);
|
||||
throw new Exception(sprintf(_('Echec PreOperatoin chargement %s'),$this->od_jrn_type));
|
||||
}
|
||||
$this->detail->set_od_id($this->od_id);
|
||||
$this->detail->jrn_def_id=$this->jrn_def_id;
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ $menu[]=_('Liste Suivi'); $desc[]=_('Document de suivi sous forme de liste');$d
|
|||
$menu[]=_('Moyen de paiement'); $desc[]=_('Config. des méthodes de paiement');$desc_long[]=_('Configuration des moyens de paiements que vous voulez utiliser dans les journaux de type VEN ou ACH, les moyens de paiement permettent de générer l\'opération de trésorerie en même temps que l\'achat, la note de frais ou la vente');
|
||||
$menu[]=_('Administration'); $desc[]=_('Suivi administration, banque');$desc_long[]=_('Suivi des administrations : courrrier, déclarations.');
|
||||
$menu[]=_('Prévision'); $desc[]=_('Prévision');$desc_long[]=_('Prévision de vos achats, revenus, permet de suivre l\'évolution de votre société. Vos prévisions sont des formules sur les postes comptables et vous permettent aussi vos marges brutes.');
|
||||
$menu[]=_('Export opérations rapprochées'); $desc[]=_('Export opérations rapprochées en CSV');$desc_long[]=_(' ');
|
||||
$menu[]=_('Export opérations rapprochées'); $desc[]=_('Export opérations rapprochées en CSV');$desc_long[]=_('');
|
||||
$menu[]=_('Administrateur'); $desc[]=_('Suivi des gérants, administrateurs et salariés');$desc_long[]=_('Suivi de vos salariés, managers ainsi que des administrateurs, pour les documents et les opérations comptables');
|
||||
$menu[]=_('Menu par défaut'); $desc[]=_('Configuration des menus par défaut');$desc_long[]=_('Configuration des menus par défaut, ces menus sont appelés par des actions dans d\'autres menus');
|
||||
$menu[]=_('Agenda'); $desc[]=_('Agenda');$desc_long[]=_('Agenda, présentation du suivi sous forme d\'agenda ');
|
||||
|
|
|
|||
|
|
@ -2755,6 +2755,7 @@ function load_all_script()
|
|||
static $already_call=0;
|
||||
if ( $already_call==1)return;
|
||||
$already_call=1;
|
||||
|
||||
include_once NOALYSS_INCLUDE."/lib/message_javascript.php";
|
||||
echo JS_INFOBULLE;
|
||||
echo js_include('smoke.js');
|
||||
|
|
|
|||
|
|
@ -28,54 +28,78 @@
|
|||
?>
|
||||
<script>
|
||||
var content=new Array();
|
||||
content[0]="<?php echo _("Cherchez en saisissant le quickcode, le poste comptable ou une partie du nom de la fiche ou de l'adresse")?>";
|
||||
content[1]="<?php echo _("(optionnel) La description est un commentaire libre qui sert à identifier cette opération")?>";
|
||||
content[2]="<?php echo _("Selectionnez le journal où l'opération doit être sauvée")?>";
|
||||
content[3]="<?php echo _("Les périodes comptables servent comme un second contrôle pour la date de l'opération. Modifiez dans vos préférence pour avoir une autre période par défaut. Pour ne plus avoir à changer la période aller dans COMPANY, et mettez 'Afficher la période comptable' à non")?>";
|
||||
content[4]="<?php echo _("(optionnel) L'échéance est la date limite de paiement")?>";
|
||||
content[5]="<?php echo _("(optionnel)Le numéro d'extrait permet de retrouver plus facilement l'extrait de banque")?>";
|
||||
content[6]="<?php echo _("Indiquez ici le prix hors tva si vous êtes affilié à la tva et que vous pouvez la déduire , sinon indiquez ici le total tva incluse et utilisez un taux tva de 0%")?>";
|
||||
content[7]="<?php echo _("(optionnel) Ces champs servent à contrôler que les montants correspondent à l'extrait")?>";
|
||||
content[8]="<?php echo _("(optionnel) Ce montant correspond au total tva, si vous le laissez à vide, il sera calculé automatiquement en fonction du taux")?>";
|
||||
content[9]="<?php echo _("Tapez le numéro de poste ou une partie du poste ou du libellé puis sur recherche, Si vous avez donné un quickcode, le poste comptable ne sera pas utilisé")?>";
|
||||
content[10]="<?php echo _("ATTENTION changer le poste comptable d'une fiche <b>ne modifiera pas toutes les opérations</b> où cette fiche est utilisée")?>";
|
||||
content[11]="<?php echo _("ATTENTION si le poste comptable est vide, il sera créé automatiquement")?>";
|
||||
content[12]="<?php echo _("Document généré uniquement si le mode de paiement est utilisé")?>";
|
||||
content[13]="<?php echo _("Vous pouvez utiliser le % pour indiquer le poste parent")?>";
|
||||
content[14]="<?php echo _("Attention, le poste comptable doit exister, il ne sera pas vérifié")?>";
|
||||
content[15]="<?php echo _("Laissez à 0 pour ne rien changer")?>";
|
||||
content[16]="<?php echo _("Vous devez donner la date par opération")?>";
|
||||
content[17]="<?php echo _("Cliquez sur le titre d'une colonne pour trier")?>";
|
||||
content[18]="<?php echo _("Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... ")?>";
|
||||
content[19]="<?php echo _("Donnez une partie du nom, de la description, du n° de TVA du poste comptable ou du quick code")?>";
|
||||
content[20]="<?php echo _("Les menus ne peuvent dépendre que dans d'un menu principal ou d'un menu, si cette liste est vide, ajouter des modules ou menu principal sans donner de dépendance")?>";
|
||||
content[21]="<?php echo _("Donnez un nombre entre 0 & 100")?>";
|
||||
content[22]="<?php echo _("Donnez une partie du nom du dossier,du nom, du prénom ou du login pour filtrer")?>";
|
||||
content[23]="<?php echo _("Donnez une partie du nom du dossier ou de la description pour filtrer")?>";
|
||||
content[24]="<?php echo _("Donnez une partie du poste comptable ou du libellé pour filtrer")?>";
|
||||
content[25]="<?php echo _("Donnez une partie du libellé, la date, le montant ou le numéro d'opération pour filtrer, cela n'efface pas ce qui a déjà été sélectionné")?>";
|
||||
content[26]="<?php echo _("Donnez une partie du quickcode, nom, description... pour filtrer")?>";
|
||||
content[27]="<?php echo _("Attention, <b>SI</b> la fiche a changé de poste comptable, c'est seulement le dernier qui est affiché")?>";
|
||||
content[28]="<?php echo _("Attention Différence entre TVA calculée et donnée")?>";
|
||||
content[29]="<?php echo _("Si vous ne donnez pas de nom, ce sera le nom du fichier qui sera utilisé")?>";
|
||||
content[30]="<?php echo _("Peut contenir une information telle que le message structuré sur le virement")?>";
|
||||
content[31]="<?php echo _("Peut contenir un numéro de bon de commande")?>";
|
||||
content[32]="<?php echo _("<h3> Remarque : choix possibles </h3> <ul style='padding-left:15px'> <li> Détail opérations ne donne pas le même résultat si on regarde tous les journaux ou un journal de type ACH ou VEN</li> <li> Liste opérations ne donne pas le même résultat si on regarde tous les journaux ou un journal de type ACH ou VEN</li> <li> Journaux VEN ou ACH en mode détail opérations donne les détails des factures, y compris les montants, TVA et quantité par article</li> <li> Journaux VEN ou ACH en mode liste opérations donne pour chaque opération, le total de la TVA, ND, ...</li> </ul>")?>";
|
||||
content[33]="<?php echo _("le type vaut :<ul> <li> ME pour Menu</li> <li> PR pour les impressions </li> <li> PL pour les plugins</li> <li> SP pour des valeurs spéciales</li> </ul>")?>";
|
||||
content[34]="<?php echo _("Cliquez sur le code AD pour ouvrir le menu dans un nouvel onglet")?>";
|
||||
content[35]="<?php echo _("Cliquez sur le chemin pour ouvrir le menu")?>";
|
||||
content[36]="<?php echo _("En utilisant les dates d échéance ou de paiement, seuls les journaux de type ACH et VEN seront utilisés ,vous excluez d office les autres journaux")?>";
|
||||
content[37]="<?php echo _("Les dates sont en format DD.MM.YYYY")?>";
|
||||
content[38]="<?php echo _("La numérotation est propre à chaque journal. Laissez à 0 pour ne pas changer le numéro")?>";
|
||||
content[39]="<?php echo _("Le préfixe des pièces doit être différent pour chaque journal, on peut aussi utiliser l'année")?>";
|
||||
content[40]="<?php echo _("Laissez à 0 pour ne pas changer le numéro")?>";
|
||||
content[41]="<?php echo _("Mettez le pourcentage <br> à zéro pour effacer la ligne")?>";
|
||||
content[42]="<?php echo _("Selectionnez le plan qui vous intéresse avant de cliquer sur Recherche")?>";
|
||||
content[43]="<?php echo _("Autoliquidation : Utilisé en même temps au crédit et au débit")?>";
|
||||
content[44]="<?php echo _("Ne donner pas ce poste comptable si ce code n'est pas utilisé à l'achat")?>";
|
||||
content[45]="<?php echo _("Ne donner pas ce poste comptable si ce code n'est pas utilisé à la vente")?>";
|
||||
content[46]="<?php echo _("Un instant svp")?>";
|
||||
content[47]="<?php echo _("Vous confirmez ?")?>";
|
||||
content[48]="<?php echo _("Echec ")?>";
|
||||
content[0]="<?php echo escape_xml(_("Cherchez en saisissant le quickcode, le poste comptable ou une partie du nom de la fiche ou de l'adresse"))?>";
|
||||
content[1]="<?php echo escape_xml(_("(optionnel) La description est un commentaire libre qui sert à identifier cette opération"))?>";
|
||||
content[2]="<?php echo escape_xml(_("Selectionnez le journal où l'opération doit être sauvée"))?>";
|
||||
content[3]="<?php echo escape_xml(_("Les périodes comptables servent comme un second contrôle pour la date de l'opération. Modifiez dans vos préférence pour avoir une autre période par défaut. Pour ne plus avoir à changer la période aller dans COMPANY, et mettez 'Afficher la période comptable' à non"))?>";
|
||||
content[4]="<?php echo escape_xml(_("(optionnel) L'échéance est la date limite de paiement"))?>";
|
||||
content[5]="<?php echo escape_xml(_("(optionnel)Le numéro d'extrait permet de retrouver plus facilement l'extrait de banque"))?>";
|
||||
content[6]="<?php echo escape_xml(_("Indiquez ici le prix hors tva si vous êtes affilié à la tva et que vous pouvez la déduire , sinon indiquez ici le total tva incluse et utilisez un taux tva de 0%"))?>";
|
||||
content[7]="<?php echo escape_xml(_("(optionnel) Ces champs servent à contrôler que les montants correspondent à l'extrait"))?>";
|
||||
content[8]="<?php echo escape_xml(_("(optionnel) Ce montant correspond au total tva, si vous le laissez à vide, il sera calculé automatiquement en fonction du taux"))?>";
|
||||
content[9]="<?php echo escape_xml(_("Tapez le numéro de poste ou une partie du poste ou du libellé puis sur recherche, Si vous avez donné un quickcode, le poste comptable ne sera pas utilisé"))?>";
|
||||
content[10]="<?php echo escape_xml(_("ATTENTION changer le poste comptable d'une fiche <b>ne modifiera pas toutes les opérations</b> où cette fiche est utilisée"))?>";
|
||||
content[11]="<?php echo escape_xml(_("ATTENTION si le poste comptable est vide, il sera créé automatiquement"))?>";
|
||||
content[12]="<?php echo escape_xml(_("Document généré uniquement si le mode de paiement est utilisé"))?>";
|
||||
content[13]="<?php echo escape_xml(_("Vous pouvez utiliser le % pour indiquer le poste parent"))?>";
|
||||
content[14]="<?php echo escape_xml(_("Attention, le poste comptable doit exister, il ne sera pas vérifié"))?>";
|
||||
content[15]="<?php echo escape_xml(_("Laissez à 0 pour ne rien changer"))?>";
|
||||
content[16]="<?php echo escape_xml(_("Vous devez donner la date par opération"))?>";
|
||||
content[17]="<?php echo escape_xml(_("Cliquez sur le titre d'une colonne pour trier"))?>";
|
||||
content[18]="<?php echo escape_xml(_("Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "))?>";
|
||||
content[19]="<?php echo escape_xml(_("Donnez une partie du nom, de la description, du n° de TVA du poste comptable ou du quick code"))?>";
|
||||
content[20]="<?php echo escape_xml(_("Les menus ne peuvent dépendre que dans d'un menu principal ou d'un menu, si cette liste est vide, ajouter des modules ou menu principal sans donner de dépendance"))?>";
|
||||
content[21]="<?php echo escape_xml(_("Donnez un nombre entre 0 & 100"))?>";
|
||||
content[22]="<?php echo escape_xml(_("Donnez une partie du nom du dossier,du nom, du prénom ou du login pour filtrer"))?>";
|
||||
content[23]="<?php echo escape_xml(_("Donnez une partie du nom du dossier ou de la description pour filtrer"))?>";
|
||||
content[24]="<?php echo escape_xml(_("Donnez une partie du poste comptable ou du libellé pour filtrer"))?>";
|
||||
content[25]="<?php echo escape_xml(_("Donnez une partie du libellé, la date, le montant ou le numéro d'opération pour filtrer, cela n'efface pas ce qui a déjà été sélectionné"))?>";
|
||||
content[26]="<?php echo escape_xml(_("Donnez une partie du quickcode, nom, description... pour filtrer"))?>";
|
||||
content[27]="<?php echo escape_xml(_("Attention, <b>SI</b> la fiche a changé de poste comptable, c'est seulement le dernier qui est affiché"))?>";
|
||||
content[28]="<?php echo escape_xml(_("Attention Différence entre TVA calculée et donnée"))?>";
|
||||
content[29]="<?php echo escape_xml(_("Si vous ne donnez pas de nom, ce sera le nom du fichier qui sera utilisé"))?>";
|
||||
content[30]="<?php echo escape_xml(_("Peut contenir une information telle que le message structuré sur le virement"))?>";
|
||||
content[31]="<?php echo escape_xml(_("Peut contenir un numéro de bon de commande"))?>";
|
||||
// Because we are using HTML tag , we cannot escape and we must be careful with quote and double-quote, the best
|
||||
// is to avoid them
|
||||
content[32]="<?php echo _("<h3> Remarque : choix possibles </h3> <ul> <li> Détail opérations ne donne pas le même résultat si on regarde tous les journaux ou un journal de type ACH ou VEN</li> <li> Liste opérations ne donne pas le même résultat si on regarde tous les journaux ou un journal de type ACH ou VEN</li> <li> Journaux VEN ou ACH en mode détail opérations donne les détails des factures, y compris les montants, TVA et quantité par article</li> <li> Journaux VEN ou ACH en mode liste opérations donne pour chaque opération, le total de la TVA, ND, ...</li> </ul>")?>";
|
||||
content[33]="<?php echo escape_xml(_("le type vaut :<ul> <li> ME pour Menu</li> <li> PR pour les impressions </li> <li> PL pour les plugins</li> <li> SP pour des valeurs spéciales</li> </ul>"))?>";
|
||||
content[34]="<?php echo escape_xml(_("Cliquez sur le code AD pour ouvrir le menu dans un nouvel onglet"))?>";
|
||||
content[35]="<?php echo escape_xml(_("Cliquez sur le chemin pour ouvrir le menu"))?>";
|
||||
content[36]="<?php echo escape_xml(_("En utilisant les dates d échéance ou de paiement, seuls les journaux de type ACH et VEN seront utilisés ,vous excluez d office les autres journaux"))?>";
|
||||
content[37]="<?php echo escape_xml(_("Les dates sont en format DD.MM.YYYY"))?>";
|
||||
content[38]="<?php echo escape_xml(_("La numérotation est propre à chaque journal. Laissez à 0 pour ne pas changer le numéro"))?>";
|
||||
content[39]="<?php echo escape_xml(_("Le préfixe des pièces doit être différent pour chaque journal, on peut aussi utiliser l'année"))?>";
|
||||
content[40]="<?php echo escape_xml(_("Laissez à 0 pour ne pas changer le numéro"))?>";
|
||||
content[41]="<?php echo escape_xml(_("Mettez le pourcentage <br> à zéro pour effacer la ligne"))?>";
|
||||
content[42]="<?php echo escape_xml(_("Selectionnez le plan qui vous intéresse avant de cliquer sur Recherche"))?>";
|
||||
content[43]="<?php echo escape_xml(_("Autoliquidation : Utilisé en même temps au crédit et au débit"))?>";
|
||||
content[44]="<?php echo escape_xml(_("Ne donner pas ce poste comptable si ce code n'est pas utilisé à l'achat"))?>";
|
||||
content[45]="<?php echo escape_xml(_("Ne donner pas ce poste comptable si ce code n'est pas utilisé à la vente"))?>";
|
||||
content[46]="<?php echo escape_xml(_("Un instant svp"))?>";
|
||||
content[47]="<?php echo escape_xml(_("Vous confirmez ?"))?>";
|
||||
content[48]="<?php echo escape_xml(_("Echec "))?>";
|
||||
content[49]="<?php echo escape_xml(_("Echec donnée manquante ou incorrecte"))?>";
|
||||
content[50]="<?php echo escape_xml(_("Vous confirmez effacement ?"))?>";
|
||||
content[51]="<?php echo escape_xml(_("Vous confirmez mise à jour ?"))?>";
|
||||
content[52]="<?php echo escape_xml(_("Si vous changez de page vous perdez les reconciliations, continuez ?")) ?>";
|
||||
content[53]="<?php echo escape_xml(_("Echec réponse"))?>";
|
||||
content[54]="<?php echo escape_xml(_("Désolé, les montants pour la comptabilité analytique sont incorrects"))?>";
|
||||
content[55]="<?php echo escape_xml(_("Maximum 15 lignes"))?>";
|
||||
content[56]="<?php echo escape_xml(_("Maximum"))?>";
|
||||
content[57]="<?php echo escape_xml(_("calculé"))?>";
|
||||
content[58]="<?php echo escape_xml(_("Balance incorrecte D/C")); ?>";
|
||||
content[59]="<?php echo escape_xml(_("Action non autorisée")); ?>";
|
||||
content[60]="<?php echo escape_xml(_("Donnée manquante ou déjà supprimée")) ?>";
|
||||
content[61]="<?php echo escape_xml(_('Désolé, événement en cours de création à sauver')); ?>";
|
||||
content[62]="<?php echo escape_xml(_("Cacher"))?>";
|
||||
content[63]="<?php echo escape_xml(_("Afficher"))?>";
|
||||
content[64]="<?php echo escape_xml(_("Traitement en cours"))?>";
|
||||
content[65]="<?php echo escape_xml(_("Un instant"))?>";
|
||||
content[66]="<?php echo escape_xml(_("Calculatrice"))?>";
|
||||
content[67]="<?php echo escape_xml(_('Taper une formule (ex 20*5.1) puis enter'))?>";
|
||||
content[68]="<?php echo escape_xml(_("Calculatrice simplifiée: écrivez simplement les opérations que vous voulez puis la touche retour. exemple : 1+2+3*(1/5)"));?>";
|
||||
content[69]="<?php echo escape_xml(_("Aucune donnée"))?>";
|
||||
|
||||
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue