How to edit (Да ,Нет)can't done by control panel translation

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

How to edit (Да ,Нет)can't done by control panel translation

Postby mhmdup » 17 Jun 2015, 20:46

Dear
In the Rename menu item box
How to edit (Да ,Нет)can't done by control panel translation

Regards
Attachments
Rename menu item.jpg
Rename menu item.jpg (77.31 KiB) Viewed 5938 times
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0

Re: How to edit (Да ,Нет)can't done by control panel transla

Postby fisher » 19 Jun 2015, 11:19

please change the code in file protected\modules\menumanager\views\backend\
Code: Select all

function rename_node(e,data){
    var oldName=data.rslt.old_name;
    var newName=data.rslt.new_name;

    if(oldName==newName) return;

    dlgConfirm.confirm("<?php echo CJavaScript::encode(tt("Dou you really want to rename menu item")); ?> "+oldName+" <?php echo CJavaScript::encode(tt("in")); ?> "+newName+" ",<?php echo CJavaScript::encode(tt("Rename menu item")); ?>,
        function(){
            $.post(
                '<?php echo $this->createUrl("rename"); ?>',
                {
                    "pid" : data.rslt.obj.attr("pid"),
                    "title" : newName
                },
                function (respdata) {
                    jstree.jstree("refresh");
                }
            )
                .error(function(jqXHR){
                    $.jstree.rollback(data.rlbk);
                    dlgStatus.notice(jqXHR.responseText,<?php echo CJavaScript::encode(tc("Error")); ?>).open();
                });
        },true,
        function(){
            $.jstree.rollback(data.rlbk);
        },
    ).open();
}; 

to
Code: Select all

function rename_node(e,data){
    var oldName=data.rslt.old_name;
    var newName=data.rslt.new_name;

    if(oldName==newName) return;

    dlgConfirm.confirm("<?php echo CJavaScript::encode(tt("Dou you really want to rename menu item")); ?> "+oldName+" <?php echo CJavaScript::encode(tt("in")); ?> "+newName+" ",<?php echo CJavaScript::encode(tt("Rename menu item")); ?>,
        function(){
            $.post(
                '<?php echo $this->createUrl("rename"); ?>',
                {
                    "pid" : data.rslt.obj.attr("pid"),
                    "title" : newName
                },
                function (respdata) {
                    jstree.jstree("refresh");
                }
            )
                .error(function(jqXHR){
                    $.jstree.rollback(data.rlbk);
                    dlgStatus.notice(jqXHR.responseText,<?php echo CJavaScript::encode(tc("Error")); ?>).open();
                });
        },true,
        function(){
            $.jstree.rollback(data.rlbk);
        },
                undefined,
                <?php echo CJavaScript::encode(tc("Yes")); ?>,
                <?php echo CJavaScript::encode(tc("No")); ?>
    ).open();
}; 
fisher
Citizen
Citizen
 
Posts: 63
Joined: 15 Apr 2013, 09:30
Reputation point: 1


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 12 guests

cron