Undoing 'Modify source' option

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
mahesha
Posts: 8
Joined: Mon Oct 17, 2011 2:57 pm

Undoing 'Modify source' option

Post 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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
mahesha
Posts: 8
Joined: Mon Oct 17, 2011 2:57 pm

Post 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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Then only version control roll-back will help you in such case. Saved changes can't be undone.
Best regards,
Igor Siticov.
mahesha
Posts: 8
Joined: Mon Oct 17, 2011 2:57 pm

Post 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,
~
Mahesha E
Post Reply