-
Notifications
You must be signed in to change notification settings - Fork 44
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
Localize array flip error and title() in models #19
Comments
@brokenhd Lets add some tests related to localization features. What @SomosAMambo has discovered (thank you @SomosAMambo ) is some issues related to changes between Laravel 4 and 5 that aren't being caught in the current tests. |
Thanks again, your diagnosis was spot on |
These (and are other issues) are legacies of us not doing a localized project since we released 5.0 (and supported Laravel 5). The tests we're adding now will prevent future breaks. |
Ok! Let us help! |
I think the best way you can help, besides filling the issues you have been, is if you discover anything not documented or you can think better ways to explain how to use Decoy, submit PRs to the docs: https://github.com/BKWLD/decoy/tree/master/docs. Thanks for offering! |
There are some undocumented features I would like to help, but I'm digesting all the code first. E.g. The wysiwyg field; apparently there is a way to upload images directly from it, but I was not able to find the documentation for it. |
Yeah, that could use a better implementation. Before we open sourced the repo, our projects would build the assets (js/css) with the project's webpack/grunt. So, the way this is done is a legacy of that and is awkward as a result. See http://docs.decoy.bukwild.com/customize. You'll need to build your own JS file that consumes Decoy's JS and then call Instead of this, I think Decoy should expose an api on the |
I'll give it a try! Thanks! |
The method localizableLocales() of Localize class is generating an error because Laravels query method "lists" returns a collection, not an array.
Classes\Input\Localize.php, ln 93
Suggested code:
Also, all translatable models should have a title() method?
In
_localize.haml, ln 21
it expects that the model have it:And in
views\shared\form\display\_locale.php, ln 22
:So we had to do this:
Isn't preferable that this is an attribute like
->adminTitle
(getAdminTitleAttribute()
inBase
class)?Suggested code for
_localize.haml, ln 21
:and for
views\shared\form\display\_locale.php, ln 22
:The text was updated successfully, but these errors were encountered: