It would be better to use language list that you have in the system and show it in user profile to choose language. So module will add that field and would switch languages. But it's hard to give a solution, as it requires custom development
It would be better to use language list that you have in the system and show it in user profile to choose language. So module will add that field and would switch languages. But it's hard to give a solution, as it requires custom development
Ok we will do the custom development. So basically we have to create a new module that switches languages and adds a selection in the user profile so that he can manage the language? Could you tell us where the language setting is loaded in the code so that we can start from there?
Ok we will do the custom development. So basically we have to create a new module that switches languages and adds a selection in the user profile so that he can manage the language? Could you tell us where the language setting is loaded in the code so that we can start from there?
Now system will look for default language in "<prefix>_user_settings" table by "site_default_language" config_key that corresponds to proper "user_id", in your case - current logged user. If system is unable to find user-defined language it will uses globally defined in $options->defaultLanguage.
You module should manipulate "site_default_language" parameter for each user. I.e: each user is allowed to setup his own native language from list in profile.
I guess this tutorial will be useful to get a grip on your task.
Here’s what we’ll do:
The place where language is initialized is: /application/3.0/library/Singular/Bootstrap.php
Find public function initTranslate (Zend_Config $options) method.
Then find and replace inside this method case 'user_settings': ............... break;
Now system will look for default language in "<prefix>_user_settings" table by "site_default_language" config_key that corresponds to proper "user_id", in your case - current logged user. If system is unable to find user-defined language it will uses globally defined in $options->defaultLanguage.
You module should manipulate "site_default_language" parameter for each user. I.e: each user is allowed to setup his own native language from list in profile.
I guess this tutorial will be useful to get a grip on your task.
Sorry, but we don't provide custom code as it's not within standard support and is considered to be custom development that goes as additional service and estimated on custom request.
If you have request for custom development, please email us support(at)useresponse.com
P.S. Also we see that you are changing core. We don't recommend using that method as after upgrade, you'll loose all the changes
Hello,
Sorry, but we don't provide custom code as it's not within standard support and is considered to be custom development that goes as additional service and estimated on custom request.
If you have request for custom development, please email us support(at)useresponse.com
P.S. Also we see that you are changing core. We don't recommend using that method as after upgrade, you'll loose all the changes
Leave a Comment
Login
/ Register
Loading...
Replies have been locked on this page!
No connection
Real-time notifications may not work
This is not possible, as we stick to the idea of not mixing content of different languages in one community.
For different languages support it will require 2 different communities and easy way to switch between them by adding Flags in header.phtml in themes.
This is not possible, as we stick to the idea of not mixing content of different languages in one community.
For different languages support it will require 2 different communities and easy way to switch between them by adding Flags in header.phtml in themes.
This is not possible, as we stick to the idea of not mixing content of different languages in one community.
For different languages support it will require 2 different communities and easy way to switch between them by adding Flags in header.phtml in themes.
This is not possible, as we stick to the idea of not mixing content of different languages in one community.
For different languages support it will require 2 different communities and easy way to switch between them by adding Flags in header.phtml in themes.
Let's say we add a new field in the user table containing the language. Could there be a way of loading the interface with that language at the start?
Let's say we add a new field in the user table containing the language. Could there be a way of loading the interface with that language at the start?
It would be better to use language list that you have in the system and show it in user profile to choose language. So module will add that field and would switch languages. But it's hard to give a solution, as it requires custom development
It would be better to use language list that you have in the system and show it in user profile to choose language. So module will add that field and would switch languages. But it's hard to give a solution, as it requires custom development
Ok we will do the custom development. So basically we have to create a new module that switches languages and adds a selection in the user profile so that he can manage the language? Could you tell us where the language setting is loaded in the code so that we can start from there?
Ok we will do the custom development. So basically we have to create a new module that switches languages and adds a selection in the user profile so that he can manage the language? Could you tell us where the language setting is loaded in the code so that we can start from there?
Here’s what we’ll do:
The place where language is initialized is: /application/3.0/library/Singular/Bootstrap.php
Find public function initTranslate (Zend_Config $options) method.
Then find and replace inside this method case 'user_settings': ............... break;
with:
After, you can open /configs/application.inc and change language source from:
to
Now system will look for default language in "<prefix>_user_settings" table by "site_default_language" config_key that corresponds to proper "user_id", in your case - current logged user. If system is unable to find user-defined language it will uses globally defined in $options->defaultLanguage.
You module should manipulate "site_default_language" parameter for each user. I.e: each user is allowed to setup his own native language from list in profile.
I guess this tutorial will be useful to get a grip on your task.
Here’s what we’ll do:
The place where language is initialized is: /application/3.0/library/Singular/Bootstrap.php
Find public function initTranslate (Zend_Config $options) method.
Then find and replace inside this method case 'user_settings': ............... break;
with:
After, you can open /configs/application.inc and change language source from:
to
Now system will look for default language in "<prefix>_user_settings" table by "site_default_language" config_key that corresponds to proper "user_id", in your case - current logged user. If system is unable to find user-defined language it will uses globally defined in $options->defaultLanguage.
You module should manipulate "site_default_language" parameter for each user. I.e: each user is allowed to setup his own native language from list in profile.
I guess this tutorial will be useful to get a grip on your task.
Thank you!
Thank you!
Another question for you guys.
I tried to add a radio button in the profile page so that the user can change the default language of the website.
this is the code i've added in User.php
I also added two new constants in UserConfig.php
and one constant in usersConfigs.php
the radio buttons are rendered on the page, but when i try to save the profile, the data is not saved to the Database.
Do i need to add some extra code to handle the database update?
Another question for you guys.
I tried to add a radio button in the profile page so that the user can change the default language of the website.
this is the code i've added in User.php
I also added two new constants in UserConfig.php
and one constant in usersConfigs.php
the radio buttons are rendered on the page, but when i try to save the profile, the data is not saved to the Database.
Do i need to add some extra code to handle the database update?
Hello,
Sorry, but we don't provide custom code as it's not within standard support and is considered to be custom development that goes as additional service and estimated on custom request.
If you have request for custom development, please email us support(at)useresponse.com
P.S. Also we see that you are changing core. We don't recommend using that method as after upgrade, you'll loose all the changes
Hello,
Sorry, but we don't provide custom code as it's not within standard support and is considered to be custom development that goes as additional service and estimated on custom request.
If you have request for custom development, please email us support(at)useresponse.com
P.S. Also we see that you are changing core. We don't recommend using that method as after upgrade, you'll loose all the changes
Replies have been locked on this page!