Skip to content

Commit

Permalink
Merge pull request #21 from matecat/sprintf-az
Browse files Browse the repository at this point in the history
SprinfLocker (added hu-HU)
  • Loading branch information
mauretto78 authored Mar 23, 2022
2 parents 3c385cf + a03978d commit 6c4256c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 2 additions & 11 deletions src/Filters/Sprintf/language/hu-HU/not_allowed.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
<?php

return [
'%-os' => [
'type' => 'exact'
],
'%-ot' => [
'type' => 'exact'
],
'%-kal' => [
'type' => 'exact'
],
'%-ban' => [
'type' => 'exact'
'%-[a-zA-Z]{1,3}' => [
'type' => 'regex'
],
];
11 changes: 10 additions & 1 deletion tests/MateCatSubFilteringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public function testHTMLFromLayer2() {
**************************
*/

public function testSprintf() {
public function testSprintf()
{
$channel = new Pipeline( 'hu-HU', 'az-AZ' );
$channel->addLast( new SprintfToPH() );

Expand All @@ -258,6 +259,14 @@ public function testSprintf() {
$seg_transformed = $channel->transform( $segment );

$this->assertEquals( $segment, $seg_transformed );

$channel = new Pipeline( 'hu-HU', 'it-IT' );
$channel->addLast( new SprintfToPH() );

$segment = 'Legalább 10%-aaa befejezett foglalás 20%-bbb VAGY';
$seg_transformed = $channel->transform( $segment );

$this->assertEquals( $segment, $seg_transformed );
}

/**
Expand Down

0 comments on commit 6c4256c

Please sign in to comment.