2

2

I'm trying to translate some basic text labels (e.g. Priority, New Case, List Cases, Assigned to...) into Chinese for our testers to input bugs.

I'm using On-demand FogBugz so can't change lang.xml file to have my own translation. However Support suggested to me that I could use BugMonkey and javascript to dynamically replacing text on the page with text in my language. However I'm not familiar with JavasScript, searching on the bugmonkey script archive post and trying out a few scripts didn't seem to work either.

Could anyone suggest a code snippet I could use to simply plug in A->B to replace page element text? e.g. something like:

element.replace("New Case","Xin Wenti");
element.replace("AAA","BBB");
flag

2 Answers

0

Replacing text can be done. But the encoding is not correct, non-latin characters become ? after the replacement.

So no solution for now.

link|flag
0

This example works for me:

var corr = $('#idCorrespondentInfoBox label');
corr.html(corr.html().replace('Correspondent', '通讯员'));

I guess I just learned my first Chinese word! :-)

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.