Is there an auto translate tool, per word/div?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Is there an auto translate tool, per word/div?

Post by simonmlewis »

I need to add some sort of tool that I can wrap around certain DIVs that will translate them to a preset language.
TAMAÑO:
SORRY NO INFO
This needs to have TAMAÑO done correct (static i the code) but convert "SORRY NO INFO".

I know there are tools to convert entire pages, but they are not too reliable.
I can set the code to query if that word is used, then to use something else - but be cool if there was a DIV level code?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Is there an auto translate tool, per word/div?

Post by Celauran »

What platform is behind this site? Why are there multiple languages being displayed on the same page at the same time?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Is there an auto translate tool, per word/div?

Post by simonmlewis »

It's my platform - I built the lot, apart from certain JS queries and things.
There are not multiple languages. We copy data from a UK site to a foreign site, which of course means that English content is copied over. The guys then have the task of going thru what is copied over and translatig it by hand.

The titles and headings are all done by hand, because it's just a one off job. But it would be really useful if I could use an external tool that I query, which does the dynamic stuff on the fly. A bit like Word PRess can do it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Is there an auto translate tool, per word/div?

Post by Celauran »

WordPress doesn't do anything of the sort. Machine translation is going to give you mediocre results at best. I thought maybe you were looking for translation management tools, but what you want is a whole other can of worms. That said, have you looked into Google's Translate API?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Is there an auto translate tool, per word/div?

Post by simonmlewis »

I haven't - and yes I know it's a whole different issue.
Can you give me a link to what you are referring to, as I have searched and found very little.
ISsue here is - I don't want the whole page done - just to be able for ME to select which area are translated.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Is there an auto translate tool, per word/div?

Post by simonmlewis »

Thanks.
If I have the term "SORRY NO INFO" in various fields in my database, and I need to translate them all in one go - is there a way to search the whole database for that term, and convert it? No if it is part of a field, but all of the field.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Is there an auto translate tool, per word/div?

Post by Celauran »

If it's the whole field you're translating, yes, it can be done, but it won't necessarily be clean. How many different tables could that string be in? How many columns? Could take a lot of queries. Have you worked out how you're going to handle the translations?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Is there an auto translate tool, per word/div?

Post by simonmlewis »

Translations yes - I have a Spanish teacher who can go thru the site for me, and feed it all back. so it won't be "dynamic".
But there are a good 10-15 fields that have this particular term, but rather than missing them, I wanted something like:
UPDATE products SET * = '{spanishterm}' WHERE * = 'SORRY NO INFO'

Something generic like that which looks at all fields.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply