ccPortalApplication.Translations
- Former user (Deleted)
- Dennis Balzuweit
Owned by Former user (Deleted)
Feb. 27, 2017
1 min read
Loading data...
Parameter
Translations[Language : String] : TccTranslation;
Beschreibung
Über die Eigenschaft Translations kann auf alle Übersetzungsobjekte der Applikation zugegriffen werden. Die Referenzierung erfolgt über den entsprechenden Sprachcode.
Beispiel
procedure ShowTranslation; begin ccScriptEngine.Log(ccLog_Info,'ShowTranslation'); if ccPortalApplication.TranslationExists('DE') then begin ccScriptEngine.Log(ccLog_Info,ccPortalApplication.Translations['DE'].GetMetaTag('EXAMPLETRANSLATION','Standardtext')); ccScriptEngine.Log(ccLog_Info,ccPortalApplication.Translations['DE'].GetComponentText('MAINFORM','TPANEL','FILEMENUPANEL','')); end else begin ccScriptEngine.Log(ccLog_Info,'Language not found!'); end; end;
List := TStringList.Create; try ccPortalApplication.Translations['EN'].GetItemList('/Items/',List); for i:=0 to List.Count-1 do ccScriptEngine.Log(ccLog_Info,List.Strings[i]); finally List.Free; end;