Change the defuilt language.

edited May 2010 in Installation
I need to make the default language "Arabic language", what ever was the browser default language.
can I do that?

Comments

  • yes. look at the README in the locales folder. (0.9.2 and above) if you have any questions after reading it, please ask them here.
  • I add the following sentence to config.php in order to disable all non-English languages, but it does not work.
    $config['site']['languages'] = array(
    'en-us' => array('q' => 1, 'lang' => 'en', 'name' => 'English (US)', 'direction' => 'ltr'),
    'en-gb' => array('q' => 1, 'lang' => 'en_GB', 'name' => 'English (British)', 'direction' => 'ltr'),
    'en' => array('q' => 1, 'lang' => 'en', 'name' => 'English (US)', 'direction' => 'ltr'),
    );

    My StatusNet is 0.9.6. The web server is XAMPP 1.7.3. The borwser is Firefox 3.6.2.
  • @OnlyBlue you might need to compile the language files by running "make" in the locale folder. I'm not sure how supported it is in Windows, but I found this version of GCC make for Windows http://gnuwin32.sourceforge.net/packages/make.htm

    You should try to find a Linux box to host on, it will be much easier ;-)
  • edited November 2010
    @jordanc
    I install the GnuWin32 and run "make" in locale folder. The result is:


    D:\xampp\htdocs\statusnet\locale>make
    msgfmt -o en/LC_MESSAGES/statusnet.mo en/LC_MESSAGES/statusnet.po
    process_begin: CreateProcess(NULL, msgfmt -o en/LC_MESSAGES/statusnet.mo en/LC_M
    ESSAGES/statusnet.po, ...) failed.
    make (e=2): The system cannot find the file specified.
    make: *** [en/LC_MESSAGES/statusnet.mo] Error 2


    I install the MinGW and run "mingw32-make" in locale folder. The result is:

    D:\xampp\htdocs\statusnet\locale>mingw32-make
    msgfmt -o en/LC_MESSAGES/statusnet.mo en/LC_MESSAGES/statusnet.po
    process_begin: CreateProcess(NULL, msgfmt -o en/LC_MESSAGES/statusnet.mo en/LC_M
    ESSAGES/statusnet.po, ...) failed.
    make (e=2):
    mingw32-make: *** [en/LC_MESSAGES/statusnet.mo] Error 2


    Yes, Windows make me work so hard.
  • @OnlyBlue It looks like the Windows version of make is not supported then.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID