I don't know why
I know why, but I don't how how to use the right way as in:
"The file '{0}' already exists! Overwrite existing file?"
where the '{0}' is replaced by a variable in the translation list
the reason because your code adds a new entry each time is because, each time the text is different because the value in ent.ID and other variable change, and off course, each time you get a different string to translate.
MessageBox.Show(TextTranslation.Translate("Area enclosed by polyline ID# " + ent.ID + " = " + string.Format("{0:N6}", Math.Abs(Area)) + " ^2 drawing units." + Environment.NewLine + "Perimeter Length of polyline ID# " + string.Format("{0:N6}", perimeter) + " drawing units."));I think that currently, the way is to split each 'static' text as an entry in the translation list, so the code become:
MessageBox.Show(TextTranslation.Translate("Area enclosed by polyline ID# ") + ent.ID + " = " + string.Format("{0:N6} ", Math.Abs(Area)) + TextTranslation.Translate("^2 drawing units.") + Environment.NewLine + TextTranslation.Translate("Perimeter Length of polyline ID# ") + string.Format("{0:N6} ", perimeter) + TextTranslation.Translate("drawing units"));I use one
TextTranslation.Translate() function per 'static' text and I don't translate the texts that can change.
I also move the space before the "^2 drawing units." and " drawing units." string to the end of the previous text to avoid text that start with a space.
I remove the dot at the end of "drawing units.", because "drawing units" already exists in the translation list, so it will not be translated again.
Tested with a visual basic translation of this line of code .. and it seems to works.
++
David
Edit: What is your C# version ? I can't open the .sln file with mine (visual C# 2010 express)