New Landing How can we help? Atelier Danish translations for shop actions

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #252558
    dialaegt
    Member
    Post count: 5

    First of all, awesome theme! 😀

    Is it possible to change the language of the shop actions like “ADD TO CART” and “OUT OF STOCK” to the danish translations?

    – Nikolaj

    #252573
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can translate it easily. Please refer this documentation http://dante.swiftideas.com/documentation/#translation. If you still unable to translate then use this https://wordpress.org/plugins/real-time-find-and-replace/.
    Thanks
    Mohammad

    #252584
    dialaegt
    Member
    Post count: 5

    Most of our site is in danish, but the text for the button “ADD TO CART” is still en english, the same with the “Share” text and “Category”for each single product.

    For instance this product:
    http://dialaegt.dk/product/cepehaa/

    #252591
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me equivalent Danish text of these strings.
    Thanks
    Mohammad

    #252593
    dialaegt
    Member
    Post count: 5

    ADD TO CART = TILFØJ TIL KURV
    Category = Kategori
    Share = Del
    Out of stock = Ikke på lager

    When viewing the cart:
    Shipping = Forsendelse
    Free shipping = Gratis fragt

    #252602
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Add to cart' :
    			$translated_text = __( 'TILFØJ TIL KURV', $domain );
    			break;
                    case 'Share' :
    			$translated_text = __( 'Del', $domain );
    			break;
                     case 'Out of stock' :
    			$translated_text = __( 'Ikke på lager', $domain );
    			break;
                     case 'Shipping' :
    			$translated_text = __( 'Forsendelse', $domain );
    			break;
                     case 'Free shipping' :
    			$translated_text = __( 'Gratis fragt', $domain );
    			break;
                     
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #252603
    dialaegt
    Member
    Post count: 5

    Awesome Mohammad! 🙂

    Is there any way to change the language for the checkout page, since everything on this page is in english?

    #252608
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    How many strings at checkout page? Just list here with equivalent Danish.
    Thanks
    Mohammad

    #252625
    dialaegt
    Member
    Post count: 5

    Billing details = Faktureringsoplysninger

    First Name* = Fornavn(e)*
    Last Name* = Efternavn*
    Company Name = Firma
    Email Address* = E-mail*
    Phone* = Telefon*
    Country* = Land*
    Address* = Adresse* (Placeholder: Street Address = Vejnavn) The “apartment, suite…” placeholder should be empty
    Postcode/Zip* = Postnummer*
    Town/City* = By*
    Ship to a different address? = Anden leveringsadresse?

    then repeating the above address formula for alternative shipping address

    Order notes = Bemærkninger til ordren (Placeholder should be empty)

    The checkbox with “read terms and conditions..” should be = Jeg har læst og accepteret handelsbetingeleserne*

    Place order button:
    Place order = Bestil

    #252627
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Have you tried to translate the theme through .PO and .MO files?
    Thanks
    Mohammad

    #252630
    dialaegt
    Member
    Post count: 5

    The language settings of wordpress is already danish and the translations in the .PO and .MO files seems to be accurate, so I don’t understand why the woocommerce checkout page is in english?

    #252925
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please run through these steps, you likely have the translations marked as fuzzy in the .po file so will need to unmark those and re-compile the .mo file: http://www.swiftideas.com/knowledgebase/translating-the-theme-using-poedit/.

    Thanks.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register