mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Translation
This commit is contained in:
parent
dbae31b982
commit
7a8f244ae9
|
|
@ -7,21 +7,21 @@ DIRECTION=لیتر
|
|||
FONTFORPDF=DejaVuSans
|
||||
FONTSIZEFORPDF=10
|
||||
SeparatorDecimal=.
|
||||
SeparatorThousand=،
|
||||
FormatDateShort=٪ M /٪ د /٪ Y
|
||||
FormatDateShortInput=٪ M /٪ د /٪ Y
|
||||
FormatDateShortJava=MM / DD / YYYY
|
||||
FormatDateShortJavaInput=MM / DD / YYYY
|
||||
FormatDateShortJQuery=ماه / روز / سا
|
||||
FormatDateShortJQueryInput=ماه / روز / سا
|
||||
FormatHourShort=٪ I:٪ M٪ P
|
||||
FormatHourShortDuration=٪ H:٪ M
|
||||
FormatDateTextShort=٪ B٪ د،٪ Y
|
||||
FormatDateText=٪ B٪ د،٪ Y
|
||||
FormatDateHourShort=٪ M /٪ د /٪ Y٪ I:٪ M٪ P
|
||||
FormatDateHourSecShort=٪ M /٪ د /٪ Y٪ I:٪ M:٪ S٪ P
|
||||
FormatDateHourTextShort=٪ B٪ د،٪ Y،٪ I:٪ M٪ P
|
||||
FormatDateHourText=٪ B٪ د،٪ Y،٪ I:٪ M٪ P
|
||||
SeparatorThousand=None
|
||||
FormatDateShort=%m/%d/%Y
|
||||
FormatDateShortInput=%m/%d/%Y
|
||||
FormatDateShortJava=MM/dd/yyyy
|
||||
FormatDateShortJavaInput=MM/dd/yyyy
|
||||
FormatDateShortJQuery=yy/dd/mm
|
||||
FormatDateShortJQueryInput=yy/dd/mm
|
||||
FormatHourShort=%I:%M
|
||||
FormatHourShortDuration=%H:%M
|
||||
FormatDateTextShort=%b %d %Y
|
||||
FormatDateText=%B %d %Y
|
||||
FormatDateHourShort=%m/%d/%Y %I:%M:%S %p
|
||||
FormatDateHourSecShort=%m/%d/%Y %I:%M:%S %p
|
||||
FormatDateHourTextShort=%b %d %Y %I:%M %p
|
||||
FormatDateHourText=%B %d %Y %H:%M %p
|
||||
DatabaseConnection=اتصال به پایگاه داده
|
||||
NoTranslation=بدون ترجمه
|
||||
NoRecordFound=هیچ سابقه ای پیدا نشد
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class LangTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
if (! preg_match('/^[a-z]+_[A-Z]+$/',$code)) continue;
|
||||
|
||||
print 'Check language file for code='.$code."\n";
|
||||
print 'Check language file for lang code='.$code."\n";
|
||||
$tmplangs=new Translate('',$conf);
|
||||
$langcode=$code;
|
||||
$tmplangs->setDefaultLang($langcode);
|
||||
|
|
@ -154,19 +154,19 @@ class LangTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
$result=$tmplangs->trans("SeparatorDecimal");
|
||||
print __METHOD__." SeparatorDecimal=".$result."\n";
|
||||
$this->assertContains($result,array('.',',','/',' ','','None'), 'Error for code '.$code);
|
||||
$this->assertContains($result,array('.',',','/',' ','','None'), 'Error for decimal separator for lang code '.$code); // Note that ، that is coma for RTL languages is not supported
|
||||
|
||||
$result=$tmplangs->trans("SeparatorThousand");
|
||||
print __METHOD__." SeparatorThousand=".$result."\n";
|
||||
$this->assertContains($result, array('.',',','/',' ','','None','Space'), 'Error for code '.$code);
|
||||
$this->assertContains($result, array('.',',','/',' ','','None','Space'), 'Error for thousand separator for lang code '.$code); // Note that ، that is coma for RTL languages is not supported
|
||||
|
||||
// Test java string contains only d,M,y,/,-,. and not m,...
|
||||
$result=$tmplangs->trans("FormatDateShortJava");
|
||||
print __METHOD__." FormatDateShortJava=".$result."\n";
|
||||
$this->assertRegExp('/^[dMy\/\-\.]+$/',$result);
|
||||
$this->assertRegExp('/^[dMy\/\-\.]+$/',$result,'FormatDateShortJava');
|
||||
$result=$tmplangs->trans("FormatDateShortJavaInput");
|
||||
print __METHOD__." FormatDateShortJavaInput=".$result."\n";
|
||||
$this->assertRegExp('/^[dMy\/\-\.]+$/',$result);
|
||||
$this->assertRegExp('/^[dMy\/\-\.]+$/',$result,'FormatDateShortJavaInput');
|
||||
|
||||
unset($tmplangs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user