• Resolved gstar

    (@gstar)


    I tried to translate the invoice to our language and all works except for these words:

    INVOICE
    SHIPPING

    Any ideas what I am missing?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    If you’re using just the free plugin, then translating the name invoice should normally work fine. But if you have the Professional extension, then the document title can be overriden via the document settings, in which case changing the string in the plugin translations has no effect.

    Where do you see the word shipping? Is it possible this is simply the name of the shipping method itself (in your WooCommerce settings)? Some of the strings also come from the WooCommerce textdomain (primarily those in the order totals of the Simple template).

    If you are using any of the paid extensions (Premium Templates or Professional), not all of the answers above may apply in the same way.

    Thread Starter gstar

    (@gstar)

    I am using the free plugin and translated INVOICE to FACTURA in the file invoice.php:

    <th><?php _e( ‘Factura:’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?></th>
    <td><?php $this->invoice_number(); ?></td>

    The word shipping is nowhere to be found in that file?

    Plugin Contributor Ewout

    (@pomegranate)

    If you’re translating, you should either modify the the translations directly (using Loco Translate or POEdit). or just put the string without the translation:

    
    <th>Factura:</th>
    

    If you are referring to shipping in the order totals, this is a string from WooCommerce. You’d have to edit the WooCommerce translations (with one of the above tools) to change that.

    Thread Starter gstar

    (@gstar)

    I am still seeing a huge title INVOICE just below the logo.

    	<tr>
    		<td class="header">
    		<?php
    		if( $this->has_header_logo() ) {
    			$this->header_logo();
    		} else {
    			echo $this->get_title();
    		}
    		?>
    		</td>
    		<td class="shop-info">
    			<div class="shop-name"><h3><?php $this->shop_name(); ?></h3></div>
    			<div class="shop-address"><?php $this->shop_address(); ?></div>
    		</td>
    	</tr>

    I assume its coming from here?

    Plugin Contributor Ewout

    (@pomegranate)

    Thread Starter gstar

    (@gstar)

    Yes but how do I change it?

    <?php if( $this->has_header_logo() ) echo $this->get_title(); ?>

    Thread Starter gstar

    (@gstar)

    I see nowhere the word invoice to replace

    Plugin Contributor Ewout

    (@pomegranate)

    You can replace that entire line

    
    <?php if( $this->has_header_logo() ) echo $this->get_title(); ?>
    

    “Invoice” comes from $this->get_title()

    Thread Starter gstar

    (@gstar)

    Perfect! Now its just the filename that it saves still with the word invoice–44444 and the word SHIPPING?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing names’ is closed to new replies.