Additional information in .resources files

  • Thread starter Thread starter schaf
  • Start date Start date
S

schaf

Hi NG !
I would like to add additional information to a .resources file. For
instance the translation date,
How can I add this information to the .resources file of a form?
In the resheader, the information will be deleted during the
generation of the .resources (using resgen).
Is there a possibility to add additional information to a .resourcee
file?

Thanks and Regards
Marcel
 
The resource file is generated by visual studio and you can not modify it.

You can add a new DateTime property to your form and set the Localizable
attribute :

private DateTime _translationDate;

[Localizable]
public DateTime TranslationDate
{
get { return _translationDate; }
set { _translationDate = value; }
}

Then you can modify this property in design mode and it will be store in the
resource file.
 
Hi!
Thanks for your answer!
The resource file is generated by visual studio and you can not modify it.
Modification after generation would be possible by the Resourcer
application.
You can add a new DateTime property to your form and set the Localizable
attribute :

private DateTime _translationDate;

[Localizable]
public DateTime TranslationDate
{
get { return _translationDate; }
set { _translationDate = value; }

}

Then you can modify this property in design mode and it will be store in the
resource file.

Is this really the best way to do it? I though abaout it, but I'm not
very lucky with adding a dummy control on each form just for an
additional information. But it seams to be the only solution for this
issue.

Thanks
 
Back
Top