Title: Cannot replace code as needed in translation editor
Last modified: December 11, 2020

---

# Cannot replace code as needed in translation editor

 *  Resolved [mjefferson96](https://wordpress.org/support/users/mjefferson96/)
 * (@mjefferson96)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cannot-replace-code-as-needed-in-translation-editor/)
 * We will have multiple calculator apps that are embedded code as they are hosted
   by the app creator. We need to have different version of the app embedded for
   different countries and/or languages, but the translator will not allow us to
   edit the code. Is there a way to see or edit code directly, even just html, within
   the translatepress editor, or another way outside of the editor?
 * Screen shot: [https://easycaptures.com/fs/uploaded/1546/0200670201.jpg](https://easycaptures.com/fs/uploaded/1546/0200670201.jpg)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-replace-code-as-needed-in-translation-editor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Cristian Draghia](https://wordpress.org/support/users/cristiandraghia/)
 * (@cristiandraghia)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-replace-code-as-needed-in-translation-editor/#post-13786468)
 * Hello there,
 * What you can try to do is to use our shortcode. You can read more about it here:
   [https://translatepress.com/docs/translation-shortcode/](https://translatepress.com/docs/translation-shortcode/)
 * Here is an example of how it should work:
 * [trp_language language=”en_US”]
    Embedded code for the English version [/trp_language]
 * [trp_language language=”fr_FR”]
    Embedded code for the French version [/trp_language]
 * You will have to replace the en_US/fr_FR with the ISO code for the languages 
   that you want it to work. You can find the code by going to: Settings -> TranslatePress-
   > General. Each language has a code and that’s the one you need to use.
 * Let me know if this worked for you.
 * Best regards,
    Cristian
 *  [Denis](https://wordpress.org/support/users/sdenis/)
 * (@sdenis)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-replace-code-as-needed-in-translation-editor/#post-13825782)
 * Since more than 5 days have passed since the last answer given by my colleague,
   we will close this ticket, and we recommend you if you have another question 
   or want to continue the troubleshooting process with this one – to create another
   ticket.
 * Thanks for understanding,
 * Cheers,

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

The topic ‘Cannot replace code as needed in translation editor’ is closed to new
replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

## Tags

 * [edit code](https://wordpress.org/support/topic-tag/edit-code/)

 * 2 replies
 * 3 participants
 * Last reply from: [Denis](https://wordpress.org/support/users/sdenis/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-replace-code-as-needed-in-translation-editor/#post-13825782)
 * Status: resolved