The MU forums have moved to WordPress.org

Where I put the language files? And they not working (9 posts)

  1. Mariwal
    Member
    Posted 18 years ago #

    I create a folder languages and put the files there, but when i change a error appears, I already search in forum and dont find anything

    Thanks fot any help

  2. hbarquero
    Member
    Posted 18 years ago #

    Hello,

    I'm Henrique Barquero, from Portugal.

    I already solve that Problem, at this moment any user can change his language.

    But Unfurtunally, I don't remember Where I made the chnage.

    Can you please post me the error that you Get, And I will give you the answer, :)

  3. hbarquero
    Member
    Posted 18 years ago #

    I think I got the answer,

    Try this:

    on file: /wp-includes/wp-l10n.php

    on the 2nd or 3rd line you have:

    if ( defined('WPLANG') && '' != constant('WPLANG') ) {
    include_once(ABSPATH . 'wp-includes/streams.php');
    include_once(ABSPATH . 'wp-includes/gettext.php');
    }

    Simply remove the IF, so:
    //if ( defined('WPLANG') && '' != constant('WPLANG') ) {
    include_once(ABSPATH . 'wp-includes/streams.php');
    include_once(ABSPATH . 'wp-includes/gettext.php');
    //}

    I thinks that is the only thing to change!!

  4. Mariwal
    Member
    Posted 18 years ago #

    Thnak you, I will do that and post the result here

    and I'm forn Brazil, i speak portuguese too :)

  5. Mariwal
    Member
    Posted 18 years ago #

    Nops.... give that error when i change the language file

    Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/.../public_html/wp-inst/wp-includes/wp-l10n.php on line 67

    Line 67 is

    66 if ( is_readable($mofile))
    67 $input = new CachedFileReader($mofile);
    68 else

  6. hbarquero
    Member
    Posted 18 years ago #

    Are you sure that you have made the correct change?

    I tested this change on other website that I use for tests and the change that I post upside is work fine?

    Since you speak portuguese, hehehe, tell me if you use MSN Messenger so I can give you my email so you can add to your list.

    if ( defined('WPLANG') && '' != constant('WPLANG') ) {
    include_once(ABSPATH . 'wp-includes/streams.php');
    include_once(ABSPATH . 'wp-includes/gettext.php');
    }

    Remove the 1st and 4th line:

    include_once(ABSPATH . 'wp-includes/streams.php');
    include_once(ABSPATH . 'wp-includes/gettext.php');

  7. Mariwal
    Member
    Posted 18 years ago #

    My e-mail is: iliodboili at gmail dot com :)

  8. mohamednazmi
    Member
    Posted 18 years ago #

    Just as a precautionary reminder, have you changed the values in wp-config.php?

    Line 17:
    define ('WPLANG', '<insert language code here>');

  9. hbarquero
    Member
    Posted 18 years ago #

    On tha Line I dont have any value:
    define ('WPLANG', '');

    And is working fine to me, any user can chancge his language.

About this Topic

  • Started 18 years ago by Mariwal
  • Latest reply from hbarquero