• Resolved jenUnderscore_

    (@jenunderscore_)


    Hi there,
    I’d like to use this plug-in for a new multisite installation using WordPress 3.3.

    I’ve created two sites: /en and /fr

    I’ve installed the plugin and activated it under
    Netword Admin > Plugins > [Network Activate]

    I then went to Settings > Multisite Language Switcher
    on each of my websites (/en and /fr)

    This is where I’m a little stuck.. How do I tell the system that /en is my english version and fr is my french version? It appears that it sets them each to “us”, but I don’t know how to change that.

    Also, with this plug-in activated when I go to save a page I get the following error:

    Fatal error: Call to a member function get_language() on a non-object in C:\[…]\wp-content\plugins\multisite-language-switcher\includes\MslsMain.php on line 65

    What am I missing? or is this just a prob while you’re bring the plug-in up to date with 3.3.

    https://www.ads-software.com/extend/plugins/multisite-language-switcher/

Viewing 15 replies - 16 through 30 (of 38 total)
  • Hi everyone!

    I am afraid i got a little bit lost following this instructions: https://www.ads-software.com/extend/plugins/multisite-language-switcher/installation/

    – I have a multisite network with two independent sites.
    – I uploaded the whole multisite language switcher carpet into wp-content/plugins.
    – I’ve got several languages at plugins/languages, for example: msls-fr_FR.mo and .po
    – In the site dasboard, inside Settings, on the right, i can modify the multisite language switcher, through options such as Sort output by description, Exclude this blog from output, Text/HTML before the list, etc.

    But i cant find anywhere a “Site language” option…

    Any clues of what am i getting wrong?

    I also set to “fr” several fields in the other long settings page and installed the widget but nothing changes…

    Plugin Author Dennis Ploetner

    (@realloc)

    You can find this in Setting > General Settings if you have some language-files of the WordPress-Installation in /wp-content/languages/ too.

    That’s right, thanks, i just checked that out.

    Indeed such languages only appeared in the folder you tell me about after i installed another plugin – native dashboard – and its languages files.

    I just changed one of my sites to French and it works… Except for the posts information – it’s still in English (“posted on” + the French date) while everything else appears in French.

    This is not nice as you may imagine even if it’s only a detail. Should i uninstall and reinstall the plugin? Is that normal? Can it be avoided?

    Thanks a lot for your help!

    Oh, something else: I guess it’s impossible to have the dashboard in English but the website displayed in French?

    Plugin Author Dennis Ploetner

    (@realloc)

    If you see something like “posted on” and the French date you should control your theme if it uses the right format for translatable strings (something like _e or __ as function).

    If you use “Native Dashboard” you can have the dashboard in every language you want.

    Thanks, ok for the dashboard.

    But how can i “control my theme if it uses the right format for translatable strings (something like _e or __ as function)”?

    Could you please be so kind to tell me where to go, what to open, what to change?

    Plugin Author Dennis Ploetner

    (@realloc)

    In /wp-content/themes/DIR_OF_YOUR_THEME/ you have a single.php (or at least a index.php) where you can look for such a string.

    Hi, thanks again for your reply!

    I just downloaded another theme, and i still have the same problem.

    I took a look into single.php and the word “function” doesnt even appear inside?

    Do you maybe know what i should add exactly and where?

    I’ve also got index.php by the way.

    Plugin Author Dennis Ploetner

    (@realloc)

    Look for __ or _e and not for function ??

    Ok, done, i’ve got a _e in one of the lines, you may take a look here:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    So then what? Should i add a piece of code? What? Where? I still find some words such as Categorized or Posted in English instead of French.

    Hi! I have installed wordpress and the multisite language switcher. I have a principal site (www.example.com) and added two new sites (www.example.com/es) and (www.example.com/fr) to create a spanish and french version. I have installed the language files from https://svn.automattic.com/wordpress-i18n/ in my wp-content -> plugins -> multisite-language-switcher -> languages. In the “general settings” of each site, I set the language as “en” for english, “es” for spanish and “fr” for french.

    WHAT I CAN DO: when I create a new page in any of the three sites, i see in the upper right corner the “multisite language switcher” where I could (as I suppose) make the link to any other page, i.e., the same page in the other language.

    PROBLEM: The options that appear both have the US-flag. Now, in any of the three sites, when I go to “settings -> multisite language switcher” to set my “multisite language switcher options”, I can see that in fact my three sites are as follows: example.com/us, blogname fr/us and blogname es/us. So in fact, all three sites are on “us”.

    QUESTION: what do I need to do to “tell” the network which site is in which language? or in other words: how can I get rid of the “us”?

    Thanks in advance for your help!

    Plugin Author Dennis Ploetner

    (@realloc)

    OK, that’s a lot … ??

    1. Move the language files to the folder “wp-content/languages/” … if you installed a french WordPress version for example there are already files like fr_FR.mo and fr_FR.po in this folder.

    2. You must go to “Settings > Multisite Language Switcher” and save your configuration. In the newest version the plugin displays a message that you’ll have to finish the setup until you have done this.

    3. Double check if your user (your login) is the owner (or and admin) of all these blogs. If not change this.

    4. In your case: Seems that you need a Domain Mapper -> https://www.ads-software.com/extend/plugins/wordpress-mu-domain-mapping/

    Hope this helps!

    Hi! thanks for your reply!

    1. ) Is it possible that the problem can be here: I have no folder “wp-content/languages/”. In my wp-content folder I have “plugins”, “themes”, “upgrade” and “uploads”. When I open the plugins folder, I have a folder “multisite-language-switcher”, and there a folder “languages”. This is where I installed the language files. There were indeed already some fr_FR.mo files (I do not exactly remember which files were there), which during the process of installing I overwrote (at least I suppose this is what I did ;o) ). I have wordpress 3.3.2 installed.

    2. ) What exactly do I have to fill in in “Settings > Multisite Language Switcher”? There are some options that I don’t understand, can you guide me here?

    3. ) In “sites > edit > users” I am the only user and administrator, is this correct like this?

    Thanks again for your time!

    Plugin Author Dennis Ploetner

    (@realloc)

    Yes the problem seems to be point one … if you don’t have a folder /languages/ in wp-content you must create one and then you have to copy the files from the svn.automattic.com server there. The plugin has its own language files. That’s why it has its own language folder.

    It’s no problem if you don’t understand all of the options of the plugin. Maybe this will you: help https://github.com/lloc/Multisite-Language-Switcher/wiki

    Point 3 is correct.

    Cheers,
    Dennis.

    Hi, thanks again for your reply. I created a “languages” folder in the wp-content and moved the installed folders to this new folder. What I also did is change the blogname of each site to “example.com”, just as is the main site (“www.example.com”). in the settings options I added “en” and “es” for the english and spanish version respectively. So it says now “example.com/en” and “example.com/es”, in other words: the “us” is not there anymore. However, if I go to pages, I still only have the “us” option in the Multisite language switcher. Any idea what else could I be doing wrong??

Viewing 15 replies - 16 through 30 (of 38 total)
  • The topic ‘[Plugin: Multisite Language Switcher] New to multisite and using with WordPress 3.3’ is closed to new replies.