Forum OpenACS Q&A: Problem with tasks-print.tcl in project manager

Hi all,

Excuse my newness to the openACS code and what will I'm sure be completely obvious questions for the next couple of months while I get up to speed.

In the project manager there were some localization changes and in the www/tasks-delete.tcl file within an ad_form construct

-actions {{"Delete this task?" delete} {"Cancel" cancel}} \

was changed to:

-actions {{"<span>#</span>project-manager.Delete_this_task#" delete} {"<span>#</span>project-manager.Cancel#" cancel}} \

On the 5-1 branch of OpenACS the labels for the buttons don't get evaluated and the buttons I see have the literal values <span>#</span>project-manager.Delete_this_task#

I'm at a loss on how to fix this.

Collapse
Posted by Alex Kroman on
Ooops, there is supposed to be hashes where it says MESSAGE KEY MISSING

Here is a link to the code in question:

http://cvs.openacs.org/cvs/openacs-4/contrib/packages/project-manager/www/task-delete.tcl?rev=1.1.2.9&only_with_tag=oacs-5-1&view=markup

Collapse
Posted by Malte Sussdorff on
This is due to the facts that anything in {} is not evaluated properly. So to fix this, don't rely on {} to create lists, but create them deliberately using the list command (and -actions expects a list of lists).

-actions [list \
            [list [_ project-manager.Delete_this_task] delete]\
  	    [list [_ project-manager.Cancel] cancel] \
         ] \