I put this is a bug, but it is partially a feature request.
I have created test site which has two languages enabled.
When I create content both languages (translate from language one to language two) and promote that content to the front page, user who has enabled both languages can see the same content in two different languages (original and translation).
Is it possible for user to have primary language to display content in that language and if content is not translated to users primary language then to display it in other language(s).
Or to create list of languages to use like in Firefox (Languages in order of preference).
I would like that multilingual user see content without its translations.
Best regards
Comments
Comment #1
Roberto Gerola commentedHi.
I've changed the type to feature request.
The idea of multilingual content is "I understand more than one language. Show me all the the contents in the languages that I understand".
Instead, what you would like to have is : a list of preferred languages in which the content can be displayed, in the specified order, without showing the same node in different languages.
It could be a good idea.
I have to figure out how this can be implemented and in which manner it can work, if it can, with the current approach.
I am thinking to a possible solution :
- first : add the choice to specify the order of the languages in the multilingual options
- second : add an option of the kind : "don't show me the same node in multiple languages"
Roberto
Comment #2
sun+1
The biggest problem I can see here is to design a user interface that allows also noobs to choose their language preferences.
AJAX drag-n-drop would certainly be the best way (see Playlist module for an example). Without nifty javascripts we need a weight field in front of each language that allows a user to make her preferred selection.
Comment #3
Justmade commentedI implemented a 3 language site using English as the default. I think it is more logical to show the user
1. Only the version at their language choice if exist.
2. If there is no version at their language choice, if English (default) version exist and he is either not logged in or accept English, it show the English version.
Of cause, if there is a rank of preference, it would be even better but the above is already much better than showing all version up.
Comment #4
sun@Justmade: The proposed behaviour you're describing is already available in Localizer.
Comment #5
Justmade commented@Sun
Is it? I setup a test site which had 6 nodes
1 : TestA in English (lang1)
2 : TestA in lang2 (translate 1)
3 : TestA in lang3 (translate 1)
4 : TestB in English
5 : TestC in lang2
6 : TestD in lang3
The current situation I get is :
A.
If I select English (actually whatever) as interface language and tick none in the content language, I got only current language nodes. That is
If current interface language is English then 1,4 are shown. If lang2 then 2,5 are shown, etc.
B.
If I select whatever as interface language and tick 1 of the 3 languages in the content language, ONLY nodes of that language are shown no matter what the current interface language is.
C.
If I select whatever as interface language and tick all of in the content language, ALL nodes (1,2,3,4,5,6) are shown no matter what the current interface language is.
The best approach I think is to have the above stated ranking system that when the best ranked copy of a content is available, filter out all other duplicated translation.
Another approach is also acceptable to me by giving out current language + default language(for no current language translate nodes).
If a user choice English as her default interface language then :
1. When he use English Interface language, only English Content (1,4) is shown.
2. When he use lang2 Interface language, those in lang2 + those in English but without lang2 translation shown, that is, 2,4,5
2. When he use lang3 Interface language, those in lang3 + those in English but without lang3 translation shown, that is, 3,4,6
How can I achieve this when the ranking system is not available yet? Thanks.
Comment #6
ablivio commentedI wrote a proposal about this in http://drupal.org/node/149175 which is related to what is talked about here.
-- Denis.