For example, if the word is "Users" and the replacement is "utilisateurs", is there any function that will allow me to convert the replacement string to the same capital / non-capital level as the source word?
This is the final part of the main language translation using jquery, textnodes, exact and partial string matching.
Now I just want to make sure that the last and professional touch is to make sure that the case of translated / substituted words matches the case of original words / phrases.
I am not sure how I can apply this as a replacement call.
I want it to be as a function
function CopyCase(original,new) {
}
Just don’t know how to do it.
source
share