package e4s.tutorial; import e4s.util.E4ID; import e4s.mail.*; import e4s.html.*; import e4s.html.input.extended.*; import e4s.servlet.*; import e4s.translate.E4LabelNone; /** * Create a table with dynamic sorting capabilities. * * {@tutorial Example_Mail} */ public class Example_Translations extends E4ModuleImplementation { public static E4Method start = null; public void start( HTML html ) { html.setTitle( "This is the title" ); html.print("This text does not become translated"); html.P(); html.translate("This text becomes translated"); html.P(); FORM form = html.FORM(); form.TEXTFIELD(new E4InputFieldName("TEST1"),"Text input field",20); form.TEXTFIELD(new E4InputFieldName("TEST2"),E4LabelNone("No translation for this label"),20); TABLE table = html.TABLE(TABLE.E4S_DEFAULT_TABLE()); table.TR().TD().translate("Monday"); table.TR().TD().translate("Tuesday"); } }