Forum OpenACS Q&A: acs-templating I18N work

Collapse
Posted by Dirk Gomez on
I started work on acs-templating I18N (together with Lars' and Peter's invaluable help) and just committed a bunch of files to CVS HEAD.

acs-templating is one of the most fundamental packages and one little bug down there might lead to weird bugs in strangely related places. So please update your servers as soon as possible and report errors.

Collapse
Posted by Randy O'Meara on
HEAD fresh checkout 10/15/03 @ 9:30 PST
Errors since 15/Oct/2003:21:57:36

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-kernel.common_ok' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-kernel.common_edit' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-templating.Previous_with_arrow' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-kernel.common_repeat' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-templating.Next_with_arrow' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: lang::message::lookup: Key 'acs-kernel.common_finish' does not exist in en_US

[15/Oct/2003:21:58:52]
    Error: Error sourcing /devel/openacs5b/packages/acs-templating/tcl/acs-templating-init.tcl:
    list must have an even number of elements
        while executing
    "array set default_button_labels  [list back [_ acs-templating.Previous_with_arrow] [_ acs-kernel.common_repeat] next [_ acs-templating.Next_with_arrow..."
        (in namespace eval "::template::wizard" script line 7)
        invoked from within
    "namespace eval wizard {
        
        # stack level at which wizard is created
        variable parse_level
        # An array of default buttons and their names
     ..."
        (in namespace eval "::template" script line 46)
        invoked from within
    "namespace eval template {
    
      namespace export query request form element
    
      # namespaces for cached datasource and template procedures
    
      namespace ev..."
        (file "/devel/openacs5b/packages/acs-templating/tcl/acs-templating-init.tcl" line 17)
        invoked from within
    "source $__file "

[15/Oct/2003:21:58:56]
    Error: lang::catalog::import_from_files - The import of file /devel/openacs5b/packages/acs-templating/catalog/acs-templating.en_US.ISO-8859-1.xml failed, error message is:
    
    Required attribute "key" missing from <msg>
    
    stack trace:
    
    Required attribute "key" missing from <msg>
        while executing
    "error "Required attribute \"$attribute\" missing from <[xml_node_get_name $element]>""
        (procedure "get_required_xml_attribute" line 5)
        invoked from within
    "get_required_xml_attribute $message_node ${KEY_ATTR}"
        (procedure "parse" line 40)
        invoked from within
    "parse [read_file $file_path"
        (procedure "import_messages_from_file" line 6)
        invoked from within
    "import_messages_from_file $file_path"
    
    
    Notice: Querying '
          
            select mime_charset
            from   ad_locales 
            where  locale = 'en_US';'
Collapse
Posted by Dirk Gomez on
Works for me. Can you update again please?

I removed the three empty message keys.

Now I am looking at a system where acs_subsite's message_keys have gone amiss.

Collapse
Posted by Peter Marklund on
I re-added the acs-subsite message keys. There is still some message key mismatch in one way or the other (some redundant keys, one maybe missing). I've asked Frank for help sorting that out.
Collapse
Posted by Randy O'Meara on
Dirk, I will reinstall fresh again this evening.
Collapse
Posted by Randy O'Meara on
Dirk & Peter: CVS HEAD as of 4:10 PM PST
Errors since 16/Oct/2003:16:10:23

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-kernel.common_ok' does not exist in en_US

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-kernel.common_edit' does not exist in en_US

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-templating.Previous_with_arrow' does not exist in en_US

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-kernel.common_repeat' does not exist in en_US

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-templating.Next_with_arrow' does not exist in en_US

[16/Oct/2003:16:11:37]
    Error: lang::message::lookup: Key 'acs-kernel.common_finish' does not exist in en_US
Collapse
Posted by Peter Marklund on
Randy,
I'm pretty sure the problem you posted about is due to the message catalogs being imported to late. I've drafted a fix for that and I'm testing it out on the PG test server right now, so hold your thumbs...
Collapse
Posted by Randy O'Meara on
Peter, looks like you solved this message catalog problem. Thanks.

Randy