'
' . __( 'Tags:' , 'p2' ),
'tagit' => __( 'Tag it', 'p2' ),
'citation' => __( 'Citation', 'p2' ),
'title' => __( 'Post Title', 'p2' ),
'goto_homepage' => __( 'Go to homepage', 'p2' ),
// the number is calculated in the javascript in a complex way, so we can't use ngettext
'n_new_updates' => __( '%d new update(s)', 'p2' ),
'n_new_comments' => __( '%d new comment(s)', 'p2' ),
'jump_to_top' => __( 'Jump to top', 'p2' ),
'not_posted_error' => __( 'An error has occurred, your post was not posted', 'p2' ),
'update_posted' => __( 'Your update has been posted', 'p2' ),
'loading' => __( 'Loading...', 'p2' ),
'cancel' => __( 'Cancel', 'p2' ),
'save' => __( 'Save', 'p2' ),
'hide_threads' => __( 'Hide threads', 'p2' ),
'show_threads' => __( 'Show threads', 'p2' ),
'unsaved_changes' => __( 'Your comments or posts will be lost if you continue.', 'p2' ),
'date_time_format' => __( '%1$s on %2$s', 'p2' ),
'date_format' => get_option( 'date_format' ),
'time_format' => get_option( 'time_format' ),
// if we don't convert the entities to characters, we can't get < and > inside
'l10n_print_after' => 'try{convertEntities(p2txt);}catch(e){};',
'autocomplete_prompt' => __( 'After typing @, type a name or username to find a member of this site', 'p2' ),
'no_matches' => __( 'No matches.', 'p2' ),
'comment_cancel_ays' => __( 'Are you sure you would like to clear this comment? Its contents will be deleted.' ),
'oops_not_logged_in' => __( 'Oops! Looks like you are not logged in.' ),
'please_log_in' => __( 'Please log in again' ),
'whoops_maybe_offline' => __( 'Whoops! Looks like you are not connected to the server. P2 could not connect with WordPress.' ),
) );
add_action( 'wp_head', array( 'P2_JS', 'locale_script_data' ), 2 );
}
function locale_script_data() {
global $wp_locale;
?>
primary_redirect ) )
$admin_url = preg_replace( '|https?://' . preg_quote( $current_blog->domain ) . '|', 'http://' . $current_blog->primary_redirect, $admin_url );
?>