Support » Plugin: WooCommerce » Translation of “item(s)”, “Checkout”, “Product Search”

  • Hi,

    I have installed the Mystile theme on in a German WordPress & WooCommerce setting, and I want to translate the English words at the top right (item/s, Checkout, Search Products) to German. I have installed Loco Translate, I found the expressions there and translated them (and clicked Sync a few times), but they still show up in English. Does anyone have any idea what I’m doing wrong?


    ### WordPress Environment ###
    Home URL:
    Site URL:
    WC Version: 2.6.14
    Log Directory Writable: ✔
    WP Version: 4.7.2
    WP Multisite: –
    WP Memory Limit: 128 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: de_DE
    ### Server Environment ###
    Server Info: Apache
    PHP Version: 5.6.30-he.0
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.38.0
    SUHOSIN Installed: ✔
    MySQL Version: 5.6.34
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    ### Database ###
    WC Database Version: 2.6.14
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    ### Active Plugins (7) ###
    Google Analytics: von ShareThis – 2.1.1
    Loco Translate: von Tim Whitlock – 2.0.11
    One-Click Child Theme: von tychay – 1.6
    WooCommerce PayPal Express Checkout Gateway: von Automattic – 1.1.2
    WooCommerce Germanized: von Vendidero – 1.8.1
    WooCommerce: von WooThemes – 2.6.14
    WordPress Importer: von wordpressdotorg – 0.6.3
    ### Settings ###
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    ### API ###
    API Enabled: ✔
    ### WC Pages ###
    Shop-Basis: #165 - /
    Warenkorb: #166 - /warenkorb/
    Kasse: #167 - /kasse/
    Mein Konto: #168 - /mein-konto/
    ### Taxonomies ###
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    ### Theme ###
    Name: cartoonshop
    Version: – 0 ist verfügbar
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Mystile
    Parent Theme Version: 1.3.17 – 1.3.18 ist verfügbar
    Parent Theme Author URL:
    WooCommerce Support: ✔
    ### Templates ###
    Overrides: –

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    I guess these words are coming from your theme. Did you translated the theme 100%?

    Plugin Support Con Schneider


    Automattic Happiness Engineer

    Hi there,

    A term in a language file is oftentimes more than once available. Search for your words again (and then once again), double and triple checking. Oftentimes I overlooked the multiple instances of terms I wanted to translate.

    Other than that it could be your cache. If you have a caching plugin installed or your hosting provider has something enabled for you, it could interfere.

    Kind regards,

    Hi !

    In the folder of your Mystile theme, edit the file named “header.php” and replace this __(‘Checkout’,’woothemes’) by this __(‘Checkout’,’woocommerce’)

    In the folder includes/ of you theme, open the file theme-woocommerce.php and find replace esc_attr__( ‘Search Products’, ‘woothemes’ ) by esc_attr__( ‘Search for:’, ‘woocommerce’ )

    That’s for checkout and search.

    For the word items it’s not so easy, it’s also in the template theme-woocommerce.php. You can try to replace sprintf(_n(‘%d item’, ‘%d items’, by sprintf(_n(‘%d ‘.__(“item”,”woocommerce”), ‘%d ‘.__(“items”,”woocommerce”), but I’m not sure that it won’t generate a PHP error. I haven’t tested it.

    Start with checkout and search and tell us if it works. … Two Out Of Three Ain’t Bad 😉

    • This reply was modified 2 years, 6 months ago by  diepen.

    The cart widget in the header is not a WooCommerce widget, it will be coming from your theme. So when you used Loco Translate, check that you translated the words from your theme. The WooCommerce plugin may have the same words but they will be in a different text domain and this could explain why your translations had no effect.

    Ensure you saved in the custom location to make your translations update-safe:

    Edits to theme files will be overwritten by the next theme update.

    Thank you guys for all your extensive and quick responses! VERY much appreciated!

    I went with the offered solution from @diepen – and got three out of three. 🙂
    Since I am using a child theme, I just copied header.php and includes/theme-woocommerce.php from the parent, changed the strings and uploaded the modified files to the child theme folder. Worked like a dream!
    (By the way, for the “item/items” I used this: sprintf(_n(‘%d Produkt’, ‘%d Produkte’, )

    Muchas gracías again!

    • This reply was modified 2 years, 6 months ago by  vonJanne.



    I have got exactly the same problem.

    Following these hints I checked .po file of storefront theme in Loco translations. All concerned strings are correctly translated.

    When updating the website in browser the correct string appears for about 1 second, thereafter jumps back to English. Very strange …

    Is there an idea how to solve?




    PS: I cleared all user sessions and cache in Woocommerce, Woocommerce Germanized and also cleared all temporary browser data – without any effect on this problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translation of “item(s)”, “Checkout”, “Product Search”’ is closed to new replies.