Actually can I am testing out the codestyling plugin, I have created a mo file and a po file with it. How is it possible to localise a page?
Hi
“How is it possible to localise a page?” Could you clarify?
Hi, sorry about my wordings as you can tell I am pretty confused.
Basically I mean, for example, the “ALL” button of the above portfolio demo, (oh sorry the link is wrong, please check this out: http://artbees.net/themes/ken/grid-three-col/)
I want to change it to French or any other languages I want for the French page, while keeping the English page’s portfolio button as “ALL”. Since the “ALL” button string of the portfolio is predefined, the only way I know to change it is edit the shortcodes, the related line looks like this:
$output .= ‘
- ‘ . __(‘All’, ‘mk_framework’) . ‘
‘;
However, this is for sure not the way if I want the code to work for a multilingual website as this will basically change every portfolio section I create with the shortcode.
That is why I think the string translation can help me to solve this problem (or maybe I am just too confused here, it is actually not for this?)
Thanks! I hope my queries are clarified!
Aldrich
btw the contact form demo link above is also wrong, this is the correct link:
http://artbees.net/themes/ken/shortcodes-2/contact-social/
$output .= '<li><a class="current" data-filter="*" href="#">' . __('All', 'mk_framework') . '</a></li>';
sorry about the code I pasted
Let me try to clarify a bit more as I really am very confused.
This is what I need to do:
The theme I purchased got some shortcodes I can use, I can edit the shortcodes but I can not create variations of the shorcodes eg. The original shortcode for the contact form is mk_contact_form.php, and I cannot create variations such as
mk_contact_form_en.php and mk_contact_form_fr.php, I can only edit the original php.
I need to setup a multilingual website (which polylang really helps a lot)
I have created two pages, one in English and the other in French. I have used the contact form and the portfolio shortcodes but they got some predefined fields in English, such as the “ALL” button filter of the portfolio and the FULL NAME, EMAIL ADDRESS, SHORT MESSAGES strings in the contact form. I need them in French for the French version of the page and in English for the English version. I am not sure if it is possible to make use of some .mo files to do this. This is the page I took reference of:
http://polylang.wordpress.com/documentation/setting-up-a-wordpress-multilingual-site-with-polylang/theme-internationalization-i18n-and-localization-l10n/
I also tried another plugin called codestyling localisation which I am not even sure how to make it work.
Anyway, I hope I am not further confusing you.
Thanks!
Aldrich
Codestyling localisation seems to be the correct solution.
But you should ask to the theme author if you need to use Codestyling localisation or create a wpml-config.xml:
http://polylang.wordpress.com/documentation/documentation-for-developers/the-wpml-language-configuration-file/
hi thanks for the reply, I finally found the solution:
http://codex.ww.wp.xz.cn/Function_Reference/load_theme_textdomain
2nd example.
Thanks for the excellent plugin 🙂
Aldrich