localization - Best Practice to Localizable.strings in Swift -


i have 1 question best way resolve problem.

my project contains many viewcontrollers, , views contain buttons or labels, right? need localize labels, think if need write texts in respective labels language, tedious work.

well, because scenario 1 extension uiviewcontroller, read labels or buttons , use current text key. e.g.

let myviewcontroller = uiviewcontroller(); let mylabeltitle = uilabel(); let mylabelcontent = uilabel();  mylabeltitle.text = "what do?"; mylabelcontent.text = "tell me more you.";  myviewcontroller.view.addsubview(mylabeltitle); myviewcontroller.view.addsubview(mylabelcontent);  myviewcontroller.localizelabels() // <- extension, work fine. 

the question about, localizable.string construct this

in english

"what do?" = "what do?" "tell me more you." = "tell me more you." 

in portuguese

"what do?" = "o que vocĂȘ faz?" "tell me more you." = "me conte sobre vocĂȘ." 

this question, can use localizable.string this?

check out jtlocalize - https://github.com/joytunes/jtlocalize nice project aims localization workflow end end.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -