Home › Forums › Front End PM PRO › Multisite translation
Tagged: translation language
- This topic has 12 replies, 2 voices, and was last updated 4 years, 10 months ago by markku.lehtola.
- AuthorPosts
- November 27, 2020 at 12:25 am #41946markku.lehtolaParticipant
Hi, I made a Finnish translation (files attached) with translate.wordpress.org…used poedit to make sure files are ok.
I have a multisite with Polylang, Finnish and English. Transferred the .po and .mo to wp-content/languages/plugins.
Nothing…what should I do next?
br
MarkkuAttachments:You must be logged in to view attached files.November 27, 2020 at 1:35 am #41950Shamim HasanKeymasterNovember 29, 2020 at 4:00 pm #41964markku.lehtolaParticipantDone. Still no luck. Should there be only one page with shortcode (I have 2 because of 2 languages)?
November 30, 2020 at 4:37 pm #41971Shamim HasanKeymasterPlease select English one as “Front End PM Page” in the settings page of this plugin.
Also please check if other plugins translations working.let me know.
December 1, 2020 at 3:29 pm #41981markku.lehtolaParticipantDone…still no. Noticed also that if pages are private, they are not shown in the selection list.
December 2, 2020 at 12:16 am #41985Shamim HasanKeymasterDo other plugins translations works?
December 3, 2020 at 1:44 pm #41993markku.lehtolaParticipantOnly other used plugin that is translated to Finnish is Polylang and that works…
December 3, 2020 at 1:54 pm #41995markku.lehtolaParticipantOk, figured it out, the files should be named like this: front-end-pm-fi.*. Not front-end-pm-fi_FI.*
February 16, 2021 at 8:50 pm #42504markku.lehtolaParticipantDamn, when I press any button in PM, it changes the language back to English…any more ideas?
Br
MarkkuFebruary 17, 2021 at 5:47 pm #42514Shamim HasanKeymaster1. Do you have a page in English which content have
[front-end-pm]shortcode?
2. Do you have this page translated in other languages?
3. Do all these pages public?
4. Did you set “Front End PM Page” the English one?February 17, 2021 at 7:59 pm #42518markku.lehtolaParticipant1. yes
2. yes, Finnish
3. No, private, tried also public, but no difference.
4. yes.I change the language to Finnish and when mouse is over the “new message” button (1. in attached picture), the link (2. in picture) should change from domain.fi/stable/messages to domain.fi/stable/fi/viestit which is the same page in Finnish….but it doesn’t..
br
MarkkuAttachments:You must be logged in to view attached files.February 19, 2021 at 12:59 am #42526Shamim HasanKeymaster1. Did you added following code?
add_filter( 'fep_page_id_filter', function( $page_id ){ if( $page_id && function_exists( 'pll_get_post' ) ){ $page_id = pll_get_post( $page_id ); } return $page_id; });2. Can you please keep that page public then clear all cache then try?
3. If still not working you can set Front End PM Page to your Finnish one then try.Let me know.
February 19, 2021 at 10:32 pm #42537markku.lehtolaParticipantDamn me!
I added the code to my test enviroment and totally forget it…so it was not in my production enviroment…added and now it works! Sorry for wasting time and huge thanks for good support.Markku
- AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.