| 157 | } |
| 158 | |
| 159 | static cell_t sm_GetLanguageByCode(IPluginContext *pContext, const cell_t *params) |
| 160 | { |
| 161 | char *code; |
| 162 | unsigned int langid; |
| 163 | |
| 164 | pContext->LocalToString(params[1], &code); |
| 165 | |
| 166 | if (g_Translator.GetLanguageByCode(code, &langid)) |
| 167 | return langid; |
| 168 | |
| 169 | return -1; |
| 170 | } |
| 171 | |
| 172 | static cell_t sm_GetLanguageByName(IPluginContext *pContext, const cell_t *params) |
| 173 | { |
nothing calls this directly
no test coverage detected