[
{
    blockid=lang;
    help=root_lang_lang;
    custom=com.netscape.management.msgserv.RootLangControl;
    localvar={
	.sitelang.text="Site language:";
	.domainmap.text="Domain/Language Mapping Table";
	.lang.header="Language";
	.domain.header="Map Entry";
	.delimiter=$;
    };
    layout=[gridbag];
    content=[
	{
	    ctrl=label;
	    id=sitelanglabel;
	    text=$.sitelang.text;
	    constraint={
	        gridx=0;
	        gridy=0;
	        weightx=1;
	        fill=h;
	        insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=choice;
	    id=sitelangctrl;
	    label=sitelanglabel;
	    items=$local.supportedlanguages.value;
	    val=$gen.sitelanguage.value;
	    constraint={
	        gridx=1;
	        gridy=0;
	        weightx=9;
	        anchor=west;
	        insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=separator;
	    constraint={
	        gridx=0;
	        gridy=-1;
	        gridwidth=2;
	        weightx=1;
	        fill=h;
	        insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=label;
	    id=domainmaplabel;
	    text=$.domainmap.text;
	    constraint={
	        gridx=0;
	        gridy=-1;
	        gridwidth=2;
	        weightx=1;
	        fill=h;
	        insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=table;
	    label=domainmaplabel;
	    id=maptable;
	    showedit=true;
	    editui=mapedit;
	    val=$service.smtp.domainlangtable.value;
	    delimiter=$.delimiter;
	    buttonsat=east;
	    constraint={
	        gridx=0;
	        gridy=-1;
	        gridwidth=2;
	        weightx=1;
	        weighty=1;
	        fill=both;
	        anchor=northwest;
	        insets=$g.insets.comp;
	    }
	    columns=[
		{
		    header=$.domain.header;
		}
	    ]
	}
    ]
},
{
    blockid=mapedit;
    help=root_lang_mapedit;
    localvar={
        .domain.text="Domain/Subdomain";
	.preflang.border=[titled,"Preferred Languages"];
    };
    content=[
        {
            ctrl=pane;
            layout=[ybox];
            content=[
                {
                    ctrl=label;
                    id=domainlabel;
                    text=$.domain.text;
                    wrap=$g.label.size3;
                },
                {
                    ctrl=vstrut;
                },
                {
                    ctrl=text;
                    id=domainctrl;
                    label=domainlabel;
                    val=$domain.value;
                    maxwidth=-1;
                    focus=true;
                }
            ]
        },
        {
            ctrl=vstrut;
        },
        {
            ctrl=pane;
            layout=[border];
            content=[
            	{
            	    ctrl=pane;
            	    constraint=north;
            	    layout=[ybox];
            	    content=[
            	        {
            	            ctrl=separator;
            	        },
            	        {
            	            ctrl=vstrut;
            	        }
            	    ]
            	},
                {
                    ctrl=pane;
                    border=$.preflang.border;
                    id=langpane;
                    layout=[ybox];
                    constraint=center;
                },
                {
                    ctrl=pane;
                    constraint=south;
                    layout=[ybox];
                    content=[
                        {
                            ctrl=vstrut;
                        },
                        {
                            ctrl=pane;
                            content=[
				{
				    ctrl=hglue;
				},
				{
				    ctrl=button;
				    id=morectrl;
				    text="More";
				    cmd=more;
				},
				{
				    ctrl=rigid;
				},
				{
				    ctrl=button;
				    id=fewerctrl;
				    text="Fewer";
				    cmd=fewer;
				}
                            ]
                        },
                        {
                            ctrl=vstrut;
                        }
                    ]
                }
            ]
        }
    ]
},
{
    blockid=firstlang;
    content=[
        {
            ctrl=pane;
            content=[
		{
		    ctrl=label;
		    wrap=$g.label.size0;
		    aligny=0.5;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=choice;
		    id=langctrl;
		    items=$local.supportedlanguages.value;
		    aligny=0.5;
		}
            ]
        },
        {
            ctrl=vstrut;
        }
    ]
},
{
    blockid=orlang;
    localvar={
        .or.text="or";
    };
    content=[
        {
            ctrl=pane;
            content=[
		{
		    ctrl=label;
		    text=$.or.text;
		    wrap=$g.label.size0;
		    alignh=right;
		    aligny=0.5;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=choice;
		    id=langctrl;
		    items=$local.supportedlanguages.value;
		    aligny=0.5;
		}
            ]
        },
        {
            ctrl=vstrut;
        }
    ]
}
]
