Skip to content

Commit

Permalink
Merge pull request #1606 from Blair2004/v4.8.x
Browse files Browse the repository at this point in the history
V4.8.x
  • Loading branch information
nexopos committed Sep 24, 2023
2 parents a557fb4 + b83cf7f commit 41fb675
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/nexopos.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'version' => '4.8.20',
'version' => '4.8.21',
'languages' => [
'en' => 'English',
'de' => 'Deutsch',
Expand Down
5 changes: 2 additions & 3 deletions lang/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@
"Amount Due": "Te betalen bedrag",
"Amount Paid": "Betaald Bedrag",
"See Procurements": "Zie Inkopen",
"Registers List": "Registers Lijst",
"Display all registers.": "Geef alle registers weer.",
"No registers has been registered": "Er zijn geen registers geregistreerd",
"Add a new register": "Voeg een nieuw register toe",
Expand Down Expand Up @@ -1208,7 +1207,7 @@
"Quotations will get deleted after they defined they has reached.": "Offertes worden verwijderd nadat ze zijn verlopen.",
"Features": "Eigenschappen",
"Show Quantity": "Toon Hoeveelheid",
"Will show the quantity selector while choosing a product. Otherwise the default quantity is set to 1.": "Toont de hoeveelheid-kiezer tijdens het kiezen van een product. Anders wordt de standaardhoeveelheid ingesteld op 1."",
"Will show the quantity selector while choosing a product. Otherwise the default quantity is set to 1.": "Toont de hoeveelheid-kiezer tijdens het kiezen van een product. Anders wordt de standaardhoeveelheid ingesteld op 1.",
"Allow Customer Creation": "Sta Klant Aanmaken toe",
"Allow customers to be created on the POS.": "Sta toe dat klanten worden aangemaakt op de POS.",
"Quick Product": "Snel Product",
Expand Down Expand Up @@ -1656,7 +1655,7 @@
"Modify Cash Flow.": "Wijzig Cash Flow.",
"Credit": "Krediet",
"Debit": "Debet",
"All entities attached to this category will either produce a \"credit\" or \"debit\" to the cash flow history.": "Alle eenheden die aan deze categorie zijn gekoppeld zullen ofwel een "credit" of een "debet" opleveren voor de kasstroomhistorie.",
"All entities attached to this category will either produce a \"credit\" or \"debit\" to the cash flow history.": "Alle eenheden die aan deze categorie zijn gekoppeld zullen ofwel een \"credit\" of een \"debet\" opleveren voor de kasstroomhistorie.",
"Account": "Account",
"Provide the accounting number for this category.": "Geef het rekeningnummer voor deze rubriek.",
"Unable to register using this email.": "Kan niet registreren met deze e-mail.",
Expand Down
2 changes: 1 addition & 1 deletion lang/sq.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Which table name should be used ? [Q] to quit.": "Cili emër tabele duhet të përdoret? [Q] për të lënë.",
"What slug should be used ? [Q] to quit.": "Çfarë slug duhet të përdoret? [Q] për të lënë.",
"Please provide a valid value.": "Jep një vlerë të vlefshme.",
"If your CRUD resource has a relation, mention it as follow \"foreign_table, foreign_key, local_key\" ? [S] to skip, [Q] to quit.": "Nëse burimi juaj CRUD ka një lidhje, përmendeni atë si vijon \"tabela_e_huajshme, çelësi_i huaj, çelësi_lokal" ? [S] për të kapërcyer, [Q] për të lënë.",
"If your CRUD resource has a relation, mention it as follow \"foreign_table, foreign_key, local_key\" ? [S] to skip, [Q] to quit.": "Nëse burimi juaj CRUD ka një lidhje, përmendeni atë si vijon \"tabela_e_huajshme, çelësi_i huaj, çelësi_lokal\" ? [S] për të kapërcyer, [Q] për të lënë.",
"Add a new relation ? Mention it as follow \"foreign_table, foreign_key, local_key\" ? [S] to skip, [Q] to quit.": "Shto një lidhje të re? E përmendni si vijon \"tabela_e huaj, çelësi_i huaj, çelësi_lokal\" ? [S] për të kapërcyer, [Q] për të lënë.",
"The CRUD resource \"%s\" for the module \"%s\" has been generated at \"%s\"": "Burimi CRUD \"%s\" për modulin \"%s\" është krijuar në \"%s\"",
"The CRUD resource \"%s\" has been generated at %s": "Burimi CRUD \"%s\" është krijuar në %s",
Expand Down
1 change: 1 addition & 0 deletions phpunit.ci.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<testsuites>
<testsuite name="Feature">
<directory suffix="CreateTestDatabaseSQLite.php">./tests/Feature</directory>
<directory suffix="TestLanguageFileValidity.php">./tests/Feature</directory>
<directory suffix="ExceptionsTest.php">./tests/Feature</directory>
<directory suffix="HardResetTest.php">./tests/Feature</directory>
<directory suffix="TestAllDateTimeOptions.php">./tests/Feature</directory>
Expand Down
1 change: 1 addition & 0 deletions phpunit.sales.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<testsuites>
<testsuite name="Feature">
<directory suffix="ExceptionsTest.php">./tests/Feature</directory>
<directory suffix="TestLanguageFileValidity.php">./tests/Feature</directory>
<directory suffix="HardResetTest.php">./tests/Feature</directory>
<directory suffix="CrudTest.php">./tests/Feature</directory>
<directory suffix="FieldsTest.php">./tests/Feature</directory>
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<testsuites>
<testsuite name="Feature">
<directory suffix="ExceptionsTest.php">./tests/Feature</directory>
<directory suffix="TestLanguageFileValidity.php">./tests/Feature</directory>
<directory suffix="HardResetTest.php">./tests/Feature</directory>
<directory suffix="CrudTest.php">./tests/Feature</directory>
<directory suffix="FieldsTest.php">./tests/Feature</directory>
Expand Down
40 changes: 40 additions & 0 deletions tests/Feature/TestLanguageFileValidity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;

class TestLanguageFileValidity extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function test_language_validity()
{
$files = Storage::disk( 'ns' )->allFiles( 'lang' );

foreach( $files as $file ) {
$content = file_get_contents( base_path( $file ) );

$this->assertTrue( $this->checkValidity( $content ), sprintf(
'The file "%s" is not valid',
$file
) );
}
}

private function checkValidity( $content )
{
if ( ! empty( $content ) ) {
@json_decode( $content );
return ( json_last_error() === JSON_ERROR_NONE );
}

return false;
}
}

0 comments on commit 41fb675

Please sign in to comment.