Title: Language files
Last modified: August 30, 2016

---

# Language files

 *  Resolved [simplemediaca](https://wordpress.org/support/users/simplemediaca/)
 * (@simplemediaca)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/)
 * Hi!
 * We have a bilingual site EN/FR we can’t find a way to get the months in FR. We
   noticed language files in the plugin directory, how do we get those to translate
   the month names?
 * Thanks!
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/language-files-21/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/language-files-21/page/2/?output_format=md)

 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358381)
 * Hey there,
 * I realized that this is a missing feature, WordPress supports translation of 
   common date names [https://codex.wordpress.org/Function_Reference/date_i18n](https://codex.wordpress.org/Function_Reference/date_i18n)
   but the plugin is using date() instead of date_i18n – I will have it fixed for
   the next release
 * as for other updates to the translation, these are mostly welcome
    are you familiar
   with [http://poedit.net/](http://poedit.net/) ?
 * if you see strings (other than months, it’ll be automatic) that you need to correct
   for French, you can edit the translation files and issue a request to [https://github.com/pderksen/WP-Google-Calendar-Events/tree/master/google-calendar-events/languages](https://github.com/pderksen/WP-Google-Calendar-Events/tree/master/google-calendar-events/languages)
 * thanks 🙂
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358505)
 * Hi again
 * I went through the code and I think date_i18 is being used already when necessary–
   where exactly (in the grid? list?) you saw the months appearing in English instead
   of French? When WordPress switches to French language, it should pick months 
   in French…
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358537)
 * Hi Fulvio Notarstefano,
 * I am having the same problem with translation and was told that “hey it wasn’t
   like this before”.
 * The English version of the calender is fine.
    Now, if you switch to French version
   of the page, first it’s alright. But when you click on “Préc” or “Suiv” the calender
   becomes English.
 * [See demo.](http://synstudio.staging.wpengine.com/fr/)
 * Thanks.
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358568)
 * Hi
 * I could not replicate the issue so far – the buttons show in the right locale
   for me even when cycling pages; the french locale file also seems ok
 * but I’m trying to figure out what might be breaking things
    perhaps it was a 
   filter on prev/next buttons that I think was placed there to allow people to 
   change the text (but when it’s done, it means the person doing so also needs 
   to write their own translation)
 * check if you are not using in your theme filters called
    `gce_prev_text` and `
   gce_next_text`
 * you can then try downloading this version of the 2.2.6 plugin: [https://github.com/pderksen/WP-Google-Calendar-Events/archive/fulvio-prevnext-i18n.zip](https://github.com/pderksen/WP-Google-Calendar-Events/archive/fulvio-prevnext-i18n.zip)(
   note: the plugin is inside the folder google-calendar-events inside the archive)
 * Refresh your caches after you have copied this version (I think you can safely
   overwrite your existing version since it only makes a tiny change, but just in
   case make a backup if you are not doing this on a local machine)
 * please let me know if it works out or if you were running those filters by any
   chance
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358586)
 * Hi,
 * Thanks for your time. I checked our calendar settings…I’m pretty sure we are 
   not translating months and days manually, neither we are using custom filters
   for `gce_prev_text/gce_next_text`.
 * I applied your update, cleared feed cache and browser cache but the problem still
   persists.
 * 1. I was thinking, if we could find another bilingual website where this problem
   doesn’t exist then it would mean a particular sequence of code execution on our
   site is causing this. But then again, simplemediaca^ said the French translation
   is not happening on his site. He didn’t say the calender doesn’t show French 
   at all or not, for me it shows French until you switch months.
 * 2. I am using QTranslate….it’s a headache. May be the localization file for QTranslate
   is overriding all translations from Google Calendar? I disabled the French language
   file in QTranslate but still the same.
 * The thing is, it knows the language is French but when you switch month, that
   piece of information is reset. Using QTranslate’s `qtrans_getLanguage();` I could
   force php-calendar.php in GCal the current language, but that’s not a good solution
   in terms of future updates. You might want to see this [php-calendar.php](https://dl.dropboxusercontent.com/u/12720893/php-calendar.php),
   it was used as a patch for the same issue in an older version of GCal.
 * Thanks again. I’ll let you know if I find out the fix.
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358596)
 * Hi there,
 * thanks for helping to sort this out
 * I think it might have to do either with the filter being applied to the buttons
   or to the way the ajax refreshes calendar pages (in php-calendar.php see L45,
   L46). Please try out the branched version I linked in my previous post. It contains
   edits to remove the filters to the buttons names.
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358602)
 * Hi,
 * I guess the change is the php-calendar.php file only? I replaced that file from
   the branched version; then cleared plugin and browser cache, but still same problem.
   Does that mean it’s not really those filter definitions? My guess is it’s the
   AJAX call, which doesn’t restore language parameter when it refreshes the calendar.
 * I plan to analyze the button click and AJAX call. Will let you know if I find
   something interesting.
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358605)
 * yeah, probably is the ajax call, the filter was mostly a tentative guess, I need
   to check if those strings are passed in localize script correctly
 * currently rewriting this plugin from scratch (maintaining backwards compatibility)
   and at some point I will address the ajax issues as well – it will take some 
   time though (current branch ‘refactor’ on github, but it’s coming nicely)
 * if I can fix current bugs quickly I will patch the current plugin
 * so if you have any finding I will definitely push the changes if they work, thanks
 *  [jill.allan](https://wordpress.org/support/users/jillallan/)
 * (@jillallan)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358621)
 * Having the same issue. Just adding myself to receive follow-up posts
    thanks
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358624)
 * 2.2.7 has an updated French translations file, could you all check if the issue
   is solved with that please?
 *  [jill.allan](https://wordpress.org/support/users/jillallan/)
 * (@jillallan)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358625)
 * If you are asking if the reverting to English on cycling pages (previous/next
   month) is resolved. Sorry, no. I am still seeing the problem (That the display
   reverts to English).
    thanks
 *  Thread Starter [simplemediaca](https://wordpress.org/support/users/simplemediaca/)
 * (@simplemediaca)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358626)
 * Hi Fulvio!
 * Thanks for your help on this! Also ashpriom fro contributing!
 * Sorry I wasn’t in earlier I was gone on vacation. I performed the plugin update
   and cleared my cache and the problem still persists
 * Here’s the link where you can experience the problem [http://russelldome.worryfreeweb.ca/fr/evenements/](http://russelldome.worryfreeweb.ca/fr/evenements/)
   just click Suiv. and the month will change from Aout to September.
 * We use WPML as the site translator but there is nothing that was translated for
   your plugin through WPML.
 * Any other details needed let me know.
 * Thanks!
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358627)
 * Hi Fulvio,
 * Same here. I did the update and cleared cache but the problem is still there.
   You can see it in action [here](http://synstudio.staging.wpengine.com/fr/). I
   can give you access if you want.
 * The way I see it, it’s a compatibility issue with other language plugins like
   WPML and Qtranslate. I am thinking how does the calendar know the current language“
   after” it makes the AJAX call to switch months? Because I am using Qtranslate
   and the current language slug is “fr”, but the problem is it won’t be same for
   all other plugins…it could be something like “Fr” or “French”. So I see this 
   as a compatibility issue with other plugins.
 * Thanks for the update. If I find out anything I will post here.
 * P.S. thanks [@simplemediaca](https://wordpress.org/support/users/simplemediaca/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358629)
 * Hi all,
 * I can confirm that this is indeed a plugin compatibility issue. I am migrating
   from Qtranslate to Polylang, finally, and with Polylang the French version of
   the calendar works fine. You can see [here](http://synstudio.staging.wpengine.com/french/)
 * There is an option in Polylang to enable/disable translation of Google Calendar
   Events. I have it enabled in my settings.
 *  Thread Starter [simplemediaca](https://wordpress.org/support/users/simplemediaca/)
 * (@simplemediaca)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358630)
 * Nice find ashpriom! Sadly moving to Polylang (which I know works well for bilingual
   site) is not an option as we have to stick with WPML.
 * I might have to get one of my team to custom tweak the calendar code.
 * Cheers

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/language-files-21/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/language-files-21/page/2/?output_format=md)

The topic ‘Language files’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [jill.allan](https://wordpress.org/support/users/jillallan/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/page/2/#post-6358633)
 * Status: resolved