Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1023:    }    if (sizeof(encoded) > digits) {    encoded = encoded[..digits-1];    }    return set(array_sscanf(encoded, "%d")[0]);    }       LocaleString|string doc()    {    return ::doc() + -  sprintf((string)LOCALE(0, "<p>%d is the highest priority and " +  sprintf((string)LOCALE(1120, "<p>%d is the highest priority and "    "0 the lowest.</p>"),    _max);    }   }      // =====================================================================   // String   // =====================================================================   class String   //! String variable
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1388:    // to ensure that the value doesn't change as a side-effect by    // another change.    foreach(current, string value)    {    mapping m = ([    "type": "checkbox",    "name": path(),    "value": value,    "checked": "checked",    ]); -  string title = sprintf(LOCALE(332,"(stale value %s)"), value); +  string title = sprintf(LOCALE(1121,"(stale value %s)"), value);    res += sprintf("<tr><td>%s</td><td>%s</td></tr>\n",    Roxen.make_tag( "input", m),    Roxen.html_encode_string(title));    }    return res + "</table>";    } else {    string current = _name (query());    int selected = 0;    string res = "<select name='"+path()+"'"+autosubmit+">\n";    foreach( get_choice_list(), mixed elem )