Title: German language integration bug
Last modified: August 22, 2016

---

# German language integration bug

 *  Resolved [RichardRaue](https://wordpress.org/support/users/richardraue/)
 * (@richardraue)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/german-language-integration-bug/)
 * Hi,
 * I tried to use your plugin with a German blog, but translation did not work.
 * I figured it out and just wanted to let you know.
 * In version 3.5.2 of your plugin in the file **amazon-product-in-a-post-options.
   php at line 39** you missed to add German as a value of the apipp_amazon_language
   array:
 * **Your code:**
 *     ```
       array(	"name" => "Language",
       "desc" => "Language to use for Text and Button (currently only English, French and Spanish - default is English).<br /><br />",
       "id" => $shortname_apipp."_amazon_language",
       "type" => "select",
       "options" => array(
       "0" => array("value" => "en","text" => "English (default)"),
       "1" => array("value" => "fr","text" => "French"),
       "2" => array("value" => "sp","text" => "Spanish")
       )),
       ```
   
 * When I added German, the already existing German translation from amazon-product-
   in-a-post-translations.php is used and displayed. Here’s my fix:
 * **Fixed code:**
 *     ```
       array(	"name" => "Language",
       "desc" => "Language to use for Text and Button (currently only English, French and Spanish - default is English).<br /><br />",
       "id" => $shortname_apipp."_amazon_language",
       "type" => "select",
       "options" => array(
       "0" => array("value" => "en","text" => "English (default)"),
       "1" => array("value" => "fr","text" => "French"),
       "2" => array("value" => "sp","text" => "Spanish"),
       "3" => array("value" => "ge","text" => "German")
       )),
       ```
   
 * Maybe you want to fix that bug.
 * Best,
    Richard
 * [https://wordpress.org/plugins/amazon-product-in-a-post-plugin/](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mklemmer](https://wordpress.org/support/users/mklemmer/)
 * (@mklemmer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/german-language-integration-bug/#post-5473801)
 * Hi Richard,
 * i also use the plugin in my german blog and embedded the new code. The solution
   is obvious and works fine.
 * I would prefer changing the code by developer itself in a new version of the 
   plugin, so it will be compatible with default without modding.
 * Many Thanks
    Michael
 *  [peacefulwarri0r](https://wordpress.org/support/users/peacefulwarri0r/)
 * (@peacefulwarri0r)
 * [11 years ago](https://wordpress.org/support/topic/german-language-integration-bug/#post-5473833)
 * True. And in addition a german buyamzon button is also already available. “buyamzon-
   button-plain=de.png” (I guess this should be a “-” instead of “=”)
 * Probably to activate in “inc/amazon-product-in-a-post-translations.php”:
 *  if($aws_partner_locale==’com’){$buyamzonbutton = “buyamzon-button.png”;} //set
   back to .com for US locale
 *  if($aws_partner_locale==’de’){$buyamzonbutton = “buyamzon-button-plain=de.png”;}//
   set back to .de for DE locale
 *  [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * (@prophecy2040)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/german-language-integration-bug/#post-5473846)
 * This should be fixed in version 3.5.5 which is now available.
    Regards, Don

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘German language integration bug’ is closed to new replies.

 * ![](https://ps.w.org/amazon-product-in-a-post-plugin/assets/icon.svg?rev=1565235)
 * [Amazon Product in a Post Plugin](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-product-in-a-post-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-product-in-a-post-plugin/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)
 * [deutsch](https://wordpress.org/support/topic-tag/deutsch/)
 * [german](https://wordpress.org/support/topic-tag/german/)
 * [i18n](https://wordpress.org/support/topic-tag/i18n/)
 * [language](https://wordpress.org/support/topic-tag/language/)

 * 3 replies
 * 4 participants
 * Last reply from: [Don Fischer](https://wordpress.org/support/users/prophecy2040/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/german-language-integration-bug/#post-5473846)
 * Status: resolved