CodeCharge Studio | All ASP PHP Perl ColdFusion Java C#.NET VB.NET |
This example demonstrates how to retrieve a translation string by its key and assign it to a label using the Before Show event.
We will use the "CCS_Today" translation key from CCS project resources.
Function Label1_BeforeShow(Sender) Sender.Value = CCSLocales.GetText("CCS_Today", Empty) End Function
function Label1_BeforeShow(& $sender) { global $CCSLocales; $Component->SetValue($CCSLocales->GetText("CCS_Today")); }
sub Label1_BeforeShow() { $Label1->SetValue($CCSLocales->GetText("CCS_Today")); }
<!--- Event: BeforeShow. Action: Custom Code. Control: Label1 ---> <CFSET fldLabel1 = Request.CCSLocales.GetText("CCS_Today")>
'Label Label1 Event BeforeShow Label1.Text = rm.GetString("CCS_Today")
'Label Label1 Event BeforeShow Label1.Text = Resources.strings.CCS_Today
//Label Label1 Event BeforeShow Label1.Text = rm.GetString("CCS_Today");
//Label Label1 Event BeforeShow Label1.Text = Resources.strings.CCS_Today;
//Label1_BeforeShow e.getControl().setValue(e.getPage().getResourceString("CCS_Today"));