Make WordPress Core

Changeset 19825


Ignore:
Timestamp:
02/04/2012 12:54:42 AM (13 years ago)
Author:
nacin
Message:

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

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r19522 r19825  
    8686$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
    8787$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
     88$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
    8889
    8990if ( $is_iphone ) { ?>
  • trunk/wp-admin/css/wp-admin-rtl.dev.css

    r19817 r19825  
    17461746#dashboard_plugins h4,
    17471747#dashboard_plugins h5,
    1748 #dashboard_recent_comments .comment-meta .approve {
    1749     font-family: Tahoma, Arial;
     1748#dashboard_recent_comments .comment-meta .approve,
     1749#dashboard_right_now td.b,
     1750#dashboard_right_now .versions a {
     1751    font-family: Tahoma, Arial, sans-serif;
    17501752}
    17511753
     
    17591761    padding-left: 6px;
    17601762    text-align: left;
    1761     font-family: Tahoma, Arial;
    17621763}
    17631764
     
    17751776}
    17761777
    1777 #dashboard_right_now .versions a {
    1778     font-family: Tahoma, Arial;
    1779 }
    1780 
    17811778#dashboard_right_now a.button {
    17821779    float: left;
     
    18161813
    18171814.rss-widget span.rss-date {
    1818     font-family: Tahoma, Arial;
     1815    font-family: Tahoma, Arial, sans-serif;
    18191816    margin-left: 0;
    18201817    margin-right: 3px;
     
    18691866/* Recent Drafts */
    18701867#dashboard_recent_drafts h4 abbr {
    1871     font-family: Tahoma, Arial;
     1868    font-family: Tahoma, Arial, sans-serif;
    18721869    margin-left:0;
    18731870    margin-right: 3px;
     
    18761873/* login */
    18771874body.login {
    1878     font-family: Tahoma, arial;
     1875    font-family: Tahoma, Arial, sans-serif;
    18791876}
    18801877
     
    18931890
    18941891#login form .submit input {
    1895     font-family: Tahoma, arial;
     1892    font-family: Tahoma, Arial, sans-serif;
    18961893}
    18971894
     
    20992096}
    21002097
     2098#custom-menu-item-url {
     2099    direction: ltr;
     2100}
     2101
    21012102.link-to-original {
    21022103    font-style: normal;
     
    22382239#category-add input,
    22392240#category-add select {
    2240     font-family: Tahoma, Arial;
     2241    font-family: Tahoma, Arial, sans-serif;
    22412242}
    22422243
     
    24152416    direction: ltr;
    24162417}
     2418
     2419/* =Localized CSS
     2420-------------------------------------------------------------- */
     2421
     2422/* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */
     2423body.locale-he-il,
     2424.locale-he-il .quicktags, .locale-he-il .search,
     2425.locale-he-il .howto,
     2426.locale-he-il #adminmenu .awaiting-mod,
     2427.locale-he-il #adminmenu span.update-plugins,
     2428.locale-he-il #sidemenu li a span.update-plugins,
     2429.locale-he-il .post-com-count-wrapper,
     2430.locale-he-il .widefat th,
     2431.locale-he-il .tablenav .displaying-num,
     2432.locale-he-il .inline-edit-row fieldset span.title,
     2433.locale-he-il .inline-edit-row fieldset span.checkbox-title,
     2434.locale-he-il .inline-edit-row fieldset ul.cat-checklist label,
     2435.locale-he-il .inline-edit-row .catshow,
     2436.locale-he-il .inline-edit-row .cathide,
     2437.locale-he-il .inline-edit-row #bulk-titles div,
     2438.locale-he-il p.help,
     2439.locale-he-il p.description,
     2440.locale-he-il span.description,
     2441.locale-he-il .form-wrap p,
     2442.locale-he-il h2 .nav-tab,
     2443.locale-he-il #your-profile legend,
     2444.locale-he-il #utc-time, .locale-he-il #local-time,
     2445.locale-he-il #poststuff h3,
     2446.locale-he-il .metabox-holder h3,
     2447.locale-he-il .tool-box .title,
     2448.locale-he-il td,
     2449.locale-he-il textarea,
     2450.locale-he-il input,
     2451.locale-he-il select,
     2452.locale-he-il .wrap h2,
     2453.locale-he-il .subtitle,
     2454.locale-he-il .wrap .add-new-h2,
     2455.locale-he-il #dashboard_right_now p.sub,
     2456.locale-he-il #dashboard-widgets h4,
     2457.locale-he-il a.rsswidget,
     2458.locale-he-il #dashboard_plugins h4,
     2459.locale-he-il #dashboard_plugins h5,
     2460.locale-he-il #dashboard_recent_comments .comment-meta .approve,
     2461.locale-he-il #dashboard_right_now td.b,
     2462.locale-he-il #dashboard_right_now .versions a,
     2463.locale-he-il .rss-widget span.rss-date,
     2464.locale-he-il #dashboard_recent_drafts h4 abbr,
     2465body.login.locale-he-il,
     2466.locale-he-il #login form .submit input,
     2467.locale-he-il #menu-management .nav-tabs-arrow-right,
     2468.locale-he-il #category-add input,
     2469.locale-he-il #category-add select,
     2470.locale-he-il .submit input,
     2471.locale-he-il .button,
     2472.locale-he-il .button-primary,
     2473.locale-he-il .button-secondary,
     2474.locale-he-il .button-highlighted,
     2475.locale-he-il #postcustomstuff .submit input,
     2476.locale-he-il div.sidebar-name h3 {
     2477    font-family: Arial, sans-serif;
     2478}
     2479
     2480/* he_IL: Have <em> be bold rather than italic. */
     2481.locale-he-il em {
     2482    font-style: normal;
     2483    font-weight: bold;
     2484}
  • trunk/wp-admin/css/wp-admin.dev.css

    r19815 r19825  
    78357835    }
    78367836}
     7837
     7838/* =Localized CSS
     7839-------------------------------------------------------------- */
     7840
     7841/* zh_CN: Remove italic properties. */
     7842.locale-zh-cn .howto,
     7843.locale-zh-cn .tablenav .displaying-num,
     7844.locale-zh-cn .js .input-with-default-title,
     7845.locale-zh-cn .link-to-original,
     7846.locale-zh-cn .inline-edit-row fieldset span.title,
     7847.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,
     7848.locale-zh-cn #utc-time,
     7849.locale-zh-cn #local-time,
     7850.locale-zh-cn p.install-help,
     7851.locale-zh-cn p.help,
     7852.locale-zh-cn p.description,
     7853.locale-zh-cn span.description,
     7854.locale-zh-cn .form-wrap p {
     7855    font-style: normal;
     7856}
     7857
     7858/* zh_CN: Enlarge dashboard widget 'Configure' link */
     7859.locale-zh-cn .hdnle a { font-size: 12px; }
     7860
     7861/* zn_CH: Enlarge font size, set font-size: normal */
     7862.locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; }
     7863
     7864/* Zn_CH: Distraction free writing.
     7865 *  More beautiful font for "Just write."
     7866 *  Larger text for HTML/Visual mode.
     7867 */
     7868.locale-zh-cn #wp-fullscreen-tagline { font-family: KaiTi, "楷体", sans-serif; }
     7869.locale-zh-cn #wp-fullscreen-modes a { font-size: 12px; }
     7870
     7871/* zh_CN: Enlarge font-size. */
     7872.locale-zh-cn #sort-buttons { font-size: 1em !important; }
  • trunk/wp-admin/includes/template.php

    r19820 r19825  
    14091409do_action("admin_head-$hook_suffix");
    14101410do_action('admin_head');
     1411
     1412$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
    14111413?>
    14121414</head>
Note: See TracChangeset for help on using the changeset viewer.