Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-19, 07:09:56

Author Topic: Italian translation  (Read 34081 times)

0 Members and 1 Guest are viewing this topic.

Offline ynuyasha

  • Junior Member
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Italian translation
« on: 2013-06-21, 21:37:58 »
There is an italian translation for the panel or anyone starting to translate it?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Italian translation
« Reply #1 on: 2013-06-21, 22:50:32 »
You can translate for Italian and then share here.

Steps:

1. Copy /usr/local/lxlabs/kloxo/httpdocs/lang/en-us to /usr/local/lxlabs/kloxo/httpdocs/lang/it-it
2. Translate files inside /usr/local/lxlabs/kloxo/httpdocs/lang/it-it
3. Change 'Language' inside 'Appearance' on panel.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ynuyasha

  • Junior Member
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Italian translation
« Reply #2 on: 2013-06-24, 22:27:16 »
I have made a first version of Italian Translation but i have same problems with plurals.
I take a screenshot and signed with red circles same words that have an "s" appended.
I thik the problem is the function in langfunctionlib.php.
Any suggests to fix him


Regards

Antonio
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Italian translation
« Reply #3 on: 2013-06-24, 23:05:00 »
This is the code of /usr/local/lxlabs/kloxo/httpdocs/lang/en-us/langfunctionlib.php:
Code: [Select]
<?php 
function get_plural($word)
{
if ($word[strlen($word) - 1] === 's') {
$ret "{$word}es";
} else if ($word[strlen($word) - 1] === 'y') {
if ($word[strlen($word) - 2] === 'e') {
$ret "{$word}s";
} else {
$ret substr($word0strlen($word) - 1) . "ies";
}
} else if ($word[strlen($word) - 1] === 'x') {
$ret substr($word0strlen($word) - 1) . "xes";
} else {
$ret "{$word}s";
}
return ucfirst($ret);
}

// This is an alternate get_plural, which has the all the plurals are defined in a file.
function get_plural_alternate($word)
{
include_once "lang/en-us/lang_plural.inc";

if (isset($__plural_desc[$word])) {
return $__plural_desc[$word];
}

return "{$word}s";
}

So, please explain Italian rule for plural word.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ynuyasha

  • Junior Member
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Italian translation
« Reply #4 on: 2013-06-25, 15:21:41 »
Italian rules are more complicated then English with many exceptions.
I made a function for this that include more cases (not all  :D )

Before to give you the translation i have another question.
Some words seems doesn't appair in the lang files to translate:
I made a screenshot for this words:
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Italian translation
« Reply #5 on: 2013-06-26, 16:32:28 »
Yes, certain word not write directly to code like 'unlimited'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ynuyasha

  • Junior Member
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Italian translation
« Reply #6 on: 2013-06-26, 19:31:56 »
Ok thanks.
I finished first version of translation.
Where can i put the translation pack to share to all?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Italian translation
« Reply #7 on: 2013-06-26, 21:13:38 »
I will compile to rpm and add to kloxo-mr.repo server.

You can add as attachment in your post.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ynuyasha

  • Junior Member
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Italian translation
« Reply #8 on: 2013-06-26, 21:40:26 »
Here tar file of translation
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Italian translation
« Reply #9 on: 2013-06-27, 15:31:40 »
Already added in latest upload (6.5.0.f-2013031825). After update, run 'yum install kloxomr-lang*'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.087 seconds with 23 queries.

web stats analysis