Translating Country Slug

This topic contains 24 replies, has 4 voices, and was last updated by  Kiran 6 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #378238

    kairei
    Expired Member
    Post count: 78

    I used GD to translate my countries to Japanese and have created listings for my “Business” CPT in both English and Japanese. The default site language is Japanese and the Japanese pages work fine, e.g.:

    https://マッサージ.com/店/日本/東京都/港区/erawan/
    ホーム > 店 > 日本 > 東京都 > 港区 > Erawan

    As you can see, each segment of the URL matches the breadcrumbs and everything works great. However, if I click the WPML language switcher to go the corresponding English page, the URL and Breadcrumbs aren’t what I expect/want:

    https://マッサージ.com/en/businesses/日本/東京都/港区/erawan/
    Home > Businesses > 日本 > Tokyo > Minato-ku > Erawan

    In this case, the country, region, and city URL segments are still in Japanese and after hours of research and trying things I can’t find a way to translate them. Also, the country name in the breadcrumbs is in Japanese for some reason.

    Worst case scenario, I can live with the URL issue, but I can’t have Japanese showing up on the English site. I manually translated the region and city URL segments in WPML string translation but not luck finding the country there.

    Can the country be in English in the breadcrumbs?

    #378239

    Guust
    Moderator
    Post count: 29970

    Did you translate the countries in the GD Core language file?
    https://wpgeodirectory.com/docs/translating-countries-and-map-directions/

    Thanks

    #378240

    kairei
    Expired Member
    Post count: 78

    Yes, I followed that to the letter and it worked great. But it seems to use the translated URL slug and text everywhere (regardless of the current language).

    #378241

    Guust
    Moderator
    Post count: 29970

    I’ll get Kiran to have a look after the weekend.
    Can you post your WP admin details for him in a private reply?
    Thanks

    #378242

    kairei
    Expired Member
    Post count: 78

    Can I provide a duplicator package instead?

    #378246

    kairei
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #378320

    Kiran
    Moderator
    Post count: 7069

    Hi kairei,

    Country, region & city slugs can’t be translated for each language. Because these slugs must be same for all languages. Country, region & city slugs are only allowed to translated to any one language and that slugs used within other languages.

    > Can the country be in English in the breadcrumbs?
    <
    We need look into your site. Let us provide admin & FTP credentials.

    Let us know.

    Thanks,
    Kiran

    #378323

    kairei
    Expired Member
    Post count: 78

    Hi Kiran,

    > Country, region & city slugs can’t be translated for each language.

    Is there some technical limitation here or just something that hasn’t been implemented yet?

    If I really wanted my URLs to be fully in two languages, could I create my own set of locations, i.e. one called “東京” (which means Tokyo) and one actually called “Tokyo” and just add my Japanese Tokyo listings to “東京” and my English Tokyo listings to “Tokyo?” Technically GD would know them as two separate locations but I don’t need to show English and Japanese listings on the same page so it might not be an issue for me…

    > Can the country be in English in the breadcrumbs?
    > We need look into your site. Let us provide admin & FTP credentials.
    Is it possible to use the duplicator package? If not, I can set up a copy of the site (I can’t give out the production credentials).

    Thanks!

    #378332

    Kiran
    Moderator
    Post count: 7069

    Hi,

    > Is there some technical limitation here or just something that hasn’t been implemented yet?
    <
    There are technical limitation, so regions & cities are not translatable. It explained here https://wpgeodirectory.com/support/topic/country-state-abbreviations-in-url/#post-246282

    > Is it possible to use the duplicator package? If not, I can set up a copy of the site (I can’t give out the production credentials).
    <
    This problem can be your site specific, because we can’t recreate this problem in our test site. Wo we have to look into your site, to find what causing this problem. If you don’t want to provide production site details, then you can setup dev or test site and provide admin/FTP details for that site.

    Let us know.

    Thanks,
    Kiran

    #378462

    kairei
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #378656

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #378659

    kairei
    Expired Member
    Post count: 78

    No problem. thanks for the update.

    #378721

    Kiran
    Moderator
    Post count: 7069

    Hi kairei,

    Thank you for providing staging site details. I checked in back-end and found all settings fine.
    Now we have to look into database entries in locations table & listing table. So please provide FTP details & Database access for the staging site.

    Thanks,
    Kiran

    #378961

    kairei
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #379031

    Paolo
    Site Admin
    Post count: 31206

    I don’t see a link to access phpmyadmin or cpanel.

    Let us know

Viewing 15 posts - 1 through 15 (of 25 total)

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

Open Support Ticket