Results 1 to 9 of 9

Thread: PHP Translator Tool

  1. #1
    rbach is offline Project Contributor
    Join Date
    Dec 2006
    Location
    Copenhagen , Denmark
    Posts
    5
    Rep Power
    8

    Default PHP Translator Tool

    I have created a small PHP script to translate the language files

    Installation Instructions
    Copy the PHP script to the /opt/zimbra/httpd/htdocs directory

    If you donít have any old localized language files then you have to create some empty files in the
    /opt/zimbra/tomcat/webapps/zimbra/WEB-INF/classes/msgs/ directory

    Then point your webbrowser to http://SERVER:7780/translate.php

    The rest should be selfexplaining (i hope )


    Rico Bach
    Last edited by rbach; 03-22-2007 at 10:55 PM.

  2. #2
    Greg is offline Zimbra Employee
    Join Date
    Sep 2005
    Location
    Tucson - San Francisco - Moscow
    Posts
    127
    Rep Power
    9

    Default

    Quote Originally Posted by rbach View Post
    I have created a small PHP script to translate the language files

    Installation Instructions
    Copy the PHP script to the /opt/zimbra/httpd/htdocs directory

    If you donít have any old localized language files then you have to create some empty files in the
    /opt/zimbra/tomcat/webapps/zimbra/WEB-INF/classes/msgs/ directory

    Then point your webbrowser to http://SERVER:7780/translate.php

    The rest should be selfexplaining (i hope )


    Rico Bach
    Can you add it to the gallery (gallery.zimbra.com)?
    Bugzilla - Wiki - Downloads - Before posting... Search!
    P.S.: don't forget to vote on this bug
    add Samba LDAP entries to Exchange Migration Tool

  3. #3
    rbach is offline Project Contributor
    Join Date
    Dec 2006
    Location
    Copenhagen , Denmark
    Posts
    5
    Rep Power
    8

    Default

    Quote Originally Posted by Greg View Post
    Can you add it to the gallery (gallery.zimbra.com)?
    Thatís here by done

  4. #4
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    rbach,
    Thanks. We appreciate all of your work on this product!
    -john

  5. #5
    rbach is offline Project Contributor
    Join Date
    Dec 2006
    Location
    Copenhagen , Denmark
    Posts
    5
    Rep Power
    8

    Default Updated version of the PHP translator tool

    Hi I have updated the PHP translator tool and added translations status on the page

    you can download it from the zimbra gallery

    http://gallery.zimbra.com/gallery.ph...d&productId=47

  6. #6
    lindworm is offline Senior Member
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    74
    Rep Power
    8

    Default

    Hello,

    nice tool!

    I added the line
    PHP Code:
    $inputtext str_replace("\\\'""\'"$inputtext); 
    in the function cleanText


    Because there came many backslashes before the \'

  7. #7
    flums is offline Trained Alumni
    Join Date
    Mar 2007
    Location
    Oslo, Norway
    Posts
    123
    Rep Power
    8

    Default

    When i try to run this i get this error:
    Status Messages: Choose a file

    Warning: asort() expects parameter 1 to be array, null given in /opt/zimbra/httpd-2.0.54/htdocs/translate.php on line 269

    Warning: Invalid argument supplied for foreach() in /opt/zimbra/httpd-2.0.54/htdocs/translate.php on line 101



    Did not find any info on where old/new files should be.....
    Have the old files in msgs.backup folder....

  8. #8
    storole is offline Junior Member
    Join Date
    Nov 2008
    Posts
    6
    Rep Power
    6

    Default Changed it to work with 5.x

    Hello!

    Thanks for a great tool!

    I've done some minor adjustments so that it works on Zimbra 5.0.x
    Attached Files Attached Files

  9. #9
    xkeshav is offline Starter Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    3

    Default How make it works with simple php project in xampp

    Hi,
    I have downloaded translate.zip ad extract to D:/xampp/htdocs

    but when i run
    http://localhost/translate.php

    i got below errors


    Warning: opendir(/opt/zimbra/jetty/webapps/zimbra/WEB-INF/classes/messages/,/opt/zimbra/jetty/webapps/zimbra/WEB-INF/classes/messages/) [function.opendir]: The system cannot find the path specified. (code: 3) in D:\xampp\htdocs\translate.php on line 264
    Warning: opendir(/opt/zimbra/jetty/webapps/zimbra/WEB-INF/classes/messages/) [function.opendir]: failed to open dir: No such file or directory in D:\xampp\htdocs\translate.php on line 264
    Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\translate.php on line 103
    Please help me tell me the steps so that it can worked under

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 01:00 AM
  2. Tomcat personnal php webapp
    By dzed in forum Administrators
    Replies: 21
    Last Post: 12-21-2007, 03:25 PM
  3. install zimbra with PHP and Apache Mysql
    By mingswitch in forum Installation
    Replies: 4
    Last Post: 07-12-2007, 12:02 PM
  4. A little PHP help
    By RobertW in forum Users
    Replies: 1
    Last Post: 06-16-2006, 10:00 PM

Posting Permissions

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