Page 1 of 1

Undoing 'Modify source' option

Posted: Thu Oct 20, 2011 12:03 pm
by mahesha
Hi Team,

As I understood, the hard-coded strings in an application can be translated using Expert Editors File-> Source -> With form option.
On click of 'Modify source' it is going to replace all the static strings with an ID indexed list.
But, The pascal file will be completely modified with this option.

Please let me know, is there any way to UNDO this process?
Any automated process to roll back to the original version of hard-coded strings.

Thanks in advance.

Posted: Thu Oct 20, 2011 4:43 pm
by isiticov
If you use IDE menu Edit | Undo (CTRL+Z shortcut) right after using TsiLang Exper modify source all the changes will be reverted.

Posted: Fri Oct 21, 2011 5:46 am
by mahesha
right after using TsiLang Exper modify source
I am not using it right after. I have done the 'modify source' last week, and that modified my entire code-base.
I wonder is there any way to get my old code base back.

I am trying to write some regular expression to replace the string.
By the way, share if you have any powerful regex ready one.

Posted: Fri Oct 21, 2011 5:40 pm
by isiticov
Then only version control roll-back will help you in such case. Saved changes can't be undone.

Posted: Sat Oct 22, 2011 8:33 am
by mahesha
But, i've written a small RegEx to replace the code at .pas files.
works fine with me.

FYI, the Regular Expression:
Replace: ('IDS_)([0-9]*)('[ ])(\(\*)(.*?)(\*\))
With: \5

There is a scope of improvements.
Regards,