Mobile menu

Pages in topic:   [1 2] >
.PHP file translation: which CAT to use?
Thread poster: Comms

Comms  Identity Verified
United Kingdom
Local time: 10:26
English
+ ...
Jun 11, 2008

Hi there, I have to translate a website and the web pages are all in PHP format, which can be embedded in HTML.

Can anyone tell me which CAT tool or special tool I can use to translate PHP files?

I tried:

SDLX (2007, SP2): doesn't recognize this format;
TagEditor(2007): can't open PHP file, but if I changed the extension from .php to .html, it can open the page, but it seems sth is missing.

It's the first time ever for me to work with .php, look forward to receiving some professional advice from you guys!

Thanks a lot!


Direct link Reply with quote
 

Vito Smolej
Germany
Local time: 11:26
Member (2004)
English to Slovenian
+ ...
My hack Jun 11, 2008

This is probably far from correct, but a good first approximation: making everything external/Non-translatable except literals i.e. text to be localized.

I got by this way several times but I cant guarantee some complex code will not break this rule of thumb.

A good bet would be OmegaT ... Marc, what would you say?


[Edited at 2008-06-11 14:50]


Direct link Reply with quote
 

Philippe Etienne  Identity Verified
Spain
Local time: 11:26
Member
English to French
TagEditor 2006 could open a php file Jun 11, 2008

I dragged a .php file from my website and dropped it on the open window of TagEditor and I seem to have a properly tagged file.
But it's an extremely simple file made with the Proz.com wizard.

Philippe

[Edited at 2008-06-11 18:07]


Direct link Reply with quote
 
xxxMarc P  Identity Verified
Local time: 11:26
German to English
+ ...
".PHP file translation: which CAT to use? " Jun 11, 2008

Vito Smolej wrote:

A good bet would be OmegaT ... Marc, what would you say?


[Edited at 2008-06-11 14:50]


It can't hurt to try.

Marc


Direct link Reply with quote
 

Angelica Perrini  Identity Verified
Local time: 11:26
Member (2005)
English to Italian
+ ...
It seems that Deja Vu X can solve the problem Jun 11, 2008

Hi,

as far as I know, Deja Vu X has a special filter (also applicable for javascript, .asp and a few other formats) enabling you to import .php files and export them back in .php format.

Have you tried this way already?


Angelica


Direct link Reply with quote
 

LinguaLab.net
United Kingdom
Local time: 10:26
English to Norwegian
+ ...
Has anyone found a solution to this problem? Jun 30, 2009

We got an enquiry about translating PHP files the other day, and although we are not proceeding with the job it would be interesting to know for future reference which CAT tool we can use for this type of translations.

Thanks in advance,

Nina Brevik
LinguaLab.net


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 11:26
Member (2006)
English to Afrikaans
+ ...
Simple answer: you can't Jun 30, 2009

Sue Orchard wrote:
Hi there, I have to translate a website and the web pages are all in PHP format, which can be embedded in HTML. ... Can anyone tell me which CAT tool or special tool I can use to translate PHP files?


I'm not aware of any CAT tool that can do it. The problem with PHP is that there is no single way to mark up the translatable content, so you always need to know a bit of PHP yourself and work on the source code yourself during translation.

If it is a big web site (with a "budget") you should ask the web designer to extract the translatable text for you to translate, so that he can import it back into his PHP code again. If it is a mom-and-pop web design firm, try to impress upon them the importance of writing easily extractable PHP, or of using language PHP files that contain basically only the translatable content.


Direct link Reply with quote
 

Quyet Ngo
Vietnam
Local time: 17:26
English to Vietnamese
Can do with any CATs if you extract the translatable text out. Jul 13, 2009

There are variety of .php language files. Just let me know some content in your php. I think I could help.

[Edited at 2009-07-13 06:31 GMT]


Direct link Reply with quote
 

Daniel Grau  Identity Verified
Argentina
English to Spanish
PrepTags, sold for € 39 Jul 13, 2009

