Skip to content

Commit

Permalink
l10n - untranslatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelp committed Sep 9, 2020
1 parent cafa182 commit 10fc19b
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions admin/customize_settings_native.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/Croppie/croppie.css" rel="stylesheet" type="text/css"/>
<script src="<?php echo $global['webSiteRootURL']; ?>view/js/Croppie/croppie.min.js" type="text/javascript"></script>
<div class="panel panel-default">
<div class="panel-heading">Title and Logo </div>
<div class="panel-heading"><?php echo __('Title and Logo'); ?> </div>
<div class="panel-body">
<form id="updateConfigForm">
<div class="row">
Expand Down Expand Up @@ -126,4 +126,4 @@ function readFile(input, c) {

});
});
</script>
</script>
8 changes: 4 additions & 4 deletions admin/customize_settings_plugin.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<link href="<?php echo $global['webSiteRootURL']; ?>js/bootstrap3-wysiwyg/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css"/>

<div class="panel panel-default">
<div class="panel-heading">Customize Footer, About and Meta Description <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-heading"><?php echo __('Customize Footer, About and Meta Description'); ?> <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-body">
<?php
if (!AVideoPlugin::exists('Customize')) {
?>
<div class="alert alert-info">
Truly customize your AVideo and create a more professional video sharing site experience for your visitors by removing or replacing the footer, about page and Meta Description with your own.
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/plugins/">Buy the Customize plugin now</a>
<?php echo __('Truly customize your AVideo and create a more professional video sharing site experience for your visitors by removing or replacing the footer, about page and Meta Description with your own.'); ?>
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/plugins/"><?php echo __('Buy the Customize plugin now'); ?></a>
</div>
<?php
return false;
Expand Down Expand Up @@ -72,4 +72,4 @@
});
});
});
</script>
</script>
6 changes: 3 additions & 3 deletions admin/design_colors.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="panel panel-default">
<div class="panel-heading">Customize Your site colors <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-heading"><?php echo __('Customize Your site colors'); ?> <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-body" style="padding: 15px 30px;">
<?php
if (!AVideoPlugin::exists('Customize')) {
Expand All @@ -8,8 +8,8 @@
<img src="<?php echo $global['webSiteRootURL'], "view/css/custom/customize.png"; ?>" class="img-responsive">
</center>
<div class="alert alert-info">
Truly customize your AVideo and create a more professional video sharing site experience for your visitors by removing or replacing the footer, about page and Meta Description with your own.
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/plugins/">Buy the Customize plugin now</a>
<?php echo __('Truly customize your AVideo and create a more professional video sharing site experience for your visitors by removing or replacing the footer, about page and Meta Description with your own.'); ?>
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/plugins/"><?php echo __('Buy the Customize plugin now'); ?></a>
</div>
<?php
} else {
Expand Down
12 changes: 6 additions & 6 deletions admin/general_settings_encoder.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

$filter = array(
'useEncoderNetworkRecomendation' => 'Let the encoder network (If configured) choose what is the best encoder to use',
'doNotShowEncoderResolutionLow' => 'Do not allow encode in Low resolution',
'doNotShowEncoderResolutionSD' => 'Do not allow encode in SD resolution',
'doNotShowEncoderResolutionHD' => 'Do not allow encode in HD resolution',
'makeVideosInactiveAfterEncode' => 'Maybe you need to approve or check something on your video before make it public',
'makeVideosUnlistedAfterEncode' => 'Maybe you need to approve or check something on your video before make it public');
'useEncoderNetworkRecomendation' => __('Let the encoder network (If configured) choose what is the best encoder to use'),
'doNotShowEncoderResolutionLow' => __('Do not allow encode in Low resolution'),
'doNotShowEncoderResolutionSD' => __('Do not allow encode in SD resolution'),
'doNotShowEncoderResolutionHD' => __('Do not allow encode in HD resolution'),
'makeVideosInactiveAfterEncode' => __('Maybe you need to approve or check something on your video before make it public'),
'makeVideosUnlistedAfterEncode' => __('Maybe you need to approve or check something on your video before make it public'));
createTable("CustomizeAdvanced", $filter);
10 changes: 5 additions & 5 deletions admin/general_settings_upload.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
$filter = array(
'encoderNetwork'=>'The <a target="_blank" href="https://github.com/WWBN/AVideo-Encoder-Network">Encoder Network</a> URL ',
'useEncoderNetworkRecomendation'=>'Let the encoder network (if configured) choose what is the best encoder to use',
'doNotShowUploadMP4Button'=>'Users will not be able to directly upload, only use the encoder',
'doNotShowImportMP4Button'=>'Disable the option to import MP4 videos from your local (Server) storage',
'doNotShowEncoderButton'=>'Do not show the button to the encoder',
'doNotShowEmbedButton'=>'Check this if you will not use embed videos on your site');
'useEncoderNetworkRecomendation'=>__('Let the encoder network (if configured) choose what is the best encoder to use'),
'doNotShowUploadMP4Button'=>__('Users will not be able to directly upload, only use the encoder'),
'doNotShowImportMP4Button'=>__('Disable the option to import MP4 videos from your local (Server) storage'),
'doNotShowEncoderButton'=>__('Do not show the button to the encoder'),
'doNotShowEmbedButton'=>__('Check this if you will not use embed videos on your site'));
createTable("CustomizeAdvanced", $filter);
22 changes: 11 additions & 11 deletions admin/general_settings_user.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
$filter = array(
'disableNativeSignUp'=>'This is useful if you want to use our LDAP plugin or maybe only allow authentication from Social Networks',
'disableNativeSignIn'=>'This is useful if you want to use our LDAP plugin or maybe only allow authentication from Social Networks',
'disablePersonalInfo'=>'Disable the My Account personal info like: First and Last Name and address',
'newUsersCanStream'=>'Automatic allow new users to use your Livestream Platform',
'doNotIndentifyByEmail'=>'Do not show user\'s email on the site',
'doNotIndentifyByName'=>'Do not show user\'s name on the site',
'doNotIndentifyByUserName'=>'Do not show user\'s username on the site',
'unverifiedEmailsCanNOTLogin'=>'Users must verify their emails before login',
'onlyVerifiedEmailCanUpload'=>'Users must verify their emails before upload/submit videos',
'sendVerificationMailAutomaic'=>'After sign up we will automatic send a verification email',
'userMustBeLoggedIn'=>'Hide the website to non logged users');
'disableNativeSignUp'=>__('This is useful if you want to use our LDAP plugin or maybe only allow authentication from Social Networks'),
'disableNativeSignIn'=>__('This is useful if you want to use our LDAP plugin or maybe only allow authentication from Social Networks'),
'disablePersonalInfo'=>__('Disable the My Account personal info like: First and Last Name and address'),
'newUsersCanStream'=>__('Automatic allow new users to use your Livestream Platform'),
'doNotIndentifyByEmail'=>__('Do not show user\'s email on the site'),
'doNotIndentifyByName'=>__('Do not show user\'s name on the site'),
'doNotIndentifyByUserName'=>__('Do not show user\'s username on the site'),
'unverifiedEmailsCanNOTLogin'=>__('Users must verify their emails before login'),
'onlyVerifiedEmailCanUpload'=>__('Users must verify their emails before upload/submit videos'),
'sendVerificationMailAutomaic'=>__('After sign up we will automatic send a verification email'),
'userMustBeLoggedIn'=>__('Hide the website to non logged users'));
createTable("CustomizeUser", $filter);
8 changes: 4 additions & 4 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ function addItem(MenuAdmin $menu) {
} else {
?>
<div class="alert alert-danger">
Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store
<a class="btn btn-danger" href="https://youphp.tube/plugins/">Plugin Store</a>
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
<a class="btn btn-danger" href="https://youphp.tube/plugins/"><?php echo __('Plugin Store'); ?></a>
</div>
<?php
}
Expand All @@ -280,8 +280,8 @@ function addItem(MenuAdmin $menu) {
} else {
?>
<div class="alert alert-danger">
Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store
<a class="btn btn-danger" href="https://youphp.tube/plugins/">Plugin Store</a>
<?php echo __('Please forgive us for bothering you, but unfortunately you do not have this plugin yet. But do not hesitate to purchase it in our online store'); ?>
<a class="btn btn-danger" href="https://youphp.tube/plugins/"><?php echo __('Plugin Store'); ?></a>
</div>
<?php
}
Expand Down
6 changes: 3 additions & 3 deletions admin/mail_all_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

