Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merdekiti’s picture

Any update here?

Berdir’s picture

Project: BLEND Localization » Translation Management Tool
Component: Code » Core
Status: Active » Postponed (maintainer needs more info)

This is also not OHT specific. Anything that happens after accepting before a job is submitted and after a job item was accepted (or while accepting it) is TMGMT core. It's only translator specific if there's a problem with the submitted information but it shows up correctly on the job item or if the sent translation is wrong or missing.

Again, need more information here. We recently fixed a pathauto related alias bug for entity translation, make sure you're using the latest version of all related modules (tmgmt, entity_translation, pathauto).

Provide detailed steps to reproduce if the error still happens.

AusJohn’s picture

Issue summary: View changes

This is the same issue I'm currently having. Might be anyway..

Using multilingual urls (pathauto)
Using content translation (not fields).

Create an article and publish it.
The aliased url is created automagically.

The aliased url for the original works: site.com/cute-dog

Create a Translation Job.
User translates article and saves.
Editor checks accuracy and clicks 'complete job'.

Original article URL is reverted to: site.com/node/12
Translated article URL works fine: site.com/ja/可愛い犬

Right after saving the job as completed. The message states "The translation for HYPERLINK has been accepted"
The hyperlink has already changed to node/12 at that point.

The aliased url is derived from the node title. If I translate the article directly (not using tmgmt), the original articles path is not affected.

Not sure what is causing this.

AusJohn’s picture

Title: Alias of a node will removed if apply a translation » Alias of original node is removed after completing translation job
Status: Postponed (maintainer needs more info) » Active
AusJohn’s picture

If I open the original node after translation job complete, the alias is gone. Deleted.

I hit save with automatic generation ticked, the alias is fixed and everything works. I'll have another look later but, I'm no expert in finding the cause of these things.

I know something is deleting the alias of original/translated versions. To re-apply these aliases, one must open and again save the original/other translated nodes. Not exactly user friendly.

ippey’s picture

I got the same issue.
It was occurred when I installed "TMGMT" and "workbench_moderation" on Drupal7.
but it was not occurred when I installed only "TMGMT" on Drupal7.
"workbench_moderation" has a method "workbench_moderation_node_load",
this method gets url_alias data.

I think I was able to solve this issue.
Please make sure of the following attachment file.

Best regards.

mgalalm’s picture

This is ippey's fix version for entity

mgalalm’s picture

sri@re’s picture

--- a/drupal/sites/all/modules/sources/node/tmgmt_node.plugin.inc
+++ b/drupal/sites/all/modules/sources/node/tmgmt_node.plugin.inc
@@ -65,7 +65,7 @@ class TMGMTNodeSourcePluginController extends TMGMTDefaultSourcePluginController
       else {
         // We don't have a translation for the source node yet, so create one.
         $tnode = clone $node;
-        unset($tnode->nid, $tnode->vid, $tnode->uuid, $tnode->vuuid);
+        unset($tnode->nid, $tnode->vid, $tnode->uuid, $tnode->vuuid,$tnode->path['pid']);
         $tnode->language = $job->target_language;
         $tnode->translation_source = $node;
       }

its working.can anyone please test.

sri@re’s picture

FileSize
788 bytes
jfhovinne’s picture

Status: Active » Needs review
FileSize
1.26 KB