Compare commits

...
234 Commits
Author SHA1 Message Date
caouecs dab4d008b9 doc 2021-04-21 11:13:29 +02:00
GitHub Action 763b436d11 Updated status of translations 2021-04-21 09:11:03 +00:00
Fred Delrieu 34c0185eee Merge pull request #1639 from andrey-helldar/patch/2021-04-17/mk
[mk] Machine translation of missing keys
2021-04-21 11:10:32 +02:00
GitHub Action c7960c8067 Updated status of translations 2021-04-21 09:07:27 +00:00
caouecs 0e74e55161 excludes 2021-04-21 11:06:52 +02:00
caouecs ed6e5cff7a doc 2021-04-21 10:47:09 +02:00
GitHub Action 90dd9c9c83 Updated status of translations 2021-04-21 08:38:46 +00:00
caouecs bf9c7188d8 [tr] exclude file 2021-04-21 10:38:09 +02:00
Fred Delrieu 7b772dc3a5 Merge pull request #1705 from sotten/master
[de] small translation improvements
2021-04-21 10:34:36 +02:00
GitHub Action 84d7afc7f2 Updated status of translations 2021-04-21 06:21:09 +00:00
Fred Delrieu c0b4a34672 Merge pull request #1704 from kohlerdominik/de_CH/sync-with-de
[de_CH] sync changes from de
2021-04-21 08:20:36 +02:00
sotten 84f410b7c3 small translation improvements 2021-04-20 23:14:22 +02:00
Dominik Kohler dc6b8fbd38 [de_CH] sync changes from de 2021-04-20 21:57:37 +02:00
GitHub Action a9212ba917 Updated status of translations 2021-04-20 19:34:24 +00:00
caouecs c411bdc127 [de] exclude 2021-04-20 21:33:46 +02:00
GitHub Action 3aa9255349 Updated status of translations 2021-04-20 19:25:05 +00:00
caouecs c6194663a0 [de_CH] fix exclude 2021-04-20 21:24:29 +02:00
GitHub Action a851a3cad6 Updated status of translations 2021-04-20 19:23:06 +00:00
caouecs 031c48d920 [de_CH] fix exclude 2021-04-20 21:22:30 +02:00
GitHub Action c30c103197 Updated status of translations 2021-04-20 19:19:51 +00:00
GitHub Action db421fb73a Updating excludes files 2021-04-20 19:19:49 +00:00
Fred Delrieu 7188365196 Merge pull request #1703 from kohlerdominik/de_ch/add-excludes
[de_CH] copy excludes from de
2021-04-20 21:19:27 +02:00
GitHub Action 3dda0438e1 Updated status of translations 2021-04-20 19:19:07 +00:00
caouecs 14dfb128fa [de] exclude 2021-04-20 21:18:33 +02:00
caouecs fd0847b7ff [de] exclude, the time to fix the todo script 2021-04-20 21:17:36 +02:00
Dominik Kohler 0118ef8d76 [de_CH] copy excludes from de 2021-04-20 21:17:14 +02:00
GitHub Action 359bbd5749 Updated status of translations 2021-04-20 19:15:17 +00:00
GitHub Action 6bcc49ed59 Updating excludes files 2021-04-20 19:15:15 +00:00
Fred Delrieu 6802ce4def Merge pull request #1700 from kohlerdominik/de/fixes
[de] Fixes and excludes
2021-04-20 21:14:47 +02:00
Dominik Kohler c74f1ab96b [de] fixes 2021-04-20 21:11:52 +02:00
caouecs 2c10dc9b27 doc 2021-04-20 20:06:14 +02:00
GitHub Action a2cbe1e62b Updated status of translations 2021-04-20 18:00:57 +00:00
Fred Delrieu 8582325a6d Merge pull request #1649 from andrey-helldar/patch/2021-04-17/si
[si] Machine translation of missing keys
2021-04-20 20:00:25 +02:00
GitHub Action fc4835168e Updated status of translations 2021-04-20 17:56:13 +00:00
Fred Delrieu 502b1c3261 Merge pull request #1648 from andrey-helldar/patch/2021-04-17/ro
[ro] Machine translation of missing keys
2021-04-20 19:55:47 +02:00
caouecs e0d8c4576f [id] fix 2021-04-20 19:49:27 +02:00
Fred Delrieu 1aad1f779e Merge pull request #1689 from andrey-helldar/patch/2021-04-17/id
[id] Machine translation of missing keys
2021-04-20 19:46:15 +02:00
GitHub Action 35b3ab6fc0 Updated status of translations 2021-04-20 17:44:58 +00:00
Fred Delrieu bfd8ac369c Merge pull request #1678 from andrey-helldar/patch/2021-04-17/el
[el] Machine translation of missing keys
2021-04-20 19:44:28 +02:00
GitHub Action 078b00cc7c Updated status of translations 2021-04-20 14:22:58 +00:00
Fred Delrieu 76c21db53b Merge pull request #1647 from andrey-helldar/patch/2021-04-17/pt_BR
[pt_BR] Machine translation of missing keys
2021-04-20 16:22:11 +02:00
Andrey Helldar cf10b07997 Merge pull request #14 from HabiboIV/patch/2021-04-17/pt_BR
update translations
2021-04-20 16:59:49 +03:00
GitHub Action adf5652757 Updated status of translations 2021-04-20 11:55:35 +00:00
Fred Delrieu d5a9e83f21 Merge pull request #1656 from andrey-helldar/patch/2021-04-17/sv
[sv] Machine translation of missing keys
2021-04-20 13:55:11 +02:00
Fred Delrieu 2b67e76a0e Merge pull request #1699 from andrey-helldar/patch/2021-04-17/hy
[hy] Fixed missing key
2021-04-20 13:53:28 +02:00
GitHub Action 060c2405d4 Updated status of translations 2021-04-20 11:50:52 +00:00
Fred Delrieu 03c254f827 Merge pull request #1686 from andrey-helldar/patch/2021-04-17/hr
[hr] Machine translation of missing keys
2021-04-20 13:50:27 +02:00
Andrey Helldar fad38bb509 [sv] Fixed keys 2021-04-20 14:17:07 +03:00
Andrey Helldar 3e391c7f10 [pt_BR] Fixed keys 2021-04-20 14:11:25 +03:00
Andrey Helldar e4c577be83 [hy] Fix 2021-04-20 13:56:57 +03:00
HabiboIV c257ff01ca update translations 2021-04-20 12:10:23 +02:00
Andrey Helldar fb6e8363e1 [el] Fixes 2021-04-20 12:49:25 +03:00
GitHub Action b9ab4d52c0 Updated status of translations 2021-04-20 08:58:18 +00:00
Fred Delrieu 3f30d59818 Merge pull request #1645 from andrey-helldar/patch/2021-04-17/pl
[pl] Machine translation of missing keys
2021-04-20 10:57:52 +02:00
GitHub Action abbd917c09 Updated status of translations 2021-04-20 07:04:17 +00:00
Fred Delrieu a5444db687 Merge pull request #1697 from mertasan/fix-machine-translation
[tr] fix: Machine translation of missing keys, other fixes.
2021-04-20 09:03:45 +02:00
Fred Delrieu 969f39bcb6 Merge pull request #1698 from seakmengc/master
[km] Update some translations
2021-04-20 07:07:08 +02:00
GitHub Action 586fe5a009 Updated status of translations 2021-04-19 21:21:31 +00:00
GitHub Action b59e1f54c4 Updating translations keys 2021-04-19 21:21:28 +00:00
SeakmengChheang 38e6258b3d [km] Update some translations 2021-04-20 04:20:51 +07:00
GitHub Action ba5d43ca95 Updated status of translations 2021-04-19 21:03:42 +00:00
Fred Delrieu 198e10333a Merge pull request #1634 from andrey-helldar/patch/2021-04-17/km
[km] Machine translation of missing keys
2021-04-19 23:03:13 +02:00
caouecs dc4a253ec3 [hy] json file 2021-04-19 22:56:59 +02:00
GitHub Action e8996e8cec Updated status of translations 2021-04-19 20:54:39 +00:00
Fred Delrieu e49c413377 Merge pull request #1688 from andrey-helldar/patch/2021-04-17/hy
[hy] Machine translation of missing keys
2021-04-19 22:54:09 +02:00
caouecs ce9b12b057 doc 2021-04-19 18:19:53 +02:00
GitHub Action 308b6490bc Updated status of translations 2021-04-19 16:18:29 +00:00
caouecs 3e5cf1d56d [zh_*] Qatar 2021-04-19 18:17:55 +02:00
GitHub Action b83be8a8f6 Updated status of translations 2021-04-19 16:16:06 +00:00
Fred Delrieu cbb584eb0b Merge pull request #1643 from andrey-helldar/patch/2021-04-17/ne
[ne] Machine translation of missing keys
2021-04-19 18:15:35 +02:00
GitHub Action fc6d851a51 Updated status of translations 2021-04-19 13:58:02 +00:00
Fred Delrieu b443f6a3cf [zh_TW] Exclude ID 2021-04-19 15:57:36 +02:00
Fred Delrieu 87330db4b3 [zh_HK] Exclude ID 2021-04-19 15:57:20 +02:00
Fred Delrieu bb72d67b2c [zh_CN] exclude ID 2021-04-19 15:57:04 +02:00
GitHub Action 3ed7046da1 Updated status of translations 2021-04-19 13:53:56 +00:00
Fred Delrieu 6d187368d1 Merge pull request #1637 from andrey-helldar/patch/2021-04-17/lt
[lt] Machine translation of missing keys
2021-04-19 15:53:20 +02:00
Fred Delrieu c39e987326 [af] fix validation-inline.php 2021-04-19 11:16:33 +02:00
GitHub Action 63eefd6335 Updated status of translations 2021-04-19 09:15:47 +00:00
Fred Delrieu fb16c40f63 Merge pull request #1626 from andrey-helldar/patch/2021-04-17/af
[af] Machine translation of missing keys
2021-04-19 11:15:12 +02:00
Mert Aşan 81a6bf9d2f fix in_array 2021-04-19 05:11:35 +03:00
Mert Aşan 4bfc3fe13f fix validation.php 2021-04-19 05:01:15 +03:00
Mert Aşan e358f2c869 fix custom message 2021-04-19 05:01:06 +03:00
Mert Aşan d29cc715ba fix validation-inline 2021-04-19 04:52:33 +03:00
Mert Aşan b8862067f2 fix json 2021-04-19 04:26:55 +03:00
Mert Aşan 11baf67e4c Machine translation of missing keys 2021-04-19 03:55:47 +03:00
caouecs 888cafc81e doc 2021-04-18 20:39:24 +02:00
GitHub Action f9ecb974fe Updated status of translations 2021-04-18 17:08:30 +00:00
Fred Delrieu 336405cf0a Merge pull request #1695 from kohlerdominik/cleanup/de_CH
[de_CH] Machine translation of missing keys | CLEANUP
2021-04-18 19:08:07 +02:00
GitHub Action 1dff849a02 Updated status of translations 2021-04-18 17:07:45 +00:00
Fred Delrieu 5dc56d28da Merge pull request #1696 from kohlerdominik/cleanup/de
[de] Machine translation of missing keys | CLEANUP
2021-04-18 19:07:19 +02:00
Dominik Kohler 29cf77e6d1 [de] fixed incorrect grammar 2021-04-18 18:13:43 +02:00
Dominik Kohler 33f7774aa9 [de] Clean up of machine translation 2021-04-18 18:12:55 +02:00
Dominik Kohler 82c79f4dbb [de_CH] Clean up of machine translation 2021-04-18 17:57:14 +02:00
caouecs b4c56d7d5c [pt] validation-inline.php 2021-04-18 16:45:21 +02:00
GitHub Action dfb2c7089f Updated status of translations 2021-04-18 14:44:15 +00:00
Fred Delrieu a4d9401ce5 Merge pull request #1646 from andrey-helldar/patch/2021-04-17/pt
[pt] Machine translation of missing keys
2021-04-18 16:43:48 +02:00
caouecs 1759a5eb4f [ko] json file 2021-04-18 16:43:08 +02:00
GitHub Action 2ed16e9b84 Updated status of translations 2021-04-18 14:41:50 +00:00
Fred Delrieu ad31f0bdff Merge pull request #1636 from andrey-helldar/patch/2021-04-17/ko
[ko] Machine translation of missing keys
2021-04-18 16:41:25 +02:00
GitHub Action 00f0a3e92a Updated status of translations 2021-04-18 14:40:57 +00:00
Fred Delrieu 4c6d50c64b Merge pull request #1693 from Kamandlou/master
update fa.json
2021-04-18 16:40:28 +02:00
caouecs f44e1c392c [zh_CN][zh_HK][zh_TW] add spaces 2021-04-18 16:39:20 +02:00
GitHub Action 7197c5815b Updated status of translations 2021-04-18 14:29:54 +00:00
Fred Delrieu 6e436494d9 Merge pull request #1668 from andrey-helldar/patch/2021-04-17/zh_TW
[zh_TW] Machine translation of missing keys
2021-04-18 16:29:31 +02:00
Fred Delrieu 03d9b45529 Merge pull request #1667 from andrey-helldar/patch/2021-04-17/zh_HK
[zh_HK] Machine translation of missing keys
2021-04-18 16:29:27 +02:00
caouecs fc2425dcd8 [zh_CN] add spaces 2021-04-18 16:29:05 +02:00
GitHub Action 972281d9ca Updated status of translations 2021-04-18 14:23:30 +00:00
Fred Delrieu 60345e6462 Merge pull request #1666 from andrey-helldar/patch/2021-04-17/zh_CN
[zh_CN] Machine translation of missing keys
2021-04-18 16:23:01 +02:00
GitHub Action e29978235a Updating translations keys 2021-04-18 14:20:51 +00:00
Fred Delrieu 5781af14e2 Merge pull request #1694 from ab192130/patch-1
Added AZ attributes.
2021-04-18 16:20:22 +02:00
ab192130 7fc5425e45 Added attributes. 2021-04-18 12:26:06 +04:00
amirhossein kamandloo 7147ccbae0 update fa.json 2021-04-18 12:15:25 +04:30
Fred Delrieu 4e87f33ade Merge pull request #1629 from andrey-helldar/patch/2021-04-17/14-24
[script] Removed duplicate call line
2021-04-17 21:33:49 +02:00
Fred Delrieu 08cae73d4f Merge pull request #1691 from andrey-helldar/patch/2021-04-17/15-27
[script] Added a script for creating commits separated by localizations
2021-04-17 21:19:35 +02:00
Andrey Helldar dabbf7ac99 Added list of exceptions with matching words 2021-04-17 15:57:42 +03:00
Andrey Helldar ab2418a01a [script] Added a script for creating commits separated by localizations 2021-04-17 15:28:13 +03:00
Andrey Helldar 9fd292346a [zh_TW] Machine translation of missing keys 2021-04-17 15:15:53 +03:00
Andrey Helldar 6bfad32d5a [zh_HK] Machine translation of missing keys 2021-04-17 15:15:49 +03:00
Andrey Helldar 95d3e60db5 [zh_CN] Machine translation of missing keys 2021-04-17 15:15:45 +03:00
Andrey Helldar 0f7b377f61 [sv] Machine translation of missing keys 2021-04-17 15:14:53 +03:00
Andrey Helldar 76949cebde [si] Machine translation of missing keys 2021-04-17 15:14:25 +03:00
Andrey Helldar 53f00b62f3 [ro] Machine translation of missing keys 2021-04-17 15:14:14 +03:00
Andrey Helldar 9df9831cdc [pt_BR] Machine translation of missing keys 2021-04-17 15:14:10 +03:00
Andrey Helldar 20bf5c1308 [pt] Machine translation of missing keys 2021-04-17 15:14:06 +03:00
Andrey Helldar 51c04fcf77 [pl] Machine translation of missing keys 2021-04-17 15:13:58 +03:00
Andrey Helldar e9e3625e8d [ne] Machine translation of missing keys 2021-04-17 15:13:43 +03:00
Andrey Helldar adf86c45a4 [mk] Machine translation of missing keys 2021-04-17 15:13:23 +03:00
Andrey Helldar b0f220bbcb [lt] Machine translation of missing keys 2021-04-17 15:13:16 +03:00
Andrey Helldar 6bc089c113 [ko] Machine translation of missing keys 2021-04-17 15:13:12 +03:00
Andrey Helldar cc440db68a [km] Machine translation of missing keys 2021-04-17 15:13:04 +03:00
Andrey Helldar e803aa984e [id] Machine translation of missing keys 2021-04-17 15:12:40 +03:00
Andrey Helldar b2298331fb [hy] Machine translation of missing keys 2021-04-17 15:12:36 +03:00
Andrey Helldar ab852c3d29 [hr] Machine translation of missing keys 2021-04-17 15:12:28 +03:00
Andrey Helldar dea88ce69c [el] Machine translation of missing keys 2021-04-17 15:11:46 +03:00
Andrey Helldar 64b6576cdd [de_CH] Machine translation of missing keys 2021-04-17 15:11:42 +03:00
Andrey Helldar cbcd849624 [de] Machine translation of missing keys 2021-04-17 15:11:38 +03:00
Andrey Helldar 046b098f38 Removed duplicate call line 2021-04-17 14:25:36 +03:00
Andrey Helldar c7c8226ed2 [af] Machine translation of missing keys 2021-04-17 13:50:34 +03:00
Fred Delrieu c9b5e06a2c Merge pull request #1625 from andrey-helldar/patch/2021-04-16/20-21
Added processors for translating localizations
2021-04-17 10:51:48 +02:00
Andrey Helldar 71ef8f9286 Removed interruption of the handler in case of errors 2021-04-17 03:11:30 +03:00
Andrey Helldar 985d723462 Added output of a message to the console about the current file being processed 2021-04-17 02:22:29 +03:00
Andrey Helldar 336a09b8be Replaced text mapping to number due to collision during translation 2021-04-17 02:15:59 +03:00
Andrey Helldar 91907c193f Added processors for translating localizations 2021-04-17 02:12:12 +03:00
GitHub Action 1f758de74f Updated status of translations 2021-04-16 19:04:34 +00:00
GitHub Action 833e292c0d Updating excludes files 2021-04-16 19:04:32 +00:00
Fred Delrieu 14b4e1f305 Merge pull request #1621 from itsfaqih/master
[id] Fixed Missed Translations
2021-04-16 21:04:01 +02:00
Andrey Helldar 4a73c7b181 Finalized classes 2021-04-16 21:19:02 +03:00
caouecs e8d0a62e0b doc 2021-04-16 19:24:44 +02:00
GitHub Action d3f28401e6 Updated status of translations 2021-04-16 16:24:37 +00:00
GitHub Action c1c6108571 Updating excludes files 2021-04-16 16:24:34 +00:00
Fred Delrieu 7f19db2720 Merge pull request #1623 from sotten/master
[de] update translation
2021-04-16 18:24:10 +02:00
GitHub Action 0c03abaddf Updated status of translations 2021-04-16 16:21:59 +00:00
Fred Delrieu 1e1ff85c26 Merge pull request #1624 from dinhquochan/patch-1
[9.x][vi] Update the names of the countries, missing translations
2021-04-16 18:21:33 +02:00
GitHub Action c7e11667b6 Updated status of translations 2021-04-16 16:21:16 +00:00
Fred Delrieu 2c56c5a778 Merge pull request #1620 from andrey-helldar/patch/2021-04-15/12-39
Adding a percentage of translations
2021-04-16 18:20:40 +02:00
Dinh Quoc Han 9a54b05281 remove: status.md 2021-04-16 21:13:49 +07:00
Dinh Quoc Han 08ff7bcb86 vi: update docs 2021-04-16 21:12:06 +07:00
sotten 9525f213ea remove "Lens" from exclusion list
remove "Lens" from exclusion list.
2021-04-16 16:03:58 +02:00
Dinh Quoc Han b4b72510c8 vi: translation missing geography 2021-04-16 20:52:21 +07:00
sotten 3b6510e86e Update de files 2021-04-16 13:02:34 +02:00
Andrey Helldar 6ac6ebeede Improved display of the number of translated lines to the total number 2021-04-16 10:11:18 +03:00
GitHub Action 2301e8a198 Updated status of translations 2021-04-16 06:18:04 +00:00
Fred Delrieu bae13f7791 Merge pull request #1622 from sotten/master
[de] some german translations
2021-04-16 08:17:38 +02:00
Faqih Muntashir 6073c2bd1f Fixed mistakes based on review 2021-04-16 08:33:59 +07:00
Andrey Helldar 883161477a Improved calculation of translation status 2021-04-16 02:18:25 +03:00
Faqih Muntashir 642c935d18 Fix merge conflict 2021-04-16 02:47:50 +07:00
Faqih Muntashir 3d6efbea45 Fixed Indonesian missed translations 2021-04-16 02:44:44 +07:00
GitHub Action 7e77ca8a52 Updated status of translations 2021-04-15 17:55:08 +00:00
GitHub Action b11a6df004 Updating excludes files 2021-04-15 17:55:06 +00:00
Fred Delrieu b2992b77ae Merge pull request #1616 from itsfaqih/master
[id] Complete Indonesian Translations Update
2021-04-15 19:54:13 +02:00
sotten da347eb3a6 some german translations
some german translations
Update locales/de/de.json
2021-04-15 14:17:52 +02:00
Andrey Helldar 43d564081c Added display of the number of translated localizations 2021-04-15 13:01:27 +03:00
Andrey Helldar 7432c2c5e1 Adding a percentage of translations 2021-04-15 12:53:02 +03:00
Faqih Muntashir 1372eb73e5 Fixed writing mistakes in Indonesian validation-inline.php 2021-04-15 16:51:51 +07:00
Faqih Muntashir 44df9991a7 Completed Indonesian translations 2021-04-15 15:18:22 +07:00
Fred Delrieu abce69f071 Merge pull request #1619 from andrey-helldar/patch/2021-04-15/10-02
Added check for ":Attribute" when running tests
2021-04-15 10:02:17 +02:00
Fred Delrieu 6100d71a8a Merge pull request #1618 from andrey-helldar/patch/2021-04-15/09-56
Update README.md
2021-04-15 10:00:50 +02:00
GitHub Action c749236577 Updated status of translations 2021-04-15 08:00:26 +00:00
GitHub Action 1d79ddd183 Updating excludes files 2021-04-15 08:00:24 +00:00
GitHub Action f5431ec78d Updating the file 2021-04-15 08:00:24 +00:00
Fred Delrieu bb110d07d5 Merge pull request #1617 from dinhquochan/patch-1
[9.x][vi] Completed missing translations
2021-04-15 09:59:57 +02:00
GitHub Action 68df6d1b63 Updated status of translations 2021-04-15 07:49:52 +00:00
Fred Delrieu c8a9c01c29 Merge pull request #1608 from SilNex/master
[KO] Translate 'ko.json', 'validation.json', 'validation-inline.json'
2021-04-15 09:49:24 +02:00
Andrey Helldar c878474eb2 Added check for ":Attribute" when running tests 2021-04-15 10:06:08 +03:00
Andrey Helldar 212911b815 Update README.md 2021-04-15 10:00:47 +03:00
Faqih Muntashir a3232fdb21 More Indonesian translation and fixes in id.json 2021-04-15 13:45:38 +07:00
Faqih Muntashir de8b66d3de More Indonesian translation in id.json 2021-04-15 13:40:14 +07:00
Dinh Quoc Han 4a6cb10b8f fix: removed :attribute in validation-inline.php 2021-04-15 13:30:21 +07:00
Dinh Quoc Han 326faa6490 [vi]: completed missing translations 2021-04-15 13:24:47 +07:00
Faqih Muntashir 574ca93dd4 Update ID Lang 2021-04-15 12:46:02 +07:00
silnex 63562e8ff8 Fix typo 2021-04-15 12:40:21 +09:00
silnex a176757428 translated validations 2021-04-15 12:38:08 +09:00
silnex f8502efcc1 translated ko.json 2021-04-15 12:38:08 +09:00
caouecs d58d7a08d6 doc for v9 2021-04-14 19:46:34 +02:00
Fred Delrieu c3e51ee39e Merge pull request #1607 from andrey-helldar/patch/2021-04-12/12-50
[9.x] Improving the project structure
2021-04-14 19:42:53 +02:00
caouecs 54048d1319 doc 2021-04-14 19:41:45 +02:00
Fred Delrieu de25dfcee1 Merge pull request #1614 from andrey-helldar/patch/2021-04-14/20-12
`Projects based on this package` title renamed to `Translation managers`
2021-04-14 19:27:54 +02:00
Andrey Helldar 5731137c7f Projects based on this package title renamed to Translation managers 2021-04-14 20:14:07 +03:00
Andrey Helldar f9214fe5c8 Merge remote-tracking branch 'caouecs/master' into patch/2021-04-12/12-50 2021-04-13 23:48:26 +03:00
GitHub Action a3df3d19ed Updated status of translations 2021-04-13 20:37:28 +00:00
Fred Delrieu c1f0901d40 Merge pull request #1610 from astalpaert/translations/nl/json
[NL] 🗣 Added some missing NL translations for json
2021-04-13 22:37:00 +02:00
Fred Delrieu b350230276 Merge pull request #1609 from faxunil/patch-1
Update auth.php
2021-04-13 22:33:43 +02:00
Arno Stalpaert e7bf14ffd0 [NL] 🗣 Added some missing NL translations for json 2021-04-13 21:04:28 +02:00
Csermely Gergely 90873071cd Update auth.php
Translated to HUN. Br. Gergely
2021-04-13 16:24:09 +02:00
Andrey Helldar eba8e4366e Fixed methods 2021-04-12 21:58:40 +03:00
Andrey Helldar 23836f219c Merge remote-tracking branch 'caouecs/master' into patch/2021-04-12/12-50 2021-04-12 20:51:17 +03:00
Andrey Helldar 5dfc53c44b Custom methods replaced with php functions 2021-04-12 20:49:32 +03:00
Andrey Helldar 74c629d2e4 Fixed character escaping 2021-04-12 20:49:11 +03:00
GitHub Action 104bfc9a53 Updated status of translations 2021-04-12 17:38:11 +00:00
GitHub Action 9436258f91 Updating excludes files 2021-04-12 17:38:08 +00:00
Fred Delrieu 31b4018134 Merge pull request #1603 from astalpaert/translations/nl/validation
[NL] 🗣 Added missing NL translations for validation and validation-inline
2021-04-12 19:37:42 +02:00
Andrey Helldar c59d301486 Str::contains method replaced with str_contains 2021-04-12 15:17:54 +03:00
Andrey Helldar 82d7088c89 Improving the project structure 2021-04-12 13:48:23 +03:00
GitHub Action 8aa6542abb Updating excludes files 2021-04-10 20:12:13 +00:00
GitHub Action 80d63385e8 Updating translations keys 2021-04-10 20:12:13 +00:00
Fred Delrieu eacb8aa80a Merge pull request #1604 from andrey-helldar/patch/2021-04-10/15-07
Added check of exclusion files for keys relevance
2021-04-10 22:11:46 +02:00
Andrey Helldar def0e7f302 Added templates for saving files 2021-04-10 19:23:06 +03:00
Andrey Helldar 26f04e2548 Added check of exclusion files for keys relevance 2021-04-10 19:22:50 +03:00
Arno Stalpaert 646e025be8 [NL] 🗣 Added missing NL translations for validation and validation-inline 2021-04-10 16:27:39 +02:00
Fred Delrieu 16a11227f1 Merge pull request #1602 from andrey-helldar/patch/2021-04-08/21-55
Added auto-update `docs/referents.md` file
2021-04-10 15:16:15 +02:00
Andrey Helldar 8bfd924f1d Merge branch 'patch/2021-04-08/21-55' 2021-04-10 14:35:17 +03:00
Fred Delrieu 593c5ae1a0 Merge pull request #1600 from andrey-helldar/patch/2021-04-08/21-06
Added validation for the `:attribute` string in the `validation-inline.php` files
2021-04-10 11:14:34 +02:00
Fred Delrieu 3cb8ef151c Merge pull request #1601 from andrey-helldar/patch/2021-04-08/21-47
Added missing localization for the referent
2021-04-10 11:12:01 +02:00
Andrey Helldar 6a2ec0b9db An updated link to the referents page in README.md 2021-04-08 22:52:40 +03:00
Andrey Helldar d0fb24c76d Removed hard linking to file names 2021-04-08 22:48:07 +03:00
Andrey Helldar addd6c7371 Merge remote-tracking branch 'origin/patch/2021-04-08/21-06' into patch/2021-04-08/21-55 2021-04-08 22:38:12 +03:00
Andrey Helldar 404e6d14dc Added auto-update docs/referents.md file 2021-04-08 22:37:52 +03:00
Andrey Helldar 89a6e9b452 Added missing localization for the referent 2021-04-08 21:54:18 +03:00
Andrey Helldar 7981c6c99e Added validation for the :attribute string in the validation-inline.php files 2021-04-08 21:42:37 +03:00
Andrey Helldar 42dfefcec5 Added output of extended test error messages 2021-04-08 21:41:45 +03:00
Fred Delrieu 3e984457fd Merge pull request #1599 from luisprmat/master
Update contributing docs. Clarification about validation-online
2021-04-08 18:17:37 +02:00
Luis Antonio Parrado 4f1ac9b1be Fix typo 2021-04-08 11:14:00 -05:00
Luis Antonio Parrado 9cc01fea64 Fix typo 2021-04-08 10:58:17 -05:00
Luis Antonio Parrado 31d1569d8c Update contributing docs. Clarification about validation-online 2021-04-08 10:18:04 -05:00
830 changed files with 25349 additions and 66394 deletions

