Hey,

I have this issue I posted in the forum and in the locale issue queue, and I was thinking that maybe the solution to this could be an addition to the Admin Language module.

I'm building a bilingual website containing Dutch and French. Right now, I have Dutch, French and English enabled as languages. I want English only to be the language for me as an administrator. So far, when I make new content for example, this can still be translated in all 3 languages. I want the content only to be in Dutch and French. I don't want English anywhere to appear in the website's content. Also, the language switcher on the front page lets me still select between Dutch, French and English.

It would be so great if you could enable a language just for the back-end administration. So far the admin-language comes closest. However:
1) if you select an admin language, this language will still be shown in the create content pages and the language switcher.
2) The admin language is a good idea, but I rather keep the admin language based on the personal language of the user as selected in his user profile. I, as a webdesigner (User-1), will want to work in English, but the client, the Editor of the website, will want his admin language in French. And I don't think the admin language module takes that in consideration, but I might be wrong here.

Cheers,
Danny

A copy in the locale issue queue: http://drupal.org/node/568646
A copy in the forum: http://drupal.org/node/568608

Comments

wulff’s picture

Assigned: Unassigned » wulff

ad 1) In the latest version of the module, you can choose to remove the administration language from the node edit form. Also, the latest version includes a new language switcher block which doesn't display the administration language.

ad 2) This should be possible, as long as you don't give the client the 'display admin pages in another language' permission.

The changes are included in the latest development release which will be available in less than 12 hours.

If you have the time, please use a couple of minutes to test the updated version.

wulff’s picture

The development snapshot is now available.

danny_joris’s picture

Hey Wolff,

Thanks so much for this module. And thanks very much for all your work you put in it.

I tried the Dev version. I don't know what the results were for you, but I can only explain my own experience.

1) Maybe first an idea. I think it would be great if you could choose the admin language in the user's personal settings. Some users want English, others want French, etc.. And then you can still use the permissions to decide of a user can choose it's language or not. And if they don't have permission to choose their language, you could make User-1 (or someone with permission) choose a default language for a certain user role.

And where you choose the default admin language now (next to the general default language), you could maybe change these into checkboxes instead of radio buttons. And give these functionality to exclude one or more specific language(s) from the node creation or all front-end or user-end. This is just my personal ideal, but maybe you can agree on some things.

2) I tested the dev version and I had mixed results. The default language worked fine, it did the job. It stayed the same interface language at all the node translations.

ad 1) In the latest version of the module, you can choose to remove the administration language from the node edit form. Also, the latest version includes a new language switcher block which doesn't display the administration language.

-> I tried this and it did not work. As a test I used English as Admin language and English still showed in the node creation/edit forms and as an option in the translate pages: node/10/translate . The new language block worked very well: it didn't showed the Admin language.

ad 2) This should be possible, as long as you don't give the client the 'display admin pages in another language' permission.

-> Not giving this permission to a certain role makes that this user will not have one consequent language in its admin pages. Editing a Dutch node, its entire interface would be presented in Dutch and back to French when editing a French node.

3) I mentioned this issue in another issue of mine. I hope you don't mind. I had this issue about admin language and I felt that the things you were working on were similar. http://drupal.org/node/573762

Again, thanks so much for this module. I hope my input is helpful. You're doing a great job.
Cheers,
Danny

wulff’s picture

1) The latest dev snapshot lets the users choose their preferred administration language (if they have the proper permissions).

2.1) I'll take a look at this. It seems like I need to modify more forms than I expected.

2.2) Would you prefer that all admin pages are displayed in the default site language in this case?

3) I'll take a look at it.

danny_joris’s picture

Hey Wulff, thanks for the response.

1) Have you updated the .dev after my post or have I been using it wrong or misinterpret it? I installed the latest .dev and this seems to work perfect. My client can assign his language. Awesome!

2.1) Cool. It looks pretty complicated indeed, but it would be great. Still, I like the idea of having checkboxes in the language page (admin/settings/language) to check or uncheck languages that are not allowed into the node creation part or front-end of a website. And maybe some checkboxes of languages that are allowed to be enabled as admin languages. What I have in mind looks like this:
Enabled --------- Site Default ---- admin languages -- exclude from node creation / front end
(check boxes) -- (radio buttons) -- (check boxes) --- (check boxes)

But feel free to do whatever you want, of course. I'm just dropping suggestions. :)

2.2) Let's forget this one. It's great as it is now...

3) This is solved by 1).

Thanks again, Wulff. This module is worth gold.
Cheers,
Danny

wulff’s picture

Version: 6.x-1.3 » 6.x-1.x-dev

Keeping 2.1 as a feature request, since the current dev version only makes it possible to hide the administration language from the node edit form.

wulff’s picture

ad 2.1 in #3: the administration language will only be removed from the node edit form if you do not have the permission "use all enabled languages". The module does not try to modify the node/nid/translate page at the moment since it would require a reimplementation of translation_node_overview().

I'll keep the checkbox idea from 2.1 in #5 around as a feature request.

fdefeyter@gmail.com’s picture

Hi there! This is my first post on Drupal.org. Thanks to all of you for the wonderfull work that's been done already.

I have problems with i18n and admin language. As we have 23 languages with 23 URLs (! only 3 are ready today), the admin_menu doesn't stay in English.

I tried everything: install admin_language: didn't work. Install language preserve module: didn't work. Of course , the option "Switch interface for translating" is not selected. I spent hours on this...

We really need the admin language to stay in English. Can somebody explain me why and how I could manage the trick?

Thanks a lot.

Have a nice day.

liam morland’s picture

Status: Active » Closed (outdated)

Drupal 6 is no longer supported. If this issue is relevant for Drupal 7, please re-open and update the version.