pimcore icon indicating copy to clipboard operation
pimcore copied to clipboard

[Bug]: Don't display the name of custom language i added by myself

Open abdelrhmanyosry opened this issue 11 months ago • 3 comments

Pimcore version

11

Steps to reproduce

adding custom languages in system_settings.yaml image

then create any object with localize field you will find that the new lang i added have no name in UI. image

Actual Behavior

it don't display the name of lang

Expected Behavior

it should display the name of lang

abdelrhmanyosry avatar Mar 23 '24 12:03 abdelrhmanyosry

Localized Fields are not intended to be used for anything else then localization with the available languages. That the name is not shown is because for Pimcore those are not valid languages and there are no translations and icons for that. If you want to show the name you would have to change more stuff in the core to make them visible. You can find the logic for the display here. There you can check what you would have to change to make it work.

https://github.com/pimcore/admin-ui-classic-bundle/blob/b8de397f8b99e3ad0a36fd2e301faed9163ac2a9/public/js/pimcore/object/tags/localizedfields.js#L499-L517

Have you tried saving the object, did that work? You probably need to change even more things as the logic is tightly coupled with the languages. Probably best to use something else to achieve what you want.

matthiashamacher avatar Mar 23 '24 17:03 matthiashamacher

@matthiashamacher yeah it works and pimcore auto created tables for new localize fields. image

what is your suggestion to able to send attributes to different store-views from magento to pimcore vicevers?

abdelrhmanyosry avatar Mar 25 '24 14:03 abdelrhmanyosry

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

github-actions[bot] avatar Apr 15 '24 07:04 github-actions[bot]