No files matched your search

@@ -1,4 +1,4 @@
name: update-status
name: self-update
on:
push:
branches:
@@ -44,6 +44,34 @@ jobs:
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Updating referents
if: success()
run: php app/referents.php
- name: Commit files after referents update
id: referents
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updating the `docs/referents.md` file"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Checking for excludes
if: success()
run: php app/excludes.php
- name: Commit files after checking for excludes
id: excludes
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updating excludes files"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Status update
if: success()
run: php app/status.php
@@ -60,6 +88,6 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
if: success() && (steps.commit_keys.outputs.is_dirty == 1 || steps.commit_status.outputs.is_dirty == 1)
if: success() && (steps.commit_keys.outputs.is_dirty == 1 || steps.referents.outputs.is_dirty == 1 || steps.excludes.outputs.is_dirty == 1 || steps.commit_status.outputs.is_dirty == 1)
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
+6 -5
View File
@@ -12,11 +12,12 @@ In this repository, you can find the lang files for the [Laravel Framework 4/5/6
## News
* in version 6.1, we propose a new file by language: `validation-inline.php` ( see #1268 )
* in version 7, we propose new directory names to follow ISO-15897 ( see #1269 )
* in version 8, we propose new directory names to follow Php Intl ( see #1453 )
* in version 6.1, we propose a new file by language: `validation-inline.php` ( see [#1268](https://github.com/Laravel-Lang/lang/issues/1268) )
* in version 7, we propose new directory names to follow ISO-15897 ( see [#1269](https://github.com/Laravel-Lang/lang/issues/1269) )
* in version 8, we propose new directory names to follow Php Intl ( see [#1453](https://github.com/Laravel-Lang/lang/pull/1453) )
* in version 9, we propose new structure of files ( see [#1606](https://github.com/Laravel-Lang/lang/discussions/1606), [#1607](https://github.com/Laravel-Lang/lang/pull/1607) )
## Projects based on this package
## Translation managers
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
@@ -25,5 +26,5 @@ In this repository, you can find the lang files for the [Laravel Framework 4/5/6
## Credits
- [Referents by language](docs/referents.md)
- [Referents by language](https://laravel-lang.github.io/lang/referents.html)
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
+7
View File
@@ -0,0 +1,7 @@
YANDEX_API_KEY=
YANDEX_API_FOLDER_ID=
GIT_REPOSITORY=origin
GIT_SOURCE_BRANCH=master
GIT_TARGET_BRANCH=patch
GIT_MESSAGE="[%s] Some message"
+3
View File
@@ -0,0 +1,3 @@
requests/
.env
+1 -3
View File
@@ -2,8 +2,6 @@
use LaravelLang\Lang\Application;
$app = Application::make(
return Application::make(
realpath(__DIR__ . '/../../')
);
return $app;
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Excludes;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Excludes::make());
+2 -4
View File
@@ -2,13 +2,11 @@
use LaravelLang\Lang\Processors\Json;
use LaravelLang\Lang\Processors\Php;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Json::make(), JsonFilesystem::make());
$app->processor(Php::make(), PhpFilesystem::make());
$app->processor(Json::make());
$app->processor(Php::make());
+39 -29
View File
@@ -2,20 +2,20 @@
namespace LaravelLang\Lang;
use Dotenv\Dotenv;
use Helldar\Support\Concerns\Makeable;
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Processable;
use LaravelLang\Lang\Facades\Env;
final class Application implements ApplicationContract
{
use Makeable;
protected Filesystem $filesystem;
public function __construct(
protected string $base_path
) {
$this->createDotenv()->safeLoad();
}
public function basePath(): string
@@ -25,7 +25,22 @@ final class Application implements ApplicationContract
public function sourcePath(string $filename = null): string
{
return $this->path('script/en/' . $this->cleanPath($filename));
return $this->path('source/' . $this->cleanPath($filename));
}
public function localePath(string $locale = null): string
{
return $this->path('locales/' . $this->cleanPath($locale));
}
public function excludePath(string $locale): string
{
return $this->path('excludes/' . $this->cleanPath($locale) . '.php');
}
public function resourcePath(string $filename): string
{
return $this->path('app/resources/' . $this->cleanPath($filename));
}
public function path(string $path = null): string
@@ -37,16 +52,6 @@ final class Application implements ApplicationContract
return $this->basePath();
}
public function excludePath(string $locale): string
{
return $this->path('excludes/' . $locale . '.php');
}
public function resourcePath(string $filename): string
{
return $this->path('app/resources/' . $filename);
}
public function cleanPath(string $path = null): ?string
{
if (! empty($path)) {
@@ -56,22 +61,27 @@ final class Application implements ApplicationContract
return null;
}
public function filesystem(Filesystem $filesystem): ApplicationContract
public function processor(Processable $processor): void
{
$this->filesystem = $filesystem->application($this);
return $this;
}
public function getFilesystem(): Filesystem
{
return $this->filesystem;
}
public function processor(Processable $processor, Filesystem $filesystem): void
{
$this->filesystem($filesystem);
$processor->application($this)->run();
}
protected function createDotenv(): Dotenv
{
return Dotenv::create(
Env::getRepository(),
$this->environmentPath(),
$this->environmentFile()
);
}
protected function environmentPath(): string
{
return $this->path('app');
}
protected function environmentFile(): string
{
return '.env';
}
}
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace LaravelLang\Lang\Concerns;
trait Contains
{
protected function isJson(string $filename): bool
{
return str_ends_with($filename, 'json');
}
protected function isMarkdown(string $filename): bool
{
return str_ends_with($filename, 'md');
}
protected function isPhp(string $filename): bool
{
return ! $this->isJson($filename);
}
protected function isValidation(string $filename): bool
{
return str_starts_with($filename, 'validation');
}
}
+105
View File
@@ -0,0 +1,105 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\Support\Facades\Helpers\Digit;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Services\Counter;
trait Countable
{
protected array $count = [];
protected string $count_prefix = 'count_';
protected string $count_suffix = '_percents';
protected string $count_suffix_all = 'all';
protected function addCount(array $items, string $key = 'all'): void
{
$key = $this->countKeyPrefix($key);
if (! isset($this->count[$key])) {
$this->count[$key] = 0;
}
$this->count[$key] += $this->calcCount($items);
}
protected function getCount(string $key = 'all'): int
{
$key = $this->countKeyPrefix($key);
return $this->count[$key];
}
protected function setCount(int $count, string $key = 'all'): void
{
$key = $this->countKeyPrefix($key);
$this->count[$key] = $count;
}
protected function getCounts(): array
{
$this->calcPercents();
$this->countToString();
return $this->count;
}
protected function calcPercents(): void
{
$all = $this->getCount();
$all_key = $this->countKeyPrefix($this->count_suffix_all);
$items = $this->count;
foreach ($items as $key => $value) {
if ($key !== $all_key) {
$value = $all - $value;
$percent = $this->calcPercent($all, $value);
$new_key = $this->countKeySuffix($key);
$this->setCount($value, $key);
$this->setCount($percent, $new_key);
}
}
}
protected function calcPercent(int $all, int $count): int
{
return round(($count / $all) * 100);
}
protected function countToString(): void
{
foreach ($this->count as &$value) {
$value = $this->countFormat($value);
}
}
protected function calcCount(int|array $value): int
{
return is_int($value) ? $value : Counter::make()->count($value);
}
protected function countKeyPrefix(string $key): string
{
return Str::start($key, $this->count_prefix);
}
protected function countKeySuffix(string $key): string
{
return Str::finish($key, $this->count_suffix);
}
protected function countFormat(int $count): string
{
return Digit::toShort($count);
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\Support\Facades\Helpers\Instance;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
trait Storable
{
protected ?string $stub = null;
protected function prepareToStore(array|string|Stringable $content): string
{
if (Instance::of($content, Stringable::class)) {
return $content->toString();
}
if (is_array($content)) {
return implode(PHP_EOL, $content);
}
return $content;
}
protected function getStub(string $filename): string
{
return $this->findStub($this->stub ?: $filename);
}
protected function findStub(string $filename): string
{
$basename = pathinfo($filename, PATHINFO_FILENAME);
$path = $this->app->resourcePath('arrays/' . $basename . '.stub');
return file_exists($path) ? $path : Stub::PHP_ARRAY;
}
}
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace LaravelLang\Lang\Constants;
final class Referents
{
public const ar = ['mohamedsabil83', 'Khuthaily'];
public const da = ['jensstigaard'];
public const de = ['WhereIsLucas'];
public const es = ['luisprmat'];
public const fr = ['caouecs', 'WhereIsLucas'];
public const it = ['masterix21'];
public const mk = ['keljtanoski'];
public const nl = ['WhereIsLucas'];
public const pt = ['jorgercosta'];
public const ru = ['andrey-helldar'];
public const sr_Cyrl = ['LukaLatkovic'];
public const sr_Latn = ['LukaLatkovic'];
public const sr_Latn_ME = ['LukaLatkovic'];
public const uk = ['MrAlKuz'];
public const vi = ['dinhquochan'];
public const zh_CN = ['overtrue'];
public const zh_HK = ['overtrue'];
public const zh_TW = ['overtrue'];
}
+2
View File
@@ -8,6 +8,8 @@ final class Resource
public const LOCALE = 'locale.stub';
public const REFERENTS = 'referents.stub';
public const COMPONENT_ALL_TRANSLATED = 'components/translated.stub';
public const COMPONENT_LINK = 'components/link.stub';
+4 -6
View File
@@ -10,17 +10,15 @@ interface Application
public function sourcePath(string $filename = null): string;
public function path(string $path = null): string;
public function localePath(string $locale = null): string;
public function excludePath(string $locale): string;
public function resourcePath(string $filename): string;
public function path(string $path = null): string;
public function cleanPath(string $path = null): ?string;
public function filesystem(Filesystem $filesystem): self;
public function getFilesystem(): Filesystem;
public function processor(Processable $processor, Filesystem $filesystem): void;
public function processor(Processable $processor): void;
}
+2 -1
View File
@@ -2,6 +2,7 @@
namespace LaravelLang\Lang\Contracts;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Application;
interface Filesystem
@@ -10,5 +11,5 @@ interface Filesystem
public function load(string $path): array;
public function store(string $path, array|string $content): void;
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void;
}
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace LaravelLang\Lang\Facades;
use Dotenv\Repository\AdapterRepository;
use Dotenv\Repository\RepositoryInterface;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Support\Env as Support;
/**
* @method static mixed get(string $key, mixed $default = null)
* @method static AdapterRepository|RepositoryInterface getRepository()
*/
class Env extends BaseFacade
{
protected static function getFacadeAccessor()
{
return Support::class;
}
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace LaravelLang\Lang\Facades;
use Helldar\Support\Facades\BaseFacade;
use LaravelLang\Lang\Services\Translate as Service;
/**
* @method static string translate(string $locale, string $text)
*/
final class Translate extends BaseFacade
{
protected static function getFacadeAccessor()
{
return Service::class;
}
}
+75
View File
@@ -0,0 +1,75 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Excludes extends Processor
{
protected string $target_path = 'excludes';
protected array $keys = [];
protected ?string $stub = 'exclude.stub';
public function run(): void
{
$this->loadKeys();
$this->handle();
}
protected function handle(): void
{
foreach ($this->targetFiles() as $filename) {
$this->process($this->getTargetPath($filename), $filename);
}
}
protected function process(string $target_path, string $filename, string $locale = null): void
{
$target = $this->load($target_path);
$content = $this->merge($this->keys, $target, $filename);
$this->sort($content);
$this->store($target_path, array_values($content), $this->stub, true);
}
protected function merge(array $source, array $target, string $filename): array
{
return array_intersect($source, $target);
}
protected function sort(array &$array): void
{
$array = Arr::sort(array_unique($array));
}
protected function loadKeys(): void
{
foreach ($this->sourceFiles() as $filename) {
$keys = $this->getSourceKeys($filename);
$this->keys = array_merge($this->keys, $keys);
}
}
protected function sourceFiles(): array
{
return File::names($this->getSourcePath());
}
protected function targetFiles(): array
{
return File::names($this->getTargetPath());
}
protected function getSourceKeys(string $filename): array
{
$items = $this->load($this->getSourcePath($filename));
return array_keys($items);
}
}
+98
View File
@@ -0,0 +1,98 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
class Git extends Processor
{
public function run(): void
{
foreach ($this->locales() as $locale) {
dump($locale . '...');
$this->checkout();
$this->createBranch($locale);
$this->add($locale);
$this->commit($locale);
$this->push($locale);
}
}
protected function locales(): array
{
return Directory::names($this->getLocalesPath());
}
protected function checkout(): void
{
$this->git(sprintf('checkout "%s"', $this->getSourceBranchName()));
}
protected function add(string $locale): void
{
$this->git(sprintf('add locales/%s/*', $locale));
}
protected function commit(string $locale): void
{
$message = $this->getMessage($locale);
$this->git(sprintf('commit -m "%s"', $message));
}
protected function push(string $locale): void
{
$repository = env('GIT_REPOSITORY', 'origin');
$branch = $this->getTargetBranchName($locale);
$this->git(sprintf('push --set-upstream %s %s', $repository, $branch));
}
protected function createBranch(string $locale): void
{
$source_branch = $this->getSourceBranchName();
$target_branch = $this->getTargetBranchName($locale);
$this->git(sprintf('checkout -b "%s" "%s"', $target_branch, $source_branch));
}
protected function git(string $command): void
{
$directory = $this->getGitDirectory();
exec('git -C "' . $directory . '" ' . $command);
}
protected function getLocalesPath(): string
{
return $this->app->localePath();
}
protected function getGitDirectory(): string
{
$directory = $this->app->basePath();
return realpath($directory);
}
protected function getSourceBranchName(): string
{
return env('GIT_SOURCE_BRANCH', 'main');
}
protected function getTargetBranchName(string $locale): string
{
$prefix = env('GIT_TARGET_BRANCH', 'patch');
return sprintf('%s/%s/%s', $prefix, date('Y-m-d'), $locale);
}
protected function getMessage(string $locale): string
{
$message = env('GIT_MESSAGE');
return sprintf($message, $locale);
}
}
+2 -9
View File
@@ -2,23 +2,16 @@
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Json extends Processor
{
protected string $target_path = 'json';
protected string $target_path = 'locales';
public function run(): void
{
foreach ($this->locales() as $locale) {
$target_path = $this->getTargetPath($locale);
$target_path = $this->getTargetPath($locale . '/' . $locale . '.json');
$this->process($target_path, 'en.json', $locale);
}
}
protected function locales(): array
{
return File::names($this->getTargetPath());
}
}
+2 -8
View File
@@ -2,12 +2,11 @@
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class Php extends Processor
{
protected string $target_path = 'src';
protected string $target_path = 'locales';
public function run(): void
{
@@ -22,11 +21,6 @@ final class Php extends Processor
protected function files(string $locale): array
{
return File::names($this->getTargetPath($locale));
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
return File::names($this->getTargetPath($locale), fn ($filename) => $this->isPhp($filename));
}
}
+55 -11
View File
@@ -4,12 +4,21 @@ namespace LaravelLang\Lang\Processors;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Str;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Application;
use LaravelLang\Lang\Concerns\Contains;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Processable;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Filesystem\Base;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Markdown as MarkdownFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
abstract class Processor implements Processable
{
use Contains;
use Makeable;
protected Application $app;
@@ -18,6 +27,9 @@ abstract class Processor implements Processable
protected string $target_path;
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
public function application(Application $app): Processable
{
$this->app = $app;
@@ -45,14 +57,14 @@ abstract class Processor implements Processable
return array_merge($source, $target);
}
protected function process(string $target_path, string $filename, string $locale): void
protected function process(string $target_path, string $filename, string $locale = null): void
{
$source = $this->source($filename);
$target = $this->load($target_path);
$content = $this->merge($source, $target, $filename);
$this->store($target_path, $content);
$this->store($target_path, $content, $filename);
}
protected function source(string $filename): array
@@ -83,11 +95,6 @@ abstract class Processor implements Processable
return $this->app->sourcePath($filename);
}
protected function isValidation(string $filename): bool
{
return Str::startsWith($filename, 'validation');
}
protected function sort(array &$array): void
{
$array = Arr::ksort($array);
@@ -95,11 +102,48 @@ abstract class Processor implements Processable
protected function load(string $path): array
{
return $this->app->getFilesystem()->load($path);
return $this->getFilesystem($path)->load($path);
}
protected function store(string $path, array $content): void
protected function locales(): array
{
$this->app->getFilesystem()->store($path, $content);
return Directory::names($this->getTargetPath());
}
protected function getFilesystem(string $filename): Filesystem
{
$class = $this->getFilesystemClass($filename);
if ($this->filesystems[$class] ?? false) {
return $this->filesystems[$class];
}
return $this->filesystems[$class] = $this->loadFilesystem($class);
}
protected function getFilesystemClass(string $path): string
{
return match (true) {
$this->isJson($path) => JsonFilesystem::class,
$this->isMarkdown($path) => MarkdownFilesystem::class,
default => PhpFilesystem::class,
};
}
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
{
return $filesystem::make()->application($this->app);
}
protected function store(string $path, array|string|Stringable $content, string $source_filename = null, bool $is_simple = false): void
{
$stub = $this->getStubPath($source_filename);
$this->getFilesystem($path)->store($path, $content, $is_simple, $stub);
}
protected function getStubPath(?string $filename): ?string
{
return empty($filename) ? Stub::PHP_ARRAY : $filename;
}
}
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Constants\Referents as Constants;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
use ReflectionClass;
use ReflectionClassConstant;
final class Referents extends Processor
{
use Template;
protected string $target_path = 'locales';
public function run(): void
{
$map = $this->map();
$result = $this->compileContent($map);
$this->store('docs/referents.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Compilator::make($this->app)->items($items);
}
protected function map(): array
{
$locales = array_flip($this->locales());
return array_merge($locales, $this->assignees());
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
}
protected function assignees(): array
{
$class = new ReflectionClass(Constants::class);
return $class->getConstants(ReflectionClassConstant::IS_PUBLIC);
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ final class Locales extends Processor
$filename = Str::slug($locale);
$this->save($this->pathStatus($filename . '.md'), $result);
$this->store($this->pathStatus($filename . '.md'), $result);
}
}
+5 -3
View File
@@ -5,17 +5,19 @@ namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Status;
class Main extends Processor
final class Main extends Processor
{
protected function saving(): void
{
$result = $this->compileContent($this->locales);
$this->save('docs/status.md', $result);
$this->store('docs/status.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Status::make($this->app)->items($items);
return Status::make($this->app)
->extend($this->getCounts())
->items($items);
}
}
+15 -56
View File
@@ -5,19 +5,15 @@ namespace LaravelLang\Lang\Processors\Statuses;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
use Helldar\Support\Facades\Helpers\Str;
use Helldar\Support\Facades\Tools\Sorter;
use LaravelLang\Lang\Concerns\Countable;
use LaravelLang\Lang\Concerns\Excludes;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
use LaravelLang\Lang\Services\Filesystem\Base;
use LaravelLang\Lang\Services\Filesystem\Json as JsonFilesystem;
use LaravelLang\Lang\Services\Filesystem\Php as PhpFilesystem;
abstract class Processor extends BaseProcessor
{
use Countable;
use Excludes;
use Template;
@@ -25,9 +21,6 @@ abstract class Processor extends BaseProcessor
protected string $target_path = 'statuses';
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
protected array $source_files = [];
protected array $locales = [];
@@ -52,7 +45,7 @@ abstract class Processor extends BaseProcessor
}
}
protected function process(string $target_path, string $filename, string $locale): void
protected function process(string $target_path, string $filename, string $locale = null): void
{
$corrected = $this->getCorrectedFilename($filename, $locale);
@@ -61,20 +54,19 @@ abstract class Processor extends BaseProcessor
$is_validation = $this->isValidation($filename);
$this->addCount($source);
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
$key = $this->getFileBasename($corrected);
$this->locales[$locale][$key] = $diff;
$this->addCount($diff, 'diff');
} else {
$this->locales[$locale] = [];
}
}
protected function save(string $path, Stringable $content): void
{
File::store($path, $content->toString());
}
protected function compare(array $source, array $target, string $locale, bool $is_validation): array
{
return array_filter($target,
@@ -103,37 +95,9 @@ abstract class Processor extends BaseProcessor
return array_sum($items);
}
protected function load(string $path): array
protected function getLocalePath(string $locale = null): string
{
return $this->getFilesystem($path)->load($path);
}
protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesystem
{
return $filesystem::make()->application($this->app);
}
protected function getFilesystem(string $filename): Filesystem
{
$class = $this->getFilesystemClass($filename);
if ($this->filesystems[$class] ?? false) {
return $this->filesystems[$class];
}
return $this->filesystems[$class] = $this->loadFilesystem($class);
}
protected function getFilesystemClass(string $path): string
{
return $this->isJson($path) ? JsonFilesystem::class : PhpFilesystem::class;
}
protected function getLangPath(string $locale = null): string
{
$locale = $this->app->cleanPath($locale);
return $this->app->path('src/' . $locale);
return $this->app->localePath($locale);
}
protected function getFileBasename(string $filename): string
@@ -150,7 +114,7 @@ abstract class Processor extends BaseProcessor
protected function locales(): array
{
return Directory::names($this->getLangPath());
return Directory::names($this->getLocalePath());
}
protected function files(): array
@@ -161,12 +125,12 @@ abstract class Processor extends BaseProcessor
$files = File::names($this->getSourcePath());
return $this->source_files = Arr::sort($files, static function (string $a, string $b) {
return $this->source_files = Arr::sort($files, function (string $a, string $b) {
if ($a === $b) {
return 0;
}
if (Str::endsWith($a, '.json')) {
if ($this->isJson($a)) {
return 1;
}
@@ -178,18 +142,13 @@ abstract class Processor extends BaseProcessor
protected function target(string $locale, string $filename): array
{
$path = $this->isJson($filename)
? $this->app->path('json/' . $filename)
: $this->app->path('src/' . $locale . '/' . $filename);
$corrected = $this->getCorrectedFilename($filename, $locale);
$path = $this->getLocalePath($locale . '/' . $corrected);
return $this->load($path);
}
protected function isJson(string $filename): bool
{
return Str::endsWith($filename, '.json');
}
protected function ensureDirectory(): void
{
//
@@ -0,0 +1,99 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Facades\Translate;
use Throwable;
final class Translator extends Processor
{
protected function saving(): void
{
foreach ($this->locales as $locale => $items) {
foreach ($items as $filename => $values) {
dump(sprintf('[%s] %s...', $locale, $filename));
$filename = $this->restoreFilename($locale, $filename);
$this->translateKeys($locale, $filename, $values);
}
}
}
protected function translateKeys(string $locale, string $filename, array $items): void
{
try {
foreach ($items as &$item) {
$item = $this->translate($locale, $item);
}
}
catch (Throwable $e) {
dump($e->getMessage());
}
finally {
$this->storing($locale, $filename, $items);
}
}
protected function storing(string $locale, string $filename, array $items): void
{
$target_path = $this->getLocalePath($locale) . '/' . $filename;
$source_filename = $this->isJson($filename) ? 'en.json' : $filename;
$source = $this->source($source_filename);
$target = $this->target($locale, $filename);
$target = array_merge($target, $items);
$content = $this->merge($source, $target, $filename);
$this->store($target_path, $content, $filename);
}
protected function translate(string $locale, string $text): string
{
$map = [];
$transformed = $this->transformText($text, $map);
$translated = Translate::translate($locale, $transformed);
return $this->restoreText($translated, $map);
}
protected function transformText(string $text, array &$map): string
{
preg_match_all('/:[a-z]+/', $text, $matches);
foreach ($matches as $match) {
foreach ($match as $key) {
$map[$key] = $this->getRandomValue($map);
}
}
return $this->transformReplace($text, $map);
}
protected function restoreText(string $text, array $map): string
{
return $this->transformReplace($text, array_flip($map));
}
protected function transformReplace(string $text, array $items): string
{
return str_replace(array_keys($items), array_values($items), $text);
}
protected function getRandomValue(array $items): int
{
$random = random_int(1000, 9999);
return in_array($random, $items, true) ? $this->getRandomValue($items) : $random;
}
protected function restoreFilename(string $locale, string $filename): string
{
return $this->isJson($filename) ? $locale . '.json' : $filename . '.php';
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Collection extends Compiler
final class Collection extends Compiler
{
public function toString(): string
{
+8 -3
View File
@@ -3,18 +3,21 @@
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Concerns\Contains;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Contracts\Application;
use LaravelLang\Lang\Contracts\Stringable;
abstract class Compiler implements Stringable
{
use Contains;
use Makeable;
use Template;
protected array $items;
protected array $extend = [];
public function __construct(
protected Application $app
) {
@@ -27,8 +30,10 @@ abstract class Compiler implements Stringable
return $this;
}
protected function isJson(string $filename): bool
public function extend(array $values): self
{
return Str::contains($filename, 'json');
$this->extend = $values;
return $this;
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Locale extends Compiler
final class Locale extends Compiler
{
public function toString(): string
{
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
final class Referents extends Compiler
{
public function toString(): string
{
$content = $this->compileContent();
return $this->template(Resource::REFERENTS, compact('content'));
}
protected function compileContent(): string
{
$rows = [];
foreach ($this->items as $key => $value) {
$rows[] = $this->mapRow($key, $value);
}
return Table::make($this->app)->items($rows)->toString();
}
protected function mapRow(string $key, int|array $values): array
{
$row = [$key, ''];
if (is_array($values)) {
$row[1] = $this->mapAssignees($values);
}
return $row;
}
protected function mapAssignees(array $values): string
{
$result = [];
foreach ($values as $value) {
$result[] = $this->template(Resource::COMPONENT_LINK, [
'title' => '@' . $value,
'link' => 'https://github.com/' . $value,
]);
}
return implode(', ', $result);
}
}
+9 -4
View File
@@ -6,15 +6,13 @@ use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Models\Locale;
class Status extends Compiler
final class Status extends Compiler
{
protected int $columns = 8;
public function toString(): string
{
$content = $this->compileContent();
return $this->template(Resource::STATUS, compact('content'));
return $this->template(Resource::STATUS, $this->getContent());
}
protected function grouped(): array
@@ -79,6 +77,13 @@ class Status extends Compiler
return $row;
}
protected function getContent(): array
{
$content = $this->compileContent();
return array_merge(compact('content'), $this->extend);
}
protected function link(?string $value): string
{
return empty($value) ? '' : sprintf('statuses/%s.md', Str::slug($value));
+1 -1
View File
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Table extends Compiler
final class Table extends Compiler
{
protected string $align = 'left';
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace LaravelLang\Lang\Services;
use Helldar\Support\Concerns\Makeable;
final class Counter
{
use Makeable;
protected int $count = 0;
public function count(array $items): int
{
$this->calculate($items);
return $this->count;
}
protected function calculate(array $items): void
{
foreach ($items as $item) {
is_array($item) ? $this->calculate($item) : $this->count++;
}
}
}
+8
View File
@@ -3,12 +3,15 @@
namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Arr;
use LaravelLang\Lang\Application;
use LaravelLang\Lang\Concerns\Storable;
use LaravelLang\Lang\Contracts\Filesystem;
abstract class Base implements Filesystem
{
use Makeable;
use Storable;
protected Application $app;
@@ -23,4 +26,9 @@ abstract class Base implements Filesystem
{
return [];
}
protected function correctValues(array $items): array
{
return Arr::map($items, static fn ($value) => str_replace('\"', '"', $value), true);
}
}
+10 -2
View File
@@ -4,6 +4,8 @@ namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Json extends Base
{
@@ -11,11 +13,17 @@ final class Json extends Base
{
$content = Pretty::make()->loadRaw($path);
return json_decode($content, true);
$items = json_decode($content, true);
return $this->correctValues($items);
}
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
if ($is_simple) {
$content = array_values($content);
}
Arr::storeAsJson($path, $content, false, JSON_UNESCAPED_UNICODE ^ JSON_PRETTY_PRINT);
}
}
+5 -1
View File
@@ -3,11 +3,15 @@
namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\Support\Facades\Helpers\Filesystem\File;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Markdown extends Base
{
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$content = $this->prepareToStore($content);
File::store($path, $content);
}
}
+11 -4
View File
@@ -4,19 +4,26 @@ namespace LaravelLang\Lang\Services\Filesystem;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\PrettyArray\Services\Formatter;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Contracts\Stringable;
final class Php extends Base
{
public function load(string $path): array
{
return Pretty::make()->load($path);
$items = Pretty::make()->load($path);
return $this->correctValues($items);
}
public function store(string $path, array|string $content): void
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$service = Formatter::make();
$service->setEqualsAlign();
Pretty::make($service->raw($content))->store($path);
$is_simple
? $service->setSimple()
: $service->setEqualsAlign();
Pretty::make($service->raw($content))->store($path, $this->getStub($stub));
}
}
+67
View File
@@ -0,0 +1,67 @@
<?php
namespace LaravelLang\Lang\Services;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use Helldar\Support\Facades\Helpers\Str;
final class Translate
{
protected string $url = 'https://translate.api.cloud.yandex.net/translate/v2/translate';
public function translate(string $locale, string $text): string
{
$content = $this->request($locale, $text);
return $content['translations'][0]['text'];
}
protected function request(string $locale, string $text): array
{
$response = $this->client()->request('POST', $this->url, [
RequestOptions::HEADERS => $this->headers(),
RequestOptions::JSON => $this->body($locale, $text),
]);
return json_decode($response->getBody()->getContents(), true);
}
protected function headers(): array
{
return [
'Authorization' => 'Bearer ' . $this->apiKey(),
];
}
protected function body(string $locale, string $text): array
{
return [
'targetLanguageCode' => $this->correctLocale($locale),
'texts' => [$text],
'folderId' => $this->folderId(),
];
}
protected function correctLocale(string $locale): string
{
return Str::before($locale, '_');
}
protected function client(): Client
{
return new Client();
}
protected function apiKey(): string
{
return env('YANDEX_API_KEY');
}
protected function folderId(): string
{
return env('YANDEX_API_FOLDER_ID');
}
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace LaravelLang\Lang\Support;
use Dotenv\Repository\AdapterRepository;
use Dotenv\Repository\RepositoryBuilder;
use Dotenv\Repository\RepositoryInterface;
use PhpOption\Option;
final class Env
{
protected static RepositoryInterface|AdapterRepository|null $repository;
public function get(string $key, mixed $default = null): mixed
{
$value = $this->getRepository()->get($key);
return Option::fromValue($value)->getOrElse($default);
}
public function getRepository(): AdapterRepository|RepositoryInterface
{
if (self::$repository ?? false) {
return self::$repository;
}
$builder = RepositoryBuilder::createWithDefaultAdapters();
return self::$repository = $builder->immutable()->make();
}
}
+18
View File
@@ -0,0 +1,18 @@
<?php
use LaravelLang\Lang\Facades\Env;
if (! function_exists('env')) {
/**
* Determine if the given value is "blank".
*
* @param string $key
* @param mixed|null $default
*
* @return bool
*/
function env(string $key, mixed $default = null): mixed
{
return Env::get($key, $default);
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Git;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Git::make());
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Referents;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Referents::make());
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
return {{slot}};
+13
View File
@@ -0,0 +1,13 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
return {{slot}};
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
return {{slot}};
+14
View File
@@ -0,0 +1,14 @@
<?php
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
return {{slot}};
+7
View File
@@ -0,0 +1,7 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
# Referents by language
{{content}}
[ [to top](#) ]
+2
View File
@@ -2,4 +2,6 @@
# Completion status
> Translation of localizations is completed by **{{count_diff_percents}}%** ({{count_diff}} / {{count_all}}).
{{content}}
+2 -3
View File
@@ -2,12 +2,11 @@
use LaravelLang\Lang\Processors\Statuses\Locales;
use LaravelLang\Lang\Processors\Statuses\Main;
use LaravelLang\Lang\Services\Filesystem\Markdown;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Main::make(), Markdown::make());
$app->processor(Locales::make(), Markdown::make());
$app->processor(Main::make());
$app->processor(Locales::make());
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Tests\Concerns;
trait Messages
{
protected function messageAssertSee(string $path, string $content): string
{
return sprintf('String "%s" was not found in file %s', $content, realpath($path));
}
protected function messageAssertDoesntSee(string $path, string $content): string
{
return sprintf('String "%s" was found in file %s', $content, realpath($path));
}
protected function messageForPath(string $path): string
{
return sprintf('Problem found in file: %s', realpath($path));
}
protected function messageForLocale(string $path, string $locale): string
{
return sprintf('Found a problem with localization of "%s" in file %s', realpath($path), $locale);
}
}
+7 -7
View File
@@ -3,26 +3,26 @@
namespace Tests;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Filesystem\File;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
final class JsonTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../json';
public function testJson(): void
{
$source = $this->source('en.json');
foreach ($this->files() as $file) {
$target = $this->load($this->target_path . '/' . $file);
foreach ($this->files() as $locale) {
$path = $this->target_path . '/' . $locale . '/' . $locale . '.json';
$this->assertSame(array_keys($source), array_keys($target));
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target), $this->messageForPath($path));
}
}
protected function files(): array
{
return File::names($this->target_path);
return Directory::names($this->target_path);
}
protected function load(string $path): array
+15 -57
View File
@@ -4,74 +4,32 @@ namespace Tests;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Filesystem\File;
final class PhpTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../src';
public function testAuth(): void
public function testPhp(): void
{
$filename = 'auth.php';
foreach ($this->files() as $filename) {
$source = $this->source($filename);
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$path = $this->target_path . '/' . $locale . '/' . $filename;
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target));
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
if ($this->isInline($filename)) {
$this->assertDoesntSee($path, [':attribute', ':Attribute']);
}
}
}
}
public function testPagination(): void
protected function files(): array
{
$filename = 'pagination.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testPasswords(): void
{
$filename = 'passwords.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testValidation(): void
{
$filename = 'validation.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
}
public function testValidationInline(): void
{
$filename = 'validation-inline.php';
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$target = $this->load($this->target_path . '/' . $locale . '/' . $filename);
$this->assertSame(array_keys($source), array_keys($target));
}
return File::names($this->source_path, static fn ($filename) => str_ends_with($filename, '.php'));
}
protected function locales(): array
+1 -1
View File
@@ -7,7 +7,7 @@ use Helldar\Support\Facades\Helpers\Str;
class StatusLocalesTest extends TestCase
{
protected string $source_path = __DIR__ . '/../../src';
protected string $source_path = __DIR__ . '/../../locales';
protected string $target_path = __DIR__ . '/../../docs/statuses';
+1 -1
View File
@@ -7,7 +7,7 @@ use Helldar\Support\Facades\Helpers\Str;
final class StatusTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../src';
protected string $target_path = __DIR__ . '/../../locales';
protected string $status = __DIR__ . '/../../docs/status.md';
+24 -7
View File
@@ -4,14 +4,16 @@ namespace Tests;
use Helldar\PrettyArray\Services\File;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Str;
use PHPUnit\Framework\TestCase as BaseTestCase;
use Tests\Concerns\Messages;
abstract class TestCase extends BaseTestCase
{
protected string $source_path = __DIR__ . '/../../script/en';
use Messages;
protected string $target_path;
protected string $source_path = __DIR__ . '/../../source';
protected string $target_path = __DIR__ . '/../../locales';
protected function source(string $filename): array
{
@@ -35,14 +37,24 @@ abstract class TestCase extends BaseTestCase
{
$file = File::make()->loadRaw($path);
$this->assertTrue(Str::contains($file, $content));
$this->assertTrue(
str_contains($file, $content),
$this->messageAssertSee($path, $content)
);
}
protected function assertDoesntSee(string $path, string $content): void
protected function assertDoesntSee(string $path, string|array $content): void
{
$file = File::make()->loadRaw($path);
$this->assertFalse(Str::contains($file, $content));
$values = Arr::wrap($content);
foreach ($values as $value) {
$this->assertFalse(
str_contains($file, $value),
$this->messageAssertDoesntSee($path, $value)
);
}
}
protected function sort(array &$array): void
@@ -52,6 +64,11 @@ abstract class TestCase extends BaseTestCase
protected function isValidation(string $filename): bool
{
return Str::startsWith($filename, 'validation');
return str_starts_with($filename, 'validation');
}
protected function isInline(string $filename): bool
{
return str_contains($filename, 'inline');
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
use LaravelLang\Lang\Processors\Statuses\Translator;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Translator::make());
+9 -4
View File
@@ -23,16 +23,21 @@
},
"require-dev": {
"php": "^8.0",
"andrey-helldar/pretty-array": "^2.1",
"andrey-helldar/support": "^3.2",
"andrey-helldar/pretty-array": "^2.3",
"andrey-helldar/support": "^3.6",
"guzzlehttp/guzzle": "^7.3",
"phpunit/phpunit": "^9.5",
"symfony/var-dumper": "^5.2"
"symfony/var-dumper": "^5.2",
"vlucas/phpdotenv": "^5.3"
},
"autoload-dev": {
"psr-4": {
"LaravelLang\\Lang\\": "app/main",
"Tests\\": "app/tests"
}
},
"files": [
"app/main/helpers.php"
]
},
"config": {
"preferred-install": "dist",
+129 -57
View File
@@ -7,6 +7,77 @@ All notable changes to this project will be documented in this file, since v7.0.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [9.0.1] - 2021-04-21
### Changed
* feature: [af] #1626 validation.php validation-inline.php json file
* feature: [az] #1694 validation.php
* feature: [de] #1622 #1623 validation.php validation-inline.php json file
* feature: [de] #1696 #1700 #1705 validation.php validation-inline.php json file
* feature: [de_CH] #1695 #1703 #1704 validation.php validation-inline.php json file
* feature: [el] #1678 validation.php validation-inline.php json file
* feature: [fa] #1693 json file
* feature: [hr] #1686 validation.php validation-inline.php json file
* feature: [hy] #1688 #1699 json file
* feature: [id] #1616 #1621 #1689 validation.php validation-inline.php json file
* feature: [km] #1634 #1698 validation.php validation-inline.php json file
* feature: [ko] #1608 #1636 validation.php validation-inline.php json file
* feature: [lt] #1637 validation.php validation-inline.php json file
* feature: [mk] #1639 validation.php validation-inline.php json file
* feature: [ne] #1643 validation.php validation-inline.php json file
* feature: [pl] #1645 validation.php validation-inline.php json file
* feature: [pt] #1646 validation.php validation-inline.php json file
* feature: [pt_BR] #1647 validation.php validation-inline.php json file
* feature: [ro] #1648 validation.php validation-inline.php json file
* feature: [si] #1649 validation.php validation-inline.php json file
* feature: [sv] #1656 validation.php validation-inline.php json file
* feature: [tr] #1697 validation.php validation-inline.php json file
* feature: [vi] #1617 #1624 validation.php validation-inline.php json file
* feature: [zh_CN] #1666 validation.php validation-inline.php json file
* feature: [zh_HK] #1667 validation.php validation-inline.php json file
* feature: [zh_TW] #1668 validation.php validation-inline.php json file
### Documentation
* feature: #1618 readme
### Todo script
* feature: #1619 Added check for ":Attribute" when running tests
* feature: #1620 Adding a percentage of translations
* feature: #1625 Added processors for translating localizations
* feature: #1629 Removed duplicate call line
* feature: #1691 Added a script for creating commits separated by localizations
## [9.0.0] - 2021-04-14
New structure of files:
* `source/` - stores php and json source files
* `locales/{locale}` - stores php and json files with translations.
For more information, see #1606 and #1607.
## [8.1.3] - 2021-04-14
### Changed
* feature: [hu] #1609 auth.php
* feature: [nl] #1603 #1610 validation.php validation-inline.php json file
### Documentation
* feature: #1599 contributing to dev
* feature: #1601 referents
* feature: #1614 readme
### Todo script
* feature: #1600 Added validation for the `:attribute` string in the `validation-inline.php` files
* feature: #1602 Added auto-update `docs/referents.md` file
* feature: #1604 Added check of exclusion files for keys relevance
## [8.1.2] - 2021-04-07
### Changed
@@ -155,18 +226,18 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed
* feature: #1383 #1411 [fr] json file
* feature: #1385 [el] json file
* feature: #1387 #1388 #1392 [ms] validation.php validation-inline.php passwords.php
* feature: #1390 #1398 [ar] json file
* feature: #1393 #1397 [ru] json file
* feature: #1393 #1394 [en] add tags
* feature: #1394 [es] json file
* feature: #1395 [pl] json file
* feature: #1400 [lt] json file
* feature: #1402 #1413 [it] validation-inline.php auth.php passwords.php json file
* feature: #1404 [pt] json file
* feature: #1412 [de] json file
* feature: [ar] #1390 #1398 json file
* feature: [de] #1412 json file
* feature: [el] #1385 json file
* feature: [en] #1393 #1394 add tags
* feature: [es] #1394 json file
* feature: [fr] #1383 #1411 json file
* feature: [it] #1402 #1413 validation-inline.php auth.php passwords.php json file
* feature: [lt] #1400 json file
* feature: [ms] #1387 #1388 #1392 validation.php validation-inline.php passwords.php
* feature: [pl] #1395 json file
* feature: [pt] #1404 json file
* feature: [ru] #1393 #1397 json file
### Documentation
@@ -185,11 +256,11 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed
* feature: #1375 [pt_BR] json file
* feature: #1379 [hr] passwords.php
* feature: #1380 [ms] validation.php
* feature: #1381 [id] json file
* feature: #1382 [tr] json file
* feature: [hr] #1379 passwords.php
* feature: [id] #1381 json file
* feature: [ms] #1380 validation.php
* feature: [pt_BR] #1375 json file
* feature: [tr] #1382 json file
### Todo script
@@ -199,74 +270,72 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed
* feature: #1339 #1369 [ar] json file
* feature: #1352 [uz_*] validation auth password
* feature: #1356 #1362 #1368 [ru] json file
* feature: #1358 #1374 [pt] json file
* feature: #1360 #1367 #1373 [pl] json file
* feature: #1361 #1371 [es] json file
* feature: #1361 #1368 [en] json file
* feature: #1363 [sr_*] json file
* feature: #1370 [de] json file
* feature: [ar] #1339 #1369 json file
* feature: [de] #1370 json file
* feature: [en] #1361 #1368 json file
* feature: [es] #1361 #1371 json file
* feature: [fr] json file
* feature: [pl] #1360 #1367 #1373 json file
* feature: [pt] #1358 #1374 json file
* feature: [ru] #1356 #1362 #1368 json file
* feature: [sr_*] #1363 json file
* feature: [uz_*] #1352 validation auth password
## [7.0.5] - 2020-09-23
### Changed
* feature: #1327 #1328 [tr] validation.php
* feature: #1330 [nl] json file
* feature: #1331 [nl] validation-inline.php
* feature: #1332 [hu] validation.php
* feature: #1333 Laravel 8 support
* feature: #1335 #1354 Add support for Laravel JetStream
* feature: #1341 [es] json files
* feature: #1341 #1346 [en] json files
* feature: #1342 [pt] json files
* feature: #1345 [it] json files
* feature: #1346 [ru] json files
* feature: #1351 [pl] json files
* feature: [en] #1341 #1346 json files
* feature: [es] #1341 json files
* feature: [hu] #1332 validation.php
* feature: [it] #1345 json files
* feature: [nl] #1330 #1331 json file validation-inline.php
* feature: [pl] #1351 json files
* feature: [pt] #1342 json files
* feature: [ru] #1346 json files
* feature: [tr] #1327 #1328 validation.php
## [7.0.4] - 2020-09-11
### Changed
* feature: [es] #1317 json file
* feature: [fa] #1318 validation.password
* feature: [id] #1323 #1324 json and validation-inline
* feature: [ko] #1326 validation-inline
* feature: [lt] #1320 validation-inline and validation
* feature: [sr_*] #1316 validation-inline file
* feature: new organization
* feature: #1316 [sr_*] validation-inline file
* feature: #1317 [es] json file
* feature: #1318 [fa] validation.password
* feature: #1320 [lt] validation-inline and validation
* feature: #1323 #1324 [id] json and validation-inline
* feature: #1326 [ko] validation-inline
## [7.0.3] - 2020-08-23
### Changed
* feature: #1302 #1306 #1307 [Ne] Translated to Nepali Language (Validation-inline and json)
* feature: #1310 [da] passwords.throttlled
* feature: #1312 [es] validation and validation-inline
* feature: #1313 [sq] validation-inline and validation translations
* feature: [da] #1310 passwords.throttlled
* feature: [es] #1312 validation and validation-inline
* feature: [ne] #1302 #1306 #1307 Translated to Nepali Language (Validation-inline and json)
* feature: [sq] #1313 validation-inline and validation translations
## [7.0.2] - 2020-08-05
### Added
* Changelog file
* # 1293 [da] Add json
### Changed
* feature: #1290 [pl] Translate validation-inline; tweak some validation translations
* feature: #1291 [pt_BR] Update validation-inline
* feature: #1292 [es] Update json
* feature: #1294 Update readme
* feature: #1295 [pt] Update json, validation-inline, validation and passwords
* feature: #1297 [sq] Update auth, passwords and validation
* feature: #1298 [si] Update passwords
* feature: #1299 [zh_*] Update json and validation-inline
* feature: #1300 [uk] validation-inline
* feature: #1301 [uk] json
* feature: [da] #1293 Add json
* feature: [es] #1292 Update json
* feature: [pl] #1290 Translate validation-inline; tweak some validation translations
* feature: [pt] #1295 Update json, validation-inline, validation and passwords
* feature: [pt_BR] #1291 Update validation-inline
* feature: [si] #1298 Update passwords
* feature: [sq] #1297 Update auth, passwords and validation
* feature: [uk] #1300 #1301 validation-inline json file
* feature: [zh_*] #1299 Update json and validation-inline
## [7.0.1] - 2020-07-14
@@ -284,7 +353,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
* feature: #1269 Rename locale folders following ISO 15897 format
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/8.1.2...master
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/9.0.1...master
[9.0.1]: https://github.com/caouecs/Laravel-lang/compare/9.0.0...9.0.1
[9.0.0]: https://github.com/caouecs/Laravel-lang/compare/8.1.3...9.0.0
[8.1.3]: https://github.com/caouecs/Laravel-lang/compare/8.1.2...8.1.3
[8.1.2]: https://github.com/caouecs/Laravel-lang/compare/8.1.1...8.1.2
[8.1.1]: https://github.com/caouecs/Laravel-lang/compare/8.1.0...8.1.1
[8.1.0]: https://github.com/caouecs/Laravel-lang/compare/8.0.3...8.1.0
+24 -14
View File
@@ -9,9 +9,19 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
## How can I add a language in this project ?
* fork this repository
* create a directory in *src* with the short name of the language (ex: fr for French) from ISO-639-1 (
* create a directory in `locales` with the short name of the language (ex: `fr` for French) from ISO-639-1 (
see [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) )
* copy these four files of the English version with your translation : from `script/en` directory
* copy these five files of the English version with your translation : from `source` directory
* `en.json`
* `auth.php`
* `pagination.php`
* `passwords.php`
* `validation.php`
* `validation-inline.php`
* Rename json file according to localization (ex: `fr` for `locales/fr/fr.json`, `de` for `locales/de/de.json`, etc)
* keep in mind that the `validation-inline.php` file does not come with Laravel and the idea of this file is not to put a specific name to each attribute (as
in `validation.php`) but a generic name for the validation attributes. Therefore in the translations of this file the placeholder `:attribute` **should not**
appear.
* add a pull request with the name of the language
* ex: [fr] New language
@@ -24,8 +34,8 @@ We accept contributions via Pull Requests on [Github](https://github.com/Laravel
## What should I do if there is a tag whose translation is the same as in English?
In some languages ​​there are some strings whose translation is the same as in English. In this case, the script that generates the [status](status.md) adds
them by default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *status list* with (
In some languages there are some strings whose translation is the same as in English. In this case, the script that generates the [status](status.md) adds them
by default to the list of pending translations. This affects the *completion status* for this language which would never be marked in *status list* with (
✔) but with (❗) even if all other strings were translated.
We can avoid this situation in the following way:
@@ -39,17 +49,17 @@ We can avoid this situation in the following way:
```php
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
'API Token',
'Email',
];
+1 -1
View File
@@ -30,7 +30,7 @@ In the file *config/app.php*, change the value of *locale* by the short name of
Please see [contributing](contributing-to-dev.md) page for details.
## Projects based on this package
## Translation managers
* [LaravelLang](https://github.com/ARCANEDEV/LaravelLang) by [*@arcanedev-maroc*](https://github.com/ARCANEDEV) - Translations manager and checker for Laravel.
* [Laravel-lang](https://github.com/overtrue/laravel-lang) by [*@overtrue*](https://github.com/overtrue) - Command to add languages in your project.
+586 -79
View File
@@ -1,82 +1,589 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
# Referents by language
| Lang | Assignee |
| --- |:--|
| af | |
| ar | [@mohamedsabil83](https://github.com/mohamedsabil83), [@Khuthaily](https://github.com/Khuthaily) |
| az | |
| be | |
| bg | |
| bn | |
| bs | |
| ca | |
| cs | |
| cy | |
| da | [@jensstigaard](https://github.com/jensstigaard) |
| de | [@WhereIsLucas](https://github.com/WhereIsLucas) |
| de_CH | |
| el | |
| es | [@luisprmat](https://github.com/luisprmat) |
| et | |
| eu | |
| fa | |
| fi | |
| fil | |
| fr | [@caouecs](https://github.com/caouecs), [@WhereIsLucas](https://github.com/WhereIsLucas) |
| gl | |
| he | |
| hi | |
| hr | |
| hu | |
| hy | |
| id | |
| is | |
| it | [@masterix21](https://github.com/masterix21) |
| ja | |
| ka | |
| kk | |
| km | |
| kn | |
| ko | |
| lt | |
| lv | |
| mk | [@keljtanoski](https://github.com/keljtanoski) |
| mn | |
| mr | |
| ms | |
| nb | |
| ne | |
| nl | [@WhereIsLucas](https://github.com/WhereIsLucas) |
| nn | |
| pl | |
| ps | |
| pt | [@jorgercosta](https://github.com/jorgercosta) |
| pt_BR | |
| ro | |
| ru | [@andrey-helldar](https://github.com/andrey-helldar) |
| sc | |
| si | |
| sk | |
| sl | |
| sq | |
| sr_Cyrl | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sr_Latn | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sr_Latn_ME | [@LukaLatkovic](https://github.com/LukaLatkovic) |
| sv | |
| sw | |
| tg | |
| th | |
| tk | |
| tl | |
| tr | |
| ug | |
| uk | [@MrAlKuz](https://github.com/MrAlKuz) |
| ur | |
| uz_Cyrl | |
| uz_Latn | |
| vi | |
| zh_CN | [@overtrue](https://github.com/overtrue) |
| zh_HK | [@overtrue](https://github.com/overtrue) |
| zh_TW | [@overtrue](https://github.com/overtrue) |
<table >
<tr><td align="left" >
af
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ar
</td>
<td align="left" >
[@mohamedsabil83](https://github.com/mohamedsabil83)
,
[@Khuthaily](https://github.com/Khuthaily)
</td>
</tr>
<tr><td align="left" >
az
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
be
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
bg
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
bn
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
bs
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ca
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
cs
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
cy
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
da
</td>
<td align="left" >
[@jensstigaard](https://github.com/jensstigaard)
</td>
</tr>
<tr><td align="left" >
de
</td>
<td align="left" >
[@WhereIsLucas](https://github.com/WhereIsLucas)
</td>
</tr>
<tr><td align="left" >
de_CH
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
el
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
es
</td>
<td align="left" >
[@luisprmat](https://github.com/luisprmat)
</td>
</tr>
<tr><td align="left" >
et
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
eu
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
fa
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
fi
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
fil
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
fr
</td>
<td align="left" >
[@caouecs](https://github.com/caouecs)
,
[@WhereIsLucas](https://github.com/WhereIsLucas)
</td>
</tr>
<tr><td align="left" >
gl
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
he
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
hi
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
hr
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
hu
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
hy
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
id
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
is
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
it
</td>
<td align="left" >
[@masterix21](https://github.com/masterix21)
</td>
</tr>
<tr><td align="left" >
ja
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ka
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
kk
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
km
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
kn
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ko
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
lt
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
lv
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
mk
</td>
<td align="left" >
[@keljtanoski](https://github.com/keljtanoski)
</td>
</tr>
<tr><td align="left" >
mn
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
mr
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ms
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
nb
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ne
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
nl
</td>
<td align="left" >
[@WhereIsLucas](https://github.com/WhereIsLucas)
</td>
</tr>
<tr><td align="left" >
nn
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
oc
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
pl
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ps
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
pt
</td>
<td align="left" >
[@jorgercosta](https://github.com/jorgercosta)
</td>
</tr>
<tr><td align="left" >
pt_BR
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ro
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ru
</td>
<td align="left" >
[@andrey-helldar](https://github.com/andrey-helldar)
</td>
</tr>
<tr><td align="left" >
sc
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
si
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
sk
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
sl
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
sq
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
sr_Cyrl
</td>
<td align="left" >
[@LukaLatkovic](https://github.com/LukaLatkovic)
</td>
</tr>
<tr><td align="left" >
sr_Latn
</td>
<td align="left" >
[@LukaLatkovic](https://github.com/LukaLatkovic)
</td>
</tr>
<tr><td align="left" >
sr_Latn_ME
</td>
<td align="left" >
[@LukaLatkovic](https://github.com/LukaLatkovic)
</td>
</tr>
<tr><td align="left" >
sv
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
sw
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
tg
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
th
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
tk
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
tl
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
tr
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
ug
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
uk
</td>
<td align="left" >
[@MrAlKuz](https://github.com/MrAlKuz)
</td>
</tr>
<tr><td align="left" >
ur
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
uz_Cyrl
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
uz_Latn
</td>
<td align="left" >
</td>
</tr>
<tr><td align="left" >
vi
</td>
<td align="left" >
[@dinhquochan](https://github.com/dinhquochan)
</td>
</tr>
<tr><td align="left" >
zh_CN
</td>
<td align="left" >
[@overtrue](https://github.com/overtrue)
</td>
</tr>
<tr><td align="left" >
zh_HK
</td>
<td align="left" >
[@overtrue](https://github.com/overtrue)
</td>
</tr>
<tr><td align="left" >
zh_TW
</td>
<td align="left" >
[@overtrue](https://github.com/overtrue)
</td>
</tr>
</table>
[ [to top](#) ]
+13 -11
View File
@@ -2,10 +2,12 @@
# Completion status
> Translation of localizations is completed by **50%** (31.2K / 62.8K).
<table width="100%">
<tr><td align="center" width="13%">
[af&nbsp;❗](statuses/af.md)
[af&nbsp;✔](statuses/af.md)
</td>
<td align="center" width="13%">
@@ -61,12 +63,12 @@
</td>
<td align="center" width="13%">
[de&nbsp;❗](statuses/de.md)
[de&nbsp;✔](statuses/de.md)
</td>
<td align="center" width="13%">
[de_CH&nbsp;❗](statuses/de-ch.md)
[de_CH&nbsp;✔](statuses/de-ch.md)
</td>
<td align="center" width="13%">
@@ -143,7 +145,7 @@
</td>
<td align="center" width="13%">
[id&nbsp;❗](statuses/id.md)
[id&nbsp;✔](statuses/id.md)
</td>
<td align="center" width="13%">
@@ -184,7 +186,7 @@
</td>
<td align="center" width="13%">
[ko&nbsp;❗](statuses/ko.md)
[ko&nbsp;✔](statuses/ko.md)
</td>
<td align="center" width="13%">
@@ -281,7 +283,7 @@
</td>
<td align="center" width="13%">
[si&nbsp;❗](statuses/si.md)
[si&nbsp;✔](statuses/si.md)
</td>
<td align="center" width="13%">
@@ -348,7 +350,7 @@
</td>
<td align="center" width="13%">
[tr&nbsp;❗](statuses/tr.md)
[tr&nbsp;✔](statuses/tr.md)
</td>
<td align="center" width="13%">
@@ -379,22 +381,22 @@
</td>
<td align="center" width="13%">
[vi&nbsp;❗](statuses/vi.md)
[vi&nbsp;✔](statuses/vi.md)
</td>
<td align="center" width="13%">
[zh_CN&nbsp;❗](statuses/zh-cn.md)
[zh_CN&nbsp;✔](statuses/zh-cn.md)
</td>
<td align="center" width="13%">
[zh_HK&nbsp;❗](statuses/zh-hk.md)
[zh_HK&nbsp;✔](statuses/zh-hk.md)
</td>
<td align="center" width="13%">
[zh_TW&nbsp;❗](statuses/zh-tw.md)
[zh_TW&nbsp;✔](statuses/zh-tw.md)
</td>
<td align="center" width="13%">
+2 -1811
View File
File diff suppressed because it is too large. Load diff
+2 -2372
View File
File diff suppressed because it is too large. Load diff
+2 -1796
View File
File diff suppressed because it is too large. Load diff
+2 -2722
View File
File diff suppressed because it is too large. Load diff
+2 -158
View File
@@ -2,7 +2,7 @@
# fa
##### All missed: 447
##### All missed: 408
### validation-inline
@@ -99,22 +99,10 @@ This :attribute may not be associated with this resource.
### json
##### Missing: 437
##### Missing: 398
<table >
<tr><td align="left" >
30 Days
</td>
</tr>
<tr><td align="left" >
60 Days
</td>
</tr>
<tr><td align="left" >
90 Days
</td>
</tr>
<tr><td align="left" >
:amount Total
</td>
</tr>
@@ -143,26 +131,6 @@ Action Initiated By
</td>
</tr>
<tr><td align="left" >
Action Name
</td>
</tr>
<tr><td align="left" >
Action Status
</td>
</tr>
<tr><td align="left" >
Action Target
</td>
</tr>
<tr><td align="left" >
Actions
</td>
</tr>
<tr><td align="left" >
Add row
</td>
</tr>
<tr><td align="left" >
Afghanistan
</td>
</tr>
@@ -179,10 +147,6 @@ Algeria
</td>
</tr>
<tr><td align="left" >
All resources loaded.
</td>
</tr>
<tr><td align="left" >
American Samoa
</td>
</tr>
@@ -523,10 +487,6 @@ Croatia
</td>
</tr>
<tr><td align="left" >
Cuba
</td>
</tr>
<tr><td align="left" >
Curaçao
</td>
</tr>
@@ -599,26 +559,10 @@ Dominican Republic
</td>
</tr>
<tr><td align="left" >
Download
</td>
</tr>
<tr><td align="left" >
Ecuador
</td>
</tr>
<tr><td align="left" >
Edit
</td>
</tr>
<tr><td align="left" >
Edit :resource
</td>
</tr>
<tr><td align="left" >
Edit Attached
</td>
</tr>
<tr><td align="left" >
Egypt
</td>
</tr>
@@ -627,10 +571,6 @@ El Salvador
</td>
</tr>
<tr><td align="left" >
Email Address
</td>
</tr>
<tr><td align="left" >
Equatorial Guinea
</td>
</tr>
@@ -675,14 +615,6 @@ Finland
</td>
</tr>
<tr><td align="left" >
Force Delete
</td>
</tr>
<tr><td align="left" >
Force Delete Resource
</td>
</tr>
<tr><td align="left" >
Force Delete Selected
</td>
</tr>
@@ -703,10 +635,6 @@ French Southern Territories
</td>
</tr>
<tr><td align="left" >
Full name
</td>
</tr>
<tr><td align="left" >
Gabon
</td>
</tr>
@@ -731,10 +659,6 @@ Gibraltar
</td>
</tr>
<tr><td align="left" >
Go back
</td>
</tr>
<tr><td align="left" >
Great! You have accepted the invitation to join the :team team.
</td>
</tr>
@@ -815,10 +739,6 @@ Iceland
</td>
</tr>
<tr><td align="left" >
ID
</td>
</tr>
<tr><td align="left" >
If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.
</td>
</tr>
@@ -851,10 +771,6 @@ Iran, Islamic Republic Of
</td>
</tr>
<tr><td align="left" >
Iraq
</td>
</tr>
<tr><td align="left" >
Ireland
</td>
</tr>
@@ -879,10 +795,6 @@ January
</td>
</tr>
<tr><td align="left" >
Japan
</td>
</tr>
<tr><td align="left" >
Jersey
</td>
</tr>
@@ -975,22 +887,6 @@ Load :perPage More
</td>
</tr>
<tr><td align="left" >
Log in
</td>
</tr>
<tr><td align="left" >
Log out
</td>
</tr>
<tr><td align="left" >
Log Out
</td>
</tr>
<tr><td align="left" >
Log Out Other Browser Sessions
</td>
</tr>
<tr><td align="left" >
Luxembourg
</td>
</tr>
@@ -1119,14 +1015,6 @@ Netherlands
</td>
</tr>
<tr><td align="left" >
New
</td>
</tr>
<tr><td align="left" >
New :resource
</td>
</tr>
<tr><td align="left" >
New Caledonia
</td>
</tr>
@@ -1135,10 +1023,6 @@ New Zealand
</td>
</tr>
<tr><td align="left" >
Next
</td>
</tr>
<tr><td align="left" >
Nicaragua
</td>
</tr>
@@ -1343,18 +1227,6 @@ Reset Filters
</td>
</tr>
<tr><td align="left" >
resource
</td>
</tr>
<tr><td align="left" >
Resources
</td>
</tr>
<tr><td align="left" >
resources
</td>
</tr>
<tr><td align="left" >
Restore
</td>
</tr>
@@ -1375,10 +1247,6 @@ Romania
</td>
</tr>
<tr><td align="left" >
Run Action
</td>
</tr>
<tr><td align="left" >
Russian Federation
</td>
</tr>
@@ -1747,22 +1615,10 @@ United States Outlying Islands
</td>
</tr>
<tr><td align="left" >
Update
</td>
</tr>
<tr><td align="left" >
Update & Continue Editing
</td>
</tr>
<tr><td align="left" >
Update :resource
</td>
</tr>
<tr><td align="left" >
Update :resource: :title
</td>
</tr>
<tr><td align="left" >
Update attached :resource: :title
</td>
</tr>
@@ -1807,18 +1663,10 @@ We're lost in space. The page you were trying to view does not exist.
</td>
</tr>
<tr><td align="left" >
Welcome Back!
</td>
</tr>
<tr><td align="left" >
Western Sahara
</td>
</tr>
<tr><td align="left" >
Whoops
</td>
</tr>
<tr><td align="left" >
With Trashed
</td>
</tr>
@@ -1835,10 +1683,6 @@ Yemen
</td>
</tr>
<tr><td align="left" >
Yes
</td>
</tr>
<tr><td align="left" >
You have been invited to join the :team team!
</td>
</tr>
+2 -2671
View File
File diff suppressed because it is too large. Load diff
+2 -2259
View File
File diff suppressed because it is too large. Load diff
+2 -2310
View File
File diff suppressed because it is too large. Load diff
+2 -2926
View File
File diff suppressed because it is too large. Load diff
+2 -1788
View File
File diff suppressed because it is too large. Load diff
+2 -1710
View File
File diff suppressed because it is too large. Load diff
+2 -1566
View File
File diff suppressed because it is too large. Load diff
+2 -2276
View File
File diff suppressed because it is too large. Load diff
+2 -430
View File
@@ -2,104 +2,12 @@
# nl
##### All missed: 406
##### All missed: 312
### validation-inline
##### Missing: 5
<table >
<tr><td align="left" >
attached
</td>
<td align="left" >
This field is already attached.
</td>
</tr>
<tr><td align="left" >
prohibited
</td>
<td align="left" >
This field is prohibited.
</td>
</tr>
<tr><td align="left" >
prohibited_if
</td>
<td align="left" >
This field is prohibited when :other is :value.
</td>
</tr>
<tr><td align="left" >
prohibited_unless
</td>
<td align="left" >
This field is prohibited unless :other is in :values.
</td>
</tr>
<tr><td align="left" >
relatable
</td>
<td align="left" >
This field may not be associated with this resource.
</td>
</tr>
</table>
[ [go back](../status.md) | [to top](#) ]
### validation
##### Missing: 5
<table >
<tr><td align="left" >
attached
</td>
<td align="left" >
This :attribute is already attached.
</td>
</tr>
<tr><td align="left" >
prohibited
</td>
<td align="left" >
The :attribute field is prohibited.
</td>
</tr>
<tr><td align="left" >
prohibited_if
</td>
<td align="left" >
The :attribute field is prohibited when :other is :value.
</td>
</tr>
<tr><td align="left" >
prohibited_unless
</td>
<td align="left" >
The :attribute field is prohibited unless :other is in :values.
</td>
</tr>
<tr><td align="left" >
relatable
</td>
<td align="left" >
This :attribute may not be associated with this resource.
</td>
</tr>
</table>
[ [go back](../status.md) | [to top](#) ]
### json
##### Missing: 396
##### Missing: 312
<table >
<tr><td align="left" >
@@ -111,34 +19,10 @@ This :attribute may not be associated with this resource.
</td>
</tr>
<tr><td align="left" >
Action Happened At
</td>
</tr>
<tr><td align="left" >
Action Initiated By
</td>
</tr>
<tr><td align="left" >
Action Name
</td>
</tr>
<tr><td align="left" >
Action Status
</td>
</tr>
<tr><td align="left" >
Action Target
</td>
</tr>
<tr><td align="left" >
Actions
</td>
</tr>
<tr><td align="left" >
Add row
</td>
</tr>
<tr><td align="left" >
Afghanistan
</td>
</tr>
@@ -147,14 +31,6 @@ Aland Islands
</td>
</tr>
<tr><td align="left" >
Albania
</td>
</tr>
<tr><td align="left" >
Algeria
</td>
</tr>
<tr><td align="left" >
All resources loaded.
</td>
</tr>
@@ -295,10 +171,6 @@ Belarus
</td>
</tr>
<tr><td align="left" >
Belgium
</td>
</tr>
<tr><td align="left" >
Belize
</td>
</tr>
@@ -483,10 +355,6 @@ Create :resource
</td>
</tr>
<tr><td align="left" >
Croatia
</td>
</tr>
<tr><td align="left" >
Cuba
</td>
</tr>
@@ -899,14 +767,6 @@ Liechtenstein
</td>
</tr>
<tr><td align="left" >
Lithuania
</td>
</tr>
<tr><td align="left" >
Load :perPage More
</td>
</tr>
<tr><td align="left" >
Macao
</td>
</tr>
@@ -959,10 +819,6 @@ Mauritius
</td>
</tr>
<tr><td align="left" >
May
</td>
</tr>
<tr><td align="left" >
Mayotte
</td>
</tr>
@@ -1023,30 +879,10 @@ Nepal
</td>
</tr>
<tr><td align="left" >
Netherlands
</td>
</tr>
<tr><td align="left" >
New
</td>
</tr>
<tr><td align="left" >
New :resource
</td>
</tr>
<tr><td align="left" >
New Caledonia
</td>
</tr>
<tr><td align="left" >
New Zealand
</td>
</tr>
<tr><td align="left" >
Next
</td>
</tr>
<tr><td align="left" >
Nicaragua
</td>
</tr>
@@ -1063,30 +899,6 @@ Niue
</td>
</tr>
<tr><td align="left" >
No
</td>
</tr>
<tr><td align="left" >
No :resource matched the given criteria.
</td>
</tr>
<tr><td align="left" >
No additional information...
</td>
</tr>
<tr><td align="left" >
No Current Data
</td>
</tr>
<tr><td align="left" >
No Data
</td>
</tr>
<tr><td align="left" >
no file selected
</td>
</tr>
<tr><td align="left" >
No Increase
</td>
</tr>
@@ -1107,14 +919,6 @@ Northern Mariana Islands
</td>
</tr>
<tr><td align="left" >
Norway
</td>
</tr>
<tr><td align="left" >
Nova User
</td>
</tr>
<tr><td align="left" >
November
</td>
</tr>
@@ -1127,14 +931,6 @@ Oman
</td>
</tr>
<tr><td align="left" >
Only Trashed
</td>
</tr>
<tr><td align="left" >
Original
</td>
</tr>
<tr><td align="left" >
Pakistan
</td>
</tr>
@@ -1175,10 +971,6 @@ Please enter your password to confirm you would like to log out of your other br
</td>
</tr>
<tr><td align="left" >
Please provide your name.
</td>
</tr>
<tr><td align="left" >
Poland
</td>
</tr>
@@ -1187,18 +979,6 @@ Portugal
</td>
</tr>
<tr><td align="left" >
Press / to search
</td>
</tr>
<tr><td align="left" >
Preview
</td>
</tr>
<tr><td align="left" >
Previous
</td>
</tr>
<tr><td align="left" >
Puerto Rico
</td>
</tr>
@@ -1219,42 +999,10 @@ Reset Filters
</td>
</tr>
<tr><td align="left" >
resource
</td>
</tr>
<tr><td align="left" >
Resources
</td>
</tr>
<tr><td align="left" >
resources
</td>
</tr>
<tr><td align="left" >
Restore
</td>
</tr>
<tr><td align="left" >
Restore Resource
</td>
</tr>
<tr><td align="left" >
Restore Selected
</td>
</tr>
<tr><td align="left" >
Reunion
</td>
</tr>
<tr><td align="left" >
Romania
</td>
</tr>
<tr><td align="left" >
Run Action
</td>
</tr>
<tr><td align="left" >
Russian Federation
</td>
</tr>
@@ -1303,26 +1051,6 @@ Sao Tome And Principe
</td>
</tr>
<tr><td align="left" >
Saudi Arabia
</td>
</tr>
<tr><td align="left" >
Search
</td>
</tr>
<tr><td align="left" >
Select Action
</td>
</tr>
<tr><td align="left" >
Select All
</td>
</tr>
<tr><td align="left" >
Select All Matching
</td>
</tr>
<tr><td align="left" >
Senegal
</td>
</tr>
@@ -1331,22 +1059,10 @@ September
</td>
</tr>
<tr><td align="left" >
Serbia
</td>
</tr>
<tr><td align="left" >
Seychelles
</td>
</tr>
<tr><td align="left" >
Show All Fields
</td>
</tr>
<tr><td align="left" >
Show Content
</td>
</tr>
<tr><td align="left" >
Sierra Leone
</td>
</tr>
@@ -1359,42 +1075,10 @@ Sint Maarten (Dutch part)
</td>
</tr>
<tr><td align="left" >
Slovakia
</td>
</tr>
<tr><td align="left" >
Slovenia
</td>
</tr>
<tr><td align="left" >
Solomon Islands
</td>
</tr>
<tr><td align="left" >
Somalia
</td>
</tr>
<tr><td align="left" >
Something went wrong.
</td>
</tr>
<tr><td align="left" >
Sorry! You are not authorized to perform this action.
</td>
</tr>
<tr><td align="left" >
South Africa
</td>
</tr>
<tr><td align="left" >
South Georgia And Sandwich Isl.
</td>
</tr>
<tr><td align="left" >
South Sudan
</td>
</tr>
<tr><td align="left" >
Spain
</td>
</tr>
@@ -1411,10 +1095,6 @@ Stop Polling
</td>
</tr>
<tr><td align="left" >
Sudan
</td>
</tr>
<tr><td align="left" >
Suriname
</td>
</tr>
@@ -1423,18 +1103,6 @@ Svalbard And Jan Mayen
</td>
</tr>
<tr><td align="left" >
Sweden
</td>
</tr>
<tr><td align="left" >
Switzerland
</td>
</tr>
<tr><td align="left" >
Syrian Arab Republic
</td>
</tr>
<tr><td align="left" >
Taiwan
</td>
</tr>
@@ -1543,86 +1211,22 @@ Tonga
</td>
</tr>
<tr><td align="left" >
Trinidad And Tobago
</td>
</tr>
<tr><td align="left" >
Tunisia
</td>
</tr>
<tr><td align="left" >
Turkey
</td>
</tr>
<tr><td align="left" >
Turkmenistan
</td>
</tr>
<tr><td align="left" >
Turks And Caicos Islands
</td>
</tr>
<tr><td align="left" >
Tuvalu
</td>
</tr>
<tr><td align="left" >
Uganda
</td>
</tr>
<tr><td align="left" >
Ukraine
</td>
</tr>
<tr><td align="left" >
United Arab Emirates
</td>
</tr>
<tr><td align="left" >
United Kingdom
</td>
</tr>
<tr><td align="left" >
United States
</td>
</tr>
<tr><td align="left" >
United States Outlying Islands
</td>
</tr>
<tr><td align="left" >
Update
</td>
</tr>
<tr><td align="left" >
Update & Continue Editing
</td>
</tr>
<tr><td align="left" >
Update :resource
</td>
</tr>
<tr><td align="left" >
Update :resource: :title
</td>
</tr>
<tr><td align="left" >
Update attached :resource: :title
</td>
</tr>
<tr><td align="left" >
Uruguay
</td>
</tr>
<tr><td align="left" >
Uzbekistan
</td>
</tr>
<tr><td align="left" >
Value
</td>
</tr>
<tr><td align="left" >
Vanuatu
</td>
</tr>
@@ -1631,10 +1235,6 @@ Venezuela
</td>
</tr>
<tr><td align="left" >
View
</td>
</tr>
<tr><td align="left" >
Virgin Islands, British
</td>
</tr>
@@ -1647,38 +1247,10 @@ Wallis And Futuna
</td>
</tr>
<tr><td align="left" >
We're lost in space. The page you were trying to view does not exist.
</td>
</tr>
<tr><td align="left" >
Welcome Back!
</td>
</tr>
<tr><td align="left" >
Western Sahara
</td>
</tr>
<tr><td align="left" >
With Trashed
</td>
</tr>
<tr><td align="left" >
Write
</td>
</tr>
<tr><td align="left" >
Year To Date
</td>
</tr>
<tr><td align="left" >
Yemen
</td>
</tr>
<tr><td align="left" >
Yes
</td>
</tr>
<tr><td align="left" >
Zambia
</td>
</tr>
+2 -1434
View File
File diff suppressed because it is too large. Load diff
+2 -1372
View File
File diff suppressed because it is too large. Load diff
+2 -1656
View File
File diff suppressed because it is too large. Load diff
+2 -2310
View File
File diff suppressed because it is too large. Load diff
+2 -2969
View File
File diff suppressed because it is too large. Load diff
+2 -2144
View File
File diff suppressed because it is too large. Load diff
+2 -2194
View File
File diff suppressed because it is too large. Load diff
+2 -1764
View File
File diff suppressed because it is too large. Load diff
+2 -1696
View File
File diff suppressed because it is too large. Load diff
+2 -1696
View File
File diff suppressed because it is too large. Load diff
+2 -1696
View File
File diff suppressed because it is too large. Load diff
+10 -11
View File
@@ -1,14 +1,13 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
];
return [];
+113 -10
View File
@@ -1,15 +1,118 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
'Action Status',
'Afghanistan',
'Angola',
'Anguilla',
'API Token',
'April',
'Aruba',
'Azerbaijan',
'Bahamas',
'Bahrain',
'Barbados',
'Belize',
'Benin',
'Bermuda',
'Bolivia',
'Botswana',
'Bouvet Island',
'Burkina Faso',
'Burundi',
'Chad',
'China',
'Christmas Island',
'Colombia',
'Costa Rica',
'Ecuador',
'Eritrea',
'Finland',
'Ghana',
'Gibraltar',
'Grenada',
'Guadeloupe',
'Guam',
'Guatemala',
'Guernsey',
'Guyana',
'Haiti',
'Honduras',
'Hong Kong',
'ID',
'Iran, Islamic Republic Of',
'Israel',
'Jamaica',
'Japan',
'Jersey',
'Kazakhstan',
'Kiribati',
'Kosovo',
'Kyrgyzstan',
'Lao People\'s Democratic Republic',
'Lens',
'Lesotho',
'Liechtenstein',
'Macao',
'Malawi',
'Maldives',
'Malta',
'Martinique',
'Mauritius',
'Mayotte',
'Monaco',
'Montenegro',
'Montserrat',
'Myanmar',
'Nauru',
'Nepal',
'New Caledonia',
'Nicaragua',
'Niger',
'Niue',
'Norfolk Island',
'November',
'Oman',
'Pakistan',
'Palau',
'Panama',
'Paraguay',
'Peru',
'Portugal',
'Puerto Rico',
'Qatar',
'Rwanda',
'Samoa',
'San Marino',
'Senegal',
'September',
'Sierra Leone',
'Sint Maarten (Dutch part)',
'Sri Lanka',
'Suriname',
'Taiwan',
'Tajikistan',
'Thailand',
'Togo',
'Tokelau',
'Turkmenistan',
'Tuvalu',
'Uganda',
'Update',
'Update :resource',
'Update :resource: :title',
'Uruguay',
'Vanuatu',
'Venezuela',
'Zimbabwe',
];
+123 -11
View File
@@ -1,19 +1,131 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
':resource Details',
':resource Details: :title',
'Action Name',
'Action Status',
'Administrator',
'Afghanistan',
'Andorra',
'Angola',
'Anguilla',
'April',
'Aruba',
'August',
'Bahamas',
'Bahrain',
'Barbados',
'Belarus',
'Belize',
'Benin',
'Bermuda',
'Bhutan',
'Botswana',
'Burkina Faso',
'Burundi',
'Chile',
'China',
'Code',
'Costa Rica',
'Curaçao',
'Dashboard',
'Name',
'Details',
'Dominica',
'Ecuador',
'Editor',
'El Salvador',
'Eritrea',
'Gambia',
'Ghana',
'Gibraltar',
'Grenada',
'Guadeloupe',
'Guam',
'Guatemala',
'Guernsey',
'Guinea',
'Guinea-Bissau',
'Guyana',
'Haiti',
'Honduras',
'ID',
'Iran, Islamic Republic Of',
'Isle Of Man',
'Israel',
'Japan',
'Jersey',
'Kiribati',
'Kosovo',
'Kuwait',
'Lao People\'s Democratic Republic',
'Lens',
'Lesotho',
'Liberia',
'Liechtenstein',
'Macao',
'Malawi',
'Malaysia',
'Mali',
'Malta',
'Martinique',
'Mauritius',
'Mayotte',
'Monaco',
'Montenegro',
'Montserrat',
'Myanmar',
'Name',
'Namibia',
'Nauru',
'Nepal',
'Nicaragua',
'Niger',
'Nigeria',
'Niue',
'November',
'Oman',
'Pakistan',
'Palau',
'Panama',
'Paraguay',
'Peru',
'Portugal',
'Puerto Rico',
'Reunion',
'Saint Helena',
'Saint Lucia',
'Saint Martin',
'Samoa',
'San Marino',
'Senegal',
'September',
'Sierra Leone',
'Sint Maarten (Dutch part)',
'Somalia',
'Sri Lanka',
'Sudan',
'Suriname',
'Taiwan',
'Thailand',
'Togo',
'Tokelau',
'Tonga',
'Turkmenistan',
'Tuvalu',
'Uganda',
'Ukraine',
'Uruguay',
'Vanuatu',
'Venezuela',
];
+131
View File
@@ -0,0 +1,131 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
':resource Details',
':resource Details: :title',
'Action Name',
'Action Status',
'Administrator',
'Afghanistan',
'Andorra',
'Angola',
'Anguilla',
'April',
'Aruba',
'August',
'Bahamas',
'Bahrain',
'Barbados',
'Belarus',
'Belize',
'Benin',
'Bermuda',
'Bhutan',
'Botswana',
'Burkina Faso',
'Burundi',
'Chile',
'China',
'Code',
'Costa Rica',
'Curaçao',
'Dashboard',
'Details',
'Dominica',
'Ecuador',
'Editor',
'El Salvador',
'Eritrea',
'Gambia',
'Ghana',
'Gibraltar',
'Grenada',
'Guadeloupe',
'Guam',
'Guatemala',
'Guernsey',
'Guinea',
'Guinea-Bissau',
'Guyana',
'Haiti',
'Honduras',
'ID',
'Iran, Islamic Republic Of',
'Isle Of Man',
'Israel',
'Japan',
'Jersey',
'Kiribati',
'Kosovo',
'Kuwait',
'Lao People\'s Democratic Republic',
'Lens',
'Lesotho',
'Liberia',
'Liechtenstein',
'Macao',
'Malawi',
'Malaysia',
'Mali',
'Malta',
'Martinique',
'Mauritius',
'Mayotte',
'Monaco',
'Montenegro',
'Montserrat',
'Myanmar',
'Name',
'Namibia',
'Nauru',
'Nepal',
'Nicaragua',
'Niger',
'Nigeria',
'Niue',
'November',
'Oman',
'Pakistan',
'Palau',
'Panama',
'Paraguay',
'Peru',
'Portugal',
'Puerto Rico',
'Reunion',
'Saint Helena',
'Saint Lucia',
'Saint Martin',
'Samoa',
'San Marino',
'Senegal',
'September',
'Sierra Leone',
'Sint Maarten (Dutch part)',
'Somalia',
'Sri Lanka',
'Sudan',
'Suriname',
'Taiwan',
'Thailand',
'Togo',
'Tokelau',
'Tonga',
'Turkmenistan',
'Tuvalu',
'Uganda',
'Ukraine',
'Uruguay',
'Vanuatu',
'Venezuela',
];
+10 -10
View File
@@ -1,16 +1,16 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
':amount Total',
'Albania',
'Algeria',
+10 -11
View File
@@ -1,16 +1,16 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
':amount Total',
'Action',
'Actions',
@@ -26,7 +26,6 @@ return [
'Burundi',
'Canada',
'Code',
'Code',
'Congo',
'Costa Rica',
'Cuba',
+153
View File
@@ -0,0 +1,153 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
'Administrator',
'Albania',
'Andorra',
'Angola',
'Anguilla',
'April',
'Argentina',
'Armenia',
'Aruba',
'Australia',
'Austria',
'Azerbaijan',
'Bahrain',
'Bangladesh',
'Barbados',
'Belarus',
'Belize',
'Benin',
'Bermuda',
'Bhutan',
'Bolivia',
'Botswana',
'Brazil',
'Bulgaria',
'Burkina Faso',
'Burundi',
'Chad',
'Curaçao',
'Denmark',
'Djibouti',
'Edit',
'Edit :resource',
'Editor',
'El Salvador',
'Eritrea',
'Estonia',
'Fiji',
'Gabon',
'Gambia',
'Georgia',
'Ghana',
'Gibraltar',
'Greenland',
'Grenada',
'Guadeloupe',
'Guam',
'Guatemala',
'Guernsey',
'Guinea',
'Guinea-Bissau',
'Guyana',
'Haiti',
'Honduras',
'Hong Kong',
'ID',
'India',
'Indonesia',
'Iran, Islamic Republic Of',
'Iraq',
'Israel',
'Jersey',
'Kazakhstan',
'Kenya',
'Kiribati',
'Kosovo',
'Kuwait',
'Lao People\'s Democratic Republic',
'Latvia',
'Lebanon',
'Lens',
'Lesotho',
'Liberia',
'Libyan Arab Jamahiriya',
'Liechtenstein',
'Malawi',
'Malaysia',
'Mali',
'Malta',
'Mauritania',
'Mauritius',
'Mayotte',
'Moldova',
'Mongolia',
'Montenegro',
'Montserrat',
'Myanmar',
'Namibia',
'Nauru',
'Nepal',
'Niger',
'Nigeria',
'Niue',
'November',
'Oman',
'Pakistan',
'Palau',
'Panama',
'Paraguay',
'Peru',
'Portugal',
'Qatar',
'Romania',
'Rwanda',
'Saint Barthelemy',
'Saint Helena',
'Saint Lucia',
'Saint Martin',
'Samoa',
'San Marino',
'Senegal',
'September',
'Serbia',
'Seychelles',
'Sierra Leone',
'Sint Maarten (Dutch part)',
'Slovenia',
'Somalia',
'Sri Lanka',
'Sudan',
'Suriname',
'Taiwan',
'Tajikistan',
'Tanzania',
'Thailand',
'Timor-Leste',
'Togo',
'Tokelau',
'Tonga',
'total',
'Tunisia',
'Turkmenistan',
'Tuvalu',
'Uganda',
'Uruguay',
'Uzbekistan',
'Vanuatu',
'Venezuela',
'Zambia',
'Zimbabwe',
];
+17 -23
View File
@@ -1,27 +1,16 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
'ID',
'Email',
'Oh no',
'Editor',
'Password',
'Dashboard',
'No',
/**
* Countries
*/
'Afghanistan',
'Albania',
'Algeria',
@@ -42,7 +31,6 @@ return [
'Bhutan',
'Bolivia',
'Botswana',
'Brunei',
'Bulgaria',
'Burkina Faso',
'Burundi',
@@ -52,9 +40,12 @@ return [
'Congo',
'Costa Rica',
'Cuba',
'Dashboard',
'Dominica',
'Ecuador',
'Editor',
'El Salvador',
'Email',
'Eritrea',
'Estonia',
'Gabon',
@@ -70,6 +61,7 @@ return [
'Haiti',
'Honduras',
'Hong Kong',
'ID',
'India',
'Indonesia',
'Iran, Islamic Republic Of',
@@ -104,11 +96,14 @@ return [
'Niger',
'Nigeria',
'Niue',
'No',
'Oh no',
'Oman',
'Pakistan',
'Palau',
'Panama',
'Paraguay',
'Password',
'Qatar',
'Romania',
'Samoa',
@@ -138,7 +133,6 @@ return [
'Uzbekistan',
'Vanuatu',
'Venezuela',
'Vietnam',
'Yemen',
'Zambia',
'Zimbabwe',
+10 -10
View File
@@ -1,15 +1,15 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
'All rights reserved.',
];
+15
View File
@@ -0,0 +1,15 @@
<?php
/*
|--------------------------------------------------------------------------
| Exclusion list
|--------------------------------------------------------------------------
|
| This is a list of exclusions for words or phrases where the original
| form of the word has the same spelling in a given language.
|
*/
return [
'New',
];
Loaded 100 of 830 files, more files were not shown because too many files have changed in this diff. Show more