1885 posts The Last Man Standing
  • Had an item that became a weekly top seller
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helps us moderate the forums
+11 more
ImanGM
Moderator
says

Hello Community,

Here is the scenario: I want to put some text variables in my theme options to let users change them to what they want. But I’m not sure what should I do when users are using WPML or such plugins…

How can make these strings WPML ready?

And even more, I have a special contact page template that I’ll let users choose the contact page’s contact form from theme options. So I let them to choose one contact form in theme options. Now, how should I deal with these issues in a multi language site?

Thank you very much!

Cheers,
Iman

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Why not having separate Options panel data for each language?

That way you solve all your problems and customers can customize their multilingual site completely.

1885 posts The Last Man Standing
  • Had an item that became a weekly top seller
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helps us moderate the forums
+11 more
ImanGM
Moderator
says

Thank you for your response.

You mean I should add a language switcher in theme options and let users set separate theme options for each language?

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

That’s how we do it.

We don’t have multilingual feature inside the framework, but we do have WPML support. Once WPML is activated, in the admin bar you can switch between active languages. Framework detects that and automatically loads theme options panel with data for that active language.

No one complained about it so far.

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Note: You don’t need to add switcher manually, that’s part of the WPML.

3757 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+11 more
pezflash
says

Not sure if this could help, but i’m using plain Wordpress multisite (network) + language swichter plugin to generate sites on different languages and i find it just great and straight-forward, not to mention the advantage of getting rid of yearly paid plugins (WPML) for my final clients.

In this scenario, themes using PO-MO files to get all theme strings are a must.

332 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
dekciw
says

For example, if you have an option ‘footer text’, print it out on the frontend using _( $text, ‘xxx’); so that it’ll make that string entered in ‘footer text’ appear in WPML string translation :)

1560 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

For example, if you have an option ‘footer text’, print it out on the frontend using _( $text, ‘xxx’); so that it’ll make that string entered in ‘footer text’ appear in WPML string translation :)

That’s actually a bad idea: http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/

by
by
by
by
by
by