Initial import of localized CSS, for Chinese and Hebrew. see #19603.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-04 00:54:42 +00:00
parent bf68de769e
commit cb3b946d8c
4 changed files with 119 additions and 12 deletions

View File

@ -85,6 +85,7 @@ if ( is_rtl() )
$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
if ( $is_iphone ) { ?>
<style type="text/css">.row-actions{visibility:visible;}</style>

View File

@ -1745,8 +1745,10 @@ ol.ol-decimal {
a.rsswidget,
#dashboard_plugins h4,
#dashboard_plugins h5,
#dashboard_recent_comments .comment-meta .approve {
font-family: Tahoma, Arial;
#dashboard_recent_comments .comment-meta .approve,
#dashboard_right_now td.b,
#dashboard_right_now .versions a {
font-family: Tahoma, Arial, sans-serif;
}
#dashboard_right_now p.sub {
@ -1758,7 +1760,6 @@ a.rsswidget,
padding-right: 0;
padding-left: 6px;
text-align: left;
font-family: Tahoma, Arial;
}
#dashboard_right_now .t {
@ -1774,10 +1775,6 @@ a.rsswidget,
float:left;
}
#dashboard_right_now .versions a {
font-family: Tahoma, Arial;
}
#dashboard_right_now a.button {
float: left;
clear: left;
@ -1815,7 +1812,7 @@ a.rsswidget,
}
.rss-widget span.rss-date {
font-family: Tahoma, Arial;
font-family: Tahoma, Arial, sans-serif;
margin-left: 0;
margin-right: 3px;
}
@ -1868,14 +1865,14 @@ a.rsswidget,
/* Recent Drafts */
#dashboard_recent_drafts h4 abbr {
font-family: Tahoma, Arial;
font-family: Tahoma, Arial, sans-serif;
margin-left:0;
margin-right: 3px;
}
/* login */
body.login {
font-family: Tahoma, arial;
font-family: Tahoma, Arial, sans-serif;
}
.login form {
@ -1892,7 +1889,7 @@ body.login {
}
#login form .submit input {
font-family: Tahoma, arial;
font-family: Tahoma, Arial, sans-serif;
}
.login #nav,
@ -2098,6 +2095,10 @@ body.login {
border-width: 0 1px 1px 1px;
}
#custom-menu-item-url {
direction: ltr;
}
.link-to-original {
font-style: normal;
font-weight: bold;
@ -2237,7 +2238,7 @@ h3.tb {
#category-add input,
#category-add select {
font-family: Tahoma, Arial;
font-family: Tahoma, Arial, sans-serif;
}
.inline-editor ul.cat-checklist ul,
@ -2413,4 +2414,71 @@ div.sidebar-name h3 {
/* RTL */
.ltr {
direction: ltr;
}
/* =Localized CSS
-------------------------------------------------------------- */
/* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */
body.locale-he-il,
.locale-he-il .quicktags, .locale-he-il .search,
.locale-he-il .howto,
.locale-he-il #adminmenu .awaiting-mod,
.locale-he-il #adminmenu span.update-plugins,
.locale-he-il #sidemenu li a span.update-plugins,
.locale-he-il .post-com-count-wrapper,
.locale-he-il .widefat th,
.locale-he-il .tablenav .displaying-num,
.locale-he-il .inline-edit-row fieldset span.title,
.locale-he-il .inline-edit-row fieldset span.checkbox-title,
.locale-he-il .inline-edit-row fieldset ul.cat-checklist label,
.locale-he-il .inline-edit-row .catshow,
.locale-he-il .inline-edit-row .cathide,
.locale-he-il .inline-edit-row #bulk-titles div,
.locale-he-il p.help,
.locale-he-il p.description,
.locale-he-il span.description,
.locale-he-il .form-wrap p,
.locale-he-il h2 .nav-tab,
.locale-he-il #your-profile legend,
.locale-he-il #utc-time, .locale-he-il #local-time,
.locale-he-il #poststuff h3,
.locale-he-il .metabox-holder h3,
.locale-he-il .tool-box .title,
.locale-he-il td,
.locale-he-il textarea,
.locale-he-il input,
.locale-he-il select,
.locale-he-il .wrap h2,
.locale-he-il .subtitle,
.locale-he-il .wrap .add-new-h2,
.locale-he-il #dashboard_right_now p.sub,
.locale-he-il #dashboard-widgets h4,
.locale-he-il a.rsswidget,
.locale-he-il #dashboard_plugins h4,
.locale-he-il #dashboard_plugins h5,
.locale-he-il #dashboard_recent_comments .comment-meta .approve,
.locale-he-il #dashboard_right_now td.b,
.locale-he-il #dashboard_right_now .versions a,
.locale-he-il .rss-widget span.rss-date,
.locale-he-il #dashboard_recent_drafts h4 abbr,
body.login.locale-he-il,
.locale-he-il #login form .submit input,
.locale-he-il #menu-management .nav-tabs-arrow-right,
.locale-he-il #category-add input,
.locale-he-il #category-add select,
.locale-he-il .submit input,
.locale-he-il .button,
.locale-he-il .button-primary,
.locale-he-il .button-secondary,
.locale-he-il .button-highlighted,
.locale-he-il #postcustomstuff .submit input,
.locale-he-il div.sidebar-name h3 {
font-family: Arial, sans-serif;
}
/* he_IL: Have <em> be bold rather than italic. */
.locale-he-il em {
font-style: normal;
font-weight: bold;
}

View File

@ -7834,3 +7834,39 @@ a.widget-control-edit {
width: auto;
}
}
/* =Localized CSS
-------------------------------------------------------------- */
/* zh_CN: Remove italic properties. */
.locale-zh-cn .howto,
.locale-zh-cn .tablenav .displaying-num,
.locale-zh-cn .js .input-with-default-title,
.locale-zh-cn .link-to-original,
.locale-zh-cn .inline-edit-row fieldset span.title,
.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,
.locale-zh-cn #utc-time,
.locale-zh-cn #local-time,
.locale-zh-cn p.install-help,
.locale-zh-cn p.help,
.locale-zh-cn p.description,
.locale-zh-cn span.description,
.locale-zh-cn .form-wrap p {
font-style: normal;
}
/* zh_CN: Enlarge dashboard widget 'Configure' link */
.locale-zh-cn .hdnle a { font-size: 12px; }
/* zn_CH: Enlarge font size, set font-size: normal */
.locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; }
/* Zn_CH: Distraction free writing.
* More beautiful font for "Just write."
* Larger text for HTML/Visual mode.
*/
.locale-zh-cn #wp-fullscreen-tagline { font-family: KaiTi, "楷体", sans-serif; }
.locale-zh-cn #wp-fullscreen-modes a { font-size: 12px; }
/* zh_CN: Enlarge font-size. */
.locale-zh-cn #sort-buttons { font-size: 1em !important; }

View File

@ -1408,6 +1408,8 @@ do_action("admin_print_scripts-$hook_suffix");
do_action('admin_print_scripts');
do_action("admin_head-$hook_suffix");
do_action('admin_head');
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
?>
</head>
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">