Comments (7)
I really don't understand your problem. I18nMiddleware
only does redirection if URL is /
, not for any other URL.
from cakephp-i18n.
Not sure if you reply to correct ticket? This issue is tackling that there is no documentation on how to use your plugin along with prefixes (recommended way of administrative interfaces by cakephp-docs) and/or combining it with other router classes (dashed/inflected/...)
Maybe you have some app that is code-public and uses your plugin, so we can take more inspiration from?
from cakephp-i18n.
Also, related issue, accessing not-defined-route in default scope, will show routes that are available, such as 'Users:login'
However accessing defined-route in scope that is not routed by I18nRoute, will show this trace, about AuthComponent->_isLoginAction not resolving the 'Users:login' route, and it shows with controller name lowercase below the stacktrace
Is it possible, that this kind of issue is caused by this plugin, or should i go upstream to cakephp/cakephp and report it?
from cakephp-i18n.
The readme already states
Note: I18nRoute extends core's DashedRoute so the URL fragments will be inflected accordingly.
So if you want to use InflectedRoute
go look elsewhere :)
from cakephp-i18n.
Maybe you have some app that is code-public and uses your plugin, so we can take more inspiration from?
Sorry that's not something I am interested in doing. I primarily built this plugin for myself and shared it as I thought other's might find it useful. So whoever can figured out how to use it is welcome and for those who can't all I can say is sorry. I don't want to spend time providing detailed documentation or demos.
from cakephp-i18n.
The missing route error you have shown isn't directly related to the plugin. It depends on what routes you have or haven't setup.
from cakephp-i18n.
So if you want to use
InflectedRoute
go look elsewhere :)
I don't want to, that was just an example
This is something I built for myself and shared it as I thought other's might find it useful. So whoever can figured out how to use it is welcome and for those who can't all I can say is sorry.
Well that is something worth stating on top of readme, that you provide no support, and maybe close the issues here and link only to cakephp support platforms (slack/discourse/...)
The missing route error you have shown isn't directly related to the plugin. It depends on what routes you have or haven't setup.
I was not presenting missing route, but the strange thing that when the route goes missing, it is listed with controller name lowercase in the trace, however i'm going to put it as upstream issue
Thank you anyway for your comments
from cakephp-i18n.
Related Issues (20)
- Switch language HOT 3
- Change default routing language HOT 1
- command 'i18n' in plugin 'ADmad/I18n' was not aliased, conflicts with another shell HOT 4
- Weird behavior with i18n routes when no lang is specified HOT 4
- How to set I18n route with prefix ? HOT 2
- Docs for newer version of CakePHP
- Shell task Extract fails to save HOT 1
- Handling multi-domain application localization HOT 1
- Custom Redirects HOT 1
- Default route missing HOT 4
- Redirect to default language HOT 1
- Configuration for DbMessagesLoader HOT 3
- View routes get their ID dropped HOT 1
- sell command(s) isn't compatible with cakephp 4 HOT 1
- Remove :lang in default language URLs HOT 3
- Extract task warns about Invalid marker content HOT 5
- Compatibility with cakedc/i18n HOT 1
- Argument 2 passed to Cake\I18n\TranslatorRegistry::setFallbackPackage() HOT 2
- DbMessagesLoader not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-i18n.