WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce German (de_DE)
[resolved] "WARENKORB-ZWISCHENSUMME" im Mini Cart (9 posts)

  1. soralsokal
    Member
    Posted 6 months ago #

    Hallo,

    im Mini Cart gibt es ein String auf Englisch: "Cart Subtotal".

    Das Plugin übersetzt das bei mir mit "Warenkorb-Zwischensumme". Das ist so lang, dass es den Rahmen des Mini Carts sprengt. Was kann ich machen?

    Ich habe schon versucht das in diesen PHP Dateien zu übersetzten (ohne Erfolg):
    - classes/class-wc-order.php
    - templates/cart/totals
    - templates/checkout/review-order.php

    Codestyling localisation habe ich auch, weis aber nicht wo ich das da machen kann.

    Hat jemand eine Idee?

    Beste Grüße
    Robin

    http://wordpress.org/plugins/woocommerce-de/

  2. esmi
    Forum Moderator
    Posted 6 months ago #

    I'm sorry but these are English language forums, so please use English or provide an English translation. Alternatively, use a WP support forum in your language.

  3. soralsokal
    Member
    Posted 6 months ago #

    Hello,

    in the Mini Cart, there is a string: "Cart Subtotal".

    The plugin (WooCommerce German (de_DE) translates that for me with "Warenkorb-Zwischensumme". This is so long that it is beyond the scope of the mini cart. What can I do?

    I have already tried that in these PHP files to translate the "cart subtotal" string (without success):
    - Classes / class-wc-order.php
    - Templates / cart / totals
    - Templates / checkout / review-order.php

    Codestyling localization I also use, but do not know where I can do there.

    Does anyone have an idea?

    Best Regards
    Robin

    http://wordpress.org/plugins/woocommerce-de/

  4. daveshine (David Decker)
    Member
    Plugin Author

    Posted 6 months ago #

    Hi Robin!
    I am sorry we are only allowed for English here, not my fault, but I feel with you! :)

    Sadly, a lot of themes or developers never think of other languages, so we end up with too small space for all those strings, like in this case!

    Also, there is no filter or anything for that string so we only can use Gettext filter or the $l10n global variable to change this string dynamically. (Gettext has performance issues, so only $l10n variant could be used...)

    Or, as an alternative you may maintain your own translations forward and have them located in the custom folder, like described here: http://wordpress.org/plugins/woocommerce-de/installation/ (scroll down)
    My plugin supports that! But you have the burden of maintaining the translation files.

    Codestyling does not support WooCommerce 2.0.x in any way! You have to use Poedit Editor http://www.poedit.net or a regular code editor...

    I hope that helps in the meantime.

    Thanks, Dave :)

  5. Break5
    Member
    Posted 6 months ago #

    Hi David,

    thx a lot for your efforts and support regarding your plugins!

    I guess I have to translate "Items" to "Artikel" in the same way?

    Screenshot: http://cl.ly/image/0N3i1H451b3W (Using Canvas Theme by WooThemes)

    Or Maybe you have translated this string already via your plugin and I have implemented something in a wrong way?

    thanks a lot for your answer!

    Best,
    Benedikt

  6. looksharp319
    Member
    Posted 3 months ago #

    Hi Break5,

    I noticed that the Minicart text on your screenshot says "Zwischensumme". How did you manage to change the text? I tried editing every single Translation file I was able to find in my wordpress folders (even the woocommere-de and woocommerce core plugin files, but without any luck :/).

    Do you have got any advice for me?

    Edit: What I forgot to mention was the strange fact, that SOME of the translations I edited work, whereas some other ones - e.g. "Warenkorbzwischensumme" -> "Zwischensumme" don't. Is anyone capable of explaing that to me?

  7. soralsokal
    Member
    Posted 3 months ago #

    I would try codestyling localization plugin.
    If this doesn't work, try http://www.poedit.net as suggested by David.

  8. daveshine (David Decker)
    Member
    Plugin Author

    Posted 3 months ago #

    @looksharp319:
    In my screencast I only use default settings and no extra theme templates so it's pure, standalone WooCommerce behavior.

    I assume in your install the theme may provide extra templates with variations of strings --- if those have the same textdomain 'woocommerce' it could lead to such things. Also possible: other third-party extensions.

    Check your setup if you find anything like that: best, make full text search or search via code editor.

    @soralsokal:
    Yes, Poedit is the best tip for anything WooCommerce! Since Codestyling does not support any WC 2.x version yet it only leads to mixing all things up and make it more complicated. For other plugins Codestyling is fine, for WC it doesn't provide any help currently.

    Thanks, Dave :)

  9. Break5
    Member
    Posted 2 months ago #

    @looksharp319:

    The String Zwischensumme originates from Davids Plugin, I guess

    Best luck :-)

Reply

You must log in to post.

About this Plugin

About this Topic