2017-05-29 87 views
1

我在我的德國網站上使用Canvas主題與woocommerce商店。 但是我有這個問題,我的產品分頁仍然使用「上一頁」和「下一頁」作爲按鈕文本,即使所有內容都翻譯成德文。Wordpress Woocommerce單頁語言分頁錯誤按鈕文本(帆布主題)

畫布主題使用一個管理員的functions.php與下面的代碼:

$defaults = array(
     'base' => esc_url_raw(add_query_arg('paged', '%#%')), 
     'format' => '', 
     'total' => $max_num_pages, 
     'current' => $current, 
     'prev_next' => true, 
     'prev_text' => __('← Previous', 'woothemes'), // Translate in WordPress. This is the default. 
     'next_text' => __('Next →', 'woothemes'), // Translate in WordPress. This is the default. 
     'show_all' => false, 
     'end_size' => 1, 
     'mid_size' => 1, 
     'add_fragment' => '', 
     'type' => 'plain', 
     'before' => '<div class="pagination woo-pagination">', // Begin woo_pagination() arguments. 
     'after' => '</div>', 
     'echo' => true, 
     'use_search_permastruct' => true 
    ); 

    /* Allow themes/plugins to filter the default arguments. */ 
    $defaults = apply_filters('woo_pagination_args_defaults', $defaults); 

我既不能覆蓋這個(註釋說,不反正覆蓋),也沒有發現在我的網頁的後端選項翻譯這個。

在哪裏或如何更改這些按鈕上的文本? 謝謝。

回答

0

如果有人遇到這個問題: 我現在使用插件解決它「說,什麼!」並用它翻譯字符串。但是,只有String在__()或_e()函數內時纔有效。