Opened 13 years ago

Last modified 7 years ago

#849 new defect

Remove all PW Buttons & edit all logic dependent on hard coded values

Reported by: Martin Reisinger Owned by: dbmulg
Priority: major Milestone: 1.10.2
Component: Public Website App. Version: N/A
Severity: Keywords: interface, buttons, hard-coded
Cc: Database Engine: N/A
Operating System: N/A

Description

The Public Website Image Buttons with Text should be converted to CSS buttons (or some other means) so that they can be easily translated into other languages. As it is now, since they are images, the equivalent buttons in a language other than English must be created / edited using a graphics tool.

Attachments (6)

hard coded quarantine info 2017jun13.jpg​ (69.7 KB ) - added by Martin Reisinger 9 years ago.
not available msg 2018-05-29_17-18-43.png​ (63.4 KB ) - added by Martin Reisinger 8 years ago.
not in npgs 2018-05-30_4-24-59.png​ (54.0 KB ) - added by Martin Reisinger 8 years ago.
hardcoded_embedded_text_example.png​ (22.0 KB ) - added by Martin Reisinger 8 years ago.
additional_avail_info_cuttings.jpg​ (15.1 KB ) - added by Martin Reisinger 8 years ago.
pw_intended_use_of germplasm_dropdown.png​ (22.1 KB ) - added by Martin Reisinger 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Martin Reisinger, 13 years ago

For the international 2.0 version, there are other places where English text displays on the Public pages. The code has text in English which is hardcoded. This needs to be made language agnostic. (Perhaps use have webParameters?) or minimally, in the interim, these hard-coded text instances need to be documented - their location, and where in the code they can be edited.

comment:2 by Martin Reisinger, 11 years ago

This trac ticket originally was focused on buttons; the issue was raised recently by the international community that other language items are hard coded and display in English. "Both in the CT and the Public Web site there are menu options, labels, titles, etc. which are hard-coded in the English language and it is not possible for the user to translate it to the language of his preference. It was suggested that GG should be fully language flexible to allow the users to translate texts according to their needs"

by Martin Reisinger, 9 years ago

comment:3 by Martin Reisinger, 9 years ago

All hard coded data such as 'Location: USDA, ARS. Site: Plant Germplasm Quarantine Program.' under Quarantine information (see attachment) should be reprogrammed to use either database values or other variables supplied by the AT or some other source external to the program code.

comment:4 by Martin Reisinger, 9 years ago

Keywords: hard-coded added
Milestone: Post 1.0 → TBD
Priority: minor → major
Summary: Public Website Image Buttons with Text → Remove all PW Buttons & edit all logic dependent on hard coded values
Version: 1.8.30.0 → N/A

by Martin Reisinger, 8 years ago

by Martin Reisinger, 8 years ago

comment:5 by Martin Reisinger, 8 years ago

Ideally messages such as "Note: You will receive Unrooted cuttings not Rooted plants unless specific arrangements have been made with the curator." under Additional Availability Information should not be hard coded.

Several reasons:
(1) the user organization must rebuild to change the message
(2) the language may not match the user's profile

Why not place all messages into a dedicated pw_text_table (to be added to the schema)? Or, use an existing table such as App_Setting.

by Martin Reisinger, 8 years ago

by Martin Reisinger, 8 years ago

comment:6 by Martin Reisinger, 7 years ago

Reported today - the Intended Use of the Germplasm dropdown on the Ordering Page is populated with hard coded English entries; image attached

by Martin Reisinger, 7 years ago

Note: See TracTickets for help on using tickets.