Compare commits

..
7 Commits
Author SHA1 Message Date
Fred Delrieu e1714136d4 Merge pull request #374 from blueberry-media/patch-1
added some common attributes to validation.php
2015-06-08 14:59:35 +02:00
BlueBerry 55e8c36cda added some common attributes to validation.php 2015-06-08 13:23:30 +02:00
Fred Delrieu 57bdaeaa6f Update with #364 2015-04-01 21:17:44 +02:00
Fred Delrieu 776cb2e96a (fa) update with #363 2015-04-01 21:16:17 +02:00
caouecs a3d6115daa feature: fr - update validation with #362 2015-03-30 19:56:53 +02:00
caouecs 32c0eca8d9 fix: name of package 2015-03-29 22:53:31 +02:00
caouecs 439ba86dea feature: new readme 2015-03-29 22:38:06 +02:00
775 changed files with 7715 additions and 263285 deletions

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
* text=auto
.github/ export-ignore
tests/ export-ignore
app/ export-ignore
docs/ export-ignore
excludes/ export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
phpunit.xml export-ignore
-15
View File
@@ -1,15 +0,0 @@
---
name: "Bug report"
about: "Report something that's broken. Please ensure your Laravel version is still supported: https://github.com/Laravel-Lang/lang#via-composer"
---
<!-- DO NOT THROW THIS AWAY -->
<!-- Fill out the FULL versions with patch versions -->
- Laravel-Lang Version: #.#.#
- PHP Version: #.#.#
### Description:
### Steps To Reproduce:
-11
View File
@@ -1,11 +0,0 @@
blank_issues_enabled: false
contact_links:
- name: Feature, Questions & Other
url: https://github.com/Laravel-Lang/lang/discussions
about: 'If you have a question or need help using the library, click:'
- name: Laravel issue
url: https://laravel.com/docs
about: 'If you have a question about your Laravel implementation, ask it in your Laravel project.'
- name: Package Manager issue
url: https://github.com/Laravel-Lang/lang#projects-based-on-this-package
about: 'If you have a question about the work of a translation manager, ask their developers:'
-28
View File
@@ -1,28 +0,0 @@
name: phpunit
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
name: PHP Unit
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none
- name: Composer self update
run: composer self-update
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Execute tests
run: sudo vendor/bin/phpunit
-93
View File
@@ -1,93 +0,0 @@
name: self-update
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Keys actualization and update status of translations
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none
- name: Git setup
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Keys actualization
if: success()
run: php app/keys.php
- name: Commit files after checking keys
id: commit_keys
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updating translations keys"; } || IS_DIRTY=0
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
- name: Commit file
id: commit_status
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Updated status of translations"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Push changes
uses: ad-m/github-push-action@master
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 }}
+2 -14
View File
@@ -1,15 +1,3 @@
.idea/
_site/
vendor/
build/
_site
/vendor/
.DS_Store
.php_cs.cache
.phpintel
*.bak
*.cache
*.clover
*.orig
composer.lock
+511
View File
@@ -0,0 +1,511 @@
# Changelog
16 December 2014
* Add Lithunian (lt) by [trigras](https://github.com/trigras)
17 November 2014
* Update French (fr) by [Youghourta Benali](https://github.com/djug)
16 November 2014
* Update Portuguese (pt) by [Francisco Neves](https://github.com/fntneves)
* Update Arabic (ar) by [Youghourta Benali](https://github.com/djug)
14 November 2014
* Update Swedish (sv) by [Robin Hallabro](https://github.com/hallabro)
31 October 2014
* Update Catalan (ca) by [Gerard Nesta](https://github.com/gerardnll)
22 October 2014
* Update Farsi (fa) by [Reza](https://github.com/PlangCoder)
14 October 2014
* Update Bosnian (bs) by [mrakodol](https://github.com/mrakodol)
05 October 2014
* Update Indonesian (id) by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
30 September 2014
* Update Turkish (tr) for validation.email by [Isa Ishangulyyev](https://github.com/isa424)
28 September 2014
* Update Turkish (tr) for reminders.reset and validation.timezone by [azakhi](https://github.com/azakhi)
22 September 2014
* Update Bulgarian (bg) for reminders.reset by [Roumen Damianoff](https://github.com/RoumenDamianoff)
* Update German (de) for reminders.reset, validation.boolean and validation.timezone by [Marius Gebhardt](https://github.com/gbhrdt)
* Update Greek (el) for reminders and validations by [Nikos Gr](https://github.com/grrnikos)
18 September 2014
* Update Spanish (es) for reminders.reset and validation.timezone by [Facundo Farias](https://github.com/facundofarias)
15 September 2014
* Update Italian (it) for validations and reminders.reset by [Budi Irawan](https://github.com/deerawan)
14 September 2014
* Update Vietnamese (vi) for reminders.reset and validation.timezone by [Nguyễn Văn Ánh](https://github.com/anhskohbo)
10 September 2014
* Update Bulgarian (bg) for validation.timezone, required*, boolean by [starstreak](https://github.com/starstreak)
08 September 2014
* Update Polish (pl) by [Jakub Syty](https://github.com/Nekromancer)
06 September 2014
* Add Turkmen (tk) by [Isa Ishangulyyev](https://github.com/isa424)
05 September 2014
* Update Dutch (nl) for validation.timezone by [Mark Mooibroek](https://github.com/markmooibroek)
03 September 2014
* Update Dutch (nl) for reminders.reset by [Mark Mooibroek](https://github.com/markmooibroek)
* Update Thai (th) for reminders.reset, validation.boolean, validation.timezone by [Pachara Limkraisan](https://github.com/kthoth)
26 August 2014
* Update Korean (ko) for reminders.reset, reminders.send, validation by [dbwhddn10](https://github.com/dbwhddn10)
* Update Traditional Chinese (Hong Kong) (zh-HK), Chinese from Taiwan (zh-TW) and Chinese (zh-CN) for validation.timezone and reminders.reset by [Carlos](https://github.com/overtrue)
25 August 2014
* Update Portuguese (pt) for validation.timezone by [miguelbgouveia](https://github.com/miguelbgouveia)
* Update Brazilian (pt-BR) for validation.timezone and reminders.reset by [miguelbgouveia](https://github.com/miguelbgouveia)
* Update Swedish (sv) for reminders.reset and validation.timezone by [Christoffer Rydberg](https://github.com/murum)
24 August 2014
* Update Russian (ru) for reminders.reset and validation.timezone by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
23 August 2014
* Add reminders.reset and validation.timezone for all languages
* Update French (fr) for reminders.reset and validation.timezone by [Fred Delrieu](https://github.com/caouecs)
12 August 2014
* Update Traditional Chinese (Hong Kong) (zh-HK) by [Eric Li](https://github.com/ericksli)
10 August 2014
* Update Brazilian (pt-BR) and Portuguese (pt) for validation.boolean by
* Update Hungarian (hu) by [Zsombor Franczia](https://github.com/frzsombor)
2 August 2014
* Update Swedish (sv) for validation.boolean by [coldKingdom](https://github.com/coldKingdom)
27 July 2014
* Update Indonesian (id) for validation.boolean by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
24 July 2014
* Update Vietnamese (vi) for validation.boolean by [Nguyễn Văn Ánh](https://github.com/anhskohbo)
17 July 2014
* Update French (fr) for reminders.user by [Erwan](https://github.com/NaWer)
16 July 2014
* Update Spanish (es) for validation.boolean by [sauralph](https://github.com/sauralph)
9 July 2014
* Update Turkish (tr) for validation.boolean, validation.required_with_all and validation.required_without_all by [Fatih AYTAÇ](https://github.com/computeus)
8 July 2014
* Update Chinese from Taiwan for validation.boolean by [Joy](https://github.com/joychao)
* Update Traditional Chinese (Hong Kong) (zh-HK) and Chinese (zh-CN) for validation.boolean and validation.exists by [Joy](https://github.com/joychao)
27 June 2014
* Update Thai (th) for reminders.send by [chotikarn](https://github.com/chotikarn)
* Update Brazilian (pt-BR) for validation.unique by [Ricardo Fuhrmann](https://github.com/Fuhrmann)
19 June 2014
* Update Brazilian (pt-BR) for validation.boolean and validation.required_with_all by [miguelbgouveia](https://github.com/miguelbgouveia)
* Update Portuguese (pt) for validation.boolean and validation.required_with_all by [miguelbgouveia](https://github.com/miguelbgouveia)
* Update Spanish (es) for validation.active_url by Benjamin Worwa
11 June 2014
* Update Danish (da) for validation.boolean by [Daniel Bøndergaard](https://github.com/danielboendergaard)
10 June 2014
* Update French (fr) for validation.boolean by [Fred Delrieu](https://github.com/caouecs)
* Update Russian (ru) for validation.boolean by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
* Add validation.boolean for all languages
09 June 2014
* Update Macedonian (mk) by [Marko Aleksic](https://github.com/psybaron)
31 May 2014
* Update Bosnian (bs) by [Edis Golubić](https://github.com/golubic)
24 May 2014
* Update Japanese (ja) by [Yuya Takahashi](https://github.com/takahashiyuya)
15 May 2014
* Update Swedish (sv) by [Alexander Wallin](https://github.com/alexanderwallin)
27 April 2014
* Update Persian (fa) by [Siamak A.M](https://github.com/blacksrc)
20 April 2014
* Add Saridinian (sa) by Massimeddu Cireddu
18 April 2014
* Update Chinese (zh-CN) by [JohnLui](https://github.com/johnlui)
14 April 2014
* Add Persian (fa) by [Siamak A.M](https://github.com/blacksrc)
11 April 2014
* Update Russian (ru) by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
07 April 2014
* Update Chinese (zh-CN) by [Joy](https://github.com/joychao)
* Update Chinese from Hong Kong (zh-HK) by [Joy](https://github.com/joychao)
* Add Chinese from Taiwan (zh-TW) by [Joy](https://github.com/joychao)
* Update Japanese (ja) for validation by [Yuya Takahashi](https://github.com/takahashiyuya)
04 April 2014
* Update German (de) for reminders and validation.required_with_all by [lanort](https://github.com/lanort)
* Update Japanese (ja) for reminders by [Yuya Takahashi](https://github.com/takahashiyuya)
03 April 2014
* Update Swedish (sv) for validation.required_without_all, new validation.email and validation.required_with_all by [coldKingdom](https://github.com/coldKingdom)
31 March 2014
* Update Arabic (ar) for fix, validation.required_without_all and validation.required_with_all by [bo3bdo](https://github.com/bo3bdo)
29 March 2014
* Update Spanish (es) for validation.required_without_all and validation.required_with_all by [Anton Zekeriev Rodin](https://github.com/antonrodin)
14 March 2014
* Update French (fr) with fix by [Elyahou](https://github.com/Elyahou)
12 March 2014
* Update Dutch (nl) with `required_*` by [Herman](https://github.com/sintemaa)
* Update Danish (da) with fix by [Daniel Bøndergaard](https://github.com/danielboendergaard)
05 March 2014
* Update Indonesian (id) with Translated lines description by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
03 March 2014
* Add Montenegrin (me) by [Ognjen MIletić](https://github.com/ognjenm)
* Update Bosnian (bs) for reminders.send and validation.required_without_all by [mrakodol](https://github.com/mrakodol)
* Update Danish (da) for validation.required_without_all, new validation.email and validation.required_with_all by [Daniel Bøndergaard](https://github.com/danielboendergaard)
* Update French (fr) for validation.between.array by [Alex-Info.net](https://github.com/AlexInfoNet)
02 March 2014
* Fix on Russian (ru) for validation.required_with_all by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
01 March 2014
* Update Indonesian (id) for validation.required_with_all by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
* Update French (fr) with validation.required_with_all by [Fred Delrieu](https://github.com/caouecs)
* Update all languages with example for custom message by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
* All validation.required_with_all in all languages ( english version ) by [Fred Delrieu](https://github.com/caouecs)
28 February 2014
* Update Russian (ru) for validation.required_with_all and example for custom message by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
* Update French (fr) with validation.attributes.password_confirmation by [Barbuslex](https://github.com/barbuslex)
* Update Vietnamese (vi) for new validation.email and validation.required_without_all by [anhsaker](https://github.com/anhsaker)
27 February 2014
* Update Russian (ru) for new validation.email by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
* Update Indonesian (id) for fix, validation.required_without_all and new validation.email by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
26 February 2014
* Update German (de) for validation.required_without_all by [justb81](https://github.com/justb81)
* Update Romanian (ro) by [Vadim](https://github.com/cojocaru)
25 February 2014
* Update Romanian (ro) by [Vadim](https://github.com/cojocaru)
18 February 2014
* Update Serbian (sr) for reminders and validation files by [Adis](https://github.com/adis-me)
07 February 2014
* Add Cambodian (km) by [Chanthoeun Kim](https://github.com/Chanthoeun)
* Update Russian (ru) for validation.required_without_all by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
* Update Portuguese (pt) and Brazilian (pt-BR) for validation.required_without_all [miguelbgouveia](https://github.com/miguelbgouveia)
* Update Swedish (sv) and Finnish (fi) by [Linus Odenring](https://github.com/linusodenring)
06 February 2014
* Update French (fr) with validation.required_without_all by [Fred Delrieu](https://github.com/caouecs)
* Add validation.required_without_all in English for all files
* Update Swedish (sv) and Finnish (fi) by [Linus Odenring](https://github.com/linusodenring)
05 February 2014
* Update French (fr) by [Alexandre Butynski](https://github.com/alexandre-butynski)
28 January 2014
* Update Arabic (ar) by [Ihab Shoully](https://github.com/shoully)
26 January 2014
* Update Brazilian (pt-BR) for Laravel 4.1 by [Gabriel Machado](https://github.com/gmsantosxl)
* Update Slovak (sk) by [Andrej Badin](https://github.com/Andreyco)
22 January 2014
* Update Italian (it) by [Davide Bellini](https://github.com/billmn)
* Update Arabic (ar) for Laravel 4.1 by [Ihab Shoully](https://github.com/shoully)
15 January 2014
* Update Danish (da) for Laravel 4.1 by [Daniel Bøndergaard](https://github.com/danielboendergaard)
13 January 2014
* Update Swedish and Norwegian Bokmål for Laravel 4.1 by [thomeu](https://github.com/thomeu)
10 January 2014
* Update Indonesian (id) for Laravel 4.0 and 4.1 by [Ivo Idham Perdameian](https://github.com/idhamperdameian)
09 January 2014
* Update Turkish (tr) for Laravel 4.1 by [Arda Kılıçdağı](https://github.com/Ardakilic)
* Update Polish (pl) for Laravel 4.0 and 4.1 by [Marcin Sągol](https://github.com/soee)
30 December 2013
* Update Czech (cs) for Laravel 4.1 by [rozklad](https://github.com/rozklad)
29 December 2013
* Update Italian (it) for Laravel 4.1 by [alextesi](https://github.com/alextesi)
28 December 2013
* Update German (de) for Laravel 4.1 by [Gerald Lindner](https://github.com/vauteer)
23 December 2013
* Update Greek (el) for Laravel 4.1 by [dimsav](https://github.com/dimsav)
17 December 2013
* Fix Spanish (es) by [Javier Cadiz](https://github.com/cadizjavier)
16 December 2013
* Fix Slovak (sk) by [Roumen Damianoff](https://github.com/RoumenDamianoff)
* Update Bulgarian (bg) for Laravel 4.0 and Laravel 4.1 by [Roumen Damianoff](https://github.com/RoumenDamianoff)
15 December 2013
* Update Arabic (ar) for Laravel 4.1 by [Ammar Alakkad](https://github.com/AAlakkad)
12 December 2013
* Update Catalan (ca) and Spanish (es) for Laravel 4.1 by [David Moreno](https://github.com/davidmb91)
* Update Portuguese (pt) for Laravel 4.1 by [miguelbgouveia](https://github.com/miguelbgouveia)
01 December 2013
* Update Vietnamese (vi) for Laravel 4.1 by [anhsaker](https://github.com/anhsaker)
21 November 2013
* Add reminders.sent in develop branch for Laravel 4.1
* Update French (fr) by [Fred Delrieu](https://github.com/caouecs)
* Update Russian (ru) by [Evgeny Kovalev](https://github.com/EvgenyKovalev)
18 November 2013
* Add Macedonian (mk) by [maced0n](https://github.com/maced0n)
10 November 2013
* Add Catalan (ca) by [David Moreno](https://github.com/davidmb91)
09 Novembre 2013
* Array elements (it) and (ro) by [Ionut Tanasa](https://github.com/ionut-tanasa)
02 November 2013
* Add Korean (ko) by [Kaden Lee](https://github.com/thisiskaden)
30 October 2013
* Add Slovak (sk) by [Martin Olšanský](https://github.com/MartinOlsansky)
* Add Czech (cs) by [rozklad](https://github.com/rozklad)
27 October 2013
* Add Norwegian Bokmål (nb) by [Marius](https://github.com/mariuso)
23 October 2013
* Array elements (th) by [chotikarn](https://github.com/chotikarn)
18 October 2013
* Fix Russian (ru) by [Vasily Tsybenko](https://github.com/VasayXTX)
16 October 2013
* Add Bosnian (bs) by [mrakodol](https://github.com/mrakodol)
01 October 2013
* Fix German (de) by [nullEuro](https://github.com/nullEuro)
20 Septembre 2013
* Fix Portuguese (pt) by [miguelbgouveia](https://github.com/miguelbgouveia)
19 September 2013
* Array elements (pt-BR) by [insign](https://github.com/insign)
06 September 2013
* Fix german (de) by [lanort](https://github.com/lanort)
18 August 2013
* Array elements (el) by [Konstantinos Pittas](https://github.com/kostaspt)
14 August 2013
* Array elements (tr) by [Sinan Eldem](https://github.com/sineld)
* Array elements (ru) by [EvgenyKovalev](https://github.com/EvgenyKovalev)
* Array elements (de) by [Jones](https://github.com/JN-Jones)
13 August 2013
* Array elements (es) by [Nikoskip](https://github.com/nikoskip)
12 August 2013
* Array elements (nl) by [juukie14](https://github.com/juukie14)
05 August 2013
* Fix Arabic (ar) by [Ibrahim AshShohail](https://github.com/laheab)
* Add array elements
04 August 2013
* Fix German (de) by [iflow](https://github.com/iflow)
30 July 2013
* Add Brazilian (pt-BR) by [c0h1b4](https://github.com/c0h1b4)
* Update Brazilian (pt-BR) by [miguelbgouveia](https://github.com/miguelbgouveia)
* Add Vietnamese (vi) by [anhsaker](https://github.com/anhsaker)
19 July 2013
* Update Swedish (sv) by [Jonas Söderberg](https://github.com/imevul)
12 July 2013
* Review (pt) by [miguelbgouveia](https://github.com/miguelbgouveia)
06 July 2013
* Add validation.attributes (fr) by [Fred Delrieu](https://github.com/caouecs)
* Indentation
04 July 2013
* Add Thai (th) by [teepluss](https://github.com/teepluss)
* Add many languages files from Laravel3 - need review
02 July 2013
* ISO 639-1 for Danish (dk->da) by [Fred Delrieu](https://github.com/caouecs)
22 June 2013
* Review (nl) by [Thomasdezeeuw](https://github.com/Thomasdezeeuw)
17 June 2013
* Review (nl) by [jaspur](https://github.com/jaspur)
14 June 2013
* Add Hungarian (hu) by [terdelyi](https://github.com/terdelyi)
* Add Portuguese (pt) by [miguelbgouveia](https://github.com/miguelbgouveia)
13 June 2013
* Review Danish (dk) by [hauthorn](https://github.com/hauthorn)
11 June 2013
* Review (tr) by [pellempus](https://github.com/pellempus)
09 June 2013
* Add Danish (dk) by [AndreasHeiberg](https://github.com/AndreasHeiberg)
07 June 2013
* Add Greek (el) by [igaster](https://github.com/igaster)
* Update (es) by [Nikoskip](https://github.com/nikoskip)
04 June 2013
* Add traditional chinese (HK) by [efilm](https://github.com/efilm)
* Add attributes (ar) by [AAlakkad](https://github.com/AAlakkad)
* Review (nl) by [jeroengerits](https://github.com/jeroengerits)
-21
View File
@@ -1,21 +0,0 @@
# MIT License
Copyright (c) 2021 Laravel-Lang team
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
+121 -21
View File
@@ -1,29 +1,129 @@
# Laravel Lang
Laravel-lang
=============
In this repository, you can find the lang files for the [Laravel Framework 4/5/6/7/8](https://laravel.com), [Laravel Jetstream](https://jetstream.laravel.com)
, [Laravel Fortify](https://github.com/laravel/fortify), [Laravel Cashier](https://laravel.com/docs/8.x/billing) and [Laravel Nova](https://nova.laravel.com).
In this repository, you can find the lang files for the framework PHP, [Laravel 4&5](http://www.laravel.com).
<p align="center">
[
<a href="https://laravel-lang.github.io/lang">Documentation</a> |
<a href="https://laravel-lang.github.io/lang/status.html">Completion Status</a>
]
</p>
---
## News
How add languages in my app ?
---
* 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 )
### Installation by GitHub
## Translation managers
* Clone the [GitHub repository](https://github.com/caouecs/laravel-lang/) : *git clone https://github.com/caouecs/laravel-lang.git*
* Or download the [zip file](https://github.com/caouecs/laravel-lang/archive/master.zip)
* Choose the branch:
* `laravel4` for Laravel4 project
* `master` for Laravel5 project
* Copy the folders of languages that you want, in *app/lang* folder of your application Laravel
* [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.
* [Lang Publisher](https://github.com/andrey-helldar/laravel-lang-publisher) by [*@andrey-helldar*](https://github.com/andrey-helldar) - Easy installation and
update of translation files for your project.
## Credits
### Installation by Composer
- [Referents by language](https://laravel-lang.github.io/lang/referents.html)
- [All Contributors](https://github.com/Laravel-Lang/lang/graphs/contributors)
* For Laravel 4 : add `"caouecs/laravel4-lang": "~1.0"` in your `composer.json` in "require" or run *composer require caouecs/laravel4-lang*
* For Laravel 5 : add `"caouecs/laravel4-lang": "~2.0"` in your `composer.json` in "require"
* Do "composer update"
* Files of languages are in "vendor/caouecs/laravel4-lang" directory
* Copy the folders of languages that you want, in *app/lang* folder of your application Laravel
### Installation by Command
If you have a Laravel5 project, you can use `laravel-lang` project of overtrue : *composer require "overtrue/laravel-lang:dev-master"*
### Language by default in your app
In the file *app/config/app.php*, change the value of *language* by the short name of your language.
---
How can I add a language in this project ?
---
* fork this repository
* create a directory 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 this three files of the english version with your translate
* for [Laravel](https://github.com/laravel/laravel/tree/master/app/lang/en)
* add a pull request with the name of the language
How can I fix a file ?
---
* fork this repository
* update the file
* add a pull request with the name of the language
Laravel 4.0
---
We need your help to finish to translate `validation.php` file with array elements.
You can follow translations in the issue [#73](https://github.com/caouecs/laravel-lang/issues/73).
Laravel 4.1
---
### Password reminder sent
To be ready for the new version of Laravel, we need your help. In `reminders.php` file, a new line has been added :
"sent" => "Password reminder sent!",
You can follow translations in the issue [#137](https://github.com/caouecs/laravel-lang/issues/137).
### Required without all
In `validation.php` file, a new line has been added :
"required_without_all" => "The :attribute field is required when none of :values are present."
You can follow translations in the issue [#172](https://github.com/caouecs/laravel-lang/issues/172).
### Validation email
In `validation.php` file, the text for email has been updated :
"email" => "The :attribute must be a valid email address."
You can follow translations in the issue [#187](https://github.com/caouecs/laravel-lang/issues/187).
### Required with all
In `validation.php` file, a new line has been added :
"required_with_all" => "The :attribute field is required when :values is present."
You can follow translations in the issue [#193](https://github.com/caouecs/laravel-lang/issues/193).
Laravel 4.2
---
### Reset in reminders
In `reminders.php` file, a new line has been added :
"reset" => "Password has been reset!"
You can follow translations in the issue [#258](https://github.com/caouecs/laravel-lang/issues/258).
### Validation.timezone
In `validation.php` file, a new line has been added :
"timezone" => "The :attribute must be a valid zone."
You can follow translations in the issue [#259](https://github.com/caouecs/laravel-lang/issues/259).
Laravel 5.0
---
The files of languages have been updated for Laravel 5, in `laravel5` branch.
* array for PHP 5.4+
* validation.filled, with same translation than validation.required
* *reminders* file is now *languages* file
In `passwords` file [#323](https://github.com/caouecs/laravel-lang/issues/323) :
"sent" => "We have e-mailed your password reset link!"
"reset" => "Your password has been reset!"
-3
View File
@@ -1,3 +0,0 @@
# Security Policy
This project is text translations of Laravel project. So, this project doesn't need to have security policy.
+250
View File
@@ -0,0 +1,250 @@
# Sources
Albanian (sq)
* [Flakerim Ismani](https://github.com/Flakerimi)
Arabic (ar)
* [Ammar Alakkad](https://github.com/AAlakkad)
* [bo3bdo](https://github.com/bo3bdo)
* [Ibrahim AshShohail](https://github.com/laheab)
* [Ihab Shoully](https://github.com/shoully)
* [Youghourta Benali](https://github.com/djug)
Bosnian (bs)
* [Edis Golubić](https://github.com/golubic)
* [mrakodol](https://github.com/mrakodol)
Brazilian (pt-BR)
* [c0h1b4](https://github.com/c0h1b4)
* [Gabriel Machado](https://github.com/gmsantosxl)
* [insign](https://github.com/insign)
* [miguelbgouveia](https://github.com/miguelbgouveia)
* [Ramiro Varandas Jr](https://github.com/ramirovjr)
* [Ricardo Fuhrmann](https://github.com/Fuhrmann)
Bulgarian (bg)
* [Roumen Damianoff](https://github.com/RoumenDamianoff)
* [starstreak](https://github.com/starstreak)
Cambodian (km)
* [Chanthoeun Kim](https://github.com/Chanthoeun)
Catalan (ca)
* [David Moreno](https://github.com/davidmb91)
* [Gerard Nesta](https://github.com/gerardnll)
Chinese (zh-CN)
* [Carlos](https://github.com/overtrue)
* [JohnLui](https://github.com/johnlui)
* [phoenixg](https://github.com/phoenixg)
Chinese from Taiwan (zh-TW)
* [Carlos](https://github.com/overtrue)
Czech (cs)
* [rozklad](https://github.com/rozklad)
Danish (da)
* [Andreas Heiberg](https://github.com/AndreasHeiberg)
* [Christoffer Hauthorn Boisen](https://github.com/hauthorn)
* [Daniel Bøndergaard](https://github.com/danielboendergaard)
Dutch (nl)
* [byordereurope](https://github.com/byordereurope)
* [Herman](https://github.com/sintemaa)
* [Jaspur](https://github.com/jaspur)
* [Jeroen Gerits](https://github.com/jeroengerits)
* [juukie14](https://github.com/juukie14)
* [Mark Mooibroek](https://github.com/markmooibroek)
* [Thomas de Zeeuw](https://github.com/Thomasdezeeuw)
Farsi (fa)
* [Reza](https://github.com/PlangCoder)
Finnish (fi)
* [Linus Odenring](https://github.com/linusodenring)
* [Patrik](https://github.com/gkunno)
French (fr)
* [Alexandre Butynski](https://github.com/alexandre-butynski)
* [Alex-Info.net](https://github.com/AlexInfoNet)
* [Barbuslex](https://github.com/barbuslex)
* [Elyahou](https://github.com/Elyahou)
* [Erwan](https://github.com/NaWer)
* [Fred Delrieu](https://github.com/caouecs)
* [Laravel-France](https://github.com/laravel-france)
* [Youghourta Benali](https://github.com/djug)
German (de)
* [Gerald Lindner](https://github.com/vauteer)
* [iflow](https://github.com/iflow)
* [Jones](https://github.com/JN-Jones)
* [justb81](https://github.com/justb81)
* [lanort](https://github.com/lanort)
* [Marius Gebhardt](https://github.com/gbhrdt)
* [Martin Hettiger](https://github.com/hettiger)
* [nullEuro](https://github.com/nullEuro)
Greek (el)
* [dimsav](https://github.com/dimsav)
* [igaster](https://github.com/igaster)
* [Konstantinos Pittas](https://github.com/kostaspt)
* [Nikos Gr](https://github.com/grrnikos)
Hebrew (he)
* [Orel Ben-Yair](https://github.com/LighTo273)
Hungarian (hu)
* [Tamás Erdélyi](https://github.com/terdelyi)
* [Zsombor Franczia](https://github.com/frzsombor)
Indonesian (id)
* [apit](https://github.com/apit)
* [Budi Irawan](https://github.com/deerawan)
* [Ivo Idham Perdameian](https://github.com/idhamperdameian)
* [William Notowidagdo](https://github.com/williamn)
Italian (it)
* [alextesi](https://github.com/alextesi)
* [Davide Bellini](https://github.com/billmn)
* [Ionut Tanasa](https://github.com/ionut-tanasa)
* [longilineo](https://github.com/longilineo)
Japanese (ja)
* [Hirohisa Kawase](https://github.com/HiroKws)
* [Yuya Takahashi](https://github.com/takahashiyuya)
Korean (ko)
* [dbwhddn10](https://github.com/dbwhddn10)
* [Kaden Lee](https://github.com/thisiskaden)
Lithunian (lt)
* [trigras](https://github.com/trigras)
Macedonian (mk)
* [Marko Aleksic](https://github.com/psybaron)
* [maced0n](https://github.com/maced0n)
Montenegrin (me)
* [Ognjen MIletić](https://github.com/ognjenm)
Norwegian Bokmål (nb)
* [Marius](https://github.com/mariuso)
* [thomeu](https://github.com/thomeu)
Persian (fa)
* [Siamak A.M](https://github.com/blacksrc)
Polish (pl)
* [anojszewski](https://github.com/anojszewski)
* [Jakub Syty](https://github.com/Nekromancer)
* [Marcin Sągol](https://github.com/soee)
Portuguese (pt)
* [Francisco Neves](https://github.com/fntneves)
* [miguelbgouveia](https://github.com/miguelbgouveia)
* [Ramiro Varandas Jr](https://github.com/ramirovjr)
Romanian (ro)
* [flavy](https://github.com/flavy)
* [Ionut Tanasa](https://github.com/ionut-tanasa)
* [Vadim](https://github.com/cojocaru)
Russian (ru)
* [Evgeny Kovalev](https://github.com/EvgenyKovalev)
* [Vasily Tsybenko](https://github.com/VasayXTX)
Sardinian (sa)
* Massimeddu Cireddu
Serbian (sr)
* [Adis](https://github.com/adis-me)
* [Dejan Geci](https://github.com/dejangeci)
Slovak (sk)
* [Andrej Badin](https://github.com/Andreyco)
* [Martin Olšanský](https://github.com/MartinOlsansky)
Spanish (es)
* [Anton Zekeriev Rodin](https://github.com/antonrodin)
* Benjamin Worwa
* [Facundo Farias](https://github.com/facundofarias)
* [Javier Cadiz](https://github.com/cadizjavier)
* [Nikolas](https://github.com/nikoskip)
* [sauralph](https://github.com/sauralph)
Swedish (sv)
* [Alexander Wallin](https://github.com/alexanderwallin)
* [Christoffer Rydberg](https://github.com/murum)
* [coldKingdom](https://github.com/coldKingdom)
* [Jonas Söderberg](https://github.com/imevul)
* [Linus Odenring](https://github.com/linusodenring)
* [Robin Hallabro](https://github.com/hallabro)
* [thomeu](https://github.com/thomeu)
* [Vincent Klaiber](https://github.com/vincentklaiber)
Thai (th)
* [chotikarn](https://github.com/chotikarn)
* [Pachara Limkraisan](https://github.com/kthoth)
* [Teepluss](https://github.com/teepluss)
Traditional Chinese (Hong Kong) (zh-HK)
* [Carlos](https://github.com/overtrue)
* [Eric Li](https://github.com/ericksli)
* [Fatih AYTAÇ](https://github.com/computeus)
Turkish (tr)
* [Arda Kılıçdağı](https://github.com/Ardakilic)
* [azakhi](https://github.com/azakhi)
* [Isa Ishangulyyev](https://github.com/isa424)
* [pellempus](https://github.com/pellempus)
* [Sinan Eldem](https://github.com/sineld)
Turkmen (tk)
* [Isa Ishangulyyev](https://github.com/isa424)
Vietnamese (vi)
* [anhsaker](https://github.com/anhsaker)
* [Nguyễn Văn Ánh](https://github.com/anhskohbo)
+44
View File
@@ -0,0 +1,44 @@
# Status of Languages
| Language | name | v4.0 | v4.1 | required_without_all | val.email | required_with_all | val.boolean | reminders.reset | val.timezone |
|----------|:----:|:----:|:----:|:--------------------:|:---------:|:-----------------:|:-----------:|:---------------:|:------------:|
| Albanian | sq | -- | -- | -- | -- | -- | -- | -- | -- |
| Arabic | ar | OK | OK | OK | OK | OK | OK | OK | OK |
| Bosnian | bs | OK | OK | OK | -- | -- | -- | -- | -- |
| Brazilian | pt-BR | OK | OK | OK | OK | OK | OK | OK | OK |
| Bulgarian | bg | OK | OK | OK | OK | OK | OK | OK | OK |
| Cambodian | km | OK | OK | OK | -- | -- | -- | -- | -- |
| Catalan | ca | OK | OK | OK | OK | OK | OK | OK | OK |
| Chinese | zh-CN | OK | OK | OK | OK | OK | OK | OK | OK |
| Chinese from Taiwan | zh-TW | OK | OK | OK | OK | OK | OK | OK | OK |
| Czech | cs | OK | OK | -- | -- | -- | -- | -- | -- |
| Danish | da | OK | OK | OK | OK | OK | OK | -- | -- |
| Dutch | nl | OK | OK | OK | OK | OK | OK | OK | OK |
| Farsi | fa | OK | OK | OK | OK | OK | -- | -- | -- |
| Finnish | fi | -- | OK | -- | -- | -- | -- | -- | -- |
| French | fr | OK | OK | OK | OK | OK | OK | OK | OK |
| German | de | OK | OK | OK | OK | OK | OK | OK | OK |
| Greek | el | OK | OK | OK | OK | OK | OK | OK | OK |
| Hebrew | he | -- | -- | -- | -- | -- | -- | -- | -- |
| Hungarian | hu | OK | OK | OK | OK | OK | OK | -- | -- |
| Indonesian | id | OK | OK | OK | OK | OK | OK | OK | OK |
| Italian | it | OK | OK | OK | OK | OK | OK | OK | OK |
| Japanese | jp | OK | OK | OK | OK | OK | -- | -- | -- |
| Korean | ko | OK | OK | OK | OK | OK | OK | OK | OK |
| Lithunian | lt | OK | OK | OK | OK | OK | OK | OK | OK |
| Macedonian | mk | OK | OK | -- | -- | -- | -- | -- | -- |
| Montenegrin | me | OK | OK | OK | OK | OK | -- | -- | -- |
| Norwegian Bokmål | nb | OK | OK | -- | -- | -- | -- | -- | -- |
| Polish | pl | OK | OK | -- | -- | -- | -- | -- | -- |
| Portuguese | pt | OK | OK | OK | OK | OK | OK | OK | OK |
| Romanian | ro | OK | OK | OK | -- | -- | -- | -- | -- |
| Russian | ru | OK | OK | OK | OK | OK | OK | OK | OK |
| Serbian | sr | OK | OK | -- | -- | -- | -- | -- | -- |
| Slovak | sk | OK | OK | -- | -- | -- | -- | -- | -- |
| Spanish | es | OK | OK | OK | OK | OK | OK | OK | OK |
| Swedish | sv | OK | OK | OK | OK | OK | OK | OK | OK |
| Thai | th | OK | OK | -- | -- | -- | OK |OK | OK |
| Traditional Chinese (Hong Kong) | zh-HK | OK | OK | OK | OK | OK | OK | OK | OK |
| Turkish | tr | OK | OK | OK | OK | OK | OK | OK | OK |
| Turkmen | tk | OK | OK | OK | OK | OK | OK | OK | OK |
| Vietnamese | vi | OK | OK | OK | OK | OK | OK | OK | OK |
-9
View File
@@ -1,9 +0,0 @@
<?php
use LaravelLang\Lang\Application;
$app = Application::make(
realpath(__DIR__ . '/../../')
);
return $app;
-11
View File
@@ -1,11 +0,0 @@
<?php
use LaravelLang\Lang\Processors\Excludes;
use LaravelLang\Lang\Services\Filesystem\Php;
require __DIR__ . '/../vendor/autoload.php';
/** @var \LaravelLang\Lang\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';
$app->processor(Excludes::make(), Php::make());
-14
View File
@@ -1,14 +0,0 @@
<?php
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());
-82
View File
@@ -1,82 +0,0 @@
<?php
namespace LaravelLang\Lang;
use Helldar\Support\Concerns\Makeable;
use LaravelLang\Lang\Contracts\Application as ApplicationContract;
use LaravelLang\Lang\Contracts\Filesystem;
use LaravelLang\Lang\Contracts\Processable;
final class Application implements ApplicationContract
{
use Makeable;
protected Filesystem $filesystem;
public function __construct(
protected string $base_path
) {
}
public function basePath(): string
{
return rtrim($this->base_path, '/\\');
}
public function sourcePath(string $filename = null): string
{
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
{
if ($value = $this->cleanPath($path)) {
return $this->basePath() . '/' . $value;
}
return $this->basePath();
}
public function cleanPath(string $path = null): ?string
{
if (! empty($path)) {
return ltrim($path, '/\\');
}
return null;
}
public function filesystem(Filesystem $filesystem): ApplicationContract
{
$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();
}
}
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace LaravelLang\Lang\Concerns;
trait Contains
{
protected function isJson(string $filename): bool
{
return str_ends_with($filename, 'json');
}
protected function isPhp(string $filename): bool
{
return ! $this->isJson($filename);
}
protected function isValidation(string $filename): bool
{
return str_starts_with($filename, 'validation');
}
}
-30
View File
@@ -1,30 +0,0 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\PrettyArray\Services\File as PrettyFile;
use Helldar\Support\Facades\Helpers\Filesystem\File;
/** @mixin \LaravelLang\Lang\Processors\Processor */
trait Excludes
{
protected static array $excludes = [];
protected function hasExclude(string $key, string $locale): bool
{
return in_array($key, $this->getExcludes($locale), true) || in_array($key, $this->getExcludes(), true);
}
protected function getExcludes(string $locale = null): array
{
$locale = $locale ?: '_all';
$path = $this->app->excludePath($locale);
if (static::$excludes[$locale] ?? false) {
return static::$excludes[$locale];
}
return static::$excludes[$locale] = File::exists($path) ? PrettyFile::make()->load($path) : [];
}
}
-39
View File
@@ -1,39 +0,0 @@
<?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;
}
}
-41
View File
@@ -1,41 +0,0 @@
<?php
namespace LaravelLang\Lang\Concerns;
use Helldar\PrettyArray\Services\File;
use Helldar\Support\Facades\Helpers\Str;
trait Template
{
protected static array $templates = [];
protected function template(string $filename, array $values = [], bool $trim = false, bool $return_empty = false): string
{
$template = $this->getTemplate($filename, $trim);
return $this->replace($template, $values, $return_empty);
}
protected function replace(string $template, array $values, bool $return_empty = false): string
{
return $return_empty ? '' : Str::replace($template, $values, '{{%s}}');
}
protected function getTemplate(string $filename, bool $trim = false): string
{
if (static::$templates[$filename] ?? false) {
return static::$templates[$filename];
}
$template = File::make()->loadRaw(
$this->templatePath($filename)
);
return static::$templates[$filename] = $trim ? trim($template) : $template;
}
protected function templatePath(string $filename): string
{
return $this->app->resourcePath($filename);
}
}
-40
View File
@@ -1,40 +0,0 @@
<?php
namespace LaravelLang\Lang\Constants;
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 zh_CN = ['overtrue'];
public const zh_HK = ['overtrue'];
public const zh_TW = ['overtrue'];
}
-28
View File
@@ -1,28 +0,0 @@
<?php
namespace LaravelLang\Lang\Constants;
final class Resource
{
public const STATUS = 'status.stub';
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';
public const COMPONENT_LOCALE = 'components/locale.stub';
public const COMPONENT_TABLE = 'components/table/index.stub';
public const COMPONENT_TABLE_COLUMN = 'components/table/column.stub';
public const COMPONENT_TABLE_ROW = 'components/table/row.stub';
public const COMPONENT_TABLE_ATTRIBUTE_ALIGN = 'components/table/attributes/align.stub';
public const COMPONENT_TABLE_ATTRIBUTE_WIDTH = 'components/table/attributes/width.stub';
}
-28
View File
@@ -1,28 +0,0 @@
<?php
namespace LaravelLang\Lang\Contracts;
interface Application
{
public function __construct(string $base_path);
public function basePath(): string;
public function sourcePath(string $filename = 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;
}
-15
View File
@@ -1,15 +0,0 @@
<?php
namespace LaravelLang\Lang\Contracts;
use Helldar\Support\Tools\Stub;
use LaravelLang\Lang\Application;
interface Filesystem
{
public function application(Application $app): self;
public function load(string $path): array;
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void;
}
-12
View File
@@ -1,12 +0,0 @@
<?php
namespace LaravelLang\Lang\Contracts;
use LaravelLang\Lang\Application;
interface Processable
{
public function run(): void;
public function application(Application $app): self;
}
-8
View File
@@ -1,8 +0,0 @@
<?php
namespace LaravelLang\Lang\Contracts;
interface Stringable
{
public function toString(): string;
}
-38
View File
@@ -1,38 +0,0 @@
<?php
namespace LaravelLang\Lang\Models;
final class Locale extends Model
{
public function __construct(
protected ?string $locale = null,
protected ?int $missing = 0
) {
}
public function getLocale(): ?string
{
return $this->locale;
}
public function getTitle(): ?string
{
if (! $this->isEmpty()) {
$suffix = $this->getMissing() ? '❗' : '✔';
return $this->locale . '&nbsp;' . $suffix;
}
return null;
}
public function getMissing(): ?int
{
return $this->missing;
}
public function isEmpty(): bool
{
return empty($this->locale);
}
}
-10
View File
@@ -1,10 +0,0 @@
<?php
namespace LaravelLang\Lang\Models;
use Helldar\Support\Concerns\Makeable;
abstract class Model
{
use Makeable;
}
-75
View File
@@ -1,75 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Arr;
use Helldar\Support\Facades\Helpers\Filesystem\File;
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);
}
}
-24
View File
@@ -1,24 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
final class Json extends Processor
{
protected string $target_path = 'locales';
public function run(): void
{
foreach ($this->locales() as $locale) {
$target_path = $this->getTargetPath($locale . '/' . $locale . '.json');
$this->process($target_path, 'en.json', $locale);
}
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
}
}
-32
View File
@@ -1,32 +0,0 @@
<?php
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 = 'locales';
public function run(): void
{
foreach ($this->locales() as $locale) {
foreach ($this->files($locale) as $file) {
$target_path = $this->getTargetPath($locale . '/' . $file);
$this->process($target_path, $file, $locale);
}
}
}
protected function files(string $locale): array
{
return File::names($this->getTargetPath($locale), fn ($filename) => $this->isPhp($filename));
}
protected function locales(): array
{
return Directory::names($this->getTargetPath());
}
}
-138
View File
@@ -1,138 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors;
use Helldar\Support\Concerns\Makeable;
use Helldar\Support\Facades\Helpers\Arr;
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\Php as PhpFilesystem;
abstract class Processor implements Processable
{
use Contains;
use Makeable;
protected Application $app;
protected array $source = [];
protected string $target_path;
/** @var \LaravelLang\Lang\Contracts\Filesystem[]|array */
protected array $filesystems = [];
public function application(Application $app): Processable
{
$this->app = $app;
return $this;
}
protected function merge(array $source, array $target, string $filename): array
{
$target = Arr::only($target, array_keys($source));
$this->sort($source);
$this->sort($target);
if ($this->isValidation($filename)) {
$custom = $this->getFallbackValue($source, $target, 'custom');
$attributes = $this->getFallbackValue($source, $target, 'attributes');
$source = Arr::except($source, ['custom', 'attributes']);
$target = Arr::except($target, ['custom', 'attributes']);
return array_merge($source, $target, compact('custom', 'attributes'));
}
return array_merge($source, $target);
}
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, $filename);
}
protected function source(string $filename): array
{
if ($this->source[$filename] ?? false) {
return $this->source[$filename];
}
return $this->source[$filename] = $this->load($this->getSourcePath($filename));
}
protected function getFallbackValue(array $source, array $target, string $key)
{
return Arr::get($target, $key) ?: Arr::get($source, $key, []);
}
protected function getTargetPath(string $path = null): string
{
if ($path = $this->app->cleanPath($path)) {
$path = '/' . $path;
}
return $this->app->path($this->target_path . $path);
}
protected function getSourcePath(string $filename = null): string
{
return $this->app->sourcePath($filename);
}
protected function sort(array &$array): void
{
$array = Arr::ksort($array);
}
protected function load(string $path): array
{
return $this->getFilesystem($path)->load($path);
}
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 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->app->getFilesystem()->store($path, $content, $is_simple, $stub);
}
protected function getStubPath(?string $filename): ?string
{
return empty($filename) ? Stub::PHP_ARRAY : $filename;
}
}
-51
View File
@@ -1,51 +0,0 @@
<?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;
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);
}
}
-53
View File
@@ -1,53 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Collection;
use LaravelLang\Lang\Services\Compilers\Locale;
final class Locales extends Processor
{
protected function saving(): void
{
foreach ($this->locales as $locale => $items) {
$count = $this->countMissing($locale);
$content = $this->compileList($items);
$result = $this->compileContent($content, $locale, $count);
$filename = Str::slug($locale);
$this->store($this->pathStatus($filename . '.md'), $result);
}
}
protected function compileContent(string $content, string $locale, int $count): Stringable
{
return Locale::make($this->app)->items(compact('locale', 'count', 'content'));
}
protected function compileList(array $items): string
{
$content = Collection::make($this->app)->items($items)->toString();
return $content ?: $this->template(Resource::COMPONENT_ALL_TRANSLATED);
}
protected function ensureDirectory(): void
{
if (Directory::exists($this->pathStatus())) {
Directory::delete($this->pathStatus());
}
Directory::make($this->pathStatus());
}
protected function pathStatus(string $filename = null): string
{
return $this->app->path('docs/statuses/' . $filename);
}
}
-21
View File
@@ -1,21 +0,0 @@
<?php
namespace LaravelLang\Lang\Processors\Statuses;
use LaravelLang\Lang\Contracts\Stringable;
use LaravelLang\Lang\Services\Compilers\Status;
class Main extends Processor
{
protected function saving(): void
{
$result = $this->compileContent($this->locales);
$this->store('docs/status.md', $result);
}
protected function compileContent(array $items): Stringable
{
return Status::make($this->app)->items($items);
}
}
-150
View File
@@ -1,150 +0,0 @@
<?php
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\Tools\Sorter;
use LaravelLang\Lang\Concerns\Excludes;
use LaravelLang\Lang\Concerns\Template;
use LaravelLang\Lang\Processors\Processor as BaseProcessor;
abstract class Processor extends BaseProcessor
{
use Excludes;
use Template;
protected string $extension = '.md';
protected string $target_path = 'statuses';
protected array $source_files = [];
protected array $locales = [];
abstract protected function saving(): void;
public function run(): void
{
$this->ensureDirectory();
$this->handle();
$this->saving();
}
protected function handle(): void
{
foreach ($this->locales() as $locale) {
foreach ($this->files() as $file) {
$target_path = $this->getTargetPath($locale . $this->extension);
$this->process($target_path, $file, $locale);
}
}
}
protected function process(string $target_path, string $filename, string $locale = null): void
{
$corrected = $this->getCorrectedFilename($filename, $locale);
$source = $this->source($filename);
$target = $this->target($locale, $corrected);
$is_validation = $this->isValidation($filename);
if ($diff = $this->compare($source, $target, $locale, $is_validation)) {
$key = $this->getFileBasename($corrected);
$this->locales[$locale][$key] = $diff;
} else {
$this->locales[$locale] = [];
}
}
protected function compare(array $source, array $target, string $locale, bool $is_validation): array
{
return array_filter($target,
fn ($value, $key) => $this->hasEquals($value, $key, $source, $locale, $is_validation),
ARRAY_FILTER_USE_BOTH
);
}
protected function hasEquals($value, $key, array $source, string $locale, bool $is_validation): bool
{
if ($is_validation && in_array($key, ['custom', 'attributes'], true)) {
return false;
}
if ($this->hasExclude($key, $locale)) {
return false;
}
return Arr::get($source, $key) === $value;
}
protected function countMissing(string $locale): int
{
$items = array_map(static fn (array $items) => count($items), $this->locales[$locale]);
return array_sum($items);
}
protected function getLocalePath(string $locale = null): string
{
return $this->app->localePath($locale);
}
protected function getFileBasename(string $filename): string
{
$flag = $this->isJson($filename) ? PATHINFO_EXTENSION : PATHINFO_FILENAME;
return pathinfo($filename, $flag);
}
protected function getCorrectedFilename(string $filename, string $locale): string
{
return $this->isJson($filename) ? $locale . '.json' : $filename;
}
protected function locales(): array
{
return Directory::names($this->getLocalePath());
}
protected function files(): array
{
if (! empty($this->source_files)) {
return $this->source_files;
}
$files = File::names($this->getSourcePath());
return $this->source_files = Arr::sort($files, function (string $a, string $b) {
if ($a === $b) {
return 0;
}
if ($this->isJson($a)) {
return 1;
}
$sorter = Sorter::defaultCallback();
return $sorter($a, $b);
});
}
protected function target(string $locale, string $filename): array
{
$corrected = $this->getCorrectedFilename($filename, $locale);
$path = $this->getLocalePath($locale . '/' . $corrected);
return $this->load($path);
}
protected function ensureDirectory(): void
{
//
}
}
@@ -1,44 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Collection extends Compiler
{
public function toString(): string
{
$result = '';
foreach ($this->items as $filename => $values) {
$is_json = $this->isJson($filename);
$content = $this->compileItems($values, $is_json);
$count = count($values);
$result .= $this->compileLocale($content, $count, $filename);
}
return $result;
}
protected function compileLocale(string $content, int $count, string $filename): string
{
return $this->template(Resource::COMPONENT_LOCALE, compact('count', 'filename', 'content'));
}
protected function compileItems(array $items, bool $is_json = false): string
{
$rows = $this->split($items, $is_json);
return Table::make($this->app)->items($rows)->toString();
}
protected function split(array $items, bool $is_json = false): array
{
return $is_json
? array_values(array_map(static fn ($key) => [$key], array_keys($items)))
: array_values(array_map(static fn ($key, $value) => [$key, $value], array_keys($items), array_values($items)));
}
}
-30
View File
@@ -1,30 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Concerns\Makeable;
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;
public function __construct(
protected Application $app
) {
}
public function items(array $items): self
{
$this->items = $items;
return $this;
}
}
-13
View File
@@ -1,13 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Locale extends Compiler
{
public function toString(): string
{
return $this->template(Resource::LOCALE, $this->items);
}
}
-51
View File
@@ -1,51 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
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);
}
}
-86
View File
@@ -1,86 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use Helldar\Support\Facades\Helpers\Str;
use LaravelLang\Lang\Constants\Resource;
use LaravelLang\Lang\Models\Locale;
class Status extends Compiler
{
protected int $columns = 8;
public function toString(): string
{
$content = $this->compileContent();
return $this->template(Resource::STATUS, compact('content'));
}
protected function grouped(): array
{
$locales = [];
foreach ($this->items as $locale => $values) {
$missing = count($values);
$locales[] = Locale::make($locale, $missing);
}
return $this->group($locales);
}
protected function group(array $items): array
{
return array_map(function (array $items) {
if (count($items) < $this->columns) {
$need = $this->columns - count($items);
$filled = array_fill(0, $need, Locale::make());
return array_merge($items, $filled);
}
return $items;
}, array_chunk($items, $this->columns));
}
protected function compileContent(): string
{
$rows = [];
foreach ($this->grouped() as $items) {
$rows[] = $this->mapRow($items);
}
return Table::make($this->app)
->items($rows)
->align('center')
->columns($this->columns)
->toString();
}
/**
* @param \LaravelLang\Lang\Models\Locale[]|array $items
*
* @return array
*/
protected function mapRow(array $items): array
{
$row = [];
foreach ($items as $item) {
$row[] = $this->template(Resource::COMPONENT_LINK, [
'title' => $item->getTitle(),
'link' => $this->link($item->getLocale()),
], return_empty: $item->isEmpty());
}
return $row;
}
protected function link(?string $value): string
{
return empty($value) ? '' : sprintf('statuses/%s.md', Str::slug($value));
}
}
-101
View File
@@ -1,101 +0,0 @@
<?php
namespace LaravelLang\Lang\Services\Compilers;
use LaravelLang\Lang\Constants\Resource;
class Table extends Compiler
{
protected string $align = 'left';
protected int $columns = 1;
public function align(string $align): self
{
$this->align = $align;
return $this;
}
public function columns(int $columns): self
{
$this->columns = $columns;
return $this;
}
public function toString(): string
{
$width = $this->getWidth($this->getTableWidth());
$content = $this->compileRows();
return $this->template(Resource::COMPONENT_TABLE, compact('width', 'content'));
}
protected function compileRows(): string
{
$result = '';
foreach ($this->items as $row) {
$columns = '';
foreach ($row as $value) {
$columns .= $this->compileColumn($value);
}
$result .= $this->compileRow($columns);
}
return $result;
}
protected function compileRow(string $row): string
{
return $this->template(Resource::COMPONENT_TABLE_ROW, compact('row'));
}
protected function compileColumn(string $column): string
{
$align = $this->getAlign();
$width = $this->getWidth($this->getColumnWidth());
return $this->template(Resource::COMPONENT_TABLE_COLUMN, compact('align', 'width', 'column'));
}
protected function getAlign(): string
{
$align = $this->align;
return $this->template(Resource::COMPONENT_TABLE_ATTRIBUTE_ALIGN, compact('align'), true);
}
protected function getWidth(?int $width): ?string
{
if (! $width) {
return null;
}
return $this->template(Resource::COMPONENT_TABLE_ATTRIBUTE_WIDTH, compact('width'), true);
}
protected function getTableWidth(): ?int
{
return $this->hasColumns() ? 100 : null;
}
protected function getColumnWidth(): ?int
{
return $this->hasColumns() ? round(100 / $this->getColumns()) : null;
}
protected function hasColumns(): bool
{
return $this->getColumns() > 1;
}
protected function getColumns(): int
{
return abs($this->columns);
}
}
-34
View File
@@ -1,34 +0,0 @@
<?php
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;
public function application(Application $app): Filesystem
{
$this->app = $app;
return $this;
}
public function load(string $path): array
{
return [];
}
protected function correctValues(array $items): array
{
return Arr::map($items, static fn ($value) => str_replace('\"', '"', $value), true);
}
}
-29
View File
@@ -1,29 +0,0 @@
<?php
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
{
public function load(string $path): array
{
$content = Pretty::make()->loadRaw($path);
$items = json_decode($content, true);
return $this->correctValues($items);
}
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);
}
}
-17
View File
@@ -1,17 +0,0 @@
<?php
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|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$content = $this->prepareToStore($content);
File::store($path, $content);
}
}
-29
View File
@@ -1,29 +0,0 @@
<?php
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
{
$items = Pretty::make()->load($path);
return $this->correctValues($items);
}
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
{
$service = Formatter::make();
$is_simple
? $service->setSimple()
: $service->setEqualsAlign();
Pretty::make($service->raw($content))->store($path, $this->getStub($stub));
}
}
-11
View File
@@ -1,11 +0,0 @@
<?php
use LaravelLang\Lang\Processors\Referents;
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(Referents::make(), Markdown::make());
-14
View File
@@ -1,14 +0,0 @@
<?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
@@ -1,13 +0,0 @@
<?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
@@ -1,14 +0,0 @@
<?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
@@ -1,14 +0,0 @@
<?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}};
@@ -1,14 +0,0 @@
<?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
@@ -1,14 +0,0 @@
<?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}};
-2
View File
@@ -1,2 +0,0 @@
[{{title}}]({{link}})
-8
View File
@@ -1,8 +0,0 @@
### {{filename}}
##### Missing: {{count}}
{{content}}
[ [go back](../status.md) | [to top](#) ]
@@ -1 +0,0 @@
align="{{align}}"
@@ -1 +0,0 @@
width="{{width}}%"
@@ -1,3 +0,0 @@
<td {{align}} {{width}}>
{{column}}
</td>
@@ -1,3 +0,0 @@
<table {{width}}>
{{content}}
</table>
-1
View File
@@ -1 +0,0 @@
<tr>{{row}}</tr>
-1
View File
@@ -1 +0,0 @@
All lines are translated 😊
-7
View File
@@ -1,7 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](../index.md) / [Completion Status](../status.md) / {{locale}}
# {{locale}}
##### All missed: {{count}}
{{content}}
-7
View File
@@ -1,7 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Referents by language
# Referents by language
{{content}}
[ [to top](#) ]
-5
View File
@@ -1,5 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Completion Status
# Completion status
{{content}}
-13
View File
@@ -1,13 +0,0 @@
<?php
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());
-26
View File
@@ -1,26 +0,0 @@
<?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);
}
}
-34
View File
@@ -1,34 +0,0 @@
<?php
namespace Tests;
use Helldar\PrettyArray\Services\File as Pretty;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
final class JsonTest extends TestCase
{
public function testJson(): void
{
$source = $this->source('en.json');
foreach ($this->files() as $locale) {
$path = $this->target_path . '/' . $locale . '/' . $locale . '.json';
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target), $this->messageForPath($path));
}
}
protected function files(): array
{
return Directory::names($this->target_path);
}
protected function load(string $path): array
{
$content = Pretty::make()->loadRaw($path);
return json_decode($content, true);
}
}
-44
View File
@@ -1,44 +0,0 @@
<?php
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
{
public function testPhp(): void
{
foreach ($this->files() as $filename) {
$source = $this->source($filename);
foreach ($this->locales() as $locale) {
$path = $this->target_path . '/' . $locale . '/' . $filename;
$target = $this->load($path);
$this->assertSame(array_keys($source), array_keys($target), $this->messageForLocale($path, $locale));
if ($this->isInline($filename)) {
$this->assertDoesntSee($path, ':attribute');
}
}
}
}
protected function files(): array
{
return File::names($this->source_path, static fn ($filename) => str_ends_with($filename, '.php'));
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
protected function load(string $path): array
{
return Pretty::make()->load($path);
}
}
-41
View File
@@ -1,41 +0,0 @@
<?php
namespace Tests;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
class StatusLocalesTest extends TestCase
{
protected string $source_path = __DIR__ . '/../../locales';
protected string $target_path = __DIR__ . '/../../docs/statuses';
public function testSee(): void
{
foreach ($this->locales() as $locale) {
$path = $this->path($locale);
$this->assertFileExists($path);
$this->assertSee($path, '# ' . Str::before($locale, '.'));
$this->assertSee($path, '##### All missed:');
$this->assertDoesntSee($path, '## foo');
$this->assertDoesntSee($path, '## bar');
$this->assertDoesntSee($path, '## baz');
}
}
protected function locales(): array
{
return Directory::names($this->source_path);
}
protected function path(string $filename): string
{
$filename = Str::slug($filename);
return $this->target_path . '/' . $filename . '.md';
}
}
-43
View File
@@ -1,43 +0,0 @@
<?php
namespace Tests;
use Helldar\Support\Facades\Helpers\Filesystem\Directory;
use Helldar\Support\Facades\Helpers\Str;
final class StatusTest extends TestCase
{
protected string $target_path = __DIR__ . '/../../locales';
protected string $status = __DIR__ . '/../../docs/status.md';
public function testSee(): void
{
foreach ($this->locales() as $locale) {
$slug = Str::slug($locale);
$this->assertSee($this->status, "{$locale}&nbsp;");
$this->assertSee($this->status, "(statuses/{$slug}.md)");
}
}
public function testDoesntSee(): void
{
$this->assertDoesntSee($this->status, '## foo');
$this->assertDoesntSee($this->status, '## bar');
$this->assertDoesntSee($this->status, '## baz');
$this->assertDoesntSee($this->status, '(statuses/foo.md)');
$this->assertDoesntSee($this->status, '(statuses/bar.md)');
$this->assertDoesntSee($this->status, '(statuses/baz.md)');
$this->assertDoesntSee($this->status, '(todo/foo.md)');
$this->assertDoesntSee($this->status, '(todo/bar.md)');
$this->assertDoesntSee($this->status, '(todo/baz.md)');
}
protected function locales(): array
{
return Directory::names($this->target_path);
}
}
-70
View File
@@ -1,70 +0,0 @@
<?php
namespace Tests;
use Helldar\PrettyArray\Services\File;
use Helldar\Support\Facades\Helpers\Arr;
use PHPUnit\Framework\TestCase as BaseTestCase;
use Tests\Concerns\Messages;
abstract class TestCase extends BaseTestCase
{
use Messages;
protected string $source_path = __DIR__ . '/../../source';
protected string $target_path = __DIR__ . '/../../locales';
protected function source(string $filename): array
{
$content = $this->load($this->source_path . '/' . $filename);
if ($this->isValidation($filename)) {
$custom = Arr::get($content, 'custom', []);
$attributes = Arr::get($content, 'attributes', []);
$content = Arr::except($content, ['custom', 'attributes']);
$content = Arr::ksort($content);
return array_merge($content, compact('custom', 'attributes'));
}
return Arr::ksort($content);
}
protected function assertSee(string $path, string $content): void
{
$file = File::make()->loadRaw($path);
$this->assertTrue(
str_contains($file, $content),
$this->messageAssertSee($path, $content)
);
}
protected function assertDoesntSee(string $path, string $content): void
{
$file = File::make()->loadRaw($path);
$this->assertFalse(
str_contains($file, $content),
$this->messageAssertDoesntSee($path, $content)
);
}
protected function sort(array &$array): void
{
$array = Arr::ksort($array);
}
protected function isValidation(string $filename): bool
{
return str_starts_with($filename, 'validation');
}
protected function isInline(string $filename): bool
{
return str_contains($filename, 'inline');
}
}
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; السابق',
'next' => 'التالي &raquo;',
);
+25
View File
@@ -0,0 +1,25 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "يجب أن لا يقل طول كلمة السر عن ستة أحرف، كما يجب أن تتطابق مع حقل التأكيد",
"user" => "لم يتم العثور على أيّ حسابٍ بهذا العنوان الإلكتروني",
"token" => ".رمز استعادة كلمة السر الذي أدخلته غير صحيح",
"sent" => "تم إرسال تفاصيل استعادة كلمة السر الخاصة بك إلى بريدك الإلكتروني",
"reset" => "تمت إعادة تعيين كلمة السر",
);
+134
View File
@@ -0,0 +1,134 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => "يجب قبول الحقل :attribute",
"active_url" => "الحقل :attribute لا يُمثّل رابطًا صحيحًا",
"before" => "يجب على الحقل :attribute أن يكون تاريخًا سابقًا للتاريخ :date.",
"after" => "يجب على الحقل :attribute أن يكون تاريخًا لاحقًا للتاريخ :date.",
"alpha" => "يجب أن لا يحتوي الحقل :attribute سوى على حروف",
"alpha_dash" => "يجب أن لا يحتوي الحقل :attribute على حروف، أرقام ومطّات.",
"alpha_num" => "يجب أن يحتوي :attribute على حروفٍ وأرقامٍ فقط",
"array" => "يجب أن يكون الحقل :attribute ًمصفوفة",
"between" => array(
"numeric" => "يجب أن تكون قيمة :attribute محصورة ما بين :min و :max.",
"file" => "يجب أن يكون حجم الملف :attribute محصورًا ما بين :min و :max كيلوبايت.",
"string" => "يجب أن يكون عدد حروف النّص :attribute محصورًا ما بين :min و :max",
"array" => "يجب أن يحتوي :attribute على عدد من العناصر محصورًا ما بين :min و :max"
),
"boolean" => "يجب أن تكون قيمة الحقل :attribute إما true أو false ",
"confirmed" => "حقل التأكيد غير مُطابق للحقل :attribute",
"date" => "الحقل :attribute ليس تاريخًا صحيحًا",
"date_format" => "لا يتوافق الحقل :attribute مع الشكل :format.",
"different" => "يجب أن يكون الحقلان :attribute و :other مُختلفان",
"digits" => "يجب أن يحتوي الحقل :attribute على :digits رقمًا/أرقام",
"digits_between" => "يجب أن يحتوي الحقل :attribute ما بين :min و :max رقمًا/أرقام ",
"email" => "يجب أن يكون :attribute عنوان بريد إلكتروني صحيح البُنية",
"exists" => "الحقل :attribute لاغٍ",
"image" => "يجب أن يكون الحقل :attribute صورةً",
"in" => "الحقل :attribute لاغٍ",
"integer" => "يجب أن يكون الحقل :attribute عددًا صحيحًا",
"ip" => "يجب أن يكون الحقل :attribute عنوان IP ذي بُنية صحيحة",
"max" => array(
"numeric" => "يجب أن تكون قيمة الحقل :attribute أصغر من :max.",
"file" => "يجب أن يكون حجم الملف :attribute أصغر من :max كيلوبايت",
"string" => "يجب أن لا يتجاوز طول النّص :attribute :max حروفٍ/حرفًا",
"array" => "يجب أن لا يحتوي الحقل :attribute على أكثر من :max عناصر/عنصر."
),
"mimes" => "يجب أن يكون الحقل ملفًا من نوع : :values.",
"min" => array(
"numeric" => "يجب أن تكون قيمة الحقل :attribute أكبر من :min.",
"file" => "يجب أن يكون حجم الملف :attribute أكبر من :min كيلوبايت",
"string" => "يجب أن يكون طول النص :attribute أكبر :min حروفٍ/حرفًا",
"array" => "يجب أن يحتوي الحقل :attribute على الأقل على :min عُنصرًا/عناصر"
),
"not_in" => "الحقل :attribute لاغٍ",
"numeric" => "يجب على الحقل :attribute أن يكون رقمًا",
"regex" => "صيغة الحقل :attribute .غير صحيحة",
"required" => "الحقل :attribute مطلوب.",
"required_if" => "الحقل :attribute مطلوب في حال ما إذا كان :other يساوي :value.",
"required_with" => "الحقل :attribute إذا توفّر :values.",
"required_with_all" => "الحقل :attribute إذا توفّر :values.",
"required_without" => "الحقل :attribute إذا لم يتوفّر :values.",
"required_without_all" => "الحقل :attribute إذا لم يتوفّر :values.",
"same" => "يجب أن يتطابق الحقل :attribute مع :other",
"size" => array(
"numeric" => "يجب أن تكون قيمة :attribute أكبر من :size.",
"file" => "يجب أن يكون حجم الملف :attribute أكبر من :size كيلو بايت.",
"string" => "يجب أن يحتوي النص :attribute عن ما لا يقل عن :size حرفٍ/أحرف.",
"array" => "يجب أن يحتوي الحقل :attribute عن ما لا يقل عن:min عنصرٍ/عناصر"
),
"timezone" => "يجب أن يكون :attribute نطاقًا زمنيًا صحيحًا",
"unique" => "قيمة الحقل :attribute مُستخدمة من قبل",
"url" => "صيغة الرابط :attribute غير صحيحة",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(
"name" => "الاسم",
"username" => "اسم المُستخدم",
"email" => "البريد الالكتروني",
"first_name" => "الاسم",
"last_name" => "اسم العائلة",
"password" => "كلمة السر",
"city" => "المدينة",
"country" => "الدولة",
"address" => "العنوان",
"phone" => "الهاتف",
"mobile" => "الجوال",
"age" => "العمر",
"sex" => "الجنس",
"gender" => "النوع",
"day" => "اليوم",
"month" => "الشهر",
"year" => "السنة",
"hour" => "ساعة",
"minute" => "دقيقة",
"second" => "ثانية",
"title" => "اللقب",
"content" => "المُحتوى",
"description" => "الوصف",
"excerpt" => "المُلخص",
"date" => "التاريخ",
"time" => "الوقت",
"available" => "مُتاح",
"size" => "الحجم"
),
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; Назад',
'next' => 'Напред &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Паролата трябва да бъде поне шест знака и да съвпада.",
"user" => "Потребител с такъв e-mail адрес не може да бъде открит.",
"token" => "Този токен за ресет на парола е невалиден.",
"sent" => "Изпратено е напомняне за вашата парола!",
"reset" => "Паролата е ресетната!",
);
+138
View File
@@ -0,0 +1,138 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => "Трябва да приемете :attribute.",
"active_url" => "Полето :attribute не е валиден URL адрес.",
"after" => "Полето :attribute трябва да бъде дата след :date.",
"alpha" => "Полето :attribute трябва да съдържа само букви.",
"alpha_dash" => "Полето :attribute трябва да съдържа само букви, цифри, долна черта и тире.",
"alpha_num" => "Полето :attribute трябва да съдържа само букви и цифри.",
"array" => "Полето :attribute трябва да бъде масив.",
"before" => "Полето :attribute трябва да бъде дата преди :date.",
"between" => array(
"numeric" => "Полето :attribute трябва да бъде между :min и :max.",
"file" => "Полето :attribute трябва да бъде между :min и :max килобайта.",
"string" => "Полето :attribute трябва да бъде между :min и :max знака.",
"array" => "Полето :attribute трябва да има между :min - :max елемента."
),
"boolean" => "Полето :attribute трябва да съдържа Да или Не",
"confirmed" => "Полето :attribute не е потвърдено.",
"date" => "Полето :attribute не е валидна дата.",
"date_format" => "Полето :attribute не е във формат :format.",
"different" => "Полетата :attribute и :other трябва да са различни.",
"digits" => "Полето :attribute трябва да има :digits цифри.",
"digits_between" => "Полето :attribute трябва да има между :min и :max цифри.",
"email" => "Полето :attribute е в невалиден формат.",
"exists" => "Избранато поле :attribute вече съществува.",
"image" => "Полето :attribute трябва да бъде изображение.",
"in" => "Избраното поле :attribute е невалидно.",
"integer" => "Полето :attribute трябва да бъде цяло число.",
"ip" => "Полето :attribute трябва да бъде IP адрес.",
"max" => array(
"numeric" => "Полето :attribute трябва да бъде по-малко от :max.",
"file" => "Полето :attribute трябва да бъде по-малко от :max килобайта.",
"string" => "Полето :attribute трябва да бъде по-малко от :max знака.",
"array" => "Полето :attribute трябва да има по-малко от :max елемента."
),
"mimes" => "Полето :attribute трябва да бъде файл от тип: :values.",
"min" => array(
"numeric" => "Полето :attribute трябва да бъде минимум :min.",
"file" => "Полето :attribute трябва да бъде минимум :min килобайта.",
"string" => "Полето :attribute трябва да бъде минимум :min знака.",
"array" => "Полето :attribute трябва има минимум :min елемента."
),
"not_in" => "Избраното поле :attribute е невалидно.",
"numeric" => "Полето :attribute трябва да бъде число.",
"regex" => "Полето :attribute е в невалиден формат.",
"required" => "Полето :attribute е задължително.",
"required_if" => "Полето :attribute се изисква, когато :other е :value.",
"required_with" => "Полето :attribute се изисква, когато :values има стойност.",
"required_with_all" => "Полето :attribute е задължително, когато :values имат стойност.",
"required_without" => "Полето :attribute се изисква, когато :values няма стойност.",
"required_without_all" => "Полето :attribute се изисква, когато никое от полетата :values няма стойност.",
"same" => "Полетата :attribute и :other трябва да съвпадат.",
"size" => array(
"numeric" => "Полето :attribute трябва да бъде :size.",
"file" => "Полето :attribute трябва да бъде :size килобайта.",
"string" => "Полето :attribute трябва да бъде :size знака.",
"array" => "Полето :attribute трябва да има :size елемента."
),
"timezone" => "Полето :attribute трябва да съдържа валидна часова зона.",
"unique" => "Полето :attribute вече съществува.",
"url" => "Полето :attribute е в невалиден формат.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(
"name" => "Име",
"username" => "Потребител",
"email" => "E-mail",
"first_name" => "Име",
"last_name" => "Фамилия",
"password" => "Парола",
"city" => "Град",
"country" => "Държава",
"address" => "Адрес",
"phone" => "Телефон",
"mobile" => "GSM",
"age" => "Възраст",
"sex" => "Пол",
"gender" => "Пол",
"day" => "Ден",
"month" => "Месец",
"year" => "Година",
"hour" => "Час",
"minute" => "Минута",
"second" => "Секунда",
"title" => "Заглавие",
"content" => "Съдържание",
"description" => "Описание",
"excerpt" => "Откъс",
"date" => "Дата",
"time" => "Време",
"available" => "Достъпен",
"size" => "Размер",
"recaptcha_response_field" => "Рекапча",
"subject" => "Заглавие",
"message" => "Съобщение"
),
);
@@ -1,5 +1,6 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
@@ -11,7 +12,8 @@
|
*/
return [
'next' => 'Napred &raquo;',
'previous' => '&laquo; Nazad',
];
'next' => 'Naprijed &raquo;',
);
+25
View File
@@ -0,0 +1,25 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Lozinke moraju da budu šest karaktera i da se slaže sa potvrdnom lozinkom.",
"user" => "Ne može se pronaći korisnik sa tom e-mail adresom.",
"token" => "Ovaj token za resetovanje lozinke nije ispravan.",
"sent" => "Poslan vam je e-mail za povrat lozinke!",
"reset" => "Lozinka je resetovana!",
);
+104
View File
@@ -0,0 +1,104 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => "Polje :attribute mora biti prihvaćeno.",
"active_url" => "Polje :attribute nije validan URL.",
"after" => "Polje :attribute mora biti datum poslije :date.",
"alpha" => "Polje :attribute može sadržati samo slova.",
"alpha_dash" => "Polje :attribute može sadržati samo slova, brojeve i povlake.",
"alpha_num" => "Polje :attribute može sadržati samo slova i brojeve.",
"array" => "Polje :attribute mora biti niz.",
"before" => "Polje :attribute mora biti datum prije :date.",
"between" => array(
"numeric" => "Polje :attribute mora biti izmedju :min - :max.",
"file" => "Fajl :attribute mora biti izmedju :min - :max kilobajta.",
"string" => "Polje :attribute mora biti izmedju :min - :max karaktera.",
"array" => "Polje :attribute mora biti između :min - :max karaktera."
),
"boolean" => "Polje :attribute mora biti tačno ili netačno",
"confirmed" => "Potvrda polja :attribute se ne poklapa.",
"date" => "Polje :attribute nema ispravan datum.",
"date_format" => "Polje :attribute nema odgovarajući format :format.",
"different" => "Polja :attribute i :other moraju biti različita.",
"digits" => "Polje :attribute mora da sadži :digits brojeve.",
"digits_between" => "Polje :attribute mora biti između :min i :max broja.",
"email" => "Format polja :attribute mora biti validan email.",
"exists" => "Odabrano polje :attribute nije validno.",
"image" => "Polje :attribute mora biti slika.",
"in" => "Odabrano polje :attribute nije validno.",
"integer" => "Polje :attribute mora biti broj.",
"ip" => "Polje :attribute mora biti validna IP adresa.",
"max" => array(
"numeric" => "Polje :attribute mora biti manje od :max.",
"file" => "Polje :attribute mora biti manje od :max kilobajta.",
"string" => "Polje :attribute mora sadržati manje od :max karaktera.",
"array" => "Polje :attribute mora sadržati manje od :max karaktera."
),
"mimes" => "Polje :attribute mora biti fajl tipa: :values.",
"min" => array(
"numeric" => "Polje :attribute mora biti najmanje :min.",
"file" => "Fajl :attribute mora biti najmanje :min kilobajta.",
"string" => "Polje :attribute mora sadržati najmanje :min karaktera.",
"array" => "Polje :attribute mora sadržati najmanje :min karaktera."
),
"not_in" => "Odabrani element polja :attribute nije validan.",
"numeric" => "Polje :attribute mora biti broj.",
"regex" => "Polje :attribute ima neispravan format.",
"required" => "Polje :attribute je obavezno.",
"required_if" => "Polje :attribute je obavezno kada :other je :value.",
"required_with" => "Polje :attribute je obavezno kada je :values prikazano.",
"required_with_all" => "Polje :attribute je obavezno kada je :values prikazano.",
"required_without" => "Polje :attribute je obavezno kada :values nije prikazano.",
"required_without_all" => "Polje :attribute je obavezno kada nijedno :values nije prikazano.",
"same" => "Polja :attribute i :other se moraju poklapati.",
"size" => array(
"numeric" => "Polje :attribute mora biti :size.",
"file" => "Fajl :attribute mora biti :size kilobajta.",
"string" => "Polje :attribute mora biti :size karaktera.",
"array" => "Polje :attribute mora biti :size karaktera."
),
"timezone" => "Polje :attribute mora biti ispravna vremenska zona.",
"unique" => "Polje :attribute već postoji.",
"url" => "Format polja :attribute nije validan.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; Anterior',
'next' => 'Següent &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Les contrasenyes han de contenir almenys 6 caràcters i coincidir.",
"user" => "No podem trobar a un usuari amb aquest correu electrònic.",
"token" => "Aquest token de recuperació de contrasenya és invàlid.",
"sent" => "Recordatori de contrasenya enviat!",
"reset" => "La contrasenya s'ha restablert!",
);
+106
View File
@@ -0,0 +1,106 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => ":attribute ha de ser acceptat.",
"active_url" => ":attribute no és un URL vàlid.",
"after" => ":attribute ha de ser una data posterior a :date.",
"alpha" => ":attribute només pot contenir lletres.",
"alpha_dash" => ":attribute només por contenir lletres, números i guions.",
"alpha_num" => ":attribute només pot contenir lletres i números.",
"array" => ":attribute ha de ser un conjunt.",
"before" => ":attribute ha de ser una data anterior a :date.",
"between" => array(
"numeric" => ":attribute ha d'estar entre :min - :max.",
"file" => ":attribute ha de pesar entre :min - :max kilobytes.",
"string" => ":attribute ha de tenir entre :min - :max caràcters.",
"array" => ":attribute ha de tenir entre :min - :max ítems.",
),
"boolean" => "El camp :attribute ha de ser veritat o fals",
"confirmed" => "La confirmació de :attribute no coincideix.",
"date" => ":attribute no és una data vàlida.",
"date_format" => ":attribute no correspon al format :format.",
"different" => ":attribute i :other han de ser diferents.",
"digits" => ":attribute ha de tenir :digits digits.",
"digits_between" => ":attribute ha de tenir entre :min i :max digits.",
"email" => ":attribute no és un e-mail vàlid",
"exists" => ":attribute és invàlid.",
"image" => ":attribute ha de ser una imatge.",
"in" => ":attribute és invàlid",
"integer" => ":attribute ha de ser un nombre enter.",
"ip" => ":attribute ha de ser una adreça IP vàlida.",
"max" => array(
"numeric" => ":attribute no ha de ser major a :max.",
"file" => ":attribute no ha de ser més gran que :max kilobytes.",
"string" => ":attribute no ha de ser més gran que :max characters.",
"array" => ":attribute no ha de tenir més de :max ítems.",
),
"mimes" => ":attribute ha de ser un arxiu amb format: :values.",
"min" => array(
"numeric" => "El tamany de :attribute ha de ser d'almenys :min.",
"file" => "El tamany de :attribute ha de ser d'almenys :min kilobytes.",
"string" => ":attribute ha de contenir almenys :min caràcters.",
"array" => ":attribute ha de tenir almenys :min ítems.",
),
"not_in" => ":attribute és invàlid.",
"numeric" => ":attribute ha de ser numèric.",
"regex" => "El format de :attribute és invàlid.",
"required" => "El camp :attribute és obligatori.",
"required_if" => "El camp :attribute és obligatori quan :other és :value.",
"required_with" => "El camp :attribute és obligatori quan :values és present.",
"required_with_all" => "El camp :attribute és obligatori quan :values és present.",
"required_without" => "El camp :attribute és obligatori quan :values no és present.",
"required_without_all" => "El camp :attribute és obligatori quan cap dels :values estan presents.",
"same" => ":attribute i :other han de coincidir.",
"size" => array(
"numeric" => "El tamany de :attribute ha de ser :size.",
"file" => "El tamany de :attribute ha de ser :size kilobytes.",
"string" => ":attribute ha de contenir :size caràcters.",
"array" => ":attribute ha de contenir :size ítems.",
),
"timezone" => "El camp :attribute ha de ser una zona vàlida.",
"unique" => ":attribute ja ha estat registrat.",
"url" => "El format :attribute és invàlid.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
+5 -36
View File
@@ -1,43 +1,12 @@
{
"name": "laravel-lang/lang",
"description": "Languages for Laravel",
"name": "caouecs/laravel4-lang",
"description": "Languages for Laravel4",
"keywords": ["laravel", "languages", "lpm", "lang"],
"license": "MIT",
"authors": [
{
"name": "Laravel-Lang Team",
"homepage": "https://github.com/Laravel-Lang"
"name": "caouecs",
"email": "caouecs@caouecs.net"
}
],
"support": {
"issues": "https://github.com/Laravel-Lang/lang/issues",
"source": "https://github.com/Laravel-Lang/lang"
},
"suggest": {
"overtrue/laravel-lang": "Command to add languages in your project",
"arcanedev/laravel-lang": "Translations manager and checker for Laravel 5",
"andrey-helldar/laravel-lang-publisher": "Easy installation and update of translation files for your project"
},
"require": {
"ext-json": "*"
},
"require-dev": {
"php": "^8.0",
"andrey-helldar/pretty-array": "^2.3",
"andrey-helldar/support": "^3.4",
"phpunit/phpunit": "^9.5",
"symfony/var-dumper": "^5.2"
},
"autoload-dev": {
"psr-4": {
"LaravelLang\\Lang\\": "app/main",
"Tests\\": "app/tests"
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true
]
}
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; předchozí',
'next' => 'další &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Heslo musí obsahovat alespoň 6 znaků a musí odpovídat.",
"user" => "Nepodařilo se najít uživatele s touto e-mailovou adresou.",
"token" => "Klíč pro obnovu hesla je nesprávný.",
"sent" => "Upomínka ke změně hesla byla odeslána!",
"reset" => "Password has been reset!",
);
+106
View File
@@ -0,0 +1,106 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => ":attribute musí být akceptován.",
"active_url" => ":attribute není platnou URL adresou.",
"after" => ":attribute musí být datum po :date.",
"alpha" => ":attribute může obsahovat pouze písmena.",
"alpha_dash" => ":attribute může obsahovat pouze písmena, číslice, pomlčky a podtržítka. České znaky (á, é, í, ó, ú, ů, ž, š, č, ř, ď, ť, ň) nejsou podporovány.",
"alpha_num" => ":attribute může obsahovat pouze písmena a číslice.",
"array" => ":attribute musí být pole.",
"before" => ":attribute musí být datum před :date.",
"between" => array(
"numeric" => ":attribute musí být hodnota mezi :min a :max.",
"file" => ":attribute musí být větší než :min a menší než :max Kilobytů.",
"string" => ":attribute musí být delší než :min a kratší než :max znaků.",
"array" => ":attribute musí obsahovat nejméně :min a nesmí obsahovat více než :max prvků."
),
"boolean" => "The :attribute field must be true or false",
"confirmed" => ":attribute nebylo odsouhlaseno.",
"date" => ":attribute musí být platné datum.",
"date_format" => ":attribute není platný formát data podle :format.",
"different" => ":attribute a :other se musí lišit.",
"digits" => ":attribute musí být :digits pozic dlouhé.",
"digits_between" => ":attribute musí být dlouhé nejméně :min a nejvíce :max pozic.",
"email" => ":attribute není platný formát.",
"exists" => "Zvolená hodnota pro :attribute není platná.",
"image" => ":attribute musí být obrázek.",
"in" => "Zvolená hodnota pro :attribute není platná.",
"integer" => ":attribute musí být celé číslo.",
"ip" => ":attribute musí být platnou IP adresou.",
"max" => array(
"numeric" => ":attribute musí být nižší než :max.",
"file" => ":attribute musí být menší než :max Kilobytů.",
"string" => ":attribute musí být kratší než :max znaků.",
"array" => ":attribute nesmí obsahovat více než :max prvků."
),
"mimes" => ":attribute musí být jeden z následujících datových typů :values.",
"min" => array(
"numeric" => ":attribute musí být větší než :min.",
"file" => ":attribute musí být větší než :min Kilobytů.",
"string" => ":attribute musí být delší než :min znaků.",
"array" => ":attribute musí obsahovat více než :min prvků."
),
"not_in" => "Zvolená hodnota pro :attribute je neplatná.",
"numeric" => ":attribute musí být číslo.",
"regex" => ":attribute nemá správný formát.",
"required" => ":attribute musí být vyplněno.",
"required_if" => ":attribute musí být vyplněno pokud :other je :value.",
"required_with" => ":attribute musí být vyplněno pokud :values je zvoleno.",
"required_with_all" => "The :attribute field is required when :values is present.",
"required_without" => ":attribute musí být vyplněno pokud :values není vyplněno.",
"required_without_all" => "The :attribute field is required when none of :values are present.",
"same" => ":attribute a :other se musí shodovat.",
"size" => array(
"numeric" => ":attribute musí být přesně :size.",
"file" => ":attribute musí mít přesně :size Kilobytů.",
"string" => ":attribute musí být přesně :size znaků dlouhý.",
"array" => ":attribute musí obsahovat právě :size prvků."
),
"timezone" => "The :attribute must be a valid zone.",
"unique" => ":attribute musí být unikátní.",
"url" => "Formát :attribute je neplatný.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; Cynt',
'next' => 'Nesaf &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Rhaid i'r cyfrinair fod o leiaf chwe nodyn o hyd ac yn matchio'r maes cadarnhau.",
"user" => "Ni oes gennym ddefnyddiwr gyda'r cyfeiriad e-bost yna.",
"token" => "Nid yw'r tocyn ail-osod cyfrinair yn ddilys.",
"sent" => "Rydym wedi e-bostio'r ddolen i ail-osod y cyfrinair!",
"reset" => "Mae dy gyfrinair wedi ei ail-osod!",
);
+105
View File
@@ -0,0 +1,105 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => "Rhaid derbyn :attribute.",
"active_url" => "Nid yw :attribute yn URL dilys.",
"after" => "Rhaid i :attribute fod yn ddyddiad sydd ar ôl :date.",
"alpha" => "Dim ond llythrennau'n unig gall :attribute gynnwys.",
"alpha_dash" => "Dim ond llythrennau, rhifau a dash yn unig gall :attribute gynnwys.",
"alpha_num" => "Dim ond llythrennau a rhifau yn unig gall :attribute gynnwys.",
"array" => "Rhaid i :attribute fod yn array.",
"before" => "Rhaid i :attribute fod yn ddyddiad sydd cyn :date.",
"between" => array(
"numeric" => "Rhaid i :attribute fod rhwng :min a :max.",
"file" => "Rhaid i :attribute fod rhwng :min a :max kilobytes.",
"string" => "Rhaid i :attribute fod rhwng :min a :max nodyn.",
"array" => "Rhaid i :attribute fod rhwng :min a :max eitem.",
),
"boolean" => "Rhaid i'r maes :attribute fod yn wir neu gau.",
"confirmed" => "Nid yw'r cadarnhad :attribute yn gyfwerth.",
"date" => "Nid yw :attribute yn ddyddiad dilys.",
"date_format" => "Nid yw :attribute yn y fformat :format.",
"different" => "Rhaid i :attribute a :other fod yn wahanol.",
"digits" => "Rhaid i :attribute fod yn :digits digid.",
"digits_between" => "Rhaid i :attribute fod rhwng :min a :max digid.",
"email" => "Rhaid i :attribute fod yn gyfeiriad ebost dilys.",
"filled" => "Rhaid cynnwys :attribute.",
"exists" => "Nid yw :attribute yn ddilys.",
"image" => "Rhaid i :attribute fod yn lun.",
"in" => "Nid yw :attribute yn ddilys.",
"integer" => "Rhaid i :attribute fod yn integer.",
"ip" => "Rhaid i :attribute fod yn gyfeiriad IP dilys.",
"max" => array(
"numeric" => "Ni chai :attribute fod yn fwy na :max.",
"file" => "Ni chai :attribute fod yn fwy na :max kilobytes.",
"string" => "Ni chai :attribute fod yn fwy na :max nodyn.",
"array" => "Ni chai :attribute fod yn fwy na :max eitem.",
),
"mimes" => "Rhaid i :attribute fod yn ffeil o'r math: :values.",
"min" => array(
"numeric" => "Rhaid i :attribute fod o leiaf :min.",
"file" => "Rhaid i :attribute fod o leiaf :min kilobytes.",
"string" => "Rhaid i :attribute fod o leiaf :min nodyn.",
"array" => "Rhaid i :attribute fod o leiaf :min eitem.",
),
"not_in" => "Nid yw :attribute yn ddilys.",
"numeric" => "Rhaid i :attribute fod yn rif.",
"regex" => "Nid yw fformat :attribute yn ddilys.",
"required" => "Rhaid cynnwys :attribute.",
"required_if" => "Rhaid cynnwys :attribute pan mae :other yn :value.",
"required_with" => "Rhaid cynnwys :attribute pan mae :values yn bresennol.",
"required_with_all" => "Rhaid cynnwys :attribute pan mae :values yn bresennol.",
"required_without" => "Rhaid cynnwys :attribute pan nad oes :values yn bresennol.",
"required_without_all" => "Rhaid cynnwys :attribute pan nad oes :values yn bresennol.",
"same" => "Rhaid i :attribute a :other fod yn gyfwerth.",
"size" => array(
"numeric" => "Rhaid i :attribute fod yn :size.",
"file" => "Rhaid i :attribute fod yn :size kilobytes.",
"string" => "Rhaid i :attribute fod yn :size nodyn.",
"array" => "Rhaid i :attribute fod yn :size eitem.",
),
"unique" => "Mae :attribute eisoes yn bodoli.",
"url" => "Nid yw fformat :attribute yn ddilys.",
"timezone" => "Rhaid i :attribute fod yn timezone dilys.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; Forrige',
'next' => 'Næste &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Passwords skal minimum være 6 tegn og matche sikkerhedstjekket.",
"user" => "Vi kan ikke finde en bruger med den email-adresse.",
"token" => "Password-nulstillingskoden er ugyldig.",
"sent" => "Password-påmindelse sendt!",
"reset" => "Password has been reset!",
);
+106
View File
@@ -0,0 +1,106 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => ":attribute skal accepteres.",
"active_url" => ":attribute er ikke en valid URL.",
"after" => ":attribute skal være en dato efter :date.",
"alpha" => ":attribute må kun bestå af bogstaver.",
"alpha_dash" => ":attribute må kun bestå af bogstaver, tal og bindestreger.",
"alpha_num" => ":attribute må kun bestå af bogstaver og tal.",
"array" => ":attribute skal være et array.",
"before" => ":attribute skal være en dato før :date.",
"between" => array(
"numeric" => ":attribute skal være imellem :min - :max.",
"file" => ":attribute skal være imellem :min - :max kilobytes.",
"string" => ":attribute skal være imellem :min - :max tegn.",
"array" => ":attribute skal indeholde mellem :min - :max elementer."
),
"boolean" => ":attribute skal være sandt eller falsk",
"confirmed" => ":attribute er ikke det samme som bekræftelsesfeltet.",
"date" => ":attribute er ikke en gyldig dato.",
"date_format" => ":attribute matcher ikke formatet :format.",
"different" => ":attribute og :other skal være forskellige.",
"digits" => ":attribute skal have :digits cifre.",
"digits_between" => ":attribute skal have mellem :min og :max cifre.",
"email" => ":attribute skal være en gyldig e-mailadresse.",
"exists" => "Det valgte :attribute er ugyldig.",
"image" => ":attribute skal være et billede.",
"in" => "Det valgte :attribute er ugyldig.",
"integer" => ":attribute skal være et heltal.",
"ip" => ":attribute skal være en gyldig IP adresse.",
"max" => array(
"numeric" => ":attribute skal være højest :max.",
"file" => ":attribute skal være højest :max kilobytes.",
"string" => ":attribute skal være højest :max tegn.",
"array" => ":attribute må ikke indeholde mere end :max elementer."
),
"mimes" => ":attribute skal være en fil af typen: :values.",
"min" => array(
"numeric" => ":attribute skal være mindst :min.",
"file" => ":attribute skal være mindst :min kilobytes.",
"string" => ":attribute skal være mindst :min tegn.",
"array" => ":attribute skal indeholde mindst :min elementer."
),
"not_in" => "Den valgte :attribute er ugyldig.",
"numeric" => ":attribute skal være et tal.",
"regex" => ":attribute formatet er ugyldigt.",
"required" => ":attribute skal udfyldes.",
"required_if" => ":attribute skal udfyldes når :other er :value.",
"required_with" => ":attribute skal udfyldes når :values er udfyldt.",
"required_with_all" => ":attribute skal udfyldes når :values er udfyldt.",
"required_without" => ":attribute skal udfyldes når :values ikke er udfyldt.",
"required_without_all" => ":attribute skal udfyldes når ingen af :values er udfyldt.",
"same" => ":attribute og :other skal være ens.",
"size" => array(
"numeric" => ":attribute skal være :size.",
"file" => ":attribute skal være :size kilobytes.",
"string" => ":attribute skal være :size tegn lang.",
"array" => ":attribute skal indeholde :size elementer."
),
"timezone" => "The :attribute must be a valid zone.",
"unique" => ":attribute er allerede taget.",
"url" => ":attribute formatet er ugyldigt.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'previous' => '&laquo; zurück',
'next' => 'weiter &raquo;',
);
+26
View File
@@ -0,0 +1,26 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Password Reminder 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.
|
*/
"password" => "Passwörter müssen mindestens 6 Zeichen lang sein und korrekt bestätigt werden.",
"user" => "Wir konnten leider keinen Nutzer mit dieser E-Mail Adresse finden.",
"token" => "Der Passwort-Wiederherstellungs-Schlüssel ist ungültig oder abgelaufen.",
"sent" => "Passworterinnerung wurde gesendet!",
"reset" => "Passwort wurde zurückgesetzt!",
);
+106
View File
@@ -0,0 +1,106 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| 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
| such as the size rules. Feel free to tweak each of these messages.
|
*/
"accepted" => ":attribute muss akzeptiert werden.",
"active_url" => ":attribute ist keine gültige Internet-Adresse.",
"after" => ":attribute muss ein Datum nach dem :date sein.",
"alpha" => ":attribute darf nur aus Buchstaben bestehen.",
"alpha_dash" => ":attribute darf nur aus Buchstaben, Zahlen, Binde- und Unterstrichen bestehen. Umlaute (ä, ö, ü) und Eszett (ß) sind nicht erlaubt.",
"alpha_num" => ":attribute darf nur aus Buchstaben und Zahlen bestehen.",
"array" => ":attribute muss ein Array sein.",
"before" => ":attribute muss ein Datum vor dem :date sein.",
"between" => array(
"numeric" => ":attribute muss zwischen :min & :max liegen.",
"file" => ":attribute muss zwischen :min & :max Kilobytes groß sein.",
"string" => ":attribute muss zwischen :min & :max Zeichen lang sein.",
"array" => ":attribute muss zwischen :min & :max Elemente haben."
),
"boolean" => ":attribute muss entweder 'true' oder 'false' sein.",
"confirmed" => ":attribute stimmt nicht mit der Bestätigung überein.",
"date" => ":attribute muss ein gültiges Datum sein.",
"date_format" => ":attribute entspricht nicht dem gültigen Format für :format.",
"different" => ":attribute und :other müssen sich unterscheiden.",
"digits" => ":attribute muss :digits Stellen haben.",
"digits_between" => ":attribute muss zwischen :min und :max Stellen haben.",
"email" => ":attribute Format ist ungültig.",
"exists" => "Der gewählte Wert für :attribute ist ungültig.",
"image" => ":attribute muss ein Bild sein.",
"in" => "Der gewählte Wert für :attribute ist ungültig.",
"integer" => ":attribute muss eine ganze Zahl sein.",
"ip" => ":attribute muss eine gültige IP-Adresse sein.",
"max" => array(
"numeric" => ":attribute darf maximal :max sein.",
"file" => ":attribute darf maximal :max Kilobytes groß sein.",
"string" => ":attribute darf maximal :max Zeichen haben.",
"array" => ":attribute darf nicht mehr als :max Elemente haben."
),
"mimes" => ":attribute muss den Dateityp :values haben.",
"min" => array(
"numeric" => ":attribute muss mindestens :min sein.",
"file" => ":attribute muss mindestens :min Kilobytes groß sein.",
"string" => ":attribute muss mindestens :min Zeichen lang sein.",
"array" => ":attribute muss mindestens :min Elemente haben."
),
"not_in" => "Der gewählte Wert für :attribute ist ungültig.",
"numeric" => ":attribute muss eine Zahl sein.",
"regex" => ":attribute Format ist ungültig.",
"required" => ":attribute muss ausgefüllt sein.",
"required_if" => ":attribute muss ausgefüllt sein wenn :other :value ist.",
"required_with" => ":attribute muss angegeben werden wenn :values ausgefüllt wurde.",
"required_with_all" => ":attribute muss angegeben werden, wenn :values ausgefüllt wurde.",
"required_without" => ":attribute muss angegeben werden wenn :values nicht ausgefüllt wurde.",
"required_without_all" => ":attribute muss angegeben werden wenn keines der Felder :values ausgefüllt wurde.",
"same" => ":attribute und :other müssen übereinstimmen.",
"size" => array(
"numeric" => ":attribute muss gleich :size sein.",
"file" => ":attribute muss :size Kilobyte groß sein.",
"string" => ":attribute muss :size Zeichen lang sein.",
"array" => ":attribute muss genau :size Elemente haben."
),
"timezone" => ":attribute muss eine gültige Zeitzone sein.",
"unique" => ":attribute ist schon vergeben.",
"url" => "Das Format von :attribute ist ungültig.",
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => array(
'attribute-name' => array(
'rule-name' => 'custom-message',
),
),
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => array(),
);
-9
View File
@@ -1,9 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Page Not Found
<h2 align="center">
Page Not Found
</h2>
<p align="center">
Go back to the <a href="/Laravel-lang/">main page</a>.
</p>
-4
View File
@@ -1,4 +0,0 @@
name: Laravel Lang
title: Laravel Lang
theme: jekyll-theme-cayman
markdown: gfm
-334
View File
@@ -1,334 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Changelog
# Changelog
All notable changes to this project will be documented in this file, since v7.0.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.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
* feature: [it] #1596 #1597 validation.php validation-inline.php json file
* feature: [fr]
## [8.1.1] - 2021-04-02
## Added
* #1565 Add prohibited validation rule
* #1510 [af] Added Afrikaans language support
### Changed
* feature: [ar] #1584 validation.php validation-inline.php json file
* feature: [es] #1566 #1579 #1585 validation.php validation-inline.php json file
* feature: [fr] #1580 json file
* feature: [hy] #1572 #1573 #1574 auth.php validation.php
* feature: [it] #1568 json file
* feature: [nl] #1587 json file
* feature: [pt] #1575 auth.php
* feature: [pt_BR] #1564 #1575 auth.php json file
* feature: [ru] #1576 #1582 validation.php validation-inline.php json file
* feature: [tr] #1565 validation.php validation-inline.php
### Todo script
* New version with automatic add needed tags
* One page by language
## [8.1.0] - 2021-01-23
### Added
* Laravel Cashier
* Laravel Nova
* Script to update translation files
### Changed
* feature: [ar] #1538 #1553 json file
* feature: [de] #1532 json file
* feature: [es] #1534 #1545 #1550 #1556 json file
* feature: [fa] #1527 #1531 validation.php json file
* feature: [fr] #1528 #1539 json file
* feature: [it] #1535 #1548 #1552 json file
* feature: [ja] #1558 json file
* feature: [ko] #1524 json file
* feature: [mk] #1536 #1549 json file
* feature: [nl] #1529 json file
* feature: [pl] #1530 auth, json file
* feature: [ru] #1537 #1546 #1551 #1554 json file
* feature: [sk] json file
* feature: [vi] #1530 #1543 #1557 validation.php validation-inline.php json file
* feature: [zh_*] #1544 #1559 json file
## [8.0.3] - 2021-01-29
### Changed
* feature: [fr] json file
* feature: [zh_CN] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_HK] #1523 auth.php validation.php validation-inline.php exclude.php json file
* feature: [zh_TW] #1523 auth.php validation.php validation-inline.php exclude.php json file
## [8.0.2] - 2021-01-25
### Added
* feature: #1481 Added new Jetstream 2.0 translation keys
* feature: #1485 Add missing tags and translate new tags for Jetstream 2.0
* feature: #1488 Add missing tags related to button's labels for mail - team
* feature: #1494 Translate subject of Team Invitation email
* feature: #1506 Translate cancel button of team invitation
### Changed
* feature: [ar] #1483 #1486 #1489 #1504 #1508 json file
* feature: [bs] #1500 #1505 auth.php passwords.php validation.php
* feature: [de] #1493 #1507 auth.php validation.php json file
* feature: [el] #1509 json file
* feature: [es] #1485 #1487 #1488 #1494 #1506 #1518 validation.php json file
* feature: [fr] #1501 json file
* feature: [it] #1491 #1502 #1511 json file
* feature: [ka] #1497 #1498 #1499 #1503 auth.php passwords.php validation.php
* feature: [lt] #1521 json file
* feature: [mk] #1521 #1522 auth.php passwords.php validation.php validation-inline.php json file
* feature: [nl] #1482 auth.php
* feature: [ro] #1517 auth.php
* feature: [ru] #1481 #1490 #1515 #1516 validation.php json file
* feature: [sl] #1480 excluse file and json file
* feature: [sr_Cyrl] #1521 validation-inline.php
* feature: [sr_Latn] #1521 validation-inline.php
* feature: [sv] #1492 json file
* feature: [uk] #1484 auth.php validation.php validation-inline.php json file
## [8.0.1] - 2021-01-03
### Added
* new: [oc] #1466
### Changed
* feature: [ar] #1476 json file
* feature: [de] #1471 #1472 json file
* feature: [fa] #1467 #1468 #1470 #1477 auth.php validation.php validation-inline.php json file
* feature: [fr] #1469 auth.php
* feature: [ja] #1461 exclude file and json file
* feature: [ru] #1465 #1475 json file
* feature: [sl] #1479 auth.php passwords.php validation.php validation-inline.php
* feature: [sr_Latn_ME] #1463 auth.php pagination.php passwords.php validation.php
## [8.0.0] - 2020-11-30
### Changed
* feature: [sr, uz, me] #1453 Rename \*\_Cyrillic to \*\_Cyrl and \*\_Latin to \*\_Latn (php Intl)]
## [7.0.9] - 2020-11-30
### Changed
* feature: [ar] #1419 #1431 #1447 #1462 validation-inline.php validation.php auth.php json file
* feature: [es] #1414 #1416 #1417 #1422 #1442 #1450 #1452 validation.php validation-inline.php passwords.php json file
* feature: [fr] #1441 json file
* feature: [id] #1439 auth.php
* feature: [it] #1435 #1459 validation-inline.php validation.php auth.php json file
* feature: [km] #1418 auth.php validation.php passwords.php
* feature: [ko] #1444 validation-inline.php validation.php auth.php json file
* feature: [lt] #1434 #1436 #1449 validation-inline.php validation.php auth.php json file
* feature: [nl] #1424 #1425 #1428 #1457 auth.php validation.php validation-inline.php json file
* feature: [pl] #1420 validation-inline.php validation.php
* feature: [de_CH] #1458 validation-inline.php validation.php
* feature: [pt_Br] #1415 json file
* feature: [ru] #1426 #1427 #1445 #1454 validation-inline.php validation.php auth.php json file
* feature: [sv] #1430 json file
* feature: [tr] #1448 #1456 json file
* feature: [uk] #1446 json file
* feature: [fa] #1451 json file
* feature: [vi] #1433 #1443 validation-inline.php validation.php passwords.php auth.php json file
## [7.0.8] - 2020-10-11
### 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
### Documentation
* feature: #1386 Contributing
### Status script
* fix: #1406 ignores the additional informations
### Workflow
* feature: #1401 #1403 Make todo
* feature: #1405 template bug report
## [7.0.7] - 2020-10-02
### 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
### Todo script
* feature: #1378 exclude translation
## [7.0.6] - 2020-09-30
### 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: [fr] json file
## [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
## [7.0.4] - 2020-09-11
### Changed
* 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
## [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
## [7.0.1] - 2020-07-14
### Added
* json files for uz_Cyrillic and uz_Latin
### Changed
* fix: #1269 json file names to follow ISO-15897
## [7.0.0] - 2020-07-13
### Changed
* feature: #1269 Rename locale folders following ISO 15897 format
[Unreleased]: https://github.com/caouecs/Laravel-lang/compare/9.0.0...master
[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
[8.0.3]: https://github.com/caouecs/Laravel-lang/compare/8.0.2...8.0.3
[8.0.2]: https://github.com/caouecs/Laravel-lang/compare/8.0.1...8.0.2
[8.0.1]: https://github.com/caouecs/Laravel-lang/compare/8.0.0...8.0.1
[8.0.0]: https://github.com/caouecs/Laravel-lang/compare/7.0.9...8.0.0
[7.0.9]: https://github.com/caouecs/Laravel-lang/compare/7.0.8...7.0.9
[7.0.8]: https://github.com/caouecs/Laravel-lang/compare/7.0.7...7.0.8
[7.0.7]: https://github.com/caouecs/Laravel-lang/compare/7.0.6...7.0.7
[7.0.6]: https://github.com/caouecs/Laravel-lang/compare/7.0.5...7.0.6
[7.0.5]: https://github.com/caouecs/Laravel-lang/compare/7.0.4...7.0.5
[7.0.4]: https://github.com/caouecs/Laravel-lang/compare/7.0.3...7.0.4
[7.0.3]: https://github.com/caouecs/Laravel-lang/compare/7.0.2...7.0.3
[7.0.2]: https://github.com/caouecs/Laravel-lang/compare/7.0.1...7.0.2
[7.0.1]: https://github.com/caouecs/Laravel-lang/compare/7.0.0...7.0.1
[7.0.0]: https://github.com/caouecs/Laravel-lang/compare/6.1.4...7.0.0
-48
View File
@@ -1,48 +0,0 @@
[Laravel Lang](https://github.com/Laravel-Lang/lang) / [Main Page](index.md) / Contributor Covenant Code of Conduct
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
Loaded 100 of 775 files, more files were not shown because too many files have changed in this diff. Show more