mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-12-20 20:03:14 +00:00
06f07b0000
Add parser functions #timef and #timefl, giving access to the standard date/time formats of any language. StubObject::unstub() is no longer required since the user language is unstubbed in ParserOptions::__construct(). Bug: T223772 Change-Id: If158f45aad67ff017f9cd15889915b226e03f50c
28 lines
1.6 KiB
JSON
28 lines
1.6 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": []
|
|
},
|
|
"pfunc_desc": "Enhance parser with logical functions",
|
|
"pfunc_time_error": "Error: Invalid time.",
|
|
"pfunc_time_too_long": "Error: Too many #time calls.",
|
|
"pfunc_time_too_big": "Error: #time only supports years up to 9999.",
|
|
"pfunc_time_too_small": "Error: #time only supports years from 0.",
|
|
"pfunc_timef_bad_format": "Error: invalid format for #timef",
|
|
"pfunc_rel2abs_invalid_depth": "Error: Invalid depth in path: \"$1\" (tried to access a node above the root node).",
|
|
"pfunc_expr_stack_exhausted": "Expression error: Stack exhausted.",
|
|
"pfunc_expr_unexpected_number": "Expression error: Unexpected number.",
|
|
"pfunc_expr_preg_match_failure": "Expression error: Unexpected preg_match failure.",
|
|
"pfunc_expr_unrecognised_word": "Expression error: Unrecognized word \"$1\".",
|
|
"pfunc_expr_unexpected_operator": "Expression error: Unexpected $1 operator.",
|
|
"pfunc_expr_missing_operand": "Expression error: Missing operand for $1.",
|
|
"pfunc_expr_unexpected_closing_bracket": "Expression error: Unexpected closing bracket.",
|
|
"pfunc_expr_unrecognised_punctuation": "Expression error: Unrecognized punctuation character \"$1\".",
|
|
"pfunc_expr_unclosed_bracket": "Expression error: Unclosed bracket.",
|
|
"pfunc_expr_division_by_zero": "Division by zero.",
|
|
"pfunc_expr_invalid_argument": "Invalid argument for $1: less than -1 or greater than 1.",
|
|
"pfunc_expr_invalid_argument_ln": "Invalid argument for ln: less than or equal to 0.",
|
|
"pfunc_expr_unknown_error": "Expression error: Unknown error ($1).",
|
|
"pfunc_expr_not_a_number": "In $1: Result is not a number.",
|
|
"pfunc_string_too_long": "Error: String exceeds $1 character limit."
|
|
}
|