# |
Jul 3rd 2017, 17:19 |
glanceded |
instead of localhost I tried * but doesn't work. I also tried to assign the resulted value to $this->response. Also, it didn't work |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I use ->cors method, like this $this->response ->cors($this->request) ->allowOrigin(['http://localhost:81>']) ->allowMethods(['GET', 'POST']) //->allowHeaders(['X-CSRF-Token']) //->allowCredentials() //->exposeHeaders(['Link']) ->maxAge(300) -build(); |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I try do add cors, but it doesn't work |
# |
Jul 3rd 2017, 17:18 |
glanceded |
I have a problem with my cake app I'm trying to make. |
# |
Jul 3rd 2017, 17:17 |
glanceded |
hello guys |
# |
Jul 3rd 2017, 16:37 |
admad |
no need to set locale individually for all data time classes. Just set `I18n::locale('en_GB')` |
# |
Jul 3rd 2017, 16:18 |
inoas |
ndm what do you set Time::setDefaultLocale() etc to? |
# |
Jul 3rd 2017, 16:11 |
admad |
@ndm yup it is a bug |
# |
Jul 3rd 2017, 15:56 |
ndm |
@ionas No one said it would be easy :slightly_smiling_face: My configurations looked similar, but by now I'm using `i18nFormat()` wherever possible, so that most of the time all I have to do is set the locale. |
# |
Jul 3rd 2017, 15:42 |
inoas |
50 years from now I cannot imagine that. |
# |
Jul 3rd 2017, 15:42 |
inoas |
right now here in germany small and medium sized "non-direct-customer" companies still refuse to hire people that only speak English |
# |
Jul 3rd 2017, 15:41 |
jeremyharris |
:) |
# |
Jul 3rd 2017, 15:41 |
inoas |
...o0O(and after that they lived happily ever after) |
# |
Jul 3rd 2017, 15:41 |
inoas |
lets make the trade: we use the broken (American :p) English and you use the broken (Metric) date/dimension thingies :p? |
# |
Jul 3rd 2017, 15:40 |
inoas |
jeremy ;-P |
# |
Jul 3rd 2017, 15:40 |
inoas |
ndm care to share your configuration? thats what I do but it feels strange https://gist.github.com/inoas/c8010068661352e0d51cdc985e2f869a |
# |
Jul 3rd 2017, 15:40 |
jeremyharris |
ouch. as an american, I take offense. our shitty datetime format is the corner stone of our shitty democracy! |
# |
Jul 3rd 2017, 15:38 |
ndm |
Well, that's just a matter of configuration, my datetimes are using non-retarded formatting ;) But yeah, as far as debug kit concerned, it's pretty much a non-issue. |
# |
Jul 3rd 2017, 15:36 |
inoas |
neon1024 :+1: |
# |
Jul 3rd 2017, 15:36 |
inoas |
ndm I am saying its a non-issue. If we want to be inclusive we have to fix default datetimes to be ISO instead of english-american :p |
# |
Jul 3rd 2017, 15:36 |
neon1024 |
Perhaps an RFC ticket to remove the left overs? |
# |
Jul 3rd 2017, 15:35 |
ndm |
@ionas Ok, it read as if you thought I'd refer to the source... I'd tend to agree that it seems that no one really seems to want it translated. |
# |
Jul 3rd 2017, 15:35 |
neon1024 |
I guess just an omission @ndm :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:35 |
neon1024 |
:coffee: |
# |
Jul 3rd 2017, 15:34 |
inoas |
anyway I will stfu |
# |
Jul 3rd 2017, 15:34 |
inoas |
and we cannot get the doc blocks translated reasonably |
# |
Jul 3rd 2017, 15:34 |
inoas |
what I am saying is that doc blocks matter the most, then book documentation, then at some point debug kit locales ;-P |
# |
Jul 3rd 2017, 15:34 |
neon1024 |
Translations !== Source code |
# |
Jul 3rd 2017, 15:34 |
neon1024 |
Sigh, you’re stuck on source code today inoas |
# |
Jul 3rd 2017, 15:33 |
inoas |
neon1024 I would welcome to have uuids in source code comments and some kind of uber-tool that translates all doc blocks on the fly :p |
# |
Jul 3rd 2017, 15:33 |
neon1024 |
If they help make things more accessible for non-english speakers |
# |
Jul 3rd 2017, 15:33 |
neon1024 |
But for translations, any contributed translations are a positive thing in my book :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:33 |
inoas |
ndm I know. I am just saying - as a "german motherlanguage dude" - that I could live without those and because no one complained so far maybe we all can and reduce maintainance/costs |
# |
Jul 3rd 2017, 15:32 |
inoas |
Anyway you don't have to agree. I rather have a consistent output that is English than outdated locales - luckly this is in bootstrap.php ;) ini_set('intl.default_locale', Configure::read('App.defaultLocale')) (so we all have by default some kind of English to talk to each other) |
# |
Jul 3rd 2017, 15:32 |
ndm |
@ionas I'm not referring to the source code, but to the translation files that ship with the plugin :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:32 |
neon1024 |
I had a good chat with @brettl and @steinkel about non-english language source code. If I recall the consensus was much the same as yours @inoas - that English source code was easiest for collaboration |
# |
Jul 3rd 2017, 15:31 |
neon1024 |
Just chance to have been born in an English speaking country, certainly |
# |
Jul 3rd 2017, 15:30 |
inoas |
you are not glad because you are not affected anyway :p |
# |
Jul 3rd 2017, 15:30 |
inoas |
and that no one noticed so far tells a story |
# |
Jul 3rd 2017, 15:30 |
neon1024 |
Well, then I am glad it is not your plugin :slightly_smiling_face: |
# |
Jul 3rd 2017, 15:30 |
inoas |
that includes debugkit IMHO as it is pretty low level |