0

We have a drupal 7 with the following need :

  • When the user visit the website, we let drupal chose the best language for the user
  • He can then choose to chose another language.
  • We have a finite number of language (5 so far)
  • Unless he decide to change the language for the whole website, he should only see the content written in the selected language
  • all user (except admins) on the website are anonymous (no registration, no login)
  • we need the admins to see all languages.
  • contents can exist in one or many languages. There is no "reference" language that holds all the contents.

So far we have set the language switcher for all languages, but then on the website the menu for all languages are displayed (which we don't want). Also, search is made on content for all languages. If we set the language switcher to only use the selected language, everything works as intented on the website but then the admin can only see the content matching the current selected language. We need that he sees all content.

We've been looking into some options (including the Administration Language, but unless we overlooked some configuration, it doesn't seem to fit our needs).

Any ideas, hints or suggestion welcome !

  • What about setting the language switcher to show all languages but hiding it from the anonymous user and only showing it to the admin? – Patrick Kenny Jan 31 '13 at 13:04
  • Our main issue is that the admin has to switch between the various languages to see all contents. We would like to have the full list. – Sebastien F. Jan 31 '13 at 13:17
  • What do you mean have the full list? You mean something beyond what the language switcher block provides? – Patrick Kenny Jan 31 '13 at 13:19
  • the full list of all contents. In a way, the language switcher block is useless to us because the admin should not have to use it and the user should not be able to use it directly. – Sebastien F. Jan 31 '13 at 15:56
  • You could set this up in Views by using separate view modes for admin/anonymous users. Have you looked into that? – Patrick Kenny Jan 31 '13 at 22:37
0

We ended up writing various custom modules to solve that issue.

  • Although I agree that Drupal still has a lot to do on the i18n side, I was surprised you had this sort of problems displaying full list of all contents. I used admin views+vbo, then modified the view by adding language field to the table. Have you tried that? – Artur Mar 22 '13 at 21:56
  • Its not because its wrong to write a custom module, But I agree with Patrick Kenny about Views taking care of this and then making a config. permissions on who can see what. – Vic Mar 22 '13 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.