<div class="row">
<label class="col-md-4">
Sent only to this email:
<?php echo __('Sent only to this email'); ?>:
</label>
<div class="col-md-8">
<input class="form-control" type="email" id="email" placeholder="[email protected]">
<small>Leave it blank to send to all users</small>
<small><?php echo __('Leave it blank to send to all users'); ?></small>
</div>
</div>
<hr>
Expand Down Expand Up @@ -57,4 +57,4 @@ function notify() {

});

</script>
</script>
4 changes: 2 additions & 2 deletions plugin/Articles/Articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public function getEmptyDataObject() {

public function getPluginMenu() {
global $global;
$btn = '<a href="' . $global['webSiteRootURL'] . 'plugin/Articles/updateDescriptions.php" class="btn btn-default btn-xs btn-block" target="_blank">Update Old Descriptions</a>';
$btn .= '<a href="' . $global['webSiteRootURL'] . 'plugin/Articles/updateDescriptionsRemoveTags.php" class="btn btn-default btn-xs btn-block" target="_blank">Revert Descriptions to NON-HTML</a>';
$btn = '<a href="' . $global['webSiteRootURL'] . 'plugin/Articles/updateDescriptions.php" class="btn btn-default btn-xs btn-block" target="_blank">'.__('Update Old Descriptions').'</a>';
$btn .= '<a href="' . $global['webSiteRootURL'] . 'plugin/Articles/updateDescriptionsRemoveTags.php" class="btn btn-default btn-xs btn-block" target="_blank">'.__('Revert Descriptions to NON-HTML').'</a>';
return $btn;
}

Expand Down
4 changes: 2 additions & 2 deletions plugin/Live/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public function getTags() {
}

public function getChartTabs() {
return '<li><a data-toggle="tab" id="liveVideos" href="#liveVideosMenu"><i class="fas fa-play-circle"></i> Live videos</a></li>';
return '<li><a data-toggle="tab" id="liveVideos" href="#liveVideosMenu"><i class="fas fa-play-circle"></i> '.__('Live videos').'</a></li>';
}

public function getChartContent() {
Expand Down Expand Up @@ -674,7 +674,7 @@ public function getVideosManagerListButtonTitle() {

public function getPluginMenu() {
global $global;
return '<a href="plugin/Live/view/editor.php" class="btn btn-primary btn-sm btn-xs btn-block"><i class="fa fa-edit"></i> Edit Live Servers</a>';
return '<a href="plugin/Live/view/editor.php" class="btn btn-primary btn-sm btn-xs btn-block"><i class="fa fa-edit"></i> '.__('Edit Live Servers').'</a>';
}

static function getStats() {
Expand Down
16 changes: 8 additions & 8 deletions view/configurations_body.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div class="row">
<div class="col-xs-4">
<div class="panel panel-success">
<div class="panel-heading">Customize Your site colors <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-heading"><?php echo __('Customize Your site colors'); ?> <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-body">
<img src="<?php echo $global['webSiteRootURL'], "view/css/custom/customize.png"; ?>" class="img-responsive">
<?php
Expand Down Expand Up @@ -514,8 +514,8 @@
<div class="alert alert-warning">
<h3>
<i class="fas fa-info-circle"></i>
If you are not sure how to configure your email,
please try <a href="https://github.com/WWBN/AVideo/wiki/Setting-up-AVideo-Platform-to-send-emails" target="_blank" rel="noopener noreferrer" >this help</a>
<?php echo __('If you are not sure how to configure your email'); ?>,
<?php echo __('please try'); ?> <a href="https://github.com/WWBN/AVideo/wiki/Setting-up-AVideo-Platform-to-send-emails" target="_blank" rel="noopener noreferrer" ><?php echo __('this help'); ?></a>
</h3>
</div>

Expand Down Expand Up @@ -550,15 +550,15 @@
<div class="form-group">
<label class="col-md-4 control-label"><?php echo __("SMTP Secure"); ?></label>
<div class="col-md-8">
<input id="smtpSecure" class="form-control" type="text" value="<?php echo $config->getSmtpSecure(); ?>" placeholder="tls OR ssl" aria-describedby="smtpSecureHelp" >
<input id="smtpSecure" class="form-control" type="text" value="<?php echo $config->getSmtpSecure(); ?>" placeholder="<?php echo __('tls OR ssl'); ?>" aria-describedby="smtpSecureHelp" >
<small id="smtpSecureHelp" class="form-text text-muted"><?php echo __("Use tls OR ssl"); ?></small>
</div>
</div>

<div class="form-group">
<label class="col-md-4 control-label"><?php echo __("SMTP Port"); ?></label>
<div class="col-md-8">
<input id="smtpPort" class="form-control" type="number" value="<?php echo $config->getSmtpPort(); ?>" placeholder="465 OR 587" aria-describedby="smtpPortHelp" >
<input id="smtpPort" class="form-control" type="number" value="<?php echo $config->getSmtpPort(); ?>" placeholder="<?php echo __('465 OR 587'); ?>" aria-describedby="smtpPortHelp" >
<small id="smtpPortHelp" class="form-text text-muted"><?php echo __("465 OR 587"); ?></small>
</div>
</div>
Expand Down Expand Up @@ -611,16 +611,16 @@
<label class="col-md-2 control-label"><?php echo __("Head Code"); ?></label>
<div class="col-md-10">
<textarea id="head" class="form-control" type="text" rows="20" ><?php echo $config->getHead(); ?></textarea>
<small>For Google Analytics code: <a href='https://analytics.google.com' target="_blank" rel="noopener noreferrer">https://analytics.google.com</a></small><br>
<small>Leave blank for native code</small>
<small><?php echo __('For Google Analytics code'); ?>: <a href='https://analytics.google.com' target="_blank" rel="noopener noreferrer">https://analytics.google.com</a></small><br>
<small><?php echo __('Leave blank for native code'); ?></small>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label"><?php echo __("Google Ad Sense"); ?></label>
<div class="col-md-10">
<input type="hidden" value="" id="adsense"/>
<div class="alert alert-info">
Google AD Sense and any other Ads provider are moved to the <a href='<?php echo $global['webSiteRootURL']; ?>plugins'>ADs plugin </a>
<?php echo __('Google AD Sense and any other Ads provider are moved to the'); ?> <a href='<?php echo $global['webSiteRootURL']; ?>plugins'><?php echo __('ADs plugin'); ?> </a>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 10fc19b

Please sign in to comment.