mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
7dae633143
commit
d1b20fc718
8 changed files with 80 additions and 22 deletions
|
@ -623,9 +623,9 @@ $t['Want to watch this again later?'] = "後で再度視聴しますか?";
|
|||
$t['Warning'] = "警告";
|
||||
$t['Watch on YouTube'] = "YouTubeで見る";
|
||||
$t['Watching Now'] = "今すぐ見る";
|
||||
$t['We could not notify anyone ({$email}, {$siteOwnerEmail}), but we marked it as a inapropriated'] = "ご指定の情報では、誰にも通知することができませんでした({$email}, {$siteOwnerEmail}), 不正利用としてマークしました.";
|
||||
$t['We could not notify the video owner {$email}, but we marked it as a inapropriated'] = "ビデオの所有者 {$email}を知らせることはできませんが、不正利用であるとマークしました.";
|
||||
$t['We could not notify the video owner {$siteOwnerEmail}, but we marked it as a inapropriated'] = "ビデオの所有者{$siteOwnerEmail}に通知することはできませんでしたが、不適切なものとしてマークしました.";
|
||||
$t['We could not notify anyone ({$email}, {$siteOwnerEmail}), but we marked it as a inapropriated'] = "ご指定の情報では、誰にも通知することができませんでした({\$email}, {\$siteOwnerEmail}), 不正利用としてマークしました.";
|
||||
$t['We could not notify the video owner {$email}, but we marked it as a inapropriated'] = "ビデオの所有者 {\$email}を知らせることはできませんが、不正利用であるとマークしました.";
|
||||
$t['We could not notify the video owner {$siteOwnerEmail}, but we marked it as a inapropriated'] = "ビデオの所有者{\$siteOwnerEmail}に通知することはできませんでしたが、不適切なものとしてマークしました.";
|
||||
$t['We detected a total of %s pending updates, if you want to do it now click (Update Now) button'] = "合計で %s の保留中の更新を検出しました。今すぐ更新したい場合は、(今すぐ更新)ボタンをクリックしてください。.";
|
||||
$t['We have not found any videos or audios to show'] = "視聴できるビデオやオーディオは見つかりませんでした.";
|
||||
$t['We sent you an e-mail with instructions'] = "ご指定のメールアドレスにメールを送信しました.";
|
||||
|
|
|
@ -126,3 +126,9 @@ $advancedCustomUser = AVideoPlugin::getObjectData("CustomizeUser");
|
|||
$customizePlugin = AVideoPlugin::getObjectData("Customize");
|
||||
AVideoPlugin::loadPlugin("PlayerSkins");
|
||||
$sitemapFile = "{$global['systemRootPath']}sitemap.xml";
|
||||
|
||||
if(!empty($_GET['type'])){
|
||||
$metaDescription = " {$_GET['type']}";
|
||||
}else if(!empty($_GET['showOnly'])){
|
||||
$metaDescription = " {$_GET['showOnly']}";
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
global $global;
|
||||
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
|
||||
|
||||
|
@ -464,7 +465,6 @@ class API extends PluginAbstract {
|
|||
exit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return a user livestream information
|
||||
* @param type $parameters
|
||||
|
@ -1043,6 +1043,48 @@ class API extends PluginAbstract {
|
|||
return $obj->APISecret;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param type $parameters
|
||||
* Return available locales translations
|
||||
* @example {webSiteRootURL}plugin/API/{getOrSet}.json.php?APIName={APIName}
|
||||
* @return type
|
||||
*/
|
||||
public function get_api_locales($parameters) {
|
||||
global $global, $config;
|
||||
$langs = new stdClass();
|
||||
$langs->default = $config->getLanguage();
|
||||
$langs->options = getEnabledLangs();
|
||||
$langs->isRTL = isRTL();
|
||||
return new ApiObject("", false, $langs);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param type $parameters
|
||||
* 'language' specify what translation array the API should return, for example cn = chinese
|
||||
* Return available locales translations
|
||||
* @example {webSiteRootURL}plugin/API/{getOrSet}.json.php?APIName={APIName}&language=cn
|
||||
* @return type
|
||||
*/
|
||||
public function get_api_locale($parameters) {
|
||||
global $global, $config;
|
||||
$obj = $this->startResponseObject($parameters);
|
||||
|
||||
if (empty($parameters['language'])) {
|
||||
return new ApiObject("You must specify a language");
|
||||
}
|
||||
$parameters['language'] = strtolower($parameters['language']);
|
||||
$file = "{$global['systemRootPath']}locale/{$parameters['language']}.php";
|
||||
if (!file_exists("{$file}")) {
|
||||
return new ApiObject("This language does not exists");
|
||||
}
|
||||
include $file;
|
||||
if(empty($t)){
|
||||
return new ApiObject("This language is empty");
|
||||
}
|
||||
|
||||
return new ApiObject("", false, $t);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ApiObject {
|
||||
|
|
|
@ -3,6 +3,7 @@ global $global, $config;
|
|||
if(!isset($global['systemRootPath'])){
|
||||
require_once '../videos/configuration.php';
|
||||
}
|
||||
$metaDescription = "About Page";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $config->getLanguage(); ?>">
|
||||
|
|
|
@ -35,6 +35,7 @@ $bgSize = getimagesize($bgImagePath);
|
|||
if($bgSize[0]<2048){
|
||||
$channelFluidLayout = false;
|
||||
}
|
||||
$metaDescription = " Channel - {$_GET['channelName']}";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $_SESSION['language']; ?>">
|
||||
|
|
|
@ -28,6 +28,7 @@ $_POST['rowCount'] = 10;
|
|||
$channels = Channel::getChannels(true, "u.id, '". implode(",", $users_id_array)."'");
|
||||
|
||||
$totalPages = ceil($totalChannels / $_POST['rowCount']);
|
||||
$metaDescription = " Our Channels";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $_SESSION['language']; ?>">
|
||||
|
|
|
@ -8,6 +8,7 @@ $email = "";
|
|||
if (User::isLogged()) {
|
||||
$email = User::getEmail_();
|
||||
}
|
||||
$metaDescription = " Contact Form";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $_SESSION['language']; ?>">
|
||||
|
|
|
@ -33,12 +33,18 @@ foreach ($custom as $key => $value) {
|
|||
}
|
||||
}
|
||||
|
||||
if(!empty($metaDescription)){
|
||||
$metaDescription = implode(" - ", $custom)." - {$metaDescription}";
|
||||
}else{
|
||||
$metaDescription = implode(" - ", $custom);
|
||||
}
|
||||
|
||||
$theme = $config->getTheme();
|
||||
?>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="<?php echo implode(" - ", $custom); ?>">
|
||||
<meta name="description" content="<?php echo $metaDescription; ?>">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $config->getFavicon(true); ?>">
|
||||
<link rel="icon" type="image/png" href="<?php echo $config->getFavicon(true); ?>">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue