フォーラムへの返信

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • トピック投稿者 tani mi

    (@fumi-kitani)

    wokamotoさん、shokun0803さん、いろいろとありがとうございます。
    2.9.2が主流の中で、2.6対応の本を見ながら作っており
    わからない事ばかりで。。たすかります。

    ただ、お2人のご説明にまだ自分が追いついていないレベルで申し訳ないです。
    シンプルなブログが作りたいだけなんですけれど。。
    カレンダーをカスタムするのは難しそうですね。
    コアソースの修正は良くない事を念頭に、ご説明いただいた方法を
    勉強しながら探ってみます。

    シンプルなブログが作りたいだけなんですけれど。。
    カレンダーをカスタムするのは難しそうですね。
    がんばります!ありがとうございました。

    トピック投稿者 tani mi

    (@fumi-kitani)

    すみません。結局の所、対処方法はないのでしょうか??

    トピック投稿者 tani mi

    (@fumi-kitani)

    いま

    <?php get_calendar(‘title_li=’); ?>

    でカレンダーをアップしています。urlも表記しますね。

    http://presentdaily.chicappa.jp/wordpress/

    なんども、ありがとうございます。
    よろしくお願いいたします。

    トピック投稿者 tani mi

    (@fumi-kitani)

    コアファイルの修正は良くないんですね。(知りませんでした)
    となると、local.phpをもとに戻し

    直接任意のフォーマット↓

    <?php
    // the_date()
    $the_date = the_date( ‘U’, null, null, false );
    if ( !empty( $the_date ) ) echo date( ‘M.n Y’, $the_date );

    // echo get_the_time()
    echo date( ‘M.n Y’, get_the_time(‘U’) );

    これをアップすると良いという事でしょうか?
    ちなみに、まだ初心者でもあるのでどこに、どのようにアップすれば良いのかが
    わかりません。style.cssのカレンダーの所でしょうか?

    すみません、よろしくお願いいたします。

    トピック投稿者 tani mi

    (@fumi-kitani)

    こんにちは。カレンダーを英語表記にしたのは
    wp-includesのlocale.phpをdreamweaverで下記の感じに変更しました。

    // The Weekdays
    $this->weekday[0] = ‘SUNDAY.’;
    $this->weekday[1] = ‘MONDAY.’;
    $this->weekday[2] = ‘TUESDAY.’;
    $this->weekday[3] = ‘WEDNESDAY.’;
    $this->weekday[4] = ‘THURSDAY.’;
    $this->weekday[5] = ‘FRIDAY.’;
    $this->weekday[6] = ‘SATURDAY.’;

    // The first letter of each day. The _%day%_initial suffix is a hack to make
    // sure the day initials are unique.
    $this->weekday_initial[‘SUNDAY.’] = ‘S’;
    $this->weekday_initial[‘MONDAY.’] = ‘M’;
    $this->weekday_initial[‘TUESDAY.’] = ‘T’;
    $this->weekday_initial[‘WEDNESDAY.’] = ‘W’;
    $this->weekday_initial[‘THURSDAY.’] =’T’;
    $this->weekday_initial[‘FRIDAY.’] = ‘F’;
    $this->weekday_initial[‘SATURDAY.’] = ‘S’;

    foreach ($this->weekday_initial as $weekday_ => $weekday_initial_) {
    $this->weekday_initial[$weekday_] = preg_replace(‘/_.+_initial$/’, ”, $weekday_initial_);
    }

    // Abbreviations for each day.
    $this->weekday_abbrev[‘SUNDAY.’] = ‘SUN’;
    $this->weekday_abbrev[‘MONDAY.’] = ‘MON’;
    $this->weekday_abbrev[‘TUESDAY.’] = ‘TUE’;
    $this->weekday_abbrev[‘WEDNESDAY.’] = ‘WED’;
    $this->weekday_abbrev[‘THURSDAY.’] = ‘THU’;
    $this->weekday_abbrev[‘FRIDAY.’] = ‘FRI’;
    $this->weekday_abbrev[‘SATURDAY.’] = ‘SAT’;

    // The Months
    $this->month[’01’] = ‘JANUARY.’;
    $this->month[’02’] = ‘FEBRUARY.’;
    $this->month[’03’] = ‘MARCH.’;
    $this->month[’04’] = ‘APRIL.’;
    $this->month[’05’] = ‘MAY.’;
    $this->month[’06’] = ‘JUNE.’;
    $this->month[’07’] = ‘JULY.’;
    $this->month[’08’] = ‘AUGUST.’;
    $this->month[’09’] = ‘SEPTEMBER.’;
    $this->month[’10’] = ‘OTOBER.’;
    $this->month[’11’] = ‘NOVEMBER.’;
    $this->month[’12’] = ‘DECEMBER.’;

    // Abbreviations for each month. Uses the same hack as above to get around the
    // ‘May’ duplication.
    $this->month_abbrev[‘JANUARY.’] = ‘JAN’;
    $this->month_abbrev[‘FEBRUARY.’] = ‘FEB’;
    $this->month_abbrev[‘MARCH.’] = ‘MAR’;
    $this->month_abbrev[‘APRIL.’] = ‘APR’;
    $this->month_abbrev[‘MAY.’] = ‘MAY’;
    $this->month_abbrev[‘JUNE.’] = ‘JUN’;
    $this->month_abbrev[‘JULY.’] = ‘JUL’;
    $this->month_abbrev[‘AUGUST.’] = ‘AUG’;
    $this->month_abbrev[‘SEPTEMBER.’] = ‘SEP’;
    $this->month_abbrev[‘OTOBER.’] = ‘OCT’;
    $this->month_abbrev[‘NOVEMBER.’] = ‘NOV’;
    $this->month_abbrev[‘DECEMBER.’] = ‘DEC’;

    foreach ($this->month_abbrev as $month_ => $month_abbrev_) {
    $this->month_abbrev[$month_] = preg_replace(‘/_.+_abbreviation$/’, ”, $month_abbrev_);
    }

    // The Meridiems
    $this->meridiem[‘am’] = ‘am’;
    $this->meridiem[‘pm’] = ‘pm’;
    $this->meridiem[‘AM’] = ‘AM’;
    $this->meridiem[‘PM’] = ‘PM’;

    // Numbers formatting
    // See http://php.net/number_format

    $trans = _c(‘number_format_decimals|$decimals argument for http://php.net/number_format, default is 0’);
    $this->number_format[‘decimals’] = (‘number_format_decimals’ == $trans) ? 0 : $trans;

    $trans = _c(‘number_format_decimal_point|$dec_point argument for http://php.net/number_format, default is .’);
    $this->number_format[‘decimal_point’] = (‘number_format_decimal_point’ == $trans) ? ‘.’ : $trans;

    $trans = _c(‘number_format_thousands_sep|$thousands_sep argument for http://php.net/number_format, default is ,’);
    $this->number_format[‘thousands_sep’] = (‘number_format_thousands_sep’ == $trans) ? ‘,’ : $trans;

    // Import global locale vars set during inclusion of $locale.php.
    foreach ( $this->locale_vars as $var ) {
    if ( isset($GLOBALS[$var]) )
    $this->$var = $GLOBALS[$var];
    }

    }

    index.phpでは <?php get_calendar(); ?> <?php wp_get_archives(); ?>と
    カレンダーとアーカイブをアップしていますが、いずれも
    『2010 年 MARCH.』のままです。

    wp-contentのlanguagesには、ja.po と ja.mo と2つ入っていましたが
    私がもっているソフトでは編集できないようでした。
    長々すみません。よろしくお願いいたします。

5件の返信を表示中 - 1 - 5件目 (全5件中)