Display of task description [message #1591] |
Sun, 31 August 2008 17:47 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
Tony,
Is it possible to display the task description instead of the task id at the top of each screen? Would like to make the application look a little more friendly and can't figure out if this is possible.
Thanks,
Graham
|
|
|
|
|
Re: Display of task description [message #1595 is a reply to message #1594] |
Mon, 01 September 2008 06:14 |
AJM
Messages: 2370 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You are not following the instructions:
(1) Set the task description by updating the MNU_TASK table.
(2) Export the whole subsystem to produce a file called 'text/<subsys_id>.menu_export.txt'.
(3) Use the contents of this file to update the 'text/<language>/language_text.inc ' file.
Simply updating the task description on the MNU_TASK table is not good enough as at runtime the text is taken from the relevant language file. This allows separate files to exist for different languages as part of the internationalisation (I18N) feature.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: Display of task description [message #1597 is a reply to message #1596] |
Mon, 01 September 2008 07:16 |
AJM
Messages: 2370 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You need to step through with your debugger to see where you are going wrong. In file 'include.xml.php5.inc' at line 458 is the following code:
$xsl_params['title'] = getLanguageText($task_id);
This is where it retrieves the text from the language file using $task_id as the key. If it cannot find the entry it will return the key, so are you sure you have put your text in the right file in the right place?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
Re: Display of task description [message #1598 is a reply to message #1591] |
Mon, 01 September 2008 09:50 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
Seemed to be because I had overwritten the existing contents of the language file instead of inserting the exported details. I realised afterwards that the existing entries were placeholders for error messages, but didn't think that would have any effect. Fortunately, I had taken a copy of the file before overwriting it.
Now that I've added the language details into the existing file everything is working properly.
Thanks for the help once again
|
|
|