Quoting from the PrepTags site ( http://www.your-translations.com/preptags.php ):

How do you translate HTML, PHP, XML, ASP, Javascript, SQL, PO,... and many other formats? This is a regular headache for translators and agencies alike. Ideally, a translator simply translates the text to be translated, without touching the code, using his favorite CAT software, like Wordfast, Trados, Deja Vu, MemoQ and others.

This is done through file preparation. The file is converted to RTF and the code is protected, so that CAT will recognize that it should not be translated. But how do you prepare files? This is where PrepTags comes in.


Regards,

Daniel


Direct link Reply with quote
 
István Lengyel
Hungary
Local time: 11:26
English to Hungarian
+ ...
Preptags does the job Jul 13, 2009

I kept in touch with Sylvain and his beta tester Denis Hay throughout the development process of Preptags and I must say that it is really a handy tool - to my taste it is much better than the Word-embedded taggers like TortoiseTagger or Plustoyz. But coming from the MemoQ side of life, I think it's no wonder that I prefer standalone applications. Anyway, it's worth giving a try to Preptags - a good tool with an even better help.

Direct link Reply with quote
 

sylver  Identity Verified
Local time: 18:26
English to French
Thanks Istvan! Jul 20, 2009

István Lengyel wrote:

I kept in touch with Sylvain and his beta tester Denis Hay throughout the development process of Preptags and I must say that it is really a handy tool - to my taste it is much better than the Word-embedded taggers like TortoiseTagger or Plustoyz. But coming from the MemoQ side of life, I think it's no wonder that I prefer standalone applications. Anyway, it's worth giving a try to Preptags - a good tool with an even better help.


Glad you like it. Your encouragements mean a lot.


Direct link Reply with quote
 

sylver  Identity Verified
Local time: 18:26
English to French
PrepTags... Jul 20, 2009

Daniel Grau wrote:

Quoting from the PrepTags site ( http://www.your-translations.com/preptags.php ):

How do you translate HTML, PHP, XML, ASP, Javascript, SQL, PO,... and many other formats? This is a regular headache for translators and agencies alike. Ideally, a translator simply translates the text to be translated, without touching the code, using his favorite CAT software, like Wordfast, Trados, Deja Vu, MemoQ and others.

This is done through file preparation. The file is converted to RTF and the code is protected, so that CAT will recognize that it should not be translated. But how do you prepare files? This is where PrepTags comes in.


Regards,

Daniel


Thanks for the introduction, Daniel.

I just would like to add that there is a free "Lite" version. Works one file at a time and without advanced features, so of course I recommend the pro version, but if you are just scratching an itch on a small project, PrepTags Lite will do.

Feel free to contact me if you need help with PrepTags.


[Edited at 2009-07-21 02:23 GMT]


Direct link Reply with quote
 
Laurent KRAULAND  Identity Verified
France
Local time: 11:26
French to German
+ ...
CatsCradle Jul 21, 2009

CatsCradle by Stormdance (http://www.stormdance.net) was specially conceived to handle HTML, PHP, ASP and XML files. It generates a TM in CSV format and costs about 45 €.

HTH

Laurent K.

[Edited at 2009-07-21 05:17 GMT]


Direct link Reply with quote
 

Damian Harrison
Germany
Local time: 11:26
German to English
Php in MemoQ Jul 29, 2009

I have just done a test run by importing a php file to MemoQ, changing a few things and then exporting the altered document back to its folder within the website directory (it's a Joomla site). The page displayed fine, including all images. Php is not included on the list of compatible MemoQ source files - so was this just a lucky break?

With regard to CatsCradle - while it's easy to use, it does find seem to lack some useful functions such project folders for storing multiple files. Or am I missing something Laurent?


Direct link Reply with quote
 

Arben Seva  Identity Verified
United Kingdom
Local time: 10:26
Member (2003)
English to Albanian
+ ...
Deja Vu Sep 17, 2009

Deja Vu did the trick just fine with a PHP language file.

Direct link Reply with quote
 
Pages in topic:   [1 2] >


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

.PHP file translation: which CAT to use?

Advanced search


Translation news related to CAT tools





Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



All of ProZ.com
  • All of ProZ.com
  • Term search
  • Jobs