• I have been translating my site post by post. As my categories and tags had been translated before and linked together, whenever I create a translation post its tags automatically appear. I assume this is because the relevant original tags and their translations are linked. This is a very nice feature because I do not have to input tags for my translated post!

    On my site however I have tags which are spelled exactly the same in different languages. So for example in L1 a tag is ‘car’ and in L2 (translated) tag is ‘car’. What I did when translating tags is I kept correct spelling and altered slugs. So in L1 the tag is ‘car’ and the slug is ‘car’. In L2 the tag is ‘car’ the slug ‘car-l2’.

    I noticed that when I link a post and its translation, tag translations appear automatically but they are only correct when for both original tag and its translation both a tag and a slug are different!

    Example 1 – result – CORRECT tags appear in translated post:
    L1 – tag is ‘car’, slug is ‘car’
    L2 – tag is ‘auto’ slug is ‘auto’

    Example 2 – result – INCORRECT tags appear in translated post:
    L1 – tag is ‘car’, slug is ‘car’
    L2 – tag is ‘car’ slug is ‘car-l2’

    Does is mean it is impossible to have same spelled tags in different languages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You discovered exactly the feature I want to reach with the tag metabox ?? . Since WordPress shows you only the tag and not the slug in the tag metabox, then you don’t know if it is the one in L1 or L2. So I decided to modify the tag metabox to filter tags by language and solve the issue. And I broke other things ??

    When you modified the admin.js file as I proposed here, you solved one of the bug but deactivated this functionnality.

    I will come back soon with a more robust solution.

    Thread Starter TheElear

    (@peterpap)

    ?? very good idea.
    I noticed that filtering works well. I have to double check but I believe only tags relevant to the post language show in the tag metabox. Very very helpful.

    regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘same spelled tags in different languages’ is closed to new replies.