diff --git a/translators/file/tmgmt_file.format.xliff.inc b/translators/file/tmgmt_file.format.xliff.inc
index 7107ec7..e085a35 100644
--- a/translators/file/tmgmt_file.format.xliff.inc
+++ b/translators/file/tmgmt_file.format.xliff.inc
@@ -350,7 +350,7 @@ class TMGMTFileformatXLIFF extends XMLWriter implements TMGMTFileFormatInterface
if ($node->nodeType === XML_ELEMENT_NODE) {
// Increment the elements count and compose element id.
$elements_count++;
- $id = $tjiid . '_' . $elements_count;
+ $id = 'tjiid' . $tjiid . '-' . $elements_count;
$is_pair_tag = !in_array($node->nodeName, $non_pair_tags);
diff --git a/translators/file/tmgmt_file.test b/translators/file/tmgmt_file.test
index c457801..814693d 100644
--- a/translators/file/tmgmt_file.test
+++ b/translators/file/tmgmt_file.test
@@ -101,7 +101,7 @@ class TMGMTFileTestCase extends TMGMTBaseTestCase {
// Get the xml content and remove the element representing
. This will
// result in different element counts in the source and target and should
// trigger an error and not import the translation.
- $content = str_replace('', '', file_get_contents($message->variables['!link']));
+ $content = str_replace('', '', file_get_contents($message->variables['!link']));
$xml = simplexml_load_string($content);
$translated_file = 'public://tmgmt_file/translated.xlf';
$xml->asXML($translated_file);