Title: PHP code to paste in function.php
Last modified: June 24, 2019

---

# PHP code to paste in function.php

 *  [chris19731973](https://wordpress.org/support/users/chris19731973/)
 * (@chris19731973)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/)
 * Hello,
 * Few people are interested in translating my website … in French, Spanish, Arabic
   so far but could be more …
 * I agreed but the translated sites will be separated of the main English site,
   it could be new Domains or Sub-domains … and a remote server because mine is 
   full …
 * For information, my theme is very popular and 100% RTL, their developers are 
   upgrading it to become compatible with AMP …
 * I believe that I don’t need a language switcher because 1 site = 1 language …
   I could had a link like “hablo Espanol”, “Je parle Francais” to redirect to the
   selected language …
 * The site use AJAX for a popup “unread message” but it could remains in English…
 * I would wish to install your SubLanguage plugin because it seems to be the best
   amoung all the translation plugin according to the reviews and other …
 * So far, it seems that I cannot translate the categories, locations & custom fields
   of Buddypress extensions and the classified ads plugins …
 * Your documentation on Github give me headache because I don’t know PHP and I 
   can only past the codes into function.php file …
 * Please could you paste below the required code that I need to paste in the function.
   php file ?
 * Thanks in advance …
 * Chris

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [maximeschoeni](https://wordpress.org/support/users/maximeschoeni/)
 * (@maximeschoeni)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/#post-11665986)
 * Hello,
 * Thanks for your interest in Sublanguage. If you want to have your different languages
   separated in different sites, I don’t think Sublanguage will be of any help. 
   I would rather recommand you “Multisite Language Switcher” or “MultilingualPress”
   plugins.
 *  Thread Starter [chris19731973](https://wordpress.org/support/users/chris19731973/)
 * (@chris19731973)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/#post-11685765)
 * Hello,
 * Thank you for your advice …
 * We plan to create a new site for Caribbean with 2 languages, English & Spanish…
 * Please could you paste below the required code that I need to paste in the function.
   php file ?
 * Thanks in advance …
 * Chris
 *  Thread Starter [chris19731973](https://wordpress.org/support/users/chris19731973/)
 * (@chris19731973)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/#post-11685820)
 * Hello,
 * My previous messages were not clear …
 * My main website is in English :
    [https://mysite.com](https://mysite.com)
 * We plan to translate this main site in French, Spanish, Arabic with different
   Domains :
    [https://mysite-fr.com](https://mysite-fr.com) [https://mysite-es.com](https://mysite-es.com)
   [https://mysite-ar.com](https://mysite-ar.com)
 * Why ? because I don’t want to touch the main site in English … I don’t speak 
   Arabic and the translators (volunteers) don’t know WP but they know online marketing…
   These 3 new sites won’t offer the English language to avoid any duplicate contents…
   We could use your plugin …
 * I plan to create a new site for Caribbean with 2 languages & different topics,
   in both English & Spanish; I could use your plugin … I don’t know multi-site 
   and not interested in it …
    [https://mysite-caribbean.com](https://mysite-caribbean.com)
 * Please could you paste below the required code that I need to paste in the function.
   php file ?
 * Thanks in advance …
 * Chris
 *  Plugin Author [maximeschoeni](https://wordpress.org/support/users/maximeschoeni/)
 * (@maximeschoeni)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/#post-11687317)
 * Sorry I cant help you more, I think it is not possible to do what you ask with
   Sublanguage plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP code to paste in function.php’ is closed to new replies.

 * ![](https://ps.w.org/sublanguage/assets/icon-128x128.png?rev=1197494)
 * [Sublanguage](https://wordpress.org/plugins/sublanguage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sublanguage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sublanguage/)
 * [Active Topics](https://wordpress.org/support/plugin/sublanguage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sublanguage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sublanguage/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [maximeschoeni](https://wordpress.org/support/users/maximeschoeni/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-code-to-paste-in-function-php/#post-11687317)
 * Status: not resolved