localization
This commit is contained in:
parent
67981c517d
commit
40513e3169
8 changed files with 337 additions and 29 deletions
|
|
@ -36,7 +36,7 @@ class Gitea_Options {
|
|||
function options_post() {
|
||||
|
||||
if (isset($_GET['force-check'])) {
|
||||
Gitea_Updater::getInstance()->get_gitea_all();
|
||||
Gitea_Updater::getInstance()->get_all();
|
||||
set_site_transient('update_plugins', null);
|
||||
set_site_transient('update_themes', null);
|
||||
}
|
||||
|
|
@ -69,8 +69,6 @@ class Gitea_Options {
|
|||
</div>
|
||||
<?php else : ?>
|
||||
|
||||
<a href="#" id="show-tokens" class="dashicons dashicons-visibility"></a>
|
||||
|
||||
<form action="<?=admin_url('options-general.php?page=gitea-updater')?>" method="post" class="box access">
|
||||
|
||||
<div class="title">
|
||||
|
|
@ -149,7 +147,7 @@ class Gitea_Options {
|
|||
<label><?=__('Repository URL', 'gitea')?></label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="gitea_install[url]" placeholder="https://host/org/repo or https://host/org/repo.git">
|
||||
<input type="text" name="gitea_install[url]" placeholder="<?=__('https://host/org/repo or https://host/org/repo.git', 'gitea')?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -174,8 +172,9 @@ class Gitea_Options {
|
|||
</div>
|
||||
|
||||
<div class="times">
|
||||
plugins: <?=date('d/m/Y H:i:s', get_option('gitea_plugins_updated'))?>
|
||||
themes: <?=date('d/m/Y H:i:s', get_option('gitea_themes_updated'))?>
|
||||
<?=__('Plugins', 'gitea')?>: <?=date('d/m/Y H:i:s', get_option('gitea_plugins_updated'))?>
|
||||
<br>
|
||||
<?=__('Themes', 'gitea')?>: <?=date('d/m/Y H:i:s', get_option('gitea_themes_updated'))?>
|
||||
</div>
|
||||
|
||||
<?php /* <textarea style="width:100%" rows="2" onfocus="this.rows=30;" onblur="this.rows=2;" readonly><?php var_dump($repositories); ?></textarea> */ ?>
|
||||
|
|
@ -213,7 +212,7 @@ class Gitea_Options {
|
|||
$repo = str_replace('.git', '', trim($url['path'], '/'));
|
||||
|
||||
$updater = Gitea_Updater::getInstance();
|
||||
$package = $updater->get_gitea_url($host, $repo, '/archive/master.zip', $data['access_token']);
|
||||
$package = $updater->get_url($host, $repo, '/archive/master.zip', $data['access_token']);
|
||||
|
||||
if ($data['type'] == 'plugin') {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue