| 68 | } |
| 69 | |
| 70 | static void splitStringKey(QString key, QString& name, int& lcid) |
| 71 | { |
| 72 | int index = key.lastIndexOf("_"); |
| 73 | if (index != -1) { |
| 74 | QString testName = key.left(index); |
| 75 | QString lcidStr = key.mid(index + 1); |
| 76 | int testLcid = lcidStr.toInt(); |
| 77 | if (WizIntToStr(testLcid) == lcidStr) { //is a number |
| 78 | name = testName; |
| 79 | lcid = testLcid; |
| 80 | return; |
| 81 | } |
| 82 | } |
| 83 | // |
| 84 | name = key; |
| 85 | lcid = 0; |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | void JSPlugin::initStrings() |
no test coverage detected