Skip to content

Commit

Permalink
Revert "Added czech language support (#342)" (#352)
Browse files Browse the repository at this point in the history
This reverts commit b1f189a.
  • Loading branch information
filisko authored Apr 29, 2024
1 parent b1f189a commit b9a900e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 64 deletions.
2 changes: 1 addition & 1 deletion gump.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function get_instance()
very,was,way,we,well,were,what,where,which,while,who,with,would,you,your,a,
b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$,1,2,3,4,5,6,7,8,9,0,_";

private static $alpha_regex = 'a-zÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž';
private static $alpha_regex = 'a-zÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝŸÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ';

public static $trues = ['1', 1, 'true', true, 'yes', 'on'];
public static $falses = ['0', 0, 'false', false, 'no', 'off'];
Expand Down
54 changes: 0 additions & 54 deletions lang/cs.php

This file was deleted.

4 changes: 2 additions & 2 deletions tests/Validators/AlphaNumericDashValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class AlphaNumericDashValidatorTest extends BaseTestCase
{
public function testSuccess()
{
$this->assertTrue($this->validate('alpha_numeric_dash', 'azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž123-_'));
$this->assertTrue($this->validate('alpha_numeric_dash', 'azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ123-_'));
}

public function testError()
{
$this->assertNotTrue($this->validate('alpha_numeric_dash', 'azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž123-_ '));
$this->assertNotTrue($this->validate('alpha_numeric_dash', 'azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ123-_ '));
}

public function testWhenInputIsEmptyAndNotRequiredIsSuccess()
Expand Down
4 changes: 2 additions & 2 deletions tests/Validators/AlphaNumericSpaceValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class AlphaNumericSpaceValidatorTest extends BaseTestCase
{
public function testSuccess()
{
$this->assertTrue($this->validate('alpha_numeric_space', 'azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž123 '));
$this->assertTrue($this->validate('alpha_numeric_space', 'azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ123 '));
}

public function testError()
{
$this->assertNotTrue($this->validate('alpha_numeric_space', 'azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž123 -'));
$this->assertNotTrue($this->validate('alpha_numeric_space', 'azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ123 -'));
}

public function testWhenInputIsEmptyAndNotRequiredIsSuccess()
Expand Down
2 changes: 1 addition & 1 deletion tests/Validators/AlphaNumericValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AlphaNumericValidatorTest extends BaseTestCase
{
public function testSuccess()
{
$this->assertTrue($this->validate('alpha_numeric', '123azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž'));
$this->assertTrue($this->validate('alpha_numeric', '123azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ'));
}

public function testError()
Expand Down
4 changes: 2 additions & 2 deletions tests/Validators/AlphaSpaceValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class AlphaSpaceValidatorTest extends BaseTestCase
{
public function testSuccess()
{
$this->assertTrue($this->validate('alpha_space', ' azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž'));
$this->assertTrue($this->validate('alpha_space', ' azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ'));
}

public function testError()
{
$this->assertNotTrue($this->validate('alpha_space', '1 azÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž'));
$this->assertNotTrue($this->validate('alpha_space', '1 azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ'));
}

public function testWhenInputIsEmptyAndNotRequiredIsSuccess()
Expand Down
4 changes: 2 additions & 2 deletions tests/Validators/AlphaValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class AlphaValidatorTest extends BaseTestCase
{
public function testSuccess()
{
$this->assertTrue($this->validate('alpha', 'ÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž'));
$this->assertTrue($this->validate('alpha', 'azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ'));
}

public function testError()
{
$this->assertNotTrue($this->validate('alpha', 'ÀÁÂÃÄÅČÇĎÈÉÊËÌÍÎÏĹĽÑŇÒÓÔÕÖŔ؊ߍÙÚŮÛÜÝŸŽàáâãäåčçďèéêëìíîïĺľñňðòóôõöŕřšťùúůûüýÿž'));
$this->assertNotTrue($this->validate('alpha', '123azÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖßÙÚÛÜÝÑàáâãäåçèéêëìíîïðòóôõöùúûüýÿñ'));
}

public function testWhenInputIsEmptyAndNotRequiredIsSuccess()
Expand Down

0 comments on commit b9a900e

Please sign in to comment.