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] No read data from database #25

Open
porubix opened this issue Nov 27, 2024 · 4 comments
Open

[Bug] No read data from database #25

porubix opened this issue Nov 27, 2024 · 4 comments
Assignees

Comments

@porubix
Copy link

porubix commented Nov 27, 2024

I translate "Cancel" to "Zrušiť". But in page I still see "Cancel".

Does this module work with laravel 11 and backpack 6? Or is there anything else that needs to be done?

It doesn't work either in your DEMO or my site on localhost

image

Copy link

Based on the information provided in the knowledge sources, I can address your question about the translation issue and Laravel 11 / Backpack 6 compatibility:

  1. Translation issue:
    The problem you're experiencing with the "Cancel" button not showing the translated text "Zrušiť" appears to be a known bug that was present in earlier versions of Backpack. This issue was reported and fixed in version 5.0.19 of Backpack CRUD.

Github Issue 4396 describes a similar problem where translated attributes were not showing correctly. The fix for this was merged in version 5.0.19.

To resolve this issue, you should update Backpack CRUD to at least version 5.0.19 or higher by running:

composer update backpack/crud
  1. Laravel 11 and Backpack 6 compatibility:
    Yes, Backpack 6 is compatible with Laravel 11. This is confirmed in the Github Pull Request 5457 which added Laravel 11 support to Backpack. The PR states:

"This PR add Laravel 11 support to Backpack. In order to support Laravel 10 and Laravel 11 we needed to do some modifications mainly in our DatabaseSchema to accomodate the fact that Laravel 11 dropped dbal as a dependency and removed function we were using from their public api."

Additionally, the Laravel 11 Discussion in the Backpack community forum confirms that Backpack v6 supports Laravel 10 or 11.

If you're still experiencing issues after updating, you might want to check your language files and make sure they're properly set up. You can customize translated strings as described in the Backpack documentation on customizing translated strings.

If the problem persists after these steps, you may want to open a new issue on the Backpack GitHub repository with more details about your specific setup and the steps to reproduce the problem.

ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️

Relevant sources:

Github Issue (closed): [Bug] Cancel button interface error
Laravel 11
Laravel 11
Github Issue (closed): [Bug] Create & Show operation stopped showing the translated attributes
Github Issue (closed): Datatable & CRUD Translation
Add Laravel 11 support
Update Operation|Translatable models and multi-language CRUDs Part 1
Github Issue (closed): [Bug] translatable model not showing correct language translations in edit form
FAQs for the admin UI|Customize the translated strings (aka overwrite the language files)
Github Issue (closed): [Possible bug] HasOne with translatable repeatable is not translating.
Github Issue (closed): [Bug] translatable models not showing correct locale
Github Issue (closed): display translatable field in select2_from_ajax
PRO for unlimited projects|Requirements

@pxpm
Copy link
Contributor

pxpm commented Nov 27, 2024

Most likely the "cancel" in that page you are testing is not using that base.cancel, but the crud.cancel key.

Find the crud.cancel key and translate it. 👍

@porubix
Copy link
Author

porubix commented Nov 27, 2024

I tried translating both base.cancel and crud.cancel but neither of them work. You can test it here: https://demo.backpackforlaravel.com/admin/translation-manager

@pxpm
Copy link
Contributor

pxpm commented Dec 2, 2024

Hey @x15pa3ck15x thanks for the heads up.

I've followed through your issue, and it's not possible to translate namespaced language files. I've just released a new version that does not show those in available strings to translate.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants