dlcount plugin の日本語化
入手元
日本語リソース
- /lib/plugins/dlcount/lang/ja/lang.php
<?php
/**
* Japanese language file
*
* @author
*/
// for the admin menu
$lang['menu'] = 'ダウンロードカウンターの統計';
$lang['mediafiles_found'] = '%s 個のメディアファイルが見つかりました.';
$lang['ago'] = '%s 前';
$lang['top_dl_files'] = 'ダウンロード数の多いファイル';
$lang['most_recent_dl_files'] = '最近ダウンロードされたファイル';
$lang['least_recent_dl_files'] = '最近ダウンロードされていないファイル';
$lang['filename'] = 'ファイル名';
$lang['downloads'] = 'DL数';
$lang['last_download'] = '最終ダウンロード';
$lang['never'] = '未ダウンロード';
- /lib/plugins/dlcount/lang/ja/settings.php
<?php
/**
* Japanese language file
*
* @author
*/
// for the configuration manager
$lang['show_filesize'] = 'ダウンロード数の前にファイルサイズを表示する';
$lang['show_lastmod'] = '最終更新日/アップロード日時を表示する';
$lang['show_dlcount'] = 'ダウンロード数を表示する';
$lang['top_n_statistics'] = '統計で表示するエントリー最大数 (管理者画面)';
- /lib/plugins/dlcount/admin.php
~略~
// BEGIN: borrowed and modified from http://de3.php.net/manual/en/function.filesize.php
function time_translate($seconds) {
$array = array(
'年' => 60 * 60 * 24 * 365.25,
'月' => 60 * 60 * 24 * 30.5,
'週間' => 60 * 60 * 24 * 7,
'日' => 60 * 60 * 24,
'時間' => 60 * 60,
'分' => 60,
'秒' => 1,
);
foreach ($array as $name=>$secs) {
if ($seconds < $secs && $secs != end($array)) continue;
$resv = floor($seconds / $secs);
$res .= ' ' . $resv . $name;
$seconds -= $resv*$secs;
}
return trim($res);
}
// END: borrowed and modified from http://de3.php.net/manual/en/function.filesize.php
~略~