<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [1726] trunk: Fixes #845 props remi, GIGALinux</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1726</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-08-28 21:18:19 +0000 (Fri, 28 Aug 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fixes #845 props remi, GIGALinux</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpmessagesbpmessagesclassesphp">trunk/bp-messages/bp-messages-classes.php</a></li>
<li><a href="#trunkbpwirebpwiretemplatetagsphp">trunk/bp-wire/bp-wire-templatetags.php</a></li>
<li><a href="#trunkbpxprofilebpxprofileclassesphp">trunk/bp-xprofile/bp-xprofile-classes.php</a></li>
<li><a href="#trunkbpxprofilebpxprofiletemplatetagsphp">trunk/bp-xprofile/bp-xprofile-templatetags.php</a></li>
<li><a href="#trunkbpxprofiledeprecatedbpxprofiledeprecatedphp">trunk/bp-xprofile/deprecated/bp-xprofile-deprecated.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-core/bp-core-templatetags.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -397,10 +397,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_format_time( $time, $just_date = false ) {
</span><del>-        $date = date( get_option('date_format'), $time );
</del><ins>+        $date = date_i18n( get_option('date_format'), $time );
</ins><span class="cx">         
</span><span class="cx">         if ( !$just_date ) {
</span><del>-                $date .= ' ' . __( 'at', 'buddypress' ) . date( ' ' . get_option('time_format'), $time );
</del><ins>+                $date .= ' ' . __( 'at', 'buddypress' ) . date_i18n( ' ' . get_option('time_format'), $time );
</ins><span class="cx">         }
</span><span class="cx">         
</span><span class="cx">         return apply_filters( 'bp_format_time', $date );
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-core.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -951,10 +951,10 @@
</span><span class="cx">  * @return str The email for the matched user.
</span><span class="cx">  */
</span><span class="cx"> function bp_core_format_time( $time, $just_date = false ) {
</span><del>-        $date = date( &quot;F j, Y &quot;, $time );
</del><ins>+        $date = date_i18n( &quot;F j, Y &quot;, $time );
</ins><span class="cx">         
</span><span class="cx">         if ( !$just_date ) {
</span><del>-                $date .= __('at', 'buddypress') . date( ' g:iA', $time );
</del><ins>+                $date .= __('at', 'buddypress') . date_i18n( ' g:iA', $time );
</ins><span class="cx">         }
</span><span class="cx">         
</span><span class="cx">         return $date;
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-groups/bp-groups-templatetags.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -589,7 +589,7 @@
</span><span class="cx">                 if ( !$group )
</span><span class="cx">                         $group =&amp; $groups_template-&gt;group;
</span><span class="cx"> 
</span><del>-                return apply_filters( 'bp_get_group_date_created', date( get_option( 'date_format' ), $group-&gt;date_created ) );
</del><ins>+                return apply_filters( 'bp_get_group_date_created', date_i18n( get_option( 'date_format' ), $group-&gt;date_created ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> function bp_group_is_admin() {
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagesclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-classes.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-classes.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-messages/bp-messages-classes.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -510,7 +510,7 @@
</span><span class="cx">                 // Now deactivate all notices apart from the new one.
</span><span class="cx">                 $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE {$bp-&gt;messages-&gt;table_name_notices} SET is_active = 0 WHERE id != %d&quot;, $id ) );
</span><span class="cx">                 
</span><del>-                update_usermeta( $bp-&gt;loggedin_user-&gt;id, 'last_activity', date( 'Y-m-d H:i:s' ) ); 
</del><ins>+                update_usermeta( $bp-&gt;loggedin_user-&gt;id, 'last_activity', date_i18n( 'Y-m-d H:i:s' ) ); 
</ins><span class="cx"> 
</span><span class="cx">                 do_action( 'messages_notice_after_save', $this );
</span><span class="cx">                                 
</span></span></pre></div>
<a id="trunkbpwirebpwiretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-wire/bp-wire-templatetags.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-wire/bp-wire-templatetags.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-wire/bp-wire-templatetags.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -346,7 +346,7 @@
</span><span class="cx">                 echo bp_get_wire_poster_date();        
</span><span class="cx"> }
</span><span class="cx">         function bp_get_wire_poster_date() {
</span><del>-                return apply_filters( 'bp_get_wire_poster_date', mysql2date( get_blog_option( BP_ROOT_BLOG, 'date_format' ), date(&quot;Y-m-d H:i:s&quot;) ) );        
</del><ins>+                return apply_filters( 'bp_get_wire_poster_date', mysql2date( get_blog_option( BP_ROOT_BLOG, 'date_format' ), date_i18n(&quot;Y-m-d H:i:s&quot;) ) );        
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> function bp_wire_delete_link() {
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-classes.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-classes.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-xprofile/bp-xprofile-classes.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -655,7 +655,7 @@
</span><span class="cx">                 $this-&gt;user_id = apply_filters( 'xprofile_data_user_id_before_save', $this-&gt;user_id, $this-&gt;id );
</span><span class="cx">                 $this-&gt;field_id = apply_filters( 'xprofile_data_field_id_before_save', $this-&gt;field_id, $this-&gt;id );
</span><span class="cx">                 $this-&gt;value = apply_filters( 'xprofile_data_value_before_save', $this-&gt;value, $this-&gt;id );
</span><del>-                $this-&gt;last_updated = apply_filters( 'xprofile_data_last_updated_before_save', date( 'Y-m-d H:i:s' ), $this-&gt;id );
</del><ins>+                $this-&gt;last_updated = apply_filters( 'xprofile_data_last_updated_before_save', date_i18n( 'Y-m-d H:i:s' ), $this-&gt;id );
</ins><span class="cx">                 
</span><span class="cx">                 do_action( 'xprofile_data_before_save', $this );
</span><span class="cx">                 
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofiletemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-templatetags.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-templatetags.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-xprofile/bp-xprofile-templatetags.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -432,9 +432,9 @@
</span><span class="cx">                         case 'datebox':
</span><span class="cx">                                 
</span><span class="cx">                                 if ( $field-&gt;data-&gt;value != '' ) {
</span><del>-                                        $day = date(&quot;j&quot;, $field-&gt;data-&gt;value);
-                                        $month = date(&quot;F&quot;, $field-&gt;data-&gt;value);
-                                        $year = date(&quot;Y&quot;, $field-&gt;data-&gt;value);
</del><ins>+                                        $day = date_i18n(&quot;j&quot;, $field-&gt;data-&gt;value);
+                                        $month = date_i18n(&quot;F&quot;, $field-&gt;data-&gt;value);
+                                        $year = date_i18n(&quot;Y&quot;, $field-&gt;data-&gt;value);
</ins><span class="cx">                                         $default_select = ' selected=&quot;selected&quot;';
</span><span class="cx">                                         
</span><span class="cx">                                         /* Check for updated posted values, but errors preventing them from being saved first time */
</span><span class="lines">@@ -448,7 +448,7 @@
</span><span class="cx">                                                         $month = $_POST['field_' . $field-&gt;id . '_month'];
</span><span class="cx">                                         }
</span><span class="cx">                                         
</span><del>-                                        if ( isset( $_POST['field_' . $field-&gt;id . '_year'] ) &amp;&amp; $year != date(&quot;j&quot;, $_POST['field_' . $field-&gt;id . '_year'] ) ) {
</del><ins>+                                        if ( isset( $_POST['field_' . $field-&gt;id . '_year'] ) &amp;&amp; $year != date_i18n(&quot;j&quot;, $_POST['field_' . $field-&gt;id . '_year'] ) ) {
</ins><span class="cx">                                                 if ( !empty( $_POST['field_' . $field-&gt;id . '_year'] ) )
</span><span class="cx">                                                         $year = $_POST['field_' . $field-&gt;id . '_year'];
</span><span class="cx">                                         }
</span><span class="lines">@@ -491,7 +491,7 @@
</span><span class="cx">                                         case 'year':
</span><span class="cx">                                                 $html .= '&lt;option value=&quot;&quot;' . attribute_escape( $default_select ) . '&gt;----&lt;/option&gt;';
</span><span class="cx">                                                                 
</span><del>-                                                for ( $i = date( 'Y', time() ); $i &gt; 1899; $i-- ) {
</del><ins>+                                                for ( $i = date_i18n( 'Y', time() ); $i &gt; 1899; $i-- ) {
</ins><span class="cx">                                                         if ( $year == $i ) {
</span><span class="cx">                                                                 $selected = ' selected = &quot;selected&quot;'; 
</span><span class="cx">                                                         } else {
</span></span></pre></div>
<a id="trunkbpxprofiledeprecatedbpxprofiledeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/deprecated/bp-xprofile-deprecated.php (1725 => 1726)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/deprecated/bp-xprofile-deprecated.php        2009-08-28 21:05:10 UTC (rev 1725)
+++ trunk/bp-xprofile/deprecated/bp-xprofile-deprecated.php        2009-08-28 21:18:19 UTC (rev 1726)
</span><span class="lines">@@ -336,9 +336,9 @@
</span><span class="cx">                         
</span><span class="cx">                         case 'datebox':
</span><span class="cx">                                 if ( $this-&gt;data-&gt;value != '' ) {
</span><del>-                                        $day = date(&quot;j&quot;, $this-&gt;data-&gt;value);
-                                        $month = date(&quot;F&quot;, $this-&gt;data-&gt;value);
-                                        $year = date(&quot;Y&quot;, $this-&gt;data-&gt;value);
</del><ins>+                                        $day = date_i18n(&quot;j&quot;, $this-&gt;data-&gt;value);
+                                        $month = date_i18n(&quot;F&quot;, $this-&gt;data-&gt;value);
+                                        $year = date_i18n(&quot;Y&quot;, $this-&gt;data-&gt;value);
</ins><span class="cx">                                         $default_select = ' selected=&quot;selected&quot;';
</span><span class="cx">                                 }
</span><span class="cx">                                 
</span><span class="lines">@@ -386,7 +386,7 @@
</span><span class="cx">                                 &lt;select name=&quot;field_' . $this-&gt;id . '_year&quot; id=&quot;field_' . $this-&gt;id . '_year&quot;&gt;';
</span><span class="cx">                                 $html .= '&lt;option value=&quot;&quot;' . attribute_escape( $default_select ) . '&gt;----&lt;/option&gt;';
</span><span class="cx">                                                                 
</span><del>-                                for ( $i = date( 'Y', time() ); $i &gt; 1899; $i-- ) {
</del><ins>+                                for ( $i = date_i18n( 'Y', time() ); $i &gt; 1899; $i-- ) {
</ins><span class="cx">                                         if ( $year == $i ) {
</span><span class="cx">                                                 $selected = ' selected = &quot;selected&quot;'; 
</span><span class="cx">                                         } else {
</span></span></pre>
</div>
</div>

</body>
</html>