Title: Error with msgctxt?
Last modified: November 11, 2019

---

# Error with msgctxt?

 *  Resolved [Andreas Münch](https://wordpress.org/support/users/andreasmuench/)
 * (@andreasmuench)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-msgctxt/)
 * Hey,
    I created a .pot with Loco Translate and got this issue:
 * When a msgctxt is used for a translation like:
 *     ```
       msgctxt "Código Postal"
       msgid "ZIP"
       msgstr ""
       ```
   
 * Then the translation __(‘ZIP’, ‘mydomain’) does not return the translation.
    
   I had a look into the translation object and it did not have the entry “ZIP”,
   but it had the entry “Código PostalZIP”, that´s why “ZIP” was not found.
 * Do you have an idea where this error comes from?
 * Thanks

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-msgctxt/#post-12119121)
 * Looks to me like someone opened the POT file in the editor – thinking it was 
   a translation file – and entered a translation into the context field by mistake.
 * Loco Translate won’t (and can’t) extract a translation into the msgctxt field
   from the code you’ve shown. If you sync your POT back to the source code, you
   should see this mistake disappear.
 *  Thread Starter [Andreas Münch](https://wordpress.org/support/users/andreasmuench/)
 * (@andreasmuench)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-msgctxt/#post-12119436)
 * Ok, thanks very much for your quick reply, that´s be a possibility I didn´t even
   think of.
    People do crazy stuff 😉

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

The topic ‘Error with msgctxt?’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andreas Münch](https://wordpress.org/support/users/andreasmuench/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-msgctxt/#post-12119436)
 * Status: resolved