Change original Post Type string

This topic contains 24 replies, has 4 voices, and was last updated by  Birgit Wilde 5 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #431499

    Birgit Wilde
    Full Member
    Post count: 236

    Hello support,
    before installing the WPML plugin for translation, I have added quite a few post types with names in German. Now the WPML plugin obviously thinks that these strings are English and I am struggling to tell the system, that these names of post types are in German (see WPML screenshot).

    I have also exported the correspondent pot-file, therein changed the English string (see poedit screenshot) and imported it again, but the system will not take this English/English translation.

    Due to the fact that I have started to set up new fields, categories etc. in German, some of the po-files show on the lefthand side a mixture of German and English.

    What would you recommend me to do to set this streight?
    Looking forward ot your response

    Best regards
    Birgit

    #431519

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the only way would be to delete the CPT created with German names and change them to English.

    There is no other way.

    Thanks

    #431521

    Birgit Wilde
    Full Member
    Post count: 236

    Okay, thanks. This is quite devastating now, since I have more than 20 CPT with numerous filters and prices for each one… so much work and time – just gone.

    A more prominent advice for those planning a multi-lingual or foreign directory to setup everything in English FIRST and then translate the strings in the aimed language(s) instead of setting up CTP etc. in their language would have been extremely helpful. Maybe this might help users to avoid this time-consuming mistake in the future.

    Anyway, thank you.

    #431524

    Paolo
    Site Admin
    Post count: 31206

    Another option would be to use German as your default language on WPML.

    #431526

    Birgit Wilde
    Full Member
    Post count: 236

    I have tried this. Then it looks like this – see screenshot.
    Then the original CPT are in German, but in the German translation all the other wording is in English. So how do I then edit the German strings?

    #431528

    Paolo
    Site Admin
    Post count: 31206

    You need to make sure all Strings in your german po file are translated correctly.

    https://wpgeodirectory.com/docs/translate-core/

    Did you go through the translation procedure already?

    #431530

    Birgit Wilde
    Full Member
    Post count: 236

    Yes, I have gone through it.
    Now I have set German as default language and also set the language of the domain in WPML to German, I have exported the pot-file and in the file it still states that the original language is English (see screenshot).

    I already have created a po-file from this, translated this language-mix into German and imported this file, but the system doesn’t apply these translations. The “orginial” language stays this German-English mix.

    Any idea?

    #431534

    Birgit Wilde
    Full Member
    Post count: 236

    By the way, the German po-file I have named:
    geodir_custom_posts-de.po

    and imported it. Or should I have given it another name? Or should I have uploaded it not via WPML but somewhere on my server?

    /clickandbuilds/…/wp-content/plugins/geodir_custom_posts/geodir-cp-languages

    #431538

    Paolo
    Site Admin
    Post count: 31206

    You must follow the documentation. If you do, there is no way to do it wrong.

    https://wpgeodirectory.com/docs/translating-addons/

    The CPT po file should be named:

    geodir_custom_posts-de_DE.mo

    and copied in :

    /wp-content/languages/plugins/geodir_custom_posts-de_DE.mo

    If that still doesn’t help, please provide a link and WP + FTP credentials and we’ll check your website.

    Thanks

    #432440

    Birgit Wilde
    Full Member
    Post count: 236

    Thanks Paolo,
    looks okay so far, should any further questions arise, I will get back to you.

    Just one more general question:
    On my server unter wp-content there seem to be two locations where po-files can be found:

    One is in the plugin file and in there in the respective language file

    e. g.
    /clickandbuilds/…/wp-content/plugins/geodir_custom_posts/geodir-cp-languages

    the other one is in the language file and in there in the file for plugins

    e. g.
    /wp-content/languages/plugins/geodir_custom_posts-de_DE.mo

    Can you tell me, what the difference is?

    #432444

    Alex Rollin
    Moderator
    Post count: 27815

    The difference is that language files placed in the second directory will not be overwritten with plugin updates.

    The correct location is:
    /wp-content/languages/plugins/

    #433086

    Birgit Wilde
    Full Member
    Post count: 236

    Hi Alex,

    now I have translated all po-files of all domains, named them “default-de_DE.po”, “geodirectory_de_DE.po” etc. and saved the po’s and mo’s in the respective file on my server:

    /wp-content/languages/plugins/

    The default language of my site I have set to German, just like the language of each single domain in WPML.
    And still, the WPML string translation shows English strings where it should be German stating that they are not translated – even though I have translated and uploaded the e. g. default-de_DE.po only this morning. (see screenshot 1).

    And still the formfor adding an event shows not the correct date format. It should be
    1. Juni 2018
    e. g. 13:00 Uhr (not AM/PM etc.)
    (see screenshot 2). – and I am very sure that I have translated any date format strings in all the files.

    And – this is very new – the Search button label all of a sudden is “Schnittstelle XF002 / XF 003” instead of “Suchen”, even though in the Settings I have named this Button “Suchen”. (screenshot 3)

    I really have very carefully followed all translation instructions and have no idea, what is going wrong. In German we would say … I am at the end of my Latin 😉

    Can you help me?

    #433092

    Alex Rollin
    Moderator
    Post count: 27815

    The file should be renamed to:

    /wp-content/languages/plugins/geodirectory-de_DE.po

    above you said you renamed the file to ““geodirectory_de_DE.po”” so I wanted to check with you to make sure you had the correct name.

    Can you confirm that you took the English language files out of the language folders of each of the plugins?

    When you said “exported” I am not sure what you meant by that. You did use PoEdit to edit the files, yes?

    Can you take a screenshot of the FTP files directory so we can see the names of the files there in wp-content/languages/plugins?

    AM and PM text will need some additional followup. We will look into it, please send WP Admin and FTP in case we need to apply a patch.

    #433099

    Birgit Wilde
    Full Member
    Post count: 236
    This reply has been marked as private.
    #433100

    Birgit Wilde
    Full Member
    Post count: 236
    This reply has been marked as private.
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