Forum OpenACS Improvement Proposals (TIPs): Re: TIP #83 (Rejected): I18N methods for short strings (esp. pretty_names and labels)

Jeff mentioned the problem of using the text for the message key generation is not unique. To solve this problem, the call for I18N should be different in that way that you use the unique identifier (e.g. group_name or attribute_id) for the message_key and not simply the text. This can be done the following way:

#groups
set title [lang::util::convert_to_i18n -message_key "group_${group_name}" -text "$group_name"]

set group_id [package_instantiate_object ......]

db_dml title_update "update acs_objects set title=:title where object_id = :group_id"

# ams attributes
set pretty_name [lang::util::convert_to_i18n -message_key "ams_attribute_pn_${attribute_id}" -text $pretty_name]