1891 posts The Last Man Standing
  • Weekly Top Seller
  • Author Level 8
  • Beta Tester
  • Moderator
+10 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

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+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.

1891 posts The Last Man Standing
  • Weekly Top Seller
  • Author Level 8
  • Beta Tester
  • Moderator
+10 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?

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+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.

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says

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

3757 posts
  • Elite Author
  • Spain
  • Author Level 8
  • Featured Author
+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
  • Affiliate Level 1
  • Author Level 4
  • Beta Tester
  • Collector Level 1
+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 :)

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+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