Skip to content

Commit

Permalink
Update Language
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Apr 21, 2022
1 parent a7d9c9e commit 87fbff6
Show file tree
Hide file tree
Showing 21 changed files with 10,322 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/CrudGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,6 @@ public function generateCrud()
) );
}

return $this->error( __( 'An unexpected error has occured.' ) );
return $this->error( __( 'An unexpected error has occurred.' ) );
}
}
4 changes: 2 additions & 2 deletions app/Crud/GlobalProductHistoryCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ public function setActions( $entry, $namespace )
case ProductHistory::ACTION_SOLD: $entry->operation_type = __( 'Sold' ); break;
case ProductHistory::ACTION_STOCKED: $entry->operation_type = __( 'Stocked' ); break;
case ProductHistory::ACTION_TRANSFER_CANCELED: $entry->operation_type = __( 'Transfer Canceled' ); break;
case ProductHistory::ACTION_TRANSFER_IN: $entry->operation_type = __( 'Incoming Trasnfer' ); break;
case ProductHistory::ACTION_TRANSFER_OUT: $entry->operation_type = __( 'Outgoing Trasnfer' ); break;
case ProductHistory::ACTION_TRANSFER_IN: $entry->operation_type = __( 'Incoming Transfer' ); break;
case ProductHistory::ACTION_TRANSFER_OUT: $entry->operation_type = __( 'Outgoing Transfer' ); break;
case ProductHistory::ACTION_VOID_RETURN: $entry->operation_type = __( 'Void Return' ); break;
}

Expand Down
4 changes: 2 additions & 2 deletions app/Exceptions/CoreException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class CoreException extends Exception
{
public function __construct( $message = null )
{
$this->message = $message ?: __('An exception has occured.' );
$this->message = $message ?: __('An exception has occurred.' );
}

public function render()
{
$message = $this->getMessage();
$title = __( 'An Error Occured' );
$title = __( 'An Error Occurred' );
return response()->view( 'pages.errors.exception', compact( 'message', 'title' ), 503 );
}
}
6 changes: 3 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ public function render($request, Throwable $exception)

QueryException::class => [
'use' => ExceptionsQueryException::class,
'safeMessage' => __( 'A database error has occured' ),
'safeMessage' => __( 'A database error has occurred' ),
'code' => 503
],

NotFoundAssetsException::class => [
'use' => NotFoundAssetsException::class,
'safeMessage' => __( 'An error occured while loading the assets.' ),
'safeMessage' => __( 'An error occurred while loading the assets.' ),
'code' => 503
],

Expand Down Expand Up @@ -138,7 +138,7 @@ public function render($request, Throwable $exception)

ErrorException::class => [
'use' => CoreException::class,
'safeMessage' => __( 'An unexpected error occured while opening the app. See the log details or enable the debugging.' ),
'safeMessage' => __( 'An unexpected error occurred while opening the app. See the log details or enable the debugging.' ),
'code' => 503
]
]);
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/MethodNotAllowedHttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MethodNotAllowedHttpException extends Exception
{
public function __construct( $message = null )
{
$this->message = $message ?: __('The request method is no allowed.' );
$this->message = $message ?: __('The request method is not allowed.' );
}

public function render()
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/ModuleVersionMismatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ModuleVersionMismatchException extends Exception
{
public function __construct( $message = null )
{
$this->message = $message ?: __('A database issue has occured.' );
$this->message = $message ?: __('A database issue has occurred.' );
}

public function render()
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/NotEnoughPermissionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NotEnoughPermissionException extends Exception
{
public function __construct( $message = null )
{
$this->message = $message ?: __('A Database Exception Occured.' );
$this->message = $message ?: __('A Database Exception Occurred.' );
}

public function render( $request )
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/QueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QueryException extends Exception
{
public function __construct( $message = null )
{
$this->message = $message ?: __('A Database Exception Occured.' );
$this->message = $message ?: __('A Database Exception Occurred.' );
}

public function render()
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ValidationException extends MainValidationException

public function __construct( $message = null )
{
$this->message = $message ?: __('An error occured while validating the form.' );
$this->message = $message ?: __('An error occurred while validating the form.' );
}

public function render( $request )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function transferOwnership( Request $request )

return [
'status' => 'success',
'message' => sprintf( __( 'All the customers has been trasnfered to the new group %s.' ), $toModel->name )
'message' => sprintf( __( 'All the customers has been transfered to the new group %s.' ), $toModel->name )
];

} else if ( is_array( $customersID ) ) {
Expand Down
2 changes: 1 addition & 1 deletion app/Services/BarcodeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function generateBarcode( $barcode, $type )
} catch( Exception $exception ) {
throw new Exception(
sprintf(
__( 'An error has occured while creating a barcode "%s" using the type "%s" for the product. Make sure the barcode value is correct for the barcode type selected. Additional insight : ' . ( $exception->getMessage() ?: __( 'N/A' ) ) ),
__( 'An error has occurred while creating a barcode "%s" using the type "%s" for the product. Make sure the barcode value is correct for the barcode type selected. Additional insight : ' . ( $exception->getMessage() ?: __( 'N/A' ) ) ),
$barcode,
$realType
)
Expand Down
2 changes: 1 addition & 1 deletion app/Services/ProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function computeSummary( Provider $provider )
];

} catch( Exception $exception ) {
throw new Exception( sprintf( __( 'An error occured: %s.' ), $exception->getMessage() ) );
throw new Exception( sprintf( __( 'An error occurred: %s.' ), $exception->getMessage() ) );
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/Services/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function saveDatabaseSettings( Request $request )
default :
$message = [
'name' => 'hostname',
'message' => sprintf( __( 'Unexpected error occured. :%s' ), $e->getCode() ),
'message' => sprintf( __( 'Unexpected error occurred. :%s' ), $e->getCode() ),
'status' => 'failed'
];
break;
Expand Down Expand Up @@ -268,7 +268,7 @@ public function testDBConnexion()
default :
$message = [
'name' => 'hostname',
'message' => sprintf( __( 'Unexpected error occured. Provided Code :%s' ), $e->getCode() ),
'message' => sprintf( __( 'Unexpected error occurred. Provided Code :%s' ), $e->getCode() ),
'status' => 'failed'
];
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use App\Services\Users;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;

class UpdateCreateUserAttributes17April22 extends Migration
Expand All @@ -21,6 +22,8 @@ public function up()
$userService = app()->make( Users::class );

User::get()->each( fn( $user ) => $userService->createAttribute( $user ) );

Artisan::call( 'ns:translate --symlink' );
}

/**
Expand Down
2,061 changes: 2,060 additions & 1 deletion lang/ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lang/en.json

Large diffs are not rendered by default.

2,061 changes: 2,060 additions & 1 deletion lang/es.json

Large diffs are not rendered by default.

2,061 changes: 2,060 additions & 1 deletion lang/fr.json

Large diffs are not rendered by default.

2,061 changes: 2,060 additions & 1 deletion lang/it.json

Large diffs are not rendered by default.

2,061 changes: 2,060 additions & 1 deletion lang/pt.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion resources/lang

This file was deleted.

0 comments on commit 87fbff6

Please sign in to comment.