Page 1 of 1

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

Posted: Wed Nov 05, 2014 9:25 am
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?

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

Posted: Wed Nov 05, 2014 9:39 am
by Celauran
What platform is behind this site? Why are there multiple languages being displayed on the same page at the same time?

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

Posted: Wed Nov 05, 2014 9:46 am
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.

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

Posted: Wed Nov 05, 2014 9:49 am
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?

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

Posted: Wed Nov 05, 2014 11:03 am
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.

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

Posted: Wed Nov 05, 2014 11:26 am
by Celauran

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

Posted: Fri Nov 07, 2014 3:46 am
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.

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

Posted: Fri Nov 07, 2014 6:18 am
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?

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

Posted: Fri Nov 07, 2014 6:58 am
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.