google-code-export / multi-language-translation

Automatically exported from code.google.com/p/multi-language-translation
1 stars 0 forks source link

Auto-detect current language #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide details of your request for new functionality, or any other
suggestions for improvement:

The script could automatically detect a new user's language based on their
browser / system settings. It could then translate the site into that
language when they first visit, so that they do not have to manually select
it from a list. The user would then see a message on screen alerting them
to what has happened, and giving the option to accept or reject the
translation.

If they Accept it, all pages on the site would continue to be translated
into that language, and they would no longer see the message after a
translation has completed.

If they Reject it, the site would be returned to its original language(s),
and no more automated translation would take place until they manually
select a language.

This functionality would replace the current default for new users, which
is simply to display the original untranslated site. However, to provide
flexibility, an option could be supplied to webmasters to either take
advantage of the functionality described above, retain the traditional
default of not translating the site, or to specify a new default language
for the site to be automatically translated into.

Original issue reported on code.google.com by phathway@gmail.com on 1 Dec 2009 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by phathway@gmail.com on 1 Dec 2009 at 9:17

GoogleCodeExporter commented 9 years ago
This functionality has now been implemented in script version 0.2.4. Instead of
automatically performing a translation and THEN asking the user to confirm this 
(as
suggested above), the script instead first suggests the language based on their
browser / system settings, and then offers to translate into that language 
afterwards.

This approach:

 * Is more polite and less intrusive for users
 * Was easier to implement

Otherwise, the functionality works exactly the same as described above, with the
message being displayed on the top of the screen every time they visit a page 
until
they choose 'Yes' or 'No'. After they do this, the user will no longer be 
prompted;
and the translation will either be performed automatically from then on, or no
translations will occur (unless the language is manually changed), as 
appropriate.

It is also possible for webmasters to specify that a site should always be 
translated
into a particular language when new users visit; or to use the previous default
(whereby pages are not translated and the user is not prompted to change 
language)...

Original comment by phathway@gmail.com on 18 Jan 2010 at 4:34