• Resolved soralsokal

    (@soralsokal)


    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

    https://www.ads-software.com/plugins/woocommerce-de/

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter soralsokal

    (@soralsokal)

    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

    https://www.ads-software.com/plugins/woocommerce-de/

    Plugin Author David Decker

    (@daveshine)

    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: https://www.ads-software.com/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 https://www.poedit.net or a regular code editor…

    I hope that helps in the meantime.

    Thanks, Dave ??

    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: https://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

    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?

    Thread Starter soralsokal

    (@soralsokal)

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

    Plugin Author David Decker

    (@daveshine)

    @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 ??

    @looksharp319:

    The String Zwischensumme originates from Davids Plugin, I guess

    Best luck ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘"WARENKORB-ZWISCHENSUMME" im Mini Cart’ is closed to new replies.