# Unable to import existing translations

**URL:** <https://community.transifex.com/t/unable-to-import-existing-translations/3956>\
**Category:** Q&A\
**Created:** [May 25, 2024, 3:44pm UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956 "2024-05-25T15:44:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![grahamegrieve](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/grahamegrieve/32/3053_2.png) [@grahamegrieve](https://community.transifex.com/u/grahamegrieve)\
**Post date:** [May 25, 2024, 3:44pm UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/1 "2024-05-25T15:44:35Z")

</div>

I’m trying to set up a GitHub Integration. My yaml file is here: [org.hl7.fhir.core/transifex.yml at master · hapifhir/org.hl7.fhir.core · GitHub](https://github.com/hapifhir/org.hl7.fhir.core/blob/master/transifex.yml), and my source is here: [org.hl7.fhir.core/org.hl7.fhir.utilities/src/main/resources/source at master · hapifhir/org.hl7.fhir.core · GitHub](https://github.com/hapifhir/org.hl7.fhir.core/tree/master/org.hl7.fhir.utilities/src/main/resources/source)

The files are being found, but when importing them, I get an error:

`a non-empty msgstr was found on the entry with msgid ....`

The topic at [Existing translations not fetched with github integration](https://community.transifex.com/t/existing-translations-not-fetched-with-github-integration/2692) suggests that this is a pot/po thing, but I don’t understand or see from the doco how to say that it has existing translations? Or I don’t understand something?

---

<div class="post-metadata">

**Author:** ![chrisb](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/chrisb/32/2377_2.png) [@chrisb](https://community.transifex.com/u/chrisb)\
**Post date:** [May 27, 2024, 11:02am UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/2 "2024-05-27T11:02:22Z")

</div>

Hello dear grahamegrieve,

So this would be an error that Gettext/ PO parser throws when it finds an issue with a string entry. For better reference and more details please see [here](https://help.transifex.com/en/articles/6220794-gettext-po#h_20eca9c4f4).

In any case you have more questions feel free to contact us again.

Christos

---

<div class="post-metadata">

**Author:** ![grahamegrieve](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/grahamegrieve/32/3053_2.png) [@grahamegrieve](https://community.transifex.com/u/grahamegrieve)\
**Post date:** [May 27, 2024, 1:20pm UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/3 "2024-05-27T13:20:22Z")

</div>

I’m trying to understand that. That table… which mode is the GitHub integration running in?

But I think it means that problem is with a particular entry, not just that something already contains a translation. but the only thing that could possibly be an issue here is that there’s some actual pre-existing translation.

Here’s the line, in the middle of this:

```auto

#: ADD_BIND_VALUE_COMP
# ADD_BIND_VALUE_COMP
msgid "This value set is a component of the base value set"
msgstr ""

#: BUNDLE_DOCUMENT_CONTENT
# BUNDLE_DOCUMENT_CONTENT
msgid "Additional Document Content"
msgstr "Contenido adicional del documento"

#: BUNDLE_ETAG
# BUNDLE_ETAG
msgid "ETag = {0}"
msgstr "ETag = {0}"

```

The exact error is : 'a non-empty msgstr was found on the entry with msgid ‘Additional Document Content’. Remove and try again

---

<div class="post-metadata">

**Author:** ![chrisb](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/chrisb/32/2377_2.png) [@chrisb](https://community.transifex.com/u/chrisb)\
**Post date:** [May 27, 2024, 1:25pm UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/4 "2024-05-27T13:25:45Z")

</div>

Not really sure what is happening, with the extract you shared.

But, please feel free to forward the question and the source file that throws the error to our support mail as we will need to further investigate.

Our team will pick it up from there.

[support@transifex.com](mailto:support@transifex.com)

Christos

---

<div class="post-metadata">

**Author:** ![grahamegrieve](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/grahamegrieve/32/3053_2.png) [@grahamegrieve](https://community.transifex.com/u/grahamegrieve)\
**Post date:** [May 27, 2024, 2:18pm UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/5 "2024-05-27T14:18:44Z")

</div>

> forward the question and the source file that throws the error to our support mail

ok done thanks

---

<div class="post-metadata">

**Author:** ![annadisuza](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/annadisuza/32/3068_2.png) [@annadisuza](https://community.transifex.com/u/annadisuza)\
**Post date:** [June 6, 2024, 8:02am UTC](https://community.transifex.com/t/unable-to-import-existing-translations/3956/6 "2024-06-06T08:02:15Z")

</div>

Hi,  
It looks like you’re encountering an issue with your GitHub integration and the handling of existing translations. The error message you’re seeing, “a non-empty msgstr was found on the entry with msgid suggests there might be a problem with how the translation files are being imported.

This issue often relates to the difference between POT (Portable Object Template) files and PO (Portable Object) files. Here’s a brief explanation and a possible solution:

1.POT vs. PO  
POT files: These are template files that contain the original strings (msgid) but do not include translations (msgstr).  
PO files These include both the original strings and their corresponding translations.  
2.Solution  
Ensure you are correctly specifying the type of files you are using in your `transifex.yml` configuration. If you have existing translations, make sure that the integration is set up to handle PO files, not just POT files.  
Thanks
