Skip to content
Public Ticket #27205

translation didn't work

Conversation thread

amany replied

Customer Reply

i saw it thanks very much 

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → WooCommerce → Checkout → Terms and conditions: translate the text in this option.

Regards,
PenciDesign.


amany replied

Customer Reply

any updates

PenciDesign Supporter replied

Staff Reply

Hi,

The pencilang shortcode only works when you've activated the Penci Shortcode & Performance plugin.

In case you don't want to activate this plugin, you should insert this code either into the functions.php file of the child theme or by using the CodeSnippet plugin available here: https://wordpress.org/plugins/code-snippets/

if ( ! function_exists( 'penci_language' ) ) {
    add_shortcode( 'pencilang', 'penci_language' );
    function penci_language( $langs ) {
        $current_lang = get_locale();
        $current_lang = strtolower( $current_lang );
        if ( array_key_exists( $current_lang, $langs ) && isset( $langs[ $current_lang ] ) ) {
            return $langs[ $current_lang ];
        } elseif ( array_key_exists( 'default', $langs ) ) {
            return $langs['default'];
        }         return;
    }
}

Regards,
PenciDesign.



amany replied

Customer Reply

also please note that when i enable plugin  penci shortcode home page on mobile corrupted i attache screenshot 

PenciDesign Supporter replied

Staff Reply

Hi,

For this specific situation, please send me your WordPress admin account details through a PRIVATE message. I will then log in and make an effort to assist you in diagnosing and resolving this issue.

Regards,
PenciDesign.


amany started the conversation

Conversation Start

hello

i need to translate 

 لقد قرأت terms and conditions واوافق عليه

in page checkout - bikerz

using 

[pencilang en_US='i have read [terms]and accept' ar='Partager' language_code='لقد قرات الشروط والاحكام واوافق عليها' /]

but it didn't work and i add shortcode plugin can you help to translate terms and condition in checkout 

Want to join this conversation or access attachments? Sign in first.