WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce German (de_DE)
[resolved] Wie kann ich Formulierungen ändern? (24 posts)

  1. korbinian@vonblanckenburg.de
    Member
    Posted 1 year ago #

    Hallo!
    Eigentlich eine ganz einfache Frage, aber ich schaff es nicht. Wie kann ich Formulierungen ändern? z.B. den Hinweis wenn man bezahlen will: "Bereits registriert? Zum Anmelden bitte hier klicken" oder den text: "Wenn Sie schon einmal bei uns bestellt haben, geben Sie bitte Ihre Details in die Felder unten ein. Falls Sie ein neuer Kunde sind, fahren Sie bitte fort mit dem Bereich ‘Rechnung & Versand’." ?

    Es sind nur kleinere Anpassung, aber ab und zu würde ich die Formulierungen gerne ein wenig anpassen...

    Danke für Hilfe!

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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    These are English language forums. Please use English.

  3. korbinian@vonblanckenburg.de
    Member
    Posted 1 year ago #

    well its a questions for Germans only. However:

    Hello!
    Actually a very simple question, but I do not know how I can change the german sentences? e.g. Note if you want to pay: "Bereits registriert? Zum Anmelden bitte hier klicken" or the text: "Wenn Sie schon einmal bei uns bestellt haben, geben Sie bitte Ihre Details in die Felder unten ein. Falls Sie ein neuer Kunde sind, fahren Sie bitte fort mit dem Bereich ‘Rechnung & Versand’."?

    There are only minor adjustment, but now and then I would like to change the wording a little ...

    Thanks for the help!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You could try posting on http://forum.wpde.org/

  5. gereby
    Member
    Posted 1 year ago #

    Dear Forum Moderator, this is a German Language Plugin. And this is the Place to discuss Errors and Questions, I think. Am I wrong?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    If this is a specifically German language plugin, then it should be discussed on http://forum.wpde.org/

    Post here should be in English.

  7. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @esmi:
    Sorry, but this is the TIED support forum for this plugin!
    I already have stated in the plugin description that users should post here in ENGLISH. Please have a litte grace on them :) Thanks!

    At this URL you suggested (forum.wpde.org) I WON'T EVER support my plugins as this forum is managed by a company and has nothing to do with this plugin here.

    Thanks, Dave :)

  8. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @korbinian:
    Sorry, I seem to have missed your feedback here...
    You can only change this by using your own custom translations and place them in

    /wp-content/themes/aktives-theme/woocommerce/sprachdatei/woocommerce-de_DE.mo

    Or you have to use some custom code with a gettext filter - that would be the most elegant solution and doesn't effect on plugin updates.

    For that you can contact me via my personal site at: http://deckerweb.de/kontakt/ -- and I'll help you then in German language with custom snippets.

    Thanks, Dave :)

  9. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    In a general update:
    My plugin was updatd to v3.0.0 yesterday!
    Some important changes:
    the path for custom translations files has changed to:

    /wp-content/languages/woocommerce-de/custom/

    ---> place own language files there -- file naming convention is the same as in WooCommerce itself!!!

    The old path ( /wp-content/themes/aktives-theme/woocommerce/sprachdatei/woocommerce-de_DE.mo ) from former plugin versions is still supported but could potentially be removed later this year.
    It's way better to place custom files in WordPress languages folder as this one is theme-independent - which is the reason for the change.

    Hope this helps you.
    Thanks, Dave :)

  10. dEM0nsTAr
    Member
    Posted 1 year ago #

    Currently I use the functions.php file of my theme for specific translations which works well but not for the word "Category" which is displayed on a product page.

    function kia_text_strings( $translated_text, $text, $domain ) {
    
            switch ( $translated_text ) {
    
                case 'Checkout' :
    
                    $translated_text = __( 'Kasse', 'theme_text_domain' );
                    break;
    
                case 'Search Products' :
    
                    $translated_text = __( 'Produktsuche', 'theme_text_domain' );
                    break;
    
                case 'Category' :
    
                    $translated_text = __( 'Kategorie', 'theme_text_domain' );
                    break;
    
            }
    
        return $translated_text;
    }

    How can I translate that word?
    Thanks!

  11. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @dEM0nsTAr:
    Please start a new thread here for every issue, otherwise new users get confused of too long threads with multiple topics. One topic/issue = one new thread!

    Back to your issue:
    This is not related to my plugin and a more "general" topic. I see you're already using a Gettext filter which is great and recommended for such things here!! :)

    Why it's not changing your category string, I just don't know. I have to know your setup to be more specific...

    What is the URL of your site? Could you give a specific link where you want things to change/edit?

    Also, what theme you are using?

    If your theme has own templates with own translation strings or other textdomain than "woocommerce" it could be that you have to change your filter function.

    Your code above uses 'theme_text_domain' which is not used by WooCommerce plugin or my language pack plugin. Is that the textdomain of your theme? If so, then your issue seems more theme related anyways.

    I hope this helps for the moment.

    Thanks, Dave :)

  12. dEM0nsTAr
    Member
    Posted 1 year ago #

    Thanks for help and sorry for not starting a new thread.
    The first two entries in the code above work but not the last one.

    I am using the theme "Mystile" and you can see the word "Category" on http://demo2.woothemes.com/mystile/shop/castillo-cap/
    Do you know how I can translate it?
    Thanks in advance!

  13. dEM0nsTAr
    Member
    Posted 1 year ago #

    Can you help me with this David?

  14. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @dEM0nsTAr
    Yes, that's possible, I guess I have something to test for you tomorrow - then I have more time. This week is a bit hard, business-wise for me... total stressed out. I'll test & post a snippet tomorrow (Wednesday).

    Thanks for the patience, Dave.

  15. dEM0nsTAr
    Member
    Posted 1 year ago #

    Great, thanks in advance!

  16. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @dEM0nsTAr:

    Could you please try this snippet:
    https://gist.github.com/deckerweb/5163870
    ---> just paste into functions.php (but without the first "< ? php" part!)

    To change things you can replace "Category" with another string and also translation with "Kategorie" if you want.
    Notice: The original string must be within the WooCommerce translations, that means must exist in WC plugin or your theme with text domain "woocommerce". Then it should work.

    Sorry for the delay, Dave :)

  17. dEM0nsTAr
    Member
    Posted 1 year ago #

    Thanks for your help but unfortunately it doesn't change anything :(

  18. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @dEM0nsTAr:
    Hi there!
    Strange...! But maybe I/We targeted the wrong original string via the Gettext filter?

    Is it possible to get temporary backend access at your install? This would really help to solve this!

    My contact is: http://deckerweb.de/kontakt/

    Only if you want of course!

    Thanks, Dave :)

  19. dEM0nsTAr
    Member
    Posted 1 year ago #

    I have created you an account. You should got an email with the details.
    Currently there is another problem on the homepage because of a created child theme but the shop is working and you can see/test it there.
    Thanks a lot in advance!

  20. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @dEM0nsTAr:
    Thank you for the account! I could resolve the issue because of your feedback!

    I had a bug in my formal version at the very same location of "Category"... sorry for that was just overseen too long...

    Also, my Gettext filter code could not working because the original string uses the _n() function which obviously does not work yet with Gettext filter. So we had no chance in the end.

    As of my testing on your account, version 3.0.4.1 with resolved "Category" bug in formal version seems to fix it.

    All ok now? :)

    Thanks, Dave :)

  21. dEM0nsTAr
    Member
    Posted 1 year ago #

    Thanks a lot for your great support!

  22. mmtomm
    Member
    Posted 1 year ago #

    Hope it is ok to addon here!?

    I could not find out, where to change Oesterreich to Österreich.
    Since I only support this country, it does not matter to me what you wrote in the faqs of the plugin to that issue...?

    Thank you
    Tom

  23. daveshine (David Decker)
    Member
    Plugin Author

    Posted 1 year ago #

    @mmtomm:
    Please open a new topic for each and every issue in the future - it's better organized then! This thread is already resolved and becoming to long.

    However, the "Austria" thing was brought to me from users from Austria that want it to changed to "Oesterreich". You've already mentioned the FAQ entry and that is very clear.

    Since the .po files are packaged with the plugin in the "/wc-pomo/" folder you can edit them anytime. You just have to be aware that future plugin updates might override your changes. You then could use the alternative location --> see "Installation" tab for more info!
    Using customized files would also mean you have to care about updates (of the language files, not the plugin itself) yourself.

    I'll try to bring this naming issue to the WC developers but it may take some time.

    I will only switch back to "Österreich" string if changes are made in WC itself.

    Alternatively, you can use a gettext filter to change this one string to your liking. Based on this example code from here: https://gist.github.com/deckerweb/5163870 - you can make the appropiate changes yourself. Placing this then in your functions.php of the theme or a functionality plugin. Note: don't add the first line "< ? php"!

    Hope that helps, Dave :)

  24. paradieserl
    Member
    Posted 1 year ago #

    Hi David, thanks for the great and prompt translations.. I found this page though as one word in specific has a second meaning in german which is an unhappy choice.. thought I might mention this to you as sometimes in translating it can be missed where and how it is used..

    the word free is translated with "umsonst" may I suggest gratis or kostenlos.. it is used when the product price is set to 0.00 (as we have with product catalogues for affiliates)
    I´m changing it now to gratis.. after all it is not in vain ;)

    thanks and cheers,
    Nikki

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.