Jump to content

Too many msg_txt(number) to msg_txt(sd,number) on the day [Only Share :P]


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

We know after implementation of "Multilanguages Support" on r17251.

It changes everything related msg_txt method.

from msg_txt(number) becomes msg_txt(sd,number).

 

If you found error on your src because you modify it, and you have too many modification that use msg_txt, don't worry to replace all of them using FIND -> manual REPLACE.

 

I just want to remain you all, use RegEx. :D

 

on Microsoft Visual Studio, use Find & Replace (CTRL+H)

 

find: {msg_txt\(}{[0-9]+}

replace with: \1sd,\2

post-5421-0-17734400-1365849851_thumb.png

 

for Notepad++ user (CTRL+H)

 

find: (msg_txt\()([0-9]+)

replace with: \1sd,\2

post-5421-0-71056500-1365849846_thumb.png

 

REPLACE ALL. :P if you doubt, you can try it one by one (find -> replace)

 

If you're sure now, you can FIND IN FILES (for Notepad++) and point it to your src folder or LOOK IN: ENTIRE SOLUTION for Microsoft VIsual Studio.

 

 

 

NOTE:

  • If you not using sd, but pl_sd, ssd, ect. maybe you need check them out after compiling. Why after compiling? Because you will know where is the error and it makes you easy to find them.  /no1 or you can use NULL
  • If you not 100% sure with this way, just don't do it!  /meh
  • I don't take responsibility of your src errors.  /omg
Edited by Cydh
  • Upvote 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...