Language Translation
  • Hi,

    I would like to translate the admin interface to my country language (Greeks).

    I found out, that I have to tranlate the folder \admin-files\lang\en by creating a new folder ie \admin-files\lang\el and changing the corresponding string inside the php files.

    Now, how can I force in the admin login page admin/login.php to include the Greek language inside the language drop down menu ?

    Regards,
  • 12 Comments sorted by
  • Vote Up0Vote Down Sava TatićSava Tatić
    Posts: 113Member, Administrator, Sourcefabric Team
    You can either do that, but why don't you just use our Localizer feature?
    Read more about it here: http://en.flossmanuals.net/Campsite/TheLocalizer

    All the best,

    Sava


    On Wed, Sep 22, 2010 at 4:06 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > I would like to translate the admin interface to my country language
    > (Greeks).
    >
    > I found out, that I have to tranlate the folder \admin-files\lang\en by
    > creating a new folder ie \admin-files\lang\el and changing the corresponding
    > string inside the php files.
    >
    > Now, how can I force in the admin login page admin/login.php to include the
    > Greek language inside the language drop down menu ?
    >
    > Regards,
    >
    >



    --
    Sava Tatić
    Managing Director, Sourcefabric o.p.s.
    sava.tatic@sourcefabric.org

    Salvátorská 10
    110 00 Praha 1, Czech Republic
    +420 2 22 36 25 40
    Skype: tictactatic

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric

  • Yes you have right. I tested and it worked. It also created automatically the appropriate folder.

    But I think, there is one little problem with that solution. Do I have to do this everytime in a new installation ?

    Ok I can copy/paste the appropriate folder after the whole translation, but what do I have to change in the database or in the working files to take account the extra country ?

    Regards,
  • sdancer75 wrote on Wed, 22 September 2010 16:24
    Yes you have right. I tested and it worked. It also created automatically the appropriate folder.

    But I think, there is one little problem with that solution. Do I have to do this everytime in a new installation ?

    Ok I can copy/paste the appropriate folder after the whole translation, but what do I have to change in the database or in the working files to take account the extra country ?

    Regards,


    Ok I found it. I have to add a new record in the language table.

    Thank you !
  • Vote Up0Vote Down Sava TatićSava Tatić
    Posts: 113Member, Administrator, Sourcefabric Team
    Please send us the localization files as described here:
    http://wiki.sourcefabric.org/display/CS/Localize+Campsite so we can include
    them in the next official release (please send us your details so we can
    credit you for the localization).

    All the best,

    Sava

    On Wed, Sep 22, 2010 at 4:27 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > sdancer75 wrote on Wed, 22 September 2010 16:24
    >
    > Yes you have right. I tested and it worked. It also created automatically
    > the appropriate folder.
    >
    > But I think, there is one little problem with that solution. Do I have to
    > do this everytime in a new installation ?
    >
    > Ok I can copy/paste the appropriate folder after the whole translation, but
    > what do I have to change in the database or in the working files to take
    > account the extra country ?
    >
    > Regards,
    >
    >
    >
    > Ok I found it. I have to add a new record in the language table.
    >
    > Thank you !
    >
    >



    --
    Sava Tatić
    Managing Director, Sourcefabric o.p.s.
    sava.tatic@sourcefabric.org

    Salvátorská 10
    110 00 Praha 1, Czech Republic
    +420 2 22 36 25 40
    Skype: tictactatic

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric

  • Yes Sava,

    I will do this as soon as I finish the translation (about the end of this month).

    Note: After about 25mins of translating the globals, I tried to save the whole file and the admin kicked me out to the login screen. So, I lost anything. I updated my system with the last liveuser_configuration.php & mysql_cs.php I read in this forum, but it seems that the problem exists.

    Anyway, I will try to use the file directly next time to be sure.
  • Sava,

    What about the TinyMCE Editor localizing ?

    Manual reports the http://trac.campware.org/campsite/wiki/LocalizingTinyMCE for instructions but it now redirects to
    http://dev.sourcefabric.org/browse/CS

    Where to find instruction about that ?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    sdancer75 wrote on Wed, 22 September 2010 19:27

    Note: After about 25mins of translating the globals, I tried to save the whole file and the admin kicked me out to the login screen. So, I lost anything. I updated my system with the last liveuser_configuration.php & mysql_cs.php I read in this forum, but it seems that the problem exists.

    You need simply increase the session timeout which by default 1400 sec (25 min). Go to Configure/Settings.
  • Yes I found it.

    What about the TinyMCE translation ? Do I have to ding inside the source code ?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Sorry for legacy links. The right link is http://wiki.sourcefabric.org/display/CS/Localize+TinyMCE
  • When I try to change value 1400 for the 'Session Lifetime' always get
    error message:

    'Invalid Max Upload File Size value submitted'

    Any idea?

    On Sep 22, 2010, at 7:42 PM, Andrey Podshivalov wrote:

    >
    > sdancer75 wrote on Wed, 22 September 2010 19:27
    >
    > Note: After about 25mins of translating the globals, I tried to save
    > the whole file and the admin kicked me out to the login screen. So,
    > I lost anything. I updated my system with the last
    > liveuser_configuration.php & mysql_cs.php I read in this forum, but
    > it seems that the problem exists.
    >
    > You need simply increase the session timeout which by default 1400
    > sec (25 min). Go to Configure/Settings.
    >


  • Hi,

    try to edit the "Maximum upload file size" field in the preferences, try to
    input value between 0 and 2M and see if it works.

    Best Regards,

    Pavol Husár

    On Thu, Oct 14, 2010 at 12:08 PM, zoran.zivkovic <
    campsite-support@lists.sourcefabric.org> wrote:

    > When I try to change value 1400 for the 'Session Lifetime' always get
    > error message:
    >
    > 'Invalid Max Upload File Size value submitted'
    >
    > Any idea?
    >
    > On Sep 22, 2010, at 7:42 PM, Andrey Podshivalov wrote:
    >
    > >
    > > sdancer75 wrote on Wed, 22 September 2010 19:27
    > >
    > > Note: After about 25mins of translating the globals, I tried to save
    > > the whole file and the admin kicked me out to the login screen. So,
    > > I lost anything. I updated my system with the last
    > > liveuser_configuration.php & mysql_cs.php I read in this forum, but
    > > it seems that the problem exists.
    > >
    > > You need simply increase the session timeout which by default 1400
    > > sec (25 min). Go to Configure/Settings.
    > >
    >
    >
    >
    >

  • Thanx Pavol,
    I just did not check php.ini file. I was sure that guy who was paid to
    take care about it did it earlier.

    Have added 'upload_max_filesize = 16M' to php.ini and now everything
    works fine.

    Thanks a lot again



    On Oct 14, 2010, at 12:20 PM, Pavol Husár wrote:

    >
    > Hi,
    >
    > try to edit the "Maximum upload file size" field in the preferences,
    > try to
    > input value between 0 and 2M and see if it works.
    >
    > Best Regards,
    >
    > Pavol Husár
    >
    > On Thu, Oct 14, 2010 at 12:08 PM, zoran.zivkovic <
    > campsite-support@lists.sourcefabric.org> wrote:
    >
    > > When I try to change value 1400 for the 'Session Lifetime' always
    > get
    > > error message:
    > >
    > > 'Invalid Max Upload File Size value submitted'
    > >
    > > Any idea?
    > >
    > > On Sep 22, 2010, at 7:42 PM, Andrey Podshivalov wrote:
    > >
    > > >
    > > > sdancer75 wrote on Wed, 22 September 2010 19:27
    > > >
    > > > Note: After about 25mins of translating the globals, I tried to
    > save
    > > > the whole file and the admin kicked me out to the login screen.
    > So,
    > > > I lost anything. I updated my system with the last
    > > > liveuser_configuration.php & mysql_cs.php I read in this forum,
    > but
    > > > it seems that the problem exists.
    > > >
    > > > You need simply increase the session timeout which by default 1400
    > > > sec (25 min). Go to Configure/Settings.
    > > >
    > >
    > >
    > >
    > >
    >
    >