Add a test to avoid translation "=-"

This commit is contained in:
Laurent Destailleur 2020-11-19 14:57:36 +01:00
parent caf77355ae
commit 939dfc7ead
7 changed files with 68 additions and 44 deletions

View File

@ -33,6 +33,9 @@ StateCode=Kanton
Region-State=Land / Region
CountryCode=Ländercode
PhoneShort=Telefon
PhonePro=Telefon berufl.
PhonePerso=Telefon privat
PhoneMobile=Mobiltelefon
No_Email=E-Mail kampagnen ablehnen
DefaultLang=Standardsprache
VATIsUsed=MWST - pflichtig

View File

@ -127,16 +127,16 @@ ProfId4AT=DVR-Nummer
ProfId5AT=-
ProfId6AT=-
ProfId1AU=Prof ID 1
ProfId2AU=--
ProfId3AU=--
ProfId4AU=--
ProfId5AU=--
ProfId2AU=-
ProfId3AU=-
ProfId4AU=-
ProfId5AU=-
ProfId6AU=-
ProfId1BE=Prof ID 1
ProfId2BE=--
ProfId3BE=--
ProfId4BE=--
ProfId5BE=--
ProfId2BE=-
ProfId3BE=-
ProfId4BE=-
ProfId5BE=-
ProfId6BE=-
ProfId1BR=-
ProfId2BR=Bundes-/Landesbehörde
@ -145,7 +145,7 @@ ProfId4BR=Bildungsgutschein
#ProfId5BR=CNAE
#ProfId6BR=INSS
ProfId1CH=UID-Nummer (Nummer des Finanzamt für juristische Personen)
ProfId2CH=--
ProfId2CH=-
ProfId3CH=Prof Id 1 (Federal number)
ProfId4CH=Prof Id 2 (Commercial Record number)
ProfId5CH=-
@ -178,14 +178,14 @@ ProfId1FR=SIREN (Frankreich): Système d'identification du répertoire des entre
ProfId2FR=SIRET (Frankreich): Système didentification du répertoire des établissements
ProfId3FR=NAF (Frankreich): Statistik-Code
ProfId4FR=RCS (Frankreich): Registre du Commerce et des Sociétés\n(hier: Code im Handels- und Firmenregister)
ProfId5FR=Prof ID 5
ProfId5FR=-
ProfId6FR=-
ProfId1GB=Registration Number
ProfId2GB=--
ProfId2GB=-
ProfId3GB=SIC
ProfId4GB=--
ProfId5GB=--
ProfId6GB=--
ProfId4GB=-
ProfId5GB=-
ProfId6GB=-
ProfId1HN=Id prof. 1 (RTN)
ProfId2HN=-
ProfId3HN=-
@ -203,7 +203,7 @@ ProfId2LU=Prof ID 2 (Gewerbe-Erlaubnis)
ProfId3LU=-
ProfId4LU=-
ProfId5LU=-
ProfId6LU=--
ProfId6LU=-
ProfId1MA=Prof ID 1 (R.C.)
ProfId2MA=Prof ID 2
ProfId3MA=Prof ID 3
@ -241,17 +241,17 @@ ProfId4TN=BAN
ProfId5TN=-
ProfId6TN=-
ProfId1US=Prof Id (FEIN)
ProfId2US=DVR-Nummer
ProfId3US=DVR-Nummer
ProfId4US=DVR-Nummer
ProfId5US=DVR-Nummer
ProfId6US=DVR-Nummer
ProfId2US=-
ProfId3US=-
ProfId4US=-
ProfId5US=-
ProfId6US=-
ProfId1RO=Prof Id 1 (CUI)
ProfId2RO=Prof Id 2 (Nr. Înmatriculare)
ProfId3RO=Prof Id 3 (CAEN)
ProfId4RO=DVR-Nummer
ProfId4RO=-
ProfId5RO=Prof Id 5 (EUID)
ProfId6RO=DVR-Nummer
ProfId6RO=-
ProfId1RU=OGRN
ProfId2RU=INN
ProfId3RU=KPP
@ -354,6 +354,7 @@ VATIntraManualCheck=Sie können die Überprüfung auch manuell auf der Internets
ErrorVATCheckMS_UNAVAILABLE=Anfrage nicht möglich. Überprüfungsdienst wird vom Mitgliedsland nicht angeboten (%s).
NorProspectNorCustomer=kein Interessent / kein Kunde
JuridicalStatus=Rechtsform
Workforce=Mitarbeiter/innen
Staff=Mitarbeiter
ProspectLevelShort=Potenzial
ProspectLevel=Interessenten-Potenzial
@ -368,7 +369,7 @@ PL_UNKNOWN=Unbekannt
PL_LOW=Niedrig
PL_MEDIUM=Mittel
PL_HIGH=Hoch
TE_UNKNOWN=--
TE_UNKNOWN=-
TE_STARTUP=Startup
TE_GROUP=Großunternehmen
TE_MEDIUM=Mittleres Unternehmen
@ -456,3 +457,8 @@ PaymentTermsSupplier=Zahlungsbedingung - Lieferant
PaymentTypeBoth=Zahlungsart - Kunde und Lieferant
MulticurrencyUsed=Mehrere Währungen benutzen
MulticurrencyCurrency=Währung
InEEC=Europa (EU / EWG)
RestOfEurope=übriges Europa (EU / EWG)
OutOfEurope=außerhalb Europas (EU / EWG)
CurrentOutstandingBillLate=Offene Posten
BecarefullChangeThirdpartyBeforeAddProductToInvoice=Be carefull, depending on your product price settings, you should change thirdparty before adding product to POS.

