![]() |
| Other sponsors |
| Want to become a sponsor? |
Russian locale for NagVis 1.5rc3
Russian locale for NagVis 1.5rc3. Hope this will appear in 1.5 release.
To make NagVis be able to work with utf-8 you should patch to files (and mk_livestatus also, if you use it):
/usr/local/nagvis/share/server/core/definesmatches.php
//define('MATCH_STRING', '/^[0-9a-z\s\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]+$/i');
//define('MATCH_STRING_EMPTY', '/^[0-9a-z\s\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]*$/i');
//define('MATCH_STRING_NO_SPACE', '/^[0-9a-z\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]+$/i');
//define('MATCH_STRING_NO_SPACE_EMPTY', '/^[0-9a-z\:\+\[\]\(\)\_\.\,\-\&\?\!\#\@\=\/\\\]*$/i');
// by Alexander Yegorov
define('MATCH_STRING', '/^[0-9a-zа-яё\s\:\+\[\]\(\)\_\.\,\-\?\!\#\=\/\\\]+$/iu');
define('MATCH_STRING_EMPTY', '/^[[0-9a-zа-яё\s\:\+\[\]\(\)\_\.\,\-\?\!\#\=\/\\\]*$/iu');
define('MATCH_STRING_NO_SPACE', '/^[[0-9a-zа-яё\:\+\[\]\(\)\_\.\,\-\?\!\#\@\=\/\\\]+$/iu');
define('MATCH_STRING_NO_SPACE_EMPTY', '/^[[0-9a-zа-яё\:\+\[\]\(\)\_\.\,\-\?\!\#\@\=\/\\\]*$/iu');
/usr/local/nagvis/share/frontend/wui/js/wui.js
156c156,158
< sRegex = sRegex.replace(/\/[igm]*$/, "");
---
> //sRegex = sRegex.replace(/\/[igm]*$/, "");
> // pathced by Alexander Yegorov
> sRegex = sRegex.replace(/\/[iugm]*$/, "");
