Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Auto Translation php static archive (between two strings)
Old 03-28-2010, 01:47 PM Auto Translation php static archive (between two strings)
Skilled Talker

Posts: 54
Trades: 0
Well... I have one archive.php with english content.
I want a way to auto tranlate (one time, via cron job) all the text between "[description] and [instruction] (All description, indeed).
English>Portuguese

Example:
PHP Code:
<HEAD>
</
HEAD/
Hello World example.
Hello!
[
descriptionIt will be translated [/description] [InstructionsNo! [/instructions
Will be:
PHP Code:
<HEAD>
</
HEAD/
Hello World example.
Hello!
[
descriptionIsto foi traduzido [/description] [InstructionsNo! [/instructions

Basically, get an PHP file> translate> save this file overwriting the old one.

How can I do it, any idea?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
.Fernando is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-28-2010, 02:03 PM Re: Auto Translation php static archive (between two strings)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Mechanical translation is the surest way to turn it into complete gibberish.

the words may be translated, but the meaning will probably be lost

http://translate.google.com/?hl=en&t...e%20translated

Apart from that your example has a context switch between the English version and the Portuguese. No mechanical "translator" could do that.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-29-2010, 04:51 PM Re: Auto Translation php static archive (between two strings)
Skilled Talker

Posts: 54
Trades: 0
hahahaha!
I wrote incorrectly, the correct is "Isto será traduzido".

Anyway, If I try google translator it will translate all words and I just want translate any word between "[description]" and "[/description] not the full page.

Anyone have another idea?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
.Fernando is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Auto Translation php static archive (between two strings)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48192 seconds with 12 queries