View File

@ -198,6 +198,11 @@ ProfId3IN=Prof Id 3 (SRVC TAX)
ProfId4IN=Prof Id 4
ProfId5IN=Prof Id 5
ProfId6IN=-
ProfId1IT=-
ProfId2IT=-
ProfId3IT=-
ProfId4IT=-
ProfId5IT=EORI number
ProfId1LU=Id. prof. 1 (R.C.S. Luxembourg)
ProfId2LU=Id. prof. 2 (Business permit)
ProfId3LU=-

View File

@ -125,7 +125,7 @@ ProfId2AT=Prof Id 2 (USt.-IdNr)
ProfId3AT=Prof Id 3 (Handelsregister-Nr.)
ProfId4AT=-
ProfId5AT=-
ProfId6AT=--
ProfId6AT=-
ProfId1AU=Prof ID 1 (ABN)
ProfId2AU=-
ProfId3AU=-

View File

@ -127,15 +127,15 @@ ProfId4AT=-
ProfId5AT=-
ProfId6AT=-
ProfId1AU=Prof. id 1 (ABN)
ProfId2AU=--
ProfId3AU=--
ProfId4AU=--
ProfId2AU=-
ProfId3AU=-
ProfId4AU=-
ProfId5AU=-
ProfId6AU=-
ProfId1BE=Prof. id 1 (Professioneel nummer)
ProfId2BE=--
ProfId3BE=--
ProfId4BE=--
ProfId2BE=-
ProfId3BE=-
ProfId4BE=-
ProfId5BE=-
ProfId6BE=-
ProfId1BR=-
@ -144,8 +144,8 @@ ProfId3BR=IM (Belastingsnummer stad)
ProfId4BR=CPF
#ProfId5BR=CNAE
#ProfId6BR=INSS
ProfId1CH=--
ProfId2CH=--
ProfId1CH=-
ProfId2CH=-
ProfId3CH=Prof id 1 (Federale nummer)
ProfId4CH=Handelsregisternummer
ProfId5CH=-
@ -165,7 +165,7 @@ ProfId6CO=-
ProfId1DE=Prof. id 1 (USt.-IdNr)
ProfId2DE=Prof. id 2 (USt.-Nr)
ProfId3DE=Prof. Id 3 (Handelsregisternummer)
ProfId4DE=--
ProfId4DE=-
ProfId5DE=-
ProfId6DE=-
ProfId1ES=Prof Id 1 (CIF/NIF)
@ -181,9 +181,9 @@ ProfId4FR=Prof. id 4 (RCS / RM)
ProfId5FR=Prof-id 5
ProfId6FR=-
ProfId1GB=Prof. id 1 (Registratienummer)
ProfId2GB=--
ProfId2GB=-
ProfId3GB=Prof. Id 3 (SIC)
ProfId4GB=--
ProfId4GB=-
ProfId5GB=-
ProfId6GB=-
ProfId1HN=Id Prof. 1 (RTN)

