SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Undoing 'Modify source' option

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
mahesha



Joined: 17 Oct 2011
Posts: 8

PostPosted: Thu Oct 20, 2011 12:03 pm    Post subject: Undoing 'Modify source' option Reply with quote

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.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Oct 20, 2011 4:43 pm    Post subject: Reply with quote

If you use IDE menu Edit | Undo (CTRL+Z shortcut) right after using TsiLang Exper modify source all the changes will be reverted.
Back to top
View user's profile Send private message
mahesha



Joined: 17 Oct 2011
Posts: 8

PostPosted: Fri Oct 21, 2011 5:46 am    Post subject: Reply with quote

Quote:

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.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Fri Oct 21, 2011 5:40 pm    Post subject: Reply with quote

Then only version control roll-back will help you in such case. Saved changes can't be undone.
Back to top
View user's profile Send private message
mahesha



Joined: 17 Oct 2011
Posts: 8

PostPosted: Sat Oct 22, 2011 8:33 am    Post subject: Reply with quote

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,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group