How to change calendar language in wordpress?

After searching, I dont find the appropriate way to resolve following problem.

After activating the calendar widget, it dont find the way to change its language (Instead of english months have french months and also for the "S S F T W T M"). Which file in worpdress folder to deal with?

Answers


I guess most of the stuff that you find still in english is the dates: names of months and days. Initially I thought that the "non-translating" problem had something to do with using the date() function instead of a different one that could be localized. However the solution has been "simpler". The process:

1) Edit the "the-events-calendar.class.php" file located in the root directory of the plugin.

2) Search for the "public function monthNames( $short = false )" and translate the values that the $months array take, for example:

$months = array( 'Jan' => __('Ene', $this->pluginDomain),

$months = array( 'January' => __('Enero', $this->pluginDomain),

Change only the value 'Ene', 'Enero' not the key of the array that should continue being: 'Jan', 'January'...

Save the file an upload to the corresponding root directory of the plugin on your WordPress installation.

Regarding some other Words that have not been translated in the .po and .mo files, I recommend reading this post of WordPress documentation. http://codex.wordpress.org/Translating_WordPress

Cheers!


Need Your Help

Explicit animation of NSView using core animation

cocoa delegates core-animation nsview explicit

I'm trying to slide in a NSView using core animation. I think I need to use explicit animation rather than relying on something like [[view animator] setFrame:newFrame]. This is mainly because I ...

Single Page MVC Navigation

javascript c# asp.net-mvc-5.1

I am building a single page scrolling MVC website that needs to be able to move to different sections of the page when a link is clicked, preferably without refreshing the page, just scrolling to s...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.