Strings in sources without form
Posted: Sat Apr 07, 2007 10:38 am
Hi,
I've a class TSettingItem with a string field named Hint, this hint must be translated with SI components
mblnShowManyQuestOnDelMC := TSettingItem.Create;
mblnShowManyQuestOnDelMC.SettingHint := DMGlobal.MiMRTSE.GetTextOrDefaulT('IDS_ShowMoreQuestionOnDeleteMC');
My Unit Class has no form but I need to translate it and I've specified to take translations using components MiMRTSE of type TSILangRTSE stored in my DMGlobal unit.
I've added in my translation file the field IDS_ShowMoreQuestionOnDeleteMC in this way (I post source of SIL):
TDMGlobal.IDS_ShowMoreQuestionOnDeleteMC= Ask more than one time if a MC must be deleted to prevent erroneous deletions~!@#$ Chede conferma per la cancellazione di un MC per evitare cancellazioni accidentali
When application runs I've no exception but every time a void string is returned.
Something is wrong, but what??? I can't find a solution!
Thank you and happy easter
I've a class TSettingItem with a string field named Hint, this hint must be translated with SI components
mblnShowManyQuestOnDelMC := TSettingItem.Create;
mblnShowManyQuestOnDelMC.SettingHint := DMGlobal.MiMRTSE.GetTextOrDefaulT('IDS_ShowMoreQuestionOnDeleteMC');
My Unit Class has no form but I need to translate it and I've specified to take translations using components MiMRTSE of type TSILangRTSE stored in my DMGlobal unit.
I've added in my translation file the field IDS_ShowMoreQuestionOnDeleteMC in this way (I post source of SIL):
TDMGlobal.IDS_ShowMoreQuestionOnDeleteMC= Ask more than one time if a MC must be deleted to prevent erroneous deletions~!@#$ Chede conferma per la cancellazione di un MC per evitare cancellazioni accidentali
When application runs I've no exception but every time a void string is returned.
Something is wrong, but what??? I can't find a solution!
Thank you and happy easter