Skip to main content
20 events
when toggle format what by license comment
Sep 20, 2013 at 13:49 comment added fuxia @EricHolmes This affects all situations where front end and back language is different. There are many plugins doing that, so I think it is worth keeping this here.
Sep 20, 2013 at 13:31 review Close votes
Sep 20, 2013 at 13:49
Sep 20, 2013 at 13:28 comment added kaiser @EricHolmes No bad feelings or other emotions involved over here. Glad you found the problem.
Sep 20, 2013 at 13:12 comment added Eric Holmes This question appears to be off-topic because it relates to a plugin's functionality (WP Native Dashboard), and not WordPress core itself.
Sep 20, 2013 at 13:11 comment added Eric Holmes @kaiser sorry, it's been a long morning. Going to mark this as off-topic. Solution described below.
Sep 20, 2013 at 13:10 answer added Eric Holmes timeline score: 3
Sep 20, 2013 at 13:06 comment added kaiser @EricHolmes No need to get rude. Instead read my comment again. I assumed that, so it hasn't been clear to me. Anyway. Please don't add debug info into comments. Edit your post instead. Later readers might skip comments and not get an important part of the process.
Sep 20, 2013 at 6:16 history tweeted twitter.com/#!/StackWordPress/status/380938448309592064
Sep 19, 2013 at 20:53 comment added kaiser @toscho Yeah, you know that I know that. :) But the comment from the OP tells me that he didn't dump it, but just repeated his question/problem.
Sep 19, 2013 at 20:49 comment added fuxia @kaiser $GLOBALS['wp_locale'] is an object holding the translated values.
Sep 19, 2013 at 20:47 comment added kaiser @toscho "It's returning the English values" tells me that the user didn't actually dump what you asked for, but described his problem again.
Sep 19, 2013 at 20:33 history edited fuxia
edited tags
Sep 19, 2013 at 20:32 comment added fuxia Hm, strange. Try 'en_US' === get_locale() or load_default_textdomain(); in your AJAX callback. If that doesn’t work, the language is not detected correctly.
Sep 19, 2013 at 20:25 comment added Eric Holmes It's returning the English values. My WP install was en_US, and I've installed the fr_FR .mo and .po files for site 2. This is on site 2. WP_LANG is not set in wp-config.php.
Sep 19, 2013 at 20:18 comment added fuxia What do you get when you let the AJAX function return $GLOBALS['wp_locale']?
Sep 19, 2013 at 20:08 comment added Eric Holmes Same function being called when going to domain.com/events (results in current month), and same function called for AJAX.
Sep 19, 2013 at 20:07 comment added Eric Holmes Yes I am. I simplified the code slightly. I removed next/previous links themselves (use /2013/10/ scheme as normal).
Sep 19, 2013 at 20:07 history edited Eric Holmes CC BY-SA 3.0
added 470 characters in body
Sep 19, 2013 at 19:48 comment added fuxia Depends on the code creating the response. Please add it to your question. Do you use date_i18n()?
Sep 19, 2013 at 19:44 history asked Eric Holmes CC BY-SA 3.0