History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FC-1163
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Fritz Dimmel
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FarCry Core Framework

Objectadmin doesn't work in language other than english

Created: 16/Mar/08 03:59 AM   Updated: 17/Dec/08 12:10 PM
Component/s: Webtop Admin UI
Affects Version/s: FarCry 4.0 (Gonzalas), 4.0.9
Fix Version/s: FarCry 5.1

Time Tracking:
Original Estimate: 5 minutes
Original Estimate - 5 minutes
Remaining Estimate: 5 minutes
Remaining Estimate - 5 minutes
Time Spent: Not Specified
Remaining Estimate - 5 minutes


 Description  « Hide
The objectadmin doesn't work properly in a language other than english.
At least the buttons on top of the admin don't work.

E.g. the buttons from attributes.aButtons do have a localized value, e.g. "Hinzufügen" for add, "Löschen" for delete, ... e.g. in the german language.
Due to this fact, the <ft:processForm action="add" ...> won't match, because the submitted value is in a different language and the action asks for English.

The simplest way to come around with that would be to change the processForm tag to:
<ft:processForm action="#application.adminBundle[session.dmProfile.locale].add#" ...>

The dropdown boxes for each object are not affected, because they are not localized (yet).

Short term fix:
Change lines 159, 173, 374
to

<ft:processForm action="#application.adminBundle[session.dmProfile.locale].delete#" ...>
<ft:processForm action="#application.adminBundle[session.dmProfile.locale].unlock#" ...>
<ft:processForm action="#application.adminBundle[session.dmProfile.locale].add#" ...>


Long term fix:
change all of these processForm tags and localize the drop down boxes too.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Matthew Bryant - 17/Dec/08 12:10 PM
Fixed. farcryButton and processForm tags are now both using internationalization.