So... how exactly do i use this plugin?
i have set my default language to Danish, yet the module says that my default language is English?
If im in danish, and switch language to English while logged in, the whole Drupal system gets translated to english - and that is absolutely not what i want.. I want to use Drupal in Danish only, but let the content be translateable .. i really dont know what im doing wrong, i have checked all settings and they seem to be set the correct way.

Please provide some information or tutorials for this great module.

Thanks.

Comments

GiorgosK’s picture

Status: Active » Postponed (maintainer needs more info)

please provide a screenshot of what your settings look like

also remember to set correct permissions for the role that needs to use admin language

and I think each user has to set the language they prefer on their user form
user/xxx/edit

Anyway here is very simple tutorial

  • download
  • put in your sites/all/modules directory
  • go to admin/modules and enable
  • go to admin/config/regional/language/admin_language
    and select appropriate settings
    my settings are
    - Use administration language on every page except the listed pages.
    - Use admin paths provided by core (checked)
    - Hide administration language on user form (enabled but does not work due to #2046395: Hide widget "Administration language select" from the user form)
    -Hide administration language on node form (disabled)
    - Force use of default language (disabled)
    - Force language neutral aliases (disabled)
    - Use administration language in the administration menu (enabled)
  • go to admin/people/permissions and set the Administration language permissions for the role that will use it
  • go to user/x/edit and set the appropriate language for each user that will use this functionality
Anybody’s picture

I think these both describe the same problem in different ways...

Anybody’s picture

Status: Postponed (maintainer needs more info) » Needs work

I think I've found the reason, at least it fixes these problems for me:

In

function _admin_language_user_form_add_language_select(&$form)

(Line 653 of admin_language.module)
a wrong variable was used: "admin_language" which is always empty and so always returns "en" fallback!

$admin_langcode = variable_get('admin_language', 'en');

This has to be corrected to: "admin_language_default".

$admin_langcode = variable_get('admin_language_default', 'en');

Important: This has NO implications on the used admin language, but is just a problem on the Display-Layer.

Please fix in the next release :)

Liam Morland’s picture

Status: Needs work » Postponed (maintainer needs more info)

Is this still relevant?

Anybody’s picture

Status: Postponed (maintainer needs more info) » Active

@Liam Morland: Yes I think so. The code is still the same, but now in Line 816 in the latest dev. Of course my assumptions should be checked, but for me this was the reason for the problems.

Liam Morland’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Component: Miscellaneous » Code
Category: Support request » Bug report

Can you provide your fix as a patch?

Anybody’s picture

Nope, as written in an other issue I'm now using a different module. Sorry.