Compare commits

...

4 Commits

Author SHA1 Message Date
rjindael 4ab323589b
nit: add punctuation 2023-08-05 23:44:07 -07:00
rjindael a7471a44a8
chore: rename validation message filepaths 2023-08-05 23:27:57 -07:00
rjindael 0e7b6eff0c
Changes for Kiseki 2023-06-10 23:45:50 -07:00
rjindael a16589ef92
Add Laravel 9+ support 2023-06-10 23:43:40 -07:00
30 changed files with 43 additions and 43 deletions

View File

@ -16,7 +16,7 @@
},
"minimum-stability": "stable",
"require": {
"illuminate/support": ">=5.2|^6.0|^7.0|^8.0"
"illuminate/support": ">=5.2|^6.0|^7.0|^8.0|^9.0|^10.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^8.5",

View File

@ -22,7 +22,7 @@ class Dictionary
{
// Get default locale string in laravel project
// and set it as default dictionary
$locale = Config::has('app.locale') ? Config::get('app.locale') : 'en';
$locale = Config::has('app.locale') ? Config::get('app.locale') : 'en_US';
$this->setDictionary($dictionary ?: $locale);
}
@ -60,8 +60,8 @@ class Dictionary
$baseDictPath = $this->getBaseDictPath();
if (is_array($dictionary)) {
foreach ($dictionary as $file) {
if (file_exists($baseDictPath.$file.'.php')) {
$dict = include $baseDictPath.$file.'.php';
if (file_exists($baseDictPath . $file . '.php')) {
$dict = include $baseDictPath . $file . '.php';
$words = array_merge($words, $dict);
} else {
// if the file isn't in the dict directory,
@ -72,8 +72,8 @@ class Dictionary
}
// just a single string, not an array
} elseif (is_string($dictionary)) {
if (file_exists($baseDictPath.$dictionary.'.php')) {
$dict = include $baseDictPath.$dictionary.'.php';
if (file_exists($baseDictPath . $dictionary . '.php')) {
$dict = include $baseDictPath . $dictionary . '.php';
$words = array_merge($words, $dict);
} else {
if (file_exists($dictionary)) {
@ -93,6 +93,6 @@ class Dictionary
*/
protected function getBaseDictPath()
{
return property_exists($this, 'baseDictPath') ? $this->baseDictPath : __DIR__.DIRECTORY_SEPARATOR.'dict/';
return property_exists($this, 'baseDictPath') ? $this->baseDictPath : __DIR__ . DIRECTORY_SEPARATOR . 'dict/';
}
}

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'Das :attribute enthält vulgäre Wörter',
'profane' => 'Das :attribute enthält vulgäre Wörter.',
];

View File

@ -1,5 +0,0 @@
<?php
return [
'profane' => 'The :attribute contains vulgar content',
];

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => 'The :attribute contains vulgar content.',
];

View File

@ -1,5 +0,0 @@
<?php
return [
'profane' => 'El :attribute contiene palabras vulgares',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'El :attribute contiene palabras vulgares',
'profane' => 'El :attribute contiene palabras vulgares.',
];

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => 'El :attribute contiene palabras vulgares.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'Le champ :attribute comporte du contenu vulgaire',
'profane' => 'Le champ :attribute comporte du contenu vulgaire.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'Στο πεδίο :attribute εμπεριέχονται χυδαίες εκφράσεις',
'profane' => 'Στο πεδίο :attribute εμπεριέχονται χυδαίες εκφράσεις.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => ':attribute mengandung konten yang vulgar',
'profane' => ':attribute mengandung konten yang vulgar.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'Il campo :attribute contiene parole volgari o offensive',
'profane' => 'Il campo :attribute contiene parole volgari o offensive.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'ഈ :attribute നകത്തു മ്ലേച്ഛമായ ഭാഷ ഉണ്ട്',
'profane' => 'ഈ :attribute നകത്തു മ്ലേച്ഛമായ ഭാഷ ഉണ്ട്.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => 'Het :attribute veld bevat vulgaire inhoud',
'profane' => 'Het :attribute veld bevat vulgaire inhoud.',
];

View File

@ -1,5 +0,0 @@
<?php
return [
'profane' => 'O campo :attribute contém palavras vulgares',
];

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => 'O campo :attribute contém palavras vulgares.',
];

View File

@ -1,5 +0,0 @@
<?php
return [
'profane' => ':attribute are un continut vulgar',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => ':attribute are un continut vulgar',
'profane' => ':attribute are un continut vulgar.',
];

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => ':attribute are un continut vulgar.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => ':attribute obsahuje vulgárny obsah',
'profane' => ':attribute obsahuje vulgárny obsah.',
];

View File

@ -1,5 +0,0 @@
<?php
return [
'profane' => ':attribute sadrži vulgarne reči',
];

View File

@ -0,0 +1,5 @@
<?php
return [
'profane' => ':attribute sadrži vulgarne reči.',
];

View File

@ -1,5 +1,5 @@
<?php
return [
'profane' => ':attribute欄位內容包含粗俗用詞請您修正:)',
'profane' => ':attribute欄位內容包含粗俗用詞請您修正',
];