This somewhat of a continuation of this thread:

http://drupal.org/node/1932682

In that thread, I had to manually add the mapping for Chinese Tradition to work correctly. However, I wanted to upgrade to the recent DEV versions to see if these had been fixed.

As of the dev, I could not see that the mapping code had been added to tmgmt_mygengo.plugin.inc, and I was getting the same errors as the recommended release. I then went in to manually add the mapping back to line 62, but this did work. I now get the following error:

"Job has been rejected with the following error: #1551: language service not supported"

screenshot attached.

Comments

issam.zeibak’s picture

StatusFileSize
new606 bytes

This is my first patch to commit to drupal. This should work, there target language was simply not mapped.

berdir’s picture

Can you check if the patch in #1901890: Make use of the new remote language mapping feature from tmgmt core fixes this problem as well?

issam.zeibak’s picture

StatusFileSize
new854 bytes

I'll check it later, but the patch does not cover both simplified and traditional chinese. I attached a new patch to cover this.

berdir’s picture

It's possible that the other patch is missing mappings but this should then be added to the patch there. That patch is the way forward as it implements the improved mapping functionality provided by TMGMT instead of implementing a custom solution. The patch also allows users to define their own mappings if they e.g. have custom languages defined on a site.

issam.zeibak’s picture

I'll try your other patch then. I agree better to come with drupal than to customize.

berdir’s picture

Have you been able to test the other issue/patch to make sure that it works at least as well as the current code? I'd be more than happy to commit it and some improved default language mapping definitions (in the patch if you want to re-roll or as a follow-up here) but I don't have time to test it myself right now.

issam.zeibak’s picture

StatusFileSize
new406 bytes

I have tested this and while it did require the extra traditional chinese mapping, it did work well. I attached the extra mapping in a patch that should be applied on top of the previous one. Thanks.

berdir’s picture

Status: Active » Fixed

I've committed the other issue, thanks for testing.

Looks like your patch was still against the current version and not that patch, I've applied and commited it manually.

Note: Please set the issue status to "Needs review" when you upload a patch.

issam.zeibak’s picture

Thank you for that merge Berdir. Also, thank you for your catch on the Drupal version and your comment on the status change. I will be more careful going forward.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.