forum::format::reply_subject (public)

 forum::format::reply_subject parent_subject

Defined in packages/forums/tcl/messages-format-procs.tcl

Generates a subject string for a reply to an existing message. The prefix is always added using the system-wide locale to avoid the uncontrollable growth of the subject in a multi-language environment.

Parameters:
parent_subject (required)

Testcases:
No testcase defined.
Source code:

        set prefix [lang::message::lookup [lang::system::site_wide_locale] forums.Re]
        set prefix "[string trim $prefix] "

        # trim multiple leading prefixes:
        regsub "^($prefix)+" $parent_subject {} parent_subject

        set subject [concat $prefix $parent_subject]

        return $subject
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: