Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error loading files using Turkish language in backend #4476

Open
kovinet opened this issue Jun 3, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@kovinet
Copy link
Contributor

commented Jun 3, 2019

Bug Report

When setting Turkish language as Document language editables starting with letter i (input, image) generate error.

Error is related with how in Turkish language uppercase i becomes İ (with dot). When using $this-input() Pimcore tries to load İnput.php instead of 'Input.php' which generates an error. Same for image and other cases when file is auto loaded by making first letter uppercase.

There are also other related errors, like Monolog throws error 'info' severity is not supported, etc.

Even if you don't set Turkish as Document language but just use Pimcore user language as Turkish, there are errors because of the same reason. In this case no error is thrown but when you save a Document content of all editables starting with i is erased.

Expected behavior

When auto loading files when first letter is capitalized, capitalization should be done in English, no matter which language is set in backend.

Actual behavior

If Turkish language is set in backend, Turkish is also used for capitalizing first letter for cammel case file name, which results in errors.

Steps to reproduce

Add Turkish language in System Settings. Select Turkish as Document language and add some editables starting with letter i (image, input). Also Turkish system language should be present on server else the problem doesn't occur.

Code example

$this->image('image')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.