@jreidinger hmm... Actually, i don't know more about the translate,is that mean 'Ycp' to 'ruby'?  If so, what should i need to take care when doing the translate. I just move this part of code from other part and did some testing about it. It seems worked fine. But i don't know how to make it more professional.
Any help will be grateful,thanks.