View File

@ -127,15 +127,15 @@ ProfId4AT=-
ProfId5AT=-
ProfId6AT=-
ProfId1AU=Prof No 1 (ABN)
ProfId2AU=--
ProfId3AU=--
ProfId4AU=--
ProfId2AU=-
ProfId3AU=-
ProfId4AU=-
ProfId5AU=-
ProfId6AU=-
ProfId1BE=Prof No 1 (Profesyonel no)
ProfId2BE=--
ProfId3BE=--
ProfId4BE=--
ProfId2BE=-
ProfId3BE=-
ProfId4BE=-
ProfId5BE=-
ProfId6BE=-
ProfId1BR=CNPJ
@ -144,8 +144,8 @@ ProfId3BR=IM (Inscricao Municipal)
ProfId4BR=CPF
#ProfId5BR=CNAE
#ProfId6BR=INSS
ProfId1CH=--
ProfId2CH=--
ProfId1CH=-
ProfId2CH=-
ProfId3CH=Prof No 1 (Federal no)
ProfId4CH=Prof No 2 (Ticaret Kayıt numarası)
ProfId5CH=-
@ -165,7 +165,7 @@ ProfId6CO=-
ProfId1DE=Prof No 1 (Ust.-IdNr)
ProfId2DE=Prof No 2 (Ust.-Nr)
ProfId3DE=Prof No 3 (Handelsregister-Nr.)
ProfId4DE=--
ProfId4DE=-
ProfId5DE=-
ProfId6DE=-
ProfId1ES=Prof Id 1 (CIF/NIF)
@ -354,6 +354,7 @@ VATIntraManualCheck=Avrupa Komisyonu'nun <a href="%s" target="_blank">%s</a> web
ErrorVATCheckMS_UNAVAILABLE=Denetlemiyor. Denetim hizmeti üye ülke (%s) tarafından sağlanmıyor.
NorProspectNorCustomer=Ne aday ne de müşteri
JuridicalStatus=Tüzel Kişilik Türü
Workforce=Workforce
Staff=Çalışan sayısı
ProspectLevelShort=Potansiyel
ProspectLevel=Aday potansiyeli
@ -456,3 +457,8 @@ PaymentTermsSupplier=Ödeme Koşulları - Tedarikçi
PaymentTypeBoth=Ödeme Şekli - Müşteri ve Satıcı
MulticurrencyUsed=Çoklu Para Birimi Kullan
MulticurrencyCurrency=Para birimi
InEEC=Europe (EEC)
RestOfEurope=Rest of Europe (EEC)
OutOfEurope=Out of Europe (EEC)
CurrentOutstandingBillLate=Current outstanding bill late
BecarefullChangeThirdpartyBeforeAddProductToInvoice=Be carefull, depending on your product price settings, you should change thirdparty before adding product to POS.

View File

@ -191,6 +191,10 @@ class LangTest extends PHPUnit\Framework\TestCase
print 'Check lang file '.$file."\n";
$filecontent=file_get_contents(DOL_DOCUMENT_ROOT.'/langs/'.$code.'/'.$file);
$result=preg_match('/=--$/m', $filecontent); // A special % char we don't want. We want the common one.
//print __METHOD__." Result for checking we don't have bad percent char = ".$result."\n";
$this->assertTrue($result == 0, 'Found a translation KEY=-- into file '.$code.'/'.$file.'. We probably want Key=- instead.');
$result=strpos($filecontent, ''); // A special % char we don't want. We want the common one.
//print __METHOD__." Result for checking we don't have bad percent char = ".$result."\n";
$this->assertTrue($result === false, 'Found a bad percent char instead of % into file '.$code.'/'.$file);