Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$10
need to change Chinese date format dropdown (bi lingual webste)
The widget - Events Calender has a drop down which shows 2010年十一月.
I would like to have 2010年11月。 as the format.
How can I change this?
Thanks,
James
Here is an image of the drop down. With the wrong Date Format
http://imgur.com/owWiB
James Gill | 10/04/11 at 11:38am
Edit
(3) Possible Answers Submitted...
Note: James Gill felt their question was unanswered, so we granted them a refund.
Note: James Gill requested a refund. They offered this explanation:
"Answers did not help. I solved the problem myself."If no one challenges a refund request, then they are automatically granted and proccessed after 48 hours. Admins of this site only review refund requests if someone challenges the request. If you are curious about how we handled previous refund requests, you may read over all refund requests and their challenges.
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
10/04/11
11:47amLuis Abarca says:Did you see the format on settings in your WP ? maybe that can help
- 10/04/11 11:53am
James Gill says:Hi Luis,
Thanks for you answer, but this it is more complicated. It is only on this drop down widget that I need this kind of change. And only for the Chinese version.
- 10/04/11 11:53am
-

Last edited:
10/04/11
1:58pmLinda says:Hi, are you using a plugin to create this? If not, are you using WP_Widget_Calendar? Could you show me the widget code you are using?
Linda- 10/04/11 3:23pm
James Gill says:Hi Linda,
I'm using event calender 3 for php 53
Here is the code:
<?php
/*
Plugin Name: Event Calendar 3 for PHP 5.3 Widget
Plugin URI: http://wpcal.firetree.net/
Description: Adds two sidebar widgets for Event Calendar and Upcoming Events. Requires the Event Calendar 3 for PHP 5.3. Go to the widget menu and drag the widgets to a sidebar.
Version: 3.1.5
Author: Darrell Schulte
Author URI: http://wpcal.firetree.net/
*/
/*
Copyright (c) 2006, Darrell Schulte. $Revision: 285 $
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
function ec3_widget_init()
{
if ( !function_exists('register_sidebar_widget') )
return;
/** Utility function: Gets the (possibly translated) widget title, given the
* value of the 'title' option. */
function ec3_widget_title($title,$default)
{
if ( empty($title) )
return __($default,'ec3');
else
return apply_filters('widget_title',$title);
}
/** Event Calendar widget. */
function ec3_widget_cal($args)
{
extract($args);
$options = get_option('ec3_widget_cal');
echo $before_widget . $before_title;
echo ec3_widget_title($options['title'],'Event Calendar');
echo $after_title;
ec3_get_calendar();
echo $after_widget;
}
function ec3_widget_cal_control()
{
$options = $newoptions = get_option('ec3_widget_cal');
if ( $_POST["ec3_cal_submit"] )
{
$newoptions['title']=strip_tags(stripslashes($_POST["ec3_cal_title"]));
}
if ( $options != $newoptions )
{
$options = $newoptions;
update_option('ec3_widget_cal', $options);
}
$title = ec3_widget_title($options['title'],'Event Calendar');
?>
<p>
<label for="ec3_cal_title">
<?php _e('Title:'); ?>
<input class="widefat" id="ec3_cal_title" name="ec3_cal_title"
type="text" value="<?php echo htmlspecialchars($title,ENT_QUOTES); ?>" />
</label>
</p>
<p><a href="options-general.php?page=ec3_admin">
<?php _e('Go to Event Calendar Options','ec3') ?>.</a>
</p>
<input type="hidden" name="ec3_cal_submit" value="1" />
<?php
}
wp_register_sidebar_widget(
'event-calendar',
__('Event Calendar','ec3'),
'ec3_widget_cal',
array('description' =>
__( 'Display upcoming events in a dynamic calendar.','ec3')
. ' (Event Calendar '. __('Plugin') .')' )
);
register_widget_control(
array(__('Event Calendar','ec3'),'widgets'),
'ec3_widget_cal_control'
);
/** Upcoming Events widget. */
function ec3_widget_list($args)
{
extract($args);
$options = get_option('ec3_widget_list');
echo $before_widget . $before_title;
echo ec3_widget_title($options['title'],'Upcoming Events');
echo $after_title;
ec3_get_events(
$options['limit'],
EC3_DEFAULT_TEMPLATE_EVENT,
EC3_DEFAULT_TEMPLATE_DAY,
get_option('date_format')
);
echo $after_widget;
}
function ec3_widget_list_control()
{
$options = $newoptions = get_option('ec3_widget_list');
if ( $_POST["ec3_list_submit"] )
{
$newoptions['title'] = strip_tags(stripslashes($_POST["ec3_list_title"]));
$newoptions['limit'] = strip_tags(stripslashes($_POST["ec3_limit"]));
}
if ( $options != $newoptions )
{
$options = $newoptions;
update_option('ec3_widget_list', $options);
}
$title = ec3_widget_title($options['title'],'Upcoming Events');
$limit = $options['limit'];
$ec3_limit_title =
__("Examples: '5', '5 days', '5d'. To display recent past events, use a negative number: '-5'.");
?>
<p>
<label for="ec3_list_title">
<?php _e('Title:'); ?>
<input class="widefat" id="ec3_list_title" name="ec3_list_title"
type="text" value="<?php echo htmlspecialchars($title,ENT_QUOTES); ?>" />
</label>
</p>
<p>
<label for="ec3_limit" title="<?php echo $ec3_limit_title ?>">
<?php _e('Number of events:','ec3'); ?>
<input class="widefat" style="width: 50px; text-align: center;"
id="ec3_limit" name="ec3_limit" type="text"
value="<?php echo $limit? $limit: '5'; ?>" />
</label>
</p>
<p>
<a href="options-general.php?page=ec3_admin">
<?php _e('Go to Event Calendar Options','ec3') ?>.</a>
</p>
<input type="hidden" name="ec3_list_submit" value="1" />
<?php
}
wp_register_sidebar_widget(
'upcoming-events',
__('Upcoming Events','ec3'),
'ec3_widget_list',
array('description' =>
__('Display upcoming events as a list.','ec3')
. ' (Event Calendar '. __('Plugin') .')' )
);
register_widget_control(
array(__('Upcoming Events','ec3'),'widgets'),
'ec3_widget_list_control'
);
}
add_action('widgets_init', 'ec3_widget_init');
?> - 10/04/11 5:25pm
Linda says:Hi again, can you put up a picture of the same image in the English version or send me a link to the live site?
thanks
- 10/04/11 3:23pm
-

Last edited:
10/04/11
6:20pmJurre Hanema says:Does this concern the "Upcoming Events widget" or the "Event Calendar widget"?
Also, how are you creating the dropdown? Because in the Events Calender 3 source, I can't find any dropdowns!
This question has expired.
Current status of this question: Refunded
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
