{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/43949535","id":43949535,"diff_hunk":"@@ -231,13 +231,46 @@ class BaseInflector\n         'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ű' => 'u', 'ý' => 'y', 'þ' => 'th',\n         'ÿ' => 'y',\n     ];\n+\n     /**\n-     * @var mixed Either a [[Transliterator]] or a string from which a [[Transliterator]]\n-     * can be built for transliteration used by [[slug()]] when intl is available.\n+     * @var mixed Either a [[Transliterator]], string name of preset defined in [[transliteratorAliases]]\n+     * or a string from which a [[Transliterator]] can be built for transliteration.\n+     * Used by [[transliterate()]] when intl is available.\n      * @see http://php.net/manual/en/transliterator.transliterate.php\n      */\n-    public static $transliterator = 'Any-Latin; NFKD';\n+    public static $transliterator = 'loose';\n \n+    /**\n+     * @var array The array of transliterator aliases.\n+     *  - key: alias name\n+     *  - value: either a [[Transliterator]] or a string from which a [[Transliterator]] can be built.\n+     *\n+     * Used by [[transliterate()]] when intl is available.\n+     *\n+     * The following aliases are defined by default:\n+     *  - `strict`: `Any-Latin; NFKD`. Transliteration rules are strict, letters will be transliterated with\n+     * the closest sound-representation chars. The result my contain any UTF-8 chars. For example:\n+     * `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to\n+     * `huò qǔ dào dochira Ukraí̈nsʹka: g̀,ê, Srpska: đ, n̂, d̂! ¿Español?`\n+     * - `medium`: `Any-Latin; Latin-ASCII`. Transliteration rules are medium-strict, letters will be transliterated\n+     * to characters of Latin-1 ASCII table. The result still my contain some special chars. For example:\n+     * `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to\n+     * `huo qu dao dochira Ukrainsʹka: g,e, Srpska: d, n, d! ¿Espanol?`\n+     * - `loose`: `Any-Latin; Latin-ASCII; [\\u0080-\\uffff] remove`. Transliteration rules are loose, letters will be\n+     * transliterated to characters of ASCII table. For example:\n+     * `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to\n+     * `huo qu dao dochira Ukrainska: g,e, Srpska: d, n, d! Espanol?`\n+     *\n+     * You can set your own aliases.\n+     * For detailed information see [unicode normalization forms](http://unicode.org/reports/tr15/#Normalization_Forms_Table)\n+     * @see http://unicode.org/reports/tr15/#Normalization_Forms_Table\n+     * @see transliterate()\n+     */\n+    public static $transliteratorAliases = [","path":"framework/helpers/BaseInflector.php","position":51,"original_position":51,"commit_id":"779abc6ca8fbd2d2b23e58642b24604df7002ea2","original_commit_id":"779abc6ca8fbd2d2b23e58642b24604df7002ea2","user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"body":"Instead of array constants could be used:\r\n\r\n```php\r\nconst TRANSLITERATOR_STRICT = 'Any-Latin; NFKD';\r\nconst TRANSLITERATOR_MEDIUM = 'Any-Latin; Latin-ASCII';\r\nconst TRANSLITERATOR_LOOSE = 'Any-Latin; Latin-ASCII; [\\u0080-\\uffff] remove';\r\n```","created_at":"2015-11-04T22:26:41Z","updated_at":"2015-11-04T22:26:41Z","html_url":"https://github.com/yiisoft/yii2/pull/10093#discussion_r43949535","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10093","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/43949535"},"html":{"href":"https://github.com/yiisoft/yii2/pull/10093#discussion_r43949535"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10093"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/10093","id":49752928,"html_url":"https://github.com/yiisoft/yii2/pull/10093","diff_url":"https://github.com/yiisoft/yii2/pull/10093.diff","patch_url":"https://github.com/yiisoft/yii2/pull/10093.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10093","number":10093,"state":"open","locked":false,"title":"BaseInflector::transliterate() is now public. Introduced different levels of transliteration strictness","user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"body":"Closes #10061 \r\n\r\n - [x] Code\r\n - [x] Tests\r\n - [x] Changelog\r\n - [ ] Docs\r\n - [ ] Code review\r\n\r\n\r\n\r\n:exclamation: Changes:\r\n - Default `$transliterator` changed from `Any-Latin; NFKD` to `Any-Latin; Latin-ASCII; [\\u0080-\\uffff] remove`, so the slug will be generated more correctly. Leaded to changing a test-case on old line 180","created_at":"2015-11-04T22:07:14Z","updated_at":"2015-11-04T22:26:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcc62c392859bb96ad339b669687de16dee67b21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10093/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/10093/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10093/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/779abc6ca8fbd2d2b23e58642b24604df7002ea2","head":{"label":"SilverFire:10061-inflector-translit","ref":"10061-inflector-translit","sha":"779abc6ca8fbd2d2b23e58642b24604df7002ea2","user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"repo":{"id":31335145,"name":"yii2","full_name":"SilverFire/yii2","owner":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SilverFire/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/SilverFire/yii2","forks_url":"https://api.github.com/repos/SilverFire/yii2/forks","keys_url":"https://api.github.com/repos/SilverFire/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SilverFire/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SilverFire/yii2/teams","hooks_url":"https://api.github.com/repos/SilverFire/yii2/hooks","issue_events_url":"https://api.github.com/repos/SilverFire/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/SilverFire/yii2/events","assignees_url":"https://api.github.com/repos/SilverFire/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/SilverFire/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/SilverFire/yii2/tags","blobs_url":"https://api.github.com/repos/SilverFire/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SilverFire/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SilverFire/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SilverFire/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SilverFire/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/SilverFire/yii2/languages","stargazers_url":"https://api.github.com/repos/SilverFire/yii2/stargazers","contributors_url":"https://api.github.com/repos/SilverFire/yii2/contributors","subscribers_url":"https://api.github.com/repos/SilverFire/yii2/subscribers","subscription_url":"https://api.github.com/repos/SilverFire/yii2/subscription","commits_url":"https://api.github.com/repos/SilverFire/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SilverFire/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SilverFire/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SilverFire/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SilverFire/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/SilverFire/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SilverFire/yii2/merges","archive_url":"https://api.github.com/repos/SilverFire/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SilverFire/yii2/downloads","issues_url":"https://api.github.com/repos/SilverFire/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/SilverFire/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/SilverFire/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/SilverFire/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SilverFire/yii2/labels{/name}","releases_url":"https://api.github.com/repos/SilverFire/yii2/releases{/id}","created_at":"2015-02-25T20:50:16Z","updated_at":"2015-02-25T20:50:19Z","pushed_at":"2015-11-04T22:08:35Z","git_url":"git://github.com/SilverFire/yii2.git","ssh_url":"git@github.com:SilverFire/yii2.git","clone_url":"https://github.com/SilverFire/yii2.git","svn_url":"https://github.com/SilverFire/yii2","homepage":"http://www.yiiframework.com","size":36699,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"6991145f6b8438eae28dbf01f6b7d9b6fc2885e4","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","created_at":"2012-02-13T15:32:36Z","updated_at":"2015-11-04T21:48:38Z","pushed_at":"2015-11-04T22:08:36Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":95534,"stargazers_count":6927,"watchers_count":6927,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4052,"mirror_url":null,"open_issues_count":1071,"forks":4052,"open_issues":1071,"watchers":6927,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10093"},"html":{"href":"https://github.com/yiisoft/yii2/pull/10093"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/10093"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/10093/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10093/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/10093/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/779abc6ca8fbd2d2b23e58642b24604df7002ea2"}}}}