From 9b323b1cb74501f2c43dafc0bd5e6aa887911300 Mon Sep 17 00:00:00 2001 From: Lix Date: Sun, 31 Jul 2022 16:50:12 +0800 Subject: [PATCH 1/3] Add simplified Chinese language --- lang/zh-CN.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 lang/zh-CN.php diff --git a/lang/zh-CN.php b/lang/zh-CN.php new file mode 100644 index 0000000..46b6ae6 --- /dev/null +++ b/lang/zh-CN.php @@ -0,0 +1,54 @@ + '字段 {field} 必填', + 'valid_email' => '字段 {field} 必须是一个有效的邮箱地址', + 'max_len' => '字段 {field} 不能大于 {param} 个字符', + 'min_len' => '字段 {field} 不能小于 {param} 个字符', + 'exact_len' => '字段 {field} 必须恰好是 {param} 个字符', + 'between_len' => '字段 {field} 必须介于 {param[0]}-{param[1]} 个字符之间', + 'alpha' => '字段 {field} 只能包含字母', + 'alpha_numeric' => '字段 {field} 只能包含字母和数字', + 'alpha_numeric_space' => '字段 {field} 只能包含字母、数字和空格', + 'alpha_numeric_dash' => '字段 {field} 只能包含字母、数字、中划线(-)和下划线(_)', + 'alpha_dash' => '字段 {field} 只能包含字母、中划线(-)和下划线(_)', + 'alpha_space' => '字段 {field} 只能包含字母和空格', + 'numeric' => '字段 {field} 必须是一个数字', + 'integer' => '字段 {field} 必须是一个整数', + 'boolean' => '字段 {field} 必须是布尔值', + 'float' => '字段 {field} 必须是小数', + 'valid_url' => '字段 {field} 必须是一个有效的网址', + 'url_exists' => '字段 {field} 网址不存在', + 'valid_ip' => '字段 {field} 必须是一个有效的IP地址', + 'valid_ipv4' => '字段 {field} 必须是一个有效的IPv4地址', + 'valid_ipv6' => '字段 {field} 必须是一个有效的IPv6地址', + 'guidv4' => '字段 {field} 必须是一个有效的GUID', + 'valid_cc' => '字段 {field} 不是一个有效的信用卡账号', + 'valid_name' => '字段 {field} 应该是一全名', + 'contains' => '字段 {field} 只能是以下其中之一: {param}', + 'contains_list' => '字段 {field} 不是一个有效的值', + 'doesnt_contain_list' => '字段 {field} 包含一个不被接受的值', + 'street_address' => '字段 {field} 必须是一个有效的街道地址,注:不适用于中文)', + 'date' => '字段 {field} 必须是一个有效的日期', + 'min_numeric' => '字段 {field} 必须是一个数字, 且大于等于 {param}', + 'max_numeric' => '字段 {field} 必须是一个数字, 且小于等于 {param}', + 'min_age' => '字段 {field} 需要是个大于等于 {param} 的年龄', + 'invalid' => '字段 {field} 无效', + 'starts' => '字段 {field} 需要以 {param} 开始', + 'extension' => '字段 {field} 只支持以下文件格式: {param},注:不检查Mime-Type', + 'required_file' => '字段 {field} 文件上传不成功', + 'equalsfield' => '字段 {field} 不等于字段 {param}', + 'iban' => '字段 {field} 必须是一个有效的国际银行帐户号码(IBAN)', + 'phone_number' => '字段 {field} 必须是一个有效的手机号码', + 'regex' => '字段 {field} 必须是一个有效格式的值', + 'valid_json_string' => '字段 {field} 必须是一个有效的JSON字符串', + 'valid_array_size_greater' => '字段 {field} 必须是一个数组,且至少有 {param} 个元素', + 'valid_array_size_lesser' => '字段 {field} 必须是一个数组,且最多有 {param} 个元素', + 'valid_array_size_equal' => '字段 {field} 必须是一个数组,且有 {param} 个元素', + 'valid_persian_name' => '字段 {field} 应该是一个有效的波斯语/达里语或阿拉伯语名称', + 'valid_eng_per_pas_name' => '字段 {field} 应该是一个有效的英文、波斯语/达里语/帕什图语或阿拉伯语名称', + 'valid_persian_digit' => '字段 {field} 应该是波斯语/达里语或阿拉伯语格式的有效数字', + 'valid_persian_text' => '字段 {field} 应该是一个有效的波斯语/达里语或阿拉伯语格式的文本', + 'valid_pashtu_text' => '字段 {field} 应该是普什图语格式的有效文字', + 'valid_twitter' => '字段 {field} 不是一个有效的Twitter账号', +); From d63e254fff025169db586427bd4633ef8cdf36fc Mon Sep 17 00:00:00 2001 From: Lix Date: Sun, 14 Aug 2022 16:59:49 +0800 Subject: [PATCH 2/3] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7ef5933..68b1578 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "wixel/gump", - "description": "A fast, extensible & stand-alone PHP input validation class that allows you to validate any data.", + "name": "oranzh/gump", + "description": "Only for me, this is from Wixel", "keywords": ["validation", "validator", "validate"], "authors": [ { From ecd7668bf4ab5c19c57b390d732e54ea01102e69 Mon Sep 17 00:00:00 2001 From: Filis Futsarov Date: Sat, 20 Aug 2022 12:06:48 +0200 Subject: [PATCH 3/3] Delete composer.json --- composer.json | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 composer.json diff --git a/composer.json b/composer.json deleted file mode 100644 index 68b1578..0000000 --- a/composer.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "oranzh/gump", - "description": "Only for me, this is from Wixel", - "keywords": ["validation", "validator", "validate"], - "authors": [ - { - "name": "Sean Nieuwoudt", - "homepage": "https://wixelhq.com" - }, - { - "name": "Filis Futsarov", - "homepage": "https://filis.me" - } - ], - "autoload": { - "files": ["gump.class.php"], - "psr-4": { "GUMP\\": "src/" } - }, - "license": "MIT", - "homepage": "https://wixelhq.com/", - "require-dev": { - "mockery/mockery": "^1.3", - "maddhatter/markdown-table": "^1.0", - "phpunit/phpunit": "^6|^9", - "kamermans/docblock-reflection": "^1.0", - "php-coveralls/php-coveralls": "^2.5" - }, - "require": { - "php": ">=7.1", - "ext-mbstring": "*", - "ext-json": "*", - "ext-intl": "*", - "ext-bcmath": "*", - "ext-iconv": "*" - }, - "autoload-dev": { - "psr-4": { "Tests\\": "tests/" } - }, - "scripts": { - "test": "php ./vendor/bin/phpunit", - "dump": "php ./ci/dump_filters_docs.php && php ./ci/dump_validators_docs.php", - "check": "php ./ci/check_filters_docs.php && php ./ci/check_validators_docs.php && php ./ci/check_validators_translations.php" - } -}