datamintsGmbH / datamints_locallang_builder

Offers developers and editors a backend module for creating, changing and translating language files for your extensions. Significant improvement of the workflow by using an independent translation provider such as Azure, DeepL or Google Translate.
https://www.datamints.com
Other
4 stars 5 forks source link

Incorrect integer value: 'yes' for column 'approved' at row 1 #3

Closed opi99 closed 3 years ago

opi99 commented 3 years ago

From specification the approved field is string yes|no http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#approved But it gets read as string without conversion to bool

$translationValue->setApproved($domElement->getAttribute('approved'));

Later while try tow rite into DB the string can't be converted to smallint as defined in the ext_tables.sql

approved smallint(5) unsigned DEFAULT '0' NOT NULL,

opi99 commented 3 years ago

The setter of the TranslationValue Model could also get TypeHinting in modern PHP

datamints commented 3 years ago

Thank you, its fixed in Version 1.0.9

opi99 commented 3 years ago

Did you forget to push the commits? No 1.0.9 tag exists. ;)

weisgerberm commented 3 years ago

I forgot to merge the dev-branch into master. Thanks :)

opi99 commented 3 years ago

Ah, thanks. BTW: Commits with whitespace changes on every line are a bit hard to read, it's better to use 2 commit, one for whitespace and one for the real issue.