Translation with gettext

function this_translations( $translation, $text, $domain ) {
	if ( 'woocommerce' === $domain ) {
		switch ( $translation ) {
			case 'Includes':
				$translation = 'Inkluderet';
				break;
			case 'MVA':
				$translation = 'moms';
				break;
		}
	}

	return $translation;
}
add_filter( 'gettext', 'this_translations', 10, 3 );

Leave a Reply

Your email address will not be published. Required fields are marked *