Page 1 of 5 12345 LastLast
Results 1 to 10 of 48

Thread: Sugar Translation Suite

  1. #1
    romaing is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Warsaw
    Posts
    12

    Lightbulb Sugar Translation Suite

    Hello all,

    we wish to announce the release of this suite of tools that we believe could bring benefits to the sugarcrm translation community.

    This tool has been developped to help and organize the translation work for SugarCRM. It includes features such as :

    - Utilization and administration of a dictionary (stored in database) to reduce the amount of work needed for the translation.
    - Automatic generation of language packs.
    - Management of language pack versions, in order to support different translation versions (3.5/4.0 OS/EE ...).
    - Reports to display and compare two language pack version or to view the current translation status.

    You will find this tool at the following location : Sugar Translation Suite

    We have been using this tool for our own translation and it has demonstrated to be very useful. We have not noticed any problems yet. However feel free to send us your inputs and comments, they will be appreciated.

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Sugar Translation Suite

    romaing

    I look like a great tool!
    Does this work with PHP5 only? I have a problem in running this tool with PHP4.

    Great thanks to your contribution!
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    romaing is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Warsaw
    Posts
    12

    Default Re: Sugar Translation Suite

    Quote Originally Posted by ruchida
    romaing

    I look like a great tool!
    Does this work with PHP5 only? I have a problem in running this tool with PHP4.

    Great thanks to your contribution!
    Hi,

    Yes, for now, it's only working with php5 as it uses some php5 only functions and features.
    It "should" be possible to make it php4 compatible. We'll try to have a look at it when we'll have time.

    regards.
    Last edited by romaing; 2006-01-31 at 08:49 AM.

  4. #4
    romaing is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Warsaw
    Posts
    12

    Default Re: Sugar Translation Suite

    Hello all,

    we've just released on SugarForge a new version of the Sugar Translation Suite that is fully working with PHP4.
    We've also corrected a minor (but annoying) bug (thanks a lot to Wojtek Kaluzinski for his bug report).
    The new archive can be downloaded here.

    If you got any questions about this tool and how it works don't hesitate, we'll try to give you an answer as fast as possible.

    best regards
    The Grupa-Atlantis team.

  5. #5
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Sugar Translation Suite

    romaing,

    Thank you so much for the PHP4 compatibility!
    This is really a great tool. Very neat user interface.

    One problem with the Japanese language pack. It has a suffix ja(.lang.php) which is not like the "en_us" style, so I encounter the error below and can not go forward.

    PHP Code:
    The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2ex : ('en_us'
    Your help would be greatly appreciated.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  6. #6
    romaing is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Warsaw
    Posts
    12

    Default Re: Sugar Translation Suite

    Quote Originally Posted by ruchida
    Thank you so much for the PHP4 compatibility!
    This is really a great tool. Very neat user interface.
    Thanks a lot!
    One problem with the Japanese language pack. It has a suffix ja(.lang.php) which is not like the "en_us" style, so I encounter the error below and can not go forward.

    PHP Code:
    The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2ex : ('en_us'
    Your help would be greatly appreciated.
    Here is how you can correct this problem:

    Edit the manifest.class.inc file which is located in the /inc directory and find line 72:

    PHP Code:
    else if (!strlen$this->get("lang_file_suffix")) == || ! eregi("[a-z][a-z]_[a-z][a-z]"$this->get("lang_file_suffix"))) return "The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2} ex : ('en_us')"
    replace it with this one:

    PHP Code:
    else if (! eregi('^[a-zA-Z]{2}(_[a-zA-Z]{2})?$'$this->get("lang_file_suffix"))) return "The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2} or [:alpha:]{2}  ex : ('en_us', 'ja')"
    This new line will allow your 'ja' file tag.
    It will also allow upper-case characters for people who need them.

    best regards

  7. #7
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Sugar Translation Suite

    romaing

    Thanks for the help!
    I have successfully generated a language pack with this great tool in a couple of minutes, which I spent hours before!

    A few problems I had are;
    * "UTF-8" for LBL_CHARSET becomes "UTF8".
    * Most of default key values are translated, which should not be. Is there any way to prevent this from happening?

    If a multiple headers can be managed to create Ent/Pro/Os language packs, it would be great.

    I really appreciate your decision to contribute this tool to the forum.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  8. #8
    swider is offline Sugar Community Member
    Join Date
    Aug 2005
    Location
    Lodz, Poland
    Posts
    48

    Default Re: Sugar Translation Suite

    Hello,

    Sugar Translation Suite looks really nice, however I've got some problems with installation. When I run install.php and click "Process" button after setting all up i get something like this:

    ---
    Connexion to DB: OK
    DB creation: OK
    User creation: OK

    Error: 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB' at li
    Error: can't create database
    ---

    and after that when i run Sugar Translation Suite i get:

    ---
    SQL ERROR : Table 'sugar_lang.sugar_versions' doesn't exist
    ---

    in "Edit Manifest" and "Translation Management".

    Any ideas what is wrong?

    Thanks
    Łukasz

  9. #9
    romaing is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Warsaw
    Posts
    12

    Default Re: Sugar Translation Suite

    Hi,

    Quote Originally Posted by ruchida
    A few problems I had are;
    * "UTF-8" for LBL_CHARSET becomes "UTF8".
    * Most of default key values are translated, which should not be. Is there any way to prevent this from happening?
    We have now corrected the problems and released a new version. We have also included the fix related to the lang_file_suffix property in the manifest page.
    The new version can be found at the usual download page
    If a multiple headers can be managed to create Ent/Pro/Os language packs, it would be great.
    If I understand well those are the commented headers in each of the lang file. We shall include such functionality in a new release once we gather other requests.

    Concerning swider SQL problem, i'm investigating to find out what is going wrong. But I believe that this could be a MySQL version problem due to the CURRENT_TIMESTAMP property.
    The SQL script used during installation is "sugar_lang.sql" (or "sugar_lang_replace.sql" if you specifie a custom charset) and is located in the /inc directory.
    I would propose you to :
    - Drop the partially created sugar_lang database
    - Edit the sql file and remove this property in the create statement for the table sugar_version (line 82).
    - Run the Installation again.

    Let me know if you have any problem.

    Best regards,

  10. #10
    swider is offline Sugar Community Member
    Join Date
    Aug 2005
    Location
    Lodz, Poland
    Posts
    48

    Default Re: Sugar Translation Suite

    Hi,

    After removing default value from the line:

    ---
    `added` timestamp NULL default CURRENT_TIMESTAMP,
    ---

    the rest of installation went smoothly without any errors, and everything seems to be working OK.

    Thanks a lot,
    i pozdrawiam!
    Łukasz

Page 1 of 5 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •