In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ]  Related Changesets ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000929 [In-Portal CMS] Localization feature request always 2010-11-18 16:49 2012-07-25 05:32
Reporter Dmitry View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0-B1
Status closed Product Version 5.1.1-RC1 Target Version 5.2.0
Time EstimateNo estimate
Summary 0000929: Ability to have Preferred Language for Front-end Users
Description We need to create a functionality to remember User Preferred Language and then being able to apply it to Email Event sending and auto-loading User Language on Login.


For that we should ad a NEW User field called PreferredLanguageId (default NULL) and store there user Language selection (option formatter).

The value in this field can changed in 3 places:

1. Front-end: Drop-down with currently available Languages (need to count in SiteDomain options) on User Profile form - user can select and save.

2. Front-end: OnChangeLanguage event when user changes the language we can change his PreferredLanguageId too.

3. Admin: when Admin can edit users profile.


APPLICATIONS:

1. All Email Events should rely on new PreferredLanguageId field for language selection.

2. Automatically Load users language (do redirect if needed) on Login if
currently loaded and preferred languages are different.



NOTES:

a. NULL value will indicate that we need to use Site Primary language for this User.

b. in case if user (or Admin) has selected the Preferred Language which was disabled or removed (ID is not matching) or it's not in the list of available for current SiteDomain - system should automatically default to Front-end Primary language.
Additional Information Plan:
1. add FrontLanguage column (before AdminLanguage column) into PortalUser table
2. in UserHelper::_processInterfaceLanguage / lang:OnChangeLanguage use:
- FrontLanguage column instead of AdminLanguage column
- PrimaryLang column instead of AdminInterfaceLang column
- remove isAdmin check on top of the method of course
when login is performed on Front-End
3. add FrontLanguage dropdown to user adding/editing page (admin), to my profile page in "advanced" theme (front-end)
4. add AdminLanguage dropdown to admin adding/editing page (admin)
5. make sure, that available interface languages in dropdown (when displayed on front-end only) only includes languages, that are allowed in current site domain
6. use FrontLanguage as language for Front-End Type e-mail events (if user_id is specified in kApplication::EmailEventUser)
7. use AdminLanguage as language for Admin Type e-mail events (if user_id is specified in kApplication::EmailEventAdmin)
8. make sure that e-mail event language override via "language_id" send parameter (see "_getSendLanguage" method) still works
9. placing all new e-mail event language detection logic inside that "_getSendLanguage" method would be the best choice
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-bugs/browse_thread/thread/cb9b08df5642bab6
Change Log Message New functionality to specify preferred Language for User
Estimate Points 1
Attached Files patch file icon preferred_language_core_929.patch [^] (12,837 bytes) 2011-12-29 09:56 [Show Content]
patch file icon preferred_language_theme_929.patch [^] (1,790 bytes) 2011-12-29 09:56 [Show Content]
patch file icon preferred_language_core_v2.patch [^] (13,009 bytes) 2011-12-30 11:39 [Show Content]
patch file icon hide_language_fields_in_simple_interface_preset.patch [^] (1,338 bytes) 2012-01-03 11:17 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0001272closed (5.2.0)alex Extra 8 sqls on each page load 
parent of 0001273closed (5.2.0)alex Primary e-mail event design (former footer) always used instead of design on correct language 

-  Notes
User avatar (0002979)
alex (manager)
2010-11-19 01:48

We already got such a column in PortalUser table and it's used for remembering admin user's language.

We only need to display it where needed and prefill from Front-end.
User avatar (0004348)
erik (manager)
2011-12-29 09:57

Patches attached - needs testing
User avatar (0004371)
alex (manager)
2011-12-30 11:39

This issues were found & fixes:
1. missing upgrade script, that set language to existing users
2. user language no remembered during registration resulting primary language used in USER.ADD.PENDING e-mail event
User avatar (0004372)
alex (manager)
2011-12-30 11:42

Fix committed to 5.2.x branch. Commit Message:

Fixes 0000929: Ability to have Preferred Language for Front-end Users
Commit on behalf of Erik
User avatar (0005003)
alex (manager)
2012-07-25 05:32

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14975
Timestamp: 2012-01-03 11:18:31
Author: alex
Details ] Diff ]
Bug 0000929: Ability to have Preferred Language for Front-end Users
1. hide new fields in admin console
mod - /in-portal/branches/5.2.x/admin/system_presets/simple/users_u.php Diff ] File ]
In-Portal CMS: 5.2.x r14968
Timestamp: 2011-12-30 11:42:27
Author: alex
Details ] Diff ]
Fixes 0000929: Ability to have Preferred Language for Front-end Users
Commit on behalf of Erik
mod - /in-portal/branches/5.2.x/core/admin_templates/users/admins_edit.tpl Diff ] File ]
mod - /in-portal/branches/5.2.x/core/admin_templates/users/users_edit.tpl Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/english.lang Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/install_schema.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/upgrades.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/email_events/email_events_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/helpers/rating_helper.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/helpers/user_helper.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/languages/languages_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/users/users_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/users/users_event_handler.php Diff ] File ]
Themes :: Advanced: 1.2.x r14967
Timestamp: 2011-12-30 11:41:46
Author: alex
Details ] Diff ]
Bug 0000929: Ability to have Preferred Language for Front-end Users
Commit on behalf of Erik
mod - /themes/advanced/branches/1.2.x/_install/english.lang Diff ] File ]
mod - /themes/advanced/branches/1.2.x/platform/my_account/my_profile.tpl Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-25 05:32 alex Note Added: 0005003
2012-07-25 05:32 alex Status resolved => closed
2012-05-07 16:06 alex Relationship added parent of 0001273
2012-05-06 07:11 alex Relationship added parent of 0001272
2012-01-03 11:18 alex Changeset attached 5.2.x r14975
2012-01-03 11:17 alex File Added: hide_language_fields_in_simple_interface_preset.patch
2011-12-30 11:42 alex Changeset attached 5.2.x r14968
2011-12-30 11:42 alex Note Added: 0004372
2011-12-30 11:42 alex Status reviewed and tested => resolved
2011-12-30 11:42 alex Fixed in Version => 5.2.0-B1
2011-12-30 11:42 alex Resolution open => fixed
2011-12-30 11:42 alex Assigned To !COMMUNITY => alex
2011-12-30 11:41 alex Changeset attached 1.2.x r14967
2011-12-30 11:39 alex Note Added: 0004371
2011-12-30 11:39 alex Assigned To alex => !COMMUNITY
2011-12-30 11:39 alex Status needs testing => reviewed and tested
2011-12-30 11:39 alex File Added: preferred_language_core_v2.patch
2011-12-29 22:28 Dmitry Target Version Icebox => 5.2.0
2011-12-29 09:57 erik Note Added: 0004348
2011-12-29 09:57 erik Assigned To erik => alex
2011-12-29 09:57 erik Developer => erik
2011-12-29 09:57 erik Status needs work => needs testing
2011-12-29 09:56 erik File Added: preferred_language_theme_929.patch
2011-12-29 09:56 erik File Added: preferred_language_core_929.patch
2011-12-29 03:10 alex Additional Information Updated View Revisions
2011-12-29 03:09 alex Additional Information Updated View Revisions
2011-12-29 03:05 alex Estimate Points 0 => 1
2011-12-29 03:05 alex Additional Information Updated View Revisions
2011-12-28 23:52 Dmitry Estimate Points => 0
2011-12-28 23:52 Dmitry Assigned To => erik
2011-12-28 23:52 Dmitry Status active => needs work
2010-11-19 01:48 alex Note Added: 0002979
2010-11-18 16:49 Dmitry New Issue
2010-11-18 16:49 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/cb9b08df5642bab6
2010-11-18 16:49 Dmitry Change Log Message => New functionality to specify preferred Language for User



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker