Hi Jochen,
There are a few different ways to add your own translations.
The first is using an actual translation file (if you are familiar with creating translation files for WordPress). This requires using the amazon-product-in-a-post-plugin.pot
file provided with the plugin to create a language translation file in your language. If you use this method and provide the file back to us, we will happily add it to the plugin for others to use.
If you know nothing about translating WordPress plugins/themes, no worries, you can still translate the items using filters that are added to the plugin itself. To use them, you need to add a filter to your theme functions file (your functions.php
file located in your theme folder – preferably in a child theme) and add the filters there.
There are several available to use, but here is an example you can use to change the “See larger Image” label text:
// In this example, the filter name is 'appip_text_lgimage'
// and the function name is 'custom_appip_text_lgimage'
add_filter( 'appip_text_lgimage', 'custom_appip_text_lgimage', 10 );
function custom_appip_text_lgimage( $text ){
// $text is the default text, if needed
return 'New See Larger Image Text.';
}
Change the “New See Larger Image Text.” text to your text you want to use and it will change in the output on the front end of the site.
Here are some common filters you can use to change labels – simply use the sample filter function above and trade out the filter name (listed below in bold) and function name and return the desired translated text you want to add:
- appip_text_lgimage – default: “See larger image”
- appip_text_listprice – default: “List Price:”
- appip_text_newfrom – default: “New From:”
- appip_text_usedfrom – default: “Used from:”
- appip_text_instock – default: “In Stock”
- appip_text_outofstock – default: “Out of Stock”
- appip_text_author – default: “By (author):”
- appip_text_starring – default: “Starring:”
- appip_text_director – default: “Director:”
- appip_text_reldate – default: “Release date:”
- appip_text_preorder – default: “Preorder:”
- appip_text_notavalarea – default: “This item is may not be available in your area. Please click the image or title of product to check pricing.”
- appip_text_releasedon – default: “This title will be released on”
- appip_text_manufacturer – default: “Manufacturer:”
- appip_text_ESRBAgeRating – default: “ESRB Rating:”
- appip_text_feature – default: “Features:”
- appip_text_platform – default: “Platform:”
- appip_text_genre – default: “Genre:”
The last method is available if you are using a shortcode. There are parameters available that allow you to change the label for any item for that instance. See the Shortcode usage tab in the plugin settings for more details on how to change them that way.
Let me know if you still have issues.
Best of luck,
Don