[Помогите] Перевод на украинский 2-х кнопок

Тема в разделе "OpenCart", создана пользователем MGT1, 24 авг 2020.

  1. MGT1

    MGT1

    Регистрация:
    5 янв 2013
    Сообщения:
    900
    Симпатии:
    218
    Страница


    Вверху должно было б быть сравнение и добавить в избранное. В языковом файле все етсь, журнал чист, лог чист.

    Куда еще можно покопать?
     
  2. Baco

    Baco Антихронофаг Команда форума

    Регистрация:
    9 окт 2012
    Сообщения:
    803
    Симпатии:
    399
    встречал жесткое прописывание в TPL или в JS файлах, думаю если поиск глобально по файлам сделать искомой фразы, можно найти все места вхождения (советую проставить пункт "не учитывать регистр")
     
  3. MGT1

    MGT1

    Регистрация:
    5 янв 2013
    Сообщения:
    900
    Симпатии:
    218
    чем лучше провести поиск?
     
  4. Baco

    Baco Антихронофаг Команда форума

    Регистрация:
    9 окт 2012
    Сообщения:
    803
    Симпатии:
    399
    у меня есть тотал такими задачами занимается:
    [​IMG]
     
    Zulus и MGT1 нравится это.
  5. MGT1

    MGT1

    Регистрация:
    5 янв 2013
    Сообщения:
    900
    Симпатии:
    218
    Вроде все исправил, не помогло

    Есть ошибка в логе 2020-09-01 0:18:47 - PHP Notice: Undefined variable: language in admin/view/template/extension/module/newstore/contact_header_menu.tpl on line 26

    Но как админка может быть связана пока не понятно.
    --- Добавлено, 1 сен 2020 ---
    <label class="col-sm-3 control-label" for="input-description-info-mob<?php echo $language['language_id']; ?>"><?php echo $text_info_mob; ?></label>
    --- Добавлено, 1 сен 2020 ---
    Это в 26 строке
    --- Добавлено, 1 сен 2020 ---
    PHP:
    <div class="form-group">
        <label class="col-sm-3 control-label"><?php echo $text_show_h_compare;?></label>
        <div class="col-sm-9">
            <div class="checkbox-group-pixelshop">
                <label><input type="checkbox" name="show_h_compare" value="1" <?php echo isset($show_h_compare) && $show_h_compare =='1' 'checked="checked"' '' ?> /><span></span></label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><?php echo $text_show_h_wishlist;?></label>
        <div class="col-sm-9">
            <div class="checkbox-group-pixelshop">
                <label><input type="checkbox" name="show_h_wishlist" value="1" <?php echo isset($show_h_wishlist) && $show_h_wishlist =='1' 'checked="checked"' '' ?> /><span></span></label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><?php echo $text_show_category_search;?></label>
        <div class="col-sm-9">
            <div class="checkbox-group-pixelshop">
                <label><input type="checkbox" name="show_hc_search" value="1" <?php echo isset($show_hc_search) && $show_hc_search =='1' 'checked="checked"' '' ?> /><span></span></label>
            </div>
        </div>
    </div>
    <div class="form-group">
    <label class="col-sm-3 control-label" for="input-description-info-mob<?php echo $language['language_id']; ?>"><?php echo $text_info_mob?></label>
    <div class="col-sm-9">
        <ul class="nav nav-tabs" id="language_description_info_mob">
            <?php foreach ($languages as $language) { ?>
                <li><a href="#language_description_info_mob<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a></li>
            <?php ?>
        </ul>
        <div class="tab-content">
            <?php foreach ($languages as $language) { ?>
                <div class="tab-pane" id="language_description_info_mob<?php echo $language['language_id']; ?>">
                    <textarea class="form-control summernote" name="language_description_info_mob[<?php echo $language['language_id']; ?>][text]" id="input-description-info-mob<?php echo $language['language_id']; ?>" class="form-control"><?php echo isset($language_description_info_mob[$language['language_id']]['text']) ? $language_description_info_mob[$language['language_id']]['text'] : ''?></textarea>
                </div>
            <?php ?>
        </div>
    </div>
    </div>
    <script>
    $('#language_description_info_mob a:first').tab('show');
    </script>
    <div class="form-group">
        <div class="col-sm-12 title-setting"><?php echo $text_header_nav_menu;?></div>
    </div>
    <table id="items_top_menu" class="table table-bordered table-hover">
        <thead>
            <tr>
                <td><?php echo $column_banner_icon?></td>
                <td><?php echo $column_banner_name?></td>
                <td><?php echo $column_banner_link?></td>
                <td><?php echo $text_open_banner_popup?></td>
                <td></td>
            </tr>
        </thead>
        <tbody>
        <?php $item_row_nav_menu 0?>
        <?php foreach ($header_nav_menu_links as $header_nav_menu_link) { ?>
            <tr id="item-row-menu-top<?php echo $item_row_nav_menu?>">
                <td class="text-left">
                    <span class="icon_open" id="header_nav_menu_link_icon_<?php echo $item_row_nav_menu?>" onclick="icon_fontawesome_popup($(this).attr('id'))">
                        <?php echo $text_select_icon;?>
                        <?php if(isset($header_nav_menu_link['icon_image'])) { ?><i class="<?php echo $header_nav_menu_link['icon_image']; ?>"></i><?php ?>
                    </span>
                    <input class="form-control" type="hidden" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][icon_image]" value="<?php echo $header_nav_menu_link['icon_image']; ?>" />
                </td>
                <td class="text-left">
                    <?php foreach ($languages as $language) { ?>
                    <div class="input-group pull-left">
                    <span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                    <input class="form-control" type="text" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][title][<?php echo $language['language_id']; ?>]" value="<?php echo $header_nav_menu_link['title'][$language['language_id']]; ?>" />
                    </div>
                    <?php ?>
                </td>
                <td class="text-left">
                    <?php foreach ($languages as $language) { ?>
                        <div class="input-group pull-left">
                            <span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                            <input class="form-control" type="text" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][link][<?php echo $language['language_id']?>]" value="<?php echo isset($header_nav_menu_link['link'][$language['language_id']]) ? $header_nav_menu_link['link'][$language['language_id']] : ''?>" />
                        </div>
                    <?php ?>
                </td>
                <td class="text-center">
                <div class="form-group">
                        <div class="col-sm-12">
                            <div class="radio-group-infinity">
                                <?php if ($header_nav_menu_link['popup']) { ?>
                                    <input id="header_nav_menu_link_popup_yes_<?php echo $item_row_nav_menu?>" class="hide-radio" type="radio" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][popup]" value="1" checked="checked" />
                                    <label for="header_nav_menu_link_popup_yes_<?php echo $item_row_nav_menu?>"><?php echo $text_yes?></label>
                                <?php } else { ?>
                                    <input id="header_nav_menu_link_popup_yes_<?php echo $item_row_nav_menu?>" class="hide-radio" type="radio" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][popup]" value="1" />
                                    <label for="header_nav_menu_link_popup_yes_<?php echo $item_row_nav_menu?>"><?php echo $text_yes?></label>
                                <?php ?>
                                <?php if (!$header_nav_menu_link['popup']) { ?>
                                    <input id="header_nav_menu_link_popup_no_<?php echo $item_row_nav_menu?>" class="hide-radio" type="radio" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][popup]" value="0" checked="checked" />
                                    <label for="header_nav_menu_link_popup_no_<?php echo $item_row_nav_menu?>"><?php echo $text_no?></label>
                                <?php } else { ?>
                                    <input id="header_nav_menu_link_popup_no_<?php echo $item_row_nav_menu?>" class="hide-radio" type="radio" name="header_nav_menu_link[<?php echo $item_row_nav_menu?>][popup]" value="0" />
                                    <label for="header_nav_menu_link_popup_no_<?php echo $item_row_nav_menu?>"><?php echo $text_no?></label>
                                <?php ?>
                            </div>
                        </div>
                </div>
                </td>
                <td class="text-right">
                    <a class="btn btn-danger" onclick="$('#item-row-menu-top<?php echo $item_row_nav_menu?>').remove();" data-toggle="tooltip" title="<?php echo $text_delete?>"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr>
            <?php $item_row_nav_menu++; ?>
        <?php ?>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="4"></td>
                <td class="text-right"><a class="btn btn-primary" onclick="addMenuTop();" data-toggle="tooltip" title="<?php echo $text_add?>"><i class="fa fa-plus-circle"></i></a></td>
            </tr>
        </tfoot>
    </table>
    <script>
    var item_row_nav_menu = <?php echo $item_row_nav_menu?>;

    function addMenuTop() {
        html  = '<tr id="item-row-menu-top' + item_row_nav_menu + '">';
        html += '<td class="text-left">';
        html += '<span class="icon_open" id="header_nav_menu_link_icon_' + item_row_nav_menu + '" onclick="icon_fontawesome_popup($(this).attr(\'id\'))">';
        html += '<?php echo $text_select_icon;?>';
        html += '</span>';
        html += '<input class="form-control" type="hidden" name="header_nav_menu_link[' + item_row_nav_menu + '][icon_image]" value="" />';
        html += '</td>';
        html += '<td class="text-left">';
        <?php foreach ($languages as $language) { ?>
        html += '<div class="input-group pull-left"><span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>';
        html += '<input class="form-control" type="text" name="header_nav_menu_link[' + item_row_nav_menu + '][title][<?php echo $language['language_id']; ?>]" value="" />';
        html += '</div>';
        <?php ?>
        html += '</td>';
        html += '<td class="text-left">';
        html += '    <?php foreach ($languages as $language) { ?>';
        html += '        <div class="input-group pull-left">';
        html += '            <span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>';
        html += '            <input class="form-control"  type="text" name="header_nav_menu_link[' + item_row_nav_menu + '][link][<?php echo $language['language_id']; ?>]" value="" />';
        html += '        </div>';
        html += '    <?php ?>';
        html += '</td>';
        html += '<td>';
        html += '<div class="form-group">';
        html += '    <div class="col-sm-12 text-center">';
        html += '    <div class="radio-group-infinity">';
        html += '        <input id="banner_items_footer_yes_' + item_row_nav_menu + '" class="hide-radio" type="radio" name="header_nav_menu_link[' + item_row_nav_menu + '][popup]" value="1"/>';
        html += '        <label for="banner_items_footer_yes_' + item_row_nav_menu + '"><?php echo $text_yes?></label>';
        html += '        <input id="banner_items_footer_no_' + item_row_nav_menu + '" class="hide-radio" type="radio" name="header_nav_menu_link[' + item_row_nav_menu + '][popup]" value="0" checked="checked" />';
        html += '        <label for="banner_items_footer_no_' + item_row_nav_menu + '"><?php echo $text_no?></label>';
        html += '    </div>';
        html += '    </div>';
        html += '</div>';
        html += '</td>';
        html += '<td class="text-right"><a class="btn btn-danger" onclick="$(\'#item-row-menu-top' + item_row_nav_menu  + '\').remove();" data-toggle="tooltip" title="<?php echo $text_delete?>"><i class="fa fa-trash-o"></i></a></td>';
        html += '</tr>';

        $('#items_top_menu tbody').append(html);;

        item_row_nav_menu++;
    }
    </script>

        <div class="form-group">
            <label class="col-sm-3 control-label"><?php echo $text_swap_header_blocks;?></label>
            <div class="col-sm-9">
                <div class="radio-group-infinity">
                    <?php if ($swap_header_blocks) { ?>
                    <input id="swap_header_blocks_yes" class="hide-radio" type="radio" name="swap_header_blocks" value="1" checked="checked" />
                    <label for="swap_header_blocks_yes"><?php echo $text_yes?></label>
                    <?php } else { ?>
                    <input id="swap_header_blocks_yes" class="hide-radio" type="radio" name="swap_header_blocks" value="1" />
                    <label for="swap_header_blocks_yes"><?php echo $text_yes?></label>
                    <?php ?>
                    <?php if (!$swap_header_blocks) { ?>
                    <input id="swap_header_blocks_no" class="hide-radio" type="radio" name="swap_header_blocks" value="0" checked="checked" />
                    <label for="swap_header_blocks_no"><?php echo $text_no?></label>
                    <?php } else { ?>
                    <input id="swap_header_blocks_no" class="hide-radio" type="radio" name="swap_header_blocks" value="0" />
                    <label for="swap_header_blocks_no"><?php echo $text_no?></label>
                    <?php ?>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><?php echo $entry_search_word?></label>
            <div class="col-sm-5">
                <tr>
                    <td class="text-left">
                    <?php foreach ($languages as $language) { ?>
                        <div class="input-group"><span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                            <textarea name="search_word[<?php echo $language['language_id']; ?>][text]" rows="5" placeholder="" class="form-control"><?php echo isset($search_word[$language['language_id']]) ? $search_word[$language['language_id']]['text'] : ''?></textarea>
                        </div>
                    <?php ?>
                    </td>
                </tr>
            </div>
        </div>
            <div class="form-group">
                <label class="col-sm-12 control-label text-left"><?php echo $text_additional_phone;?></label>
            </div>
            <div class="form-group">
                <div class="col-sm-12 ns-input-group">
                <?php $phone_row 0?>
                <div id="telephone_header">
                    <?php foreach($config_phones_array as $config_phone) { ?>
                    <?php foreach ($languages as $language) { ?>
                    <div class="input-group">
                        <span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                        <span class="input-group-addon image_phone">
                            <a href="" id="thumb-image-phone<?php echo $language['language_id']; ?><?php echo $phone_row;?>" data-toggle="image" class="img-thumbnail">
                            <img data-placeholder="<?php echo $placeholder_phone?>" src="<?php echo $config_phone['icon_phone'][$language['language_id']]; ?>" alt=""/></a>
                            <input type="hidden" name="config_phones_header[<?php echo $phone_row?>][image][<?php echo $language['language_id']; ?>]" value="<?php echo $config_phone['image'][$language['language_id']]; ?>" id="input-image-phone-<?php echo $language['language_id']; ?><?php echo $phone_row;?>" />
                        </span>

                        <span class="input-group-addon icon_open" id="header_phone_icon_<?php echo $language['language_id']; ?><?php echo $phone_row?>" onclick="icon_fontawesome_popup($(this).attr('id'))">
                            <?php echo $text_select_icon;?>
                            <?php if(isset($config_phone['icon'][$language['language_id']])) { ?><i class="<?php echo $config_phone['icon'][$language['language_id']]; ?>"></i><?php ?>
                        </span>
                        <input class="form-control" type="hidden" name="config_phones_header[<?php echo $phone_row?>][icon][<?php echo $language['language_id']; ?>]" value="<?php echo $config_phone['icon'][$language['language_id']]; ?>" />

                        <textarea placeholder="<?php echo $text_type_fields;?>" class="form-control textarea-no-resize" type="text" name="config_phones_header[<?php echo $phone_row?>][type][<?php echo $language['language_id']; ?>]"><?php echo isset($config_phone['type'][$language['language_id']]) ? $config_phone['type'][$language['language_id']]: ''?></textarea>
                        <input class="form-control" type="text" name="config_phones_header[<?php echo $phone_row?>][phone][<?php echo $language['language_id']; ?>]" value="<?php echo $config_phone['phone'][$language['language_id']]; ?>"/>
                        <select class="form-control" name="config_phones_header[<?php echo $phone_row?>][dropdown][<?php echo $language['language_id']; ?>]">
                        <?php if($config_phone['dropdown'][$language['language_id']] == '1') { ?>
                            <option value="1" selected="selected"><?php echo $text_show_in_site_header_tel;?></option>
                            <option value="0"><?php echo $text_in_dropdown_list_tel;?></option>
                        <?php } else { ?>
                            <option value="1"><?php echo $text_show_in_site_header_tel;?></option>
                            <option value="0" selected="selected"><?php echo $text_in_dropdown_list_tel;?></option>
                        <?php ?>
                        </select>
                        <span class="input-group-btn"><a class="btn btn-danger" onclick="$(this).parent().parent().remove()" data-toggle="tooltip" title="" data-original-title="<?php echo $text_delete;?>"><i class="fa fa-trash-o"></i></a></span>


                    </div>
                    <?php ?>
                    <?php $phone_row++; ?>
                    <?php ?>
                </div>
                    <div style="margin-top:10px;">
                        <a onclick="addPhone();" class="btn btn-primary"><?php echo $text_add?></a></div>
                </div>
            </div>
            <hr>

     <script><!--
    var phone_row = <?php echo $phone_row;?>;
    function addPhone() {
        html = '';
        <?php foreach ($languages as $language) { ?>
        html += '<div class="input-group">';
        html += '<span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>';
        html += '     <span class="input-group-addon image_phone">';
        html += '          <a href="" id="thumb-image-phone<?php echo $language['language_id']; ?>'+ phone_row +'" data-toggle="image" class="img-thumbnail">';
        html += '          <img data-placeholder="<?php echo $placeholder_phone?>" src="<?php echo $placeholder_phone;?>" alt=""/></a>';
        html += '          <input type="hidden" name="config_phones_header['+ phone_row +'][image][<?php echo $language['language_id']; ?>]" value="" id="input-image-phone-<?php echo $language['language_id']; ?>'+ phone_row +'" />';
        html += '     </span>';
        html += '    <span class="input-group-addon icon_open" id="header_phone_icon_<?php echo $language['language_id']; ?>'+ phone_row +'" onclick="icon_fontawesome_popup($(this).attr(\'id\'))">';
        html += '        <?php echo $text_select_icon;?>';
        html += '    </span>    ';
        html += '    <input class="form-control" type="hidden" name="config_phones_header['+ phone_row +'][icon][<?php echo $language['language_id']; ?>]" value="" />';
        html += '    <textarea placeholder="<?php echo $text_type_fields;?>" class="form-control textarea-no-resize" type="text" name="config_phones_header['+ phone_row +'][type][<?php echo $language['language_id']; ?>]"></textarea>';
        html += '    <input class="form-control" type="text" name="config_phones_header['+ phone_row +'][phone][<?php echo $language['language_id']; ?>]" value=""/>';
        html += '    <select class="form-control" name="config_phones_header['+ phone_row +'][dropdown][<?php echo $language['language_id']; ?>]">';
        html += '        <option value="0"><?php echo $text_in_dropdown_list_tel;?></option>';
        html += '        <option value="1"><?php echo $text_show_in_site_header_tel;?></option>';
        html += '    </select>';
        html += '    <span class="input-group-btn"><a class="btn btn-danger" onclick="$(this).parent().parent().remove()" data-toggle="tooltip" title="" data-original-title="<?php echo $text_delete;?>"><i class="fa fa-trash-o"></i></a></span>';
        html += '</div>';
        <?php ?>
        $('#telephone_header').append(html);
        phone_row++;
    }
    //--></script>
        <div class="form-group">
            <label class="col-sm-3 control-label"><?php echo $entry_custom_text_after_tel?></label>
            <div class="col-sm-5">
                <tr>
                    <td class="text-left">
                    <?php foreach ($languages as $language) { ?>
                        <div class="input-group"><span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                                                    <textarea rows="4" name="text_after_phone[<?php echo $language['language_id']; ?>][text]" class="form-control"><?php echo isset($text_after_phone[$language['language_id']]) ? $text_after_phone[$language['language_id']]['text'] : ''?></textarea>
                        </div>
                    <?php ?>
                    </td>
                </tr>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><?php echo $entry_custom_text_in_dropdown_list?></label>
            <div class="col-sm-5">
                <tr>
                    <td class="text-left">
                    <?php foreach ($languages as $language) { ?>
                        <div class="input-group"><span class="input-group-addon"><img src="language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" title="<?php echo $language['name']; ?>" /></span>
                            <textarea rows="4" name="arbitrary_text[<?php echo $language['language_id']; ?>][text]" class="form-control"><?php echo isset($arbitrary_text[$language['language_id']]) ? $arbitrary_text[$language['language_id']]['text'] : ''?></textarea>

                        </div>
                    <?php ?>
                    </td>
                </tr>
            </div>
        </div>



    --- Добавлено, 1 сен 2020 ---
    целый код
    --- Добавлено, 1 сен 2020 ---
    Нашел. Для шаблона оказывается свой файл языковый был - newstorelang