Forum OpenACS Development: I18N and ad_table

Collapse
Posted by Malte Sussdorff on
I have a quick question. If I want to make packages I18N aware that are using listbuilder we have often code like:

set table_def {....{"my english term" ""} ...}. Sadly, as the term is in contained in curly braces, I cannot make use of [_ mypackage.lt_my_english_term]. The alternative is to replace all curly brace pairs with [list ...] constructs.

Can someone please tell me that I'm missing the obvious and tell me an easier way out of my dilemma ?

The goal is to have all english terms in the table definition made i18n aware.

Collapse
2: Re: I18N and listbuilder (response to 1)
Posted by Malte Sussdorff on
Dave informed me that the syntax derived from the ADPs "<span>#</span>package_key.phrase#" works in .tcl files as well. We should therefore dump the [_ package_key.phrase] syntax alltogether and only teach people to use #.# :).

If I change the APM to transform <#_ "My english text"#> into <span>#</span>package_key.my_english# would this need a TIP ?

Collapse
3: Re: I18N and ad_table (response to 1)
Posted by Malte Sussdorff on
Mea maxima culpa. I mixed up listbuilder and ad_table. But it still holds true (the inconsistency that is).