Translating main category (post type) in the url

This topic contains 17 replies, has 3 voices, and was last updated by  Stiofan O’Connor 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #44772

    giacomo
    Expired Member
    Post count: 235

    Hi all,

    another question about translating url part:

    Is it possible to translate automatically (according to the site actual language) the main category (post type) in the url?

    for example:

    http://museum-advisor.com/museums/italy/tuscany/florence/uffizi-gallery/

    to

    http://museum-advisor.com/it/musei/italy/tuscany/florence/galleria-uffizi/

    ?

    I bought also CPT. If it’s possible to change the main category (post type), is it possible to change also the custom one?

    Thanks

    Maurizio S.

    #44802

    giacomo
    Expired Member
    Post count: 235

    Ok, i translated it by:
    WPML –> Translation Management –> Multilingual Content Setup –> Custom posts

    #44807

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    You will find options to translate custom post type slugs under WPML->Translation Options > Custom posts.

    Select translate for the cpt needed and save, a new option will appear: Use different slugs in different languages for Places.

    Once you select that, you will have option to translate your CPT slug.

    Thanks

    p.s. Please always refer to WPML docuementation or suppórt forum for questions related to WPML before posting here.

    #44809

    giacomo
    Expired Member
    Post count: 235

    Ok thanks all and sorry for the wrong post placement

    #44818

    giacomo
    Expired Member
    Post count: 235

    ok, that’s translated, but now i lost the page because the url is :

    http://museum-advisor.com/it/musei/gd_taxonomy/galleria-degli-uffizi/

    gd_taxonomy is present also if i delete it from
    WPML –> Translation Management –> Multilingual Content Setup –> Custom posts

    #44893

    giacomo
    Expired Member
    Post count: 235

    i notice that the geolocalization parts of the url (italy/tuscain/florence for example) don’t appear even if the option in

    “Geodirectory -> Permalinks -> Add full location info with country, region and city slug in listing urls ”

    is flagged.

    is it a bug?

    #44903

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    How did u translate “museums” in the .po file or somewhere in WPML?

    Stiofan

    #44904

    giacomo
    Expired Member
    Post count: 235

    I used the WPML integrated options

    First i flagged

    WPML –> Translation Management –> Multilingual Content Setup –> Custom posts slug translation options -> Translate custom posts slugs (via WPML String Translation)

    it appeared the option for translate the slugs in the url flagging:

    WPML –> Translation Management –> Multilingual Content Setup –> Custom posts slug translation options -> Custom posts -> Use different slugs in different languages for Museums.

    and there i wrote the various translations.

    in english is ok… here is the working url:
    http://museum-advisor.com/museums/italy/tuscany/florence/museums/uffizi-gallery/
    but for the other languages is not… for example i got for the italian page of the listing
    http://museum-advisor.com/it/musei/galleria-degli-uffizi/
    and it gives the epic 404 error (and in the url the part about geolocalization (italy/tuscany/florence) don’t appears)

    #45608

    giacomo
    Expired Member
    Post count: 235

    This is still a problem, i think it will be fixed with the next update … correct?

    #45637

    Paolo
    Site Admin
    Post count: 31206

    We are doing our best to make it happen.

    Thanks for your patience,

    #45922

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    I have worked for two days to resolve this “incompatibility” and now i’m ready to test it, can you provide wp-admin and FTP details and i will upload it to your site.

    Thanks,

    Stiofan

    #45928

    giacomo
    Expired Member
    Post count: 235
    This reply has been marked as private.
    #45933

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Can you also provide FTP details please.

    Thanks,

    Stiofan

    #46068

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Still waiting on FTP so i can fix this for you. 🙂

    Stiofan

    #46091

    giacomo
    Expired Member
    Post count: 235
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 18 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket