Advertisement:

Author Topic: Problem installing new language  (Read 4653 times)

dimonash

  • Newbie
  • *
  • Posts: 7
Problem installing new language
« on: February 28, 2011, 01:48:00 pm »
Hello,

I'm trying to install a new language, but it don't appears in "Manage Language".
I'm using PHP  5.2.14 and OSClass RC3.

Any suggestions?

Thank you

dimonash

  • Newbie
  • *
  • Posts: 7
Re: Problem installing new language
« Reply #1 on: March 01, 2011, 02:32:48 am »
How i must install manualy a language on RC3? I doesn't work like in delta version
Regards

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: Problem installing new language
« Reply #2 on: March 01, 2011, 03:41:20 pm »
Hello,
For add a new language since version 2.0, the language zip must be also for version 2.0, we are now translating languages for new versions,
as soon as finish we upload the translations.
Currently you can not manually install a language because the format has changed,  in the stable revision you can do this.

dimonash

  • Newbie
  • *
  • Posts: 7
Re: Problem installing new language
« Reply #3 on: March 01, 2011, 05:36:18 pm »
I have translated the theme.po file in romanian. You say i can't install it now?

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: Problem installing new language
« Reply #4 on: March 01, 2011, 07:55:36 pm »
Hello,

You need to create a zip to upload at oc-admin with the following structure:

ro_RO.zip contains a folder with language code name and inside the .mo files and index.php which contains a language description. ie:

ro_RO/
   themes.mo
   core.mo
   messages.mo
   index.php

if you upload this zip into Languages -> Add a language should works fine.

I explain the structure of index.php:

Default language en_US

function locale_en_US_info() {
   return array(
      'name' => 'English (US)'
      ,'short_name' => 'English'
      ,'description' => 'American english translation'
      ,'version' => 1.0
      ,'author_name' => 'OSClass'
      ,'author_url' => 'http://osclass.org/'
      ,'currency_format' => 'USD %.02f'
                ,'date_format' => 'm/d/Y'
      ,'stop_words' => 'i,a,about,an,are,as,at,be,by,com,for,from,how,in,is,it,of,on,or,that,the,this,to,was,what,when,where,who,will,with,the'
   );
}

You need replace the en_US for your code language (ro_RO) and something more ( 'stop_words' remains empty for now ) and look's like this:

function locale_ro_RO_info() {
   return array(
      'name' => 'Romanian (RO)'
      ,'short_name' => 'Romanian'
      ,'description' => 'Romanian translation'
      ,'version' => 2.0
      ,'author_name' => 'author_name'
      ,'author_url' => 'http://author_url'
      ,'currency_format' => 'RON %.02f'
                ,'date_format' => 'm/d/Y'
      ,'stop_words' => ''
   );
}

Regards

dimonash

  • Newbie
  • *
  • Posts: 7
Re: Problem installing new language
« Reply #5 on: March 01, 2011, 10:26:44 pm »
Thank you, i installed the language (i translated only the theme.po file), but i don't make the translation.
« Last Edit: March 01, 2011, 10:29:43 pm by dimonash »

AndrewStarlike

  • Newbie
  • *
  • Posts: 2
Re: Problem installing new language
« Reply #6 on: March 09, 2011, 12:44:01 pm »
Hello guys, i really appreciate what you are doing here.

I also have a language installation problem:

Just installed Osclass.2.0.rc4 and tried to install spanish language ( the fresh uploaded version from: http://osclass.org/2011/03/09/quick-update-osclass-2-0-rc4/ ) just to check things out. It doesen't working. I can't find the language at "» Manage languages". I allready translated messages.po into romanian and i just can't make things work. That "» Manage languages" is "stuck".