This topic has 14 replies, 4 voices, and was last updated 8 years, 12 months ago ago by Eva Kemp
Hi i have trouble with setuping display in two languages, a have made .po file for Croatian and English, but i have trouble with wp-comfig. I have installed WMPL on my site everything is working ok, but some part of theme a can to get working.
i have tried to put following code in to wp-config.php but it doesn’t work.
Any advice or help is welcome 🙂
Hello,
Could you please clarify with more details what exactly you want to do and show us screenshots?
Regards,
Robert Hall.
http://zlatarna-jozef-gjoni.hr/ – this is croatina verison of site- and not all string are shown in croatian. like (“view more products”) on products scroller in bottom.
http://zlatarna-jozef-gjoni.hr/nakit/nakit-s-dragim-kamenjem/z011/ ( category menu is allso displayed in english).
That is the problem,
i have made .po file in croatian and put it in correct place, and alls put thios in wp-config.php as instructed in documation.
/** postavke jezika*/if (strpos($_SERVER[‘REQUEST_URI’], ‘/enblog’) === 0) { define (‘WPLANG’, ‘en_GB’);} else { define (‘WPLANG’, ‘hr_HR’);}
Hello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall.
information that you required is in private content.
Hello,
Please read our documentation carefully https://www.8theme.com/demo/docs/legenda/index.html#!/how_to_translate
You should use the $locale
with prefix with your language name in wp-config.php file which should be similar to the translation file name. For example: $locale='de_DE';
Regards,
Eva Kemp.
can you please send mi what needs to be put into wp-config for two languages to work properly, or some example of code?
Hello,
please specify – do you want to have two languages on your site at the same time?
Regards,
Stan Russell.
Hi, i wont to when certain language is selected all string of theme is on that language in this case Croatian, and when some one selects other language in this case English to switch in English, as you can see now it doesn’t work for all string , that is the problem and i i don’t know what goes to wp-config for this to work.
Hello,
In this case you need use WPML plugin https://wpml.org/ to have multilingual site. It’s fully compatible with our theme.
Thank you.
Regards,
Eva Kemp.
Hi i have WMPL but i have still problem, for example a cant translate contact form and some other strings, as i have mentoned in past posts!
In case when i have instaled WMPL , does the theme needs default.po file in theme folder or not?
And one 2 other qusetion:
1. on mobile verison top menu with flag is note showen?
2. regarding the footer area how do I setup more widget to be desplayed as in demo , but when i put more that two widgets they are note displayed as in demo?
Thanks
Hello,
Now theme strings for translation are visible in WPML > String Translation and you can translate other content. Please check it.
1. Add this code in custom.css file:
@media (max-width: 480px) {.top-bar .languages-area {
display: inline !important;
}}
2. You need create static block in wp-admin panel > Static Blocks and then add the widget “Static Block” into “Footer 1” or “Footer 2” area in Appearance > Widgets as described in our documentation: https://www.8theme.com/demo/docs/legenda/index.html#!/footer
Regards,
Eva Kemp.
Hi i have resloved the problem with WMPL and now the languge seating is ok, but i still have problem with shoving top menu on mobile version for language selecting.
I have added the code as you sed but itz dosen’t show.
Hello,
You didn’t rename default.custom.css to custom.css.
How to create custom.css you can watch in this tutorial.
Thank you.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up