Closed (won't fix)
Project:
Internationalization
Version:
6.x-1.x-dev
Component:
Blocks
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2009 at 10:09 UTC
Updated:
28 Oct 2022 at 11:47 UTC
Jump to comment: Most recent
Comments
Comment #1
hass commentedno
Comment #3
geraldito commentedLooking with Devel Themer Info I see that form is called "locale" so for hiding it you could make a module with code like this:
You also need an info file like this:
Comment #4
arski commentedlol, answering "no" and setting the status to "fixed" - what a joke maintainer.
altering form appears to be indeed the only way to go at the moment.. although the module should really offer a setting or a permission to control this.
Comment #5
chinita7 commentedMaybe Disable User language?
Comment #6
chinita7 commentedI tried "Disable user language" module and worked.It can disable the language setting on the user pages and also can give permissions per role to allow setting the language.
I also tried to code from #3 modified a bit for my need and worked. #3 was better solution for me because it just hide the setting option on user's account page but the user still can have the default language. I'm also using Registration language to set the user's default language on registration automatically and "Registration language"didn't work with"Disable user language".
The issue is here
Thanks @geraldito
Comment #7
jose reyero commentedWe are not adding more features to the 6.x version. And anyway I don't think this is an interesting one to add to the module.
Comment #9
AlexRos commentedI just posted here a solution I came to during my research.
Hope it will help somebody else.
You can desactivate the Language settings block by using the module Rules Forms Support.
With this module, you can target any element of a form (core or contributed) and hide it via a rule.
The rule I set up basically stated : When the User profile form is being built, the system hides the fieldset:locale.
The documentation will help you to set up the rule correctly.
Comment #10
marcel.jtf commentedThanks AlexRos your #9 did the trick. I was looking for this solution. I've followed the following steps
Comment #11
xorunaAnother solution is to hide the field in custom template.php. I did this on a Drupal 7 site, using the code provided here: https://drupal.stackexchange.com/questions/76044/how-to-hide-certain-fie...
(replace the name of the function with your custom theme name et change de field to "locale", the machine name of the field)