Forums

[Plugin: WP_Multilingual] Permalink (6 posts)

  1. tho
    Member
    Posted 1 year ago #

    Hi, I have a problem with the link to my blog entry.

    The Link to my article in the german version is:
    http://blog.com/de/2008/05/16r-blog-geht-online/

    When I change to english it is:
    http://blog.com/en/2008/05/16/der-blog-geht-online/

    You see that the german link is corrupted. After the date the beginning of "/der-blog-geht-online" is not there .. the part "/de" is missing and it only says "16r-blog-geht-online".

    I think the problem comes up, when the 2 letters of the language are the same as the 2 first letters of the entry url.

    In the WP-Admin-tool the url seems to be full and correct.

    Greets tho

  2. tho
    Member
    Posted 1 year ago #

    Same problem is here:

    http://blog.coinection.com/en/categoryglish/

    http://blog.coinection.com/de/category/english/

    the "/en" is missing in the category name when the language is english

  3. tho
    Member
    Posted 1 year ago #

    Off topic: Why am I not able to edit my old posts? I cannot delete the domain from my post! The domain is unnecessary to solve the problem! I really hate that!

  4. Butuzov
    Member
    Posted 1 year ago #

    1) in current version you can't have few slugs for one post or page - you can do it with additional plugin (http://wordpress.org/support/topic/171441?replies=12)

    3) have i ever tell that you can change en to englsih key and everithing will work?

    2) its also not a question about my plugin. its dosn't overite edition of post, its just select langauge posts from postmeta table. deactivate my plugin and tri to edit that posts...

  5. tho
    Member
    Posted 1 year ago #

    Oh, I'm very sorry if I wrote my 3rd post in this forum here not so good.

    This post: "Off topic: Why am I not able to edit my old posts? I cannot delete the domain from my post! The domain is unnecessary to solve the problem! I really hate that!"

    .. has nothing to do with your cool plugin. I'm really sorry if that was not clear! It only means, that I cannot edit posts in this wordpress support forum here, and this is what I hate.

    Back to On topic:

    I think that your hint "3) have i ever tell that you can change en to englsih key and everithing will work?" will be my solution. Thank you very much for your help.

    Greetings tho

  6. betoboullosa
    Member
    Posted 1 year ago #

    I've had a similar problem with some categories in my blog (http://blog.boullosa.org/pt. Then I found that the problem only ocurred with the categories that started with the same letters as the language code. For example, in english (en), the category "entertainment", or, in spanish (es), the category "esportes".

    I fixed it by changing one line in the LanguageLink function - more or less in the line 1213 of multilingual.php v. 1.3.4.12:

    Instead of

    case 'root':
    $str = $home.$code.str_replace('/'.$GLOBALS['language'], '', $urls['path']);

    use this

    case 'root':
    $str = $home.$code.str_replace('/'.$GLOBALS['language'].'/', '/', $urls['path']);

    I assume this will only fix the bug for people who use the blog in the domain root, like I do.

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic