edit translation
This commit is contained in:
parent
55c2646ba5
commit
18a888e1f0
@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
namespace Zotlabs\Theme;
|
namespace Zotlabs\Theme;
|
||||||
|
|
||||||
class plusfutureConfig {
|
class plusfutureConfig
|
||||||
|
{
|
||||||
|
|
||||||
function get_schemas() {
|
function get_schemas()
|
||||||
|
{
|
||||||
$files = glob('view/theme/plusfuture/schema/*.php');
|
$files = glob('view/theme/plusfuture/schema/*.php');
|
||||||
|
|
||||||
$scheme_choices = [];
|
$scheme_choices = [];
|
||||||
@ -14,8 +16,7 @@ class plusfutureConfig {
|
|||||||
if (in_array('view/theme/plusfuture/schema/default.php', $files)) {
|
if (in_array('view/theme/plusfuture/schema/default.php', $files)) {
|
||||||
$scheme_choices['---'] = t('Default');
|
$scheme_choices['---'] = t('Default');
|
||||||
$scheme_choices['focus'] = t('Focus (Hubzilla default)');
|
$scheme_choices['focus'] = t('Focus (Hubzilla default)');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$scheme_choices['---'] = t('Focus (Hubzilla default)');
|
$scheme_choices['---'] = t('Focus (Hubzilla default)');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +32,8 @@ class plusfutureConfig {
|
|||||||
return $scheme_choices;
|
return $scheme_choices;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get() {
|
function get()
|
||||||
|
{
|
||||||
if (!local_channel()) {
|
if (!local_channel()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -59,7 +61,8 @@ class plusfutureConfig {
|
|||||||
return $this->form($arr);
|
return $this->form($arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function post() {
|
function post()
|
||||||
|
{
|
||||||
if (!local_channel()) {
|
if (!local_channel()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -87,7 +90,8 @@ class plusfutureConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function form($arr) {
|
function form($arr)
|
||||||
|
{
|
||||||
|
|
||||||
if (get_pconfig(local_channel(), 'plusfuture', 'advanced_theming'))
|
if (get_pconfig(local_channel(), 'plusfuture', 'advanced_theming'))
|
||||||
$expert = 1;
|
$expert = 1;
|
||||||
@ -98,25 +102,25 @@ class plusfutureConfig {
|
|||||||
'$theme' => \App::$channel['channel_theme'],
|
'$theme' => \App::$channel['channel_theme'],
|
||||||
'$expert' => $expert,
|
'$expert' => $expert,
|
||||||
'$title' => t("Theme settings"),
|
'$title' => t("Theme settings"),
|
||||||
'$narrow_navbar' => array('plusfuture_narrow_navbar',t('Narrow navbar'),$arr['narrow_navbar'], '', array(t('No'),t('Yes'))),
|
'$narrow_navbar' => array('plusfuture_narrow_navbar', t('細めのナビバー'), $arr['narrow_navbar'], '', array(t('No'), t('Yes'))),
|
||||||
'$singlepost' => array('plusfuture_singlepost', t('Singlepost'), $arr['singlepost'], '', array(t('No'), t('Yes'))),
|
'$singlepost' => array('plusfuture_singlepost', t('Singlepost'), $arr['singlepost'], '', array(t('No'), t('Yes'))),
|
||||||
'$nav_bg' => array('plusfuture_nav_bg', t('Navigation bar background color'), $arr['nav_bg']),
|
'$nav_bg' => array('plusfuture_nav_bg', t('ナビゲーションバーバックグラウンドカラー'), $arr['nav_bg']),
|
||||||
'$nav_icon_colour' => array('plusfuture_nav_icon_colour', t('Navigation bar icon color '), $arr['nav_icon_colour']),
|
'$nav_icon_colour' => array('plusfuture_nav_icon_colour', t('ナビゲーションバーアイコンカラー'), $arr['nav_icon_colour']),
|
||||||
'$nav_active_icon_colour' => array('plusfuture_nav_active_icon_colour', t('Navigation bar active icon color '), $arr['nav_active_icon_colour']),
|
'$nav_active_icon_colour' => array('plusfuture_nav_active_icon_colour', t('ナビゲーションバーアクティブアイコンカラー'), $arr['nav_active_icon_colour']),
|
||||||
'$link_colour' => array('plusfuture_link_colour', t('Link color'), $arr['link_colour'], '', $link_colours),
|
'$link_colour' => array('plusfuture_link_colour', t('リンクカラー'), $arr['link_colour'], '', $link_colours),
|
||||||
'$banner_colour' => array('plusfuture_banner_colour', t('Set font-color for banner'), $arr['banner_colour']),
|
'$banner_colour' => array('plusfuture_banner_colour', t('バナーのフォントカラー'), $arr['banner_colour']),
|
||||||
'$bgcolour' => array('plusfuture_background_colour', t('Set the background color'), $arr['bgcolour']),
|
'$bgcolour' => array('plusfuture_background_colour', t('バックグラウンドカラー'), $arr['bgcolour']),
|
||||||
'$background_image' => array('plusfuture_background_image', t('Set the background image'), $arr['background_image']),
|
'$background_image' => array('plusfuture_background_image', t('バックグラウンド画像'), $arr['background_image']),
|
||||||
'$item_colour' => array('plusfuture_item_colour', t('Set the background color of items'), $arr['item_colour']),
|
'$item_colour' => array('plusfuture_item_colour', t('バックグラウンドの画像や色を指定してください。'), $arr['item_colour']),
|
||||||
'$comment_item_colour' => array('plusfuture_comment_item_colour', t('Set the background color of comments'), $arr['comment_item_colour']),
|
'$comment_item_colour' => array('plusfuture_comment_item_colour', t('コメント欄のアイテムカラー'), $arr['comment_item_colour']),
|
||||||
'$font_size' => array('plusfuture_font_size', t('Set font-size for the entire application'), $arr['font_size'], t('Examples: 1rem, 100%, 16px')),
|
'$font_size' => array('plusfuture_font_size', t('フォントサイズ'), $arr['font_size'], t('Examples: 1rem, 100%, 16px')),
|
||||||
'$font_colour' => array('plusfuture_font_colour', t('Set font-color for posts and comments'), $arr['font_colour']),
|
'$font_colour' => array('plusfuture_font_colour', t('投稿とコメントのフォントサイズ'), $arr['font_colour']),
|
||||||
'$radius' => array('plusfuture_radius', t('Set radius of corners'), $arr['radius'], t('Example: 4px')),
|
'$radius' => array('plusfuture_radius', t('カードの角丸'), $arr['radius'], t('Example: 4px')),
|
||||||
'$shadow' => array('plusfuture_shadow', t('Set shadow depth of photos'), $arr['shadow']),
|
'$shadow' => array('plusfuture_shadow', t('影'), $arr['shadow']),
|
||||||
'$converse_width' => array('plusfuture_converse_width',t('Set maximum width of content region in pixel'),$arr['converse_width'], t('Leave empty for default width')),
|
'$converse_width' => array('plusfuture_converse_width', t('コンテンツの幅指定'), $arr['converse_width'], t('Leave empty for default width')),
|
||||||
'$top_photo' => array('plusfuture_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
|
'$top_photo' => array('plusfuture_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
|
||||||
'$reply_photo' => array('plusfuture_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
|
'$reply_photo' => array('plusfuture_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
|
||||||
'$advanced_theming' => ['plusfuture_advanced_theming', t('Show advanced settings'), $arr['advanced_theming'], '', [t('No'), t('Yes')]]
|
'$advanced_theming' => ['plusfuture_advanced_theming', t('詳細設定を開く'), $arr['advanced_theming'], '', [t('No'), t('Yes')]]
|
||||||
));
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
Reference in New Issue
Block a user