Change original Post Type string
This topic contains 24 replies, has 4 voices, and was last updated by Birgit Wilde 6 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: .po, original, snippet, strings, translation
-
AuthorPosts
-
May 21, 2018 at 3:51 pm #431499
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 responseBest regards
BirgitMay 21, 2018 at 5:18 pm #431519Hi,
the only way would be to delete the CPT created with German names and change them to English.
There is no other way.
Thanks
May 21, 2018 at 5:32 pm #431521Okay, 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.
May 21, 2018 at 5:42 pm #431524Another option would be to use German as your default language on WPML.
May 21, 2018 at 5:48 pm #431526I 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?May 21, 2018 at 5:51 pm #431528You 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?
May 21, 2018 at 6:01 pm #431530Yes, 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?
May 21, 2018 at 6:08 pm #431534By the way, the German po-file I have named:
geodir_custom_posts-de.poand 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
May 21, 2018 at 6:16 pm #431538You 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
May 28, 2018 at 11:06 am #432440Thanks 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-languagesthe 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.moCan you tell me, what the difference is?
May 28, 2018 at 11:30 am #432444The 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/June 1, 2018 at 8:28 am #433086Hi 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?
June 1, 2018 at 10:11 am #433092The 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.
June 1, 2018 at 11:20 am #433099This reply has been marked as private.June 1, 2018 at 11:21 am #433100This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket