Skip to content

Commit

Permalink
v 0.22.0
Browse files Browse the repository at this point in the history
- Update dependencies.
- Filter by interfaces.
  • Loading branch information
Darklg committed Aug 5, 2024
1 parent 091e802 commit 8950d04
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 74 deletions.
14 changes: 10 additions & 4 deletions inc/WPUBaseUpdate/WPUBaseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
Class Name: WPU Base Update
Description: A class to handle plugin update from github
Version: 0.4.5
Version: 0.5.0
Class URI: https://github.com/WordPressUtilities/wpubaseplugin
Author: Darklg
Author URI: https://darklg.me/
Expand All @@ -26,6 +26,7 @@ class WPUBaseUpdate {
private $plugin_id;
private $plugin_dir;
private $details;
private $is_tracked = false;

public function __construct($github_username = false, $github_project = false, $current_version = false, $details = array()) {
$this->init($github_username, $github_project, $current_version, $details);
Expand All @@ -47,9 +48,7 @@ public function init($github_username = false, $github_project = false, $current
$this->plugin_dir = (defined('WP_PLUGIN_DIR') ? WP_PLUGIN_DIR : WP_CONTENT_DIR . '/plugins') . '/' . $this->plugin_id;

$gitpath = dirname($this->plugin_dir) . '/.git';
if (is_dir($gitpath) || file_exists($gitpath)) {
return;
}
$this->is_tracked = (is_dir($gitpath) || file_exists($gitpath));

if (!is_array($details)) {
$details = array();
Expand Down Expand Up @@ -125,6 +124,13 @@ public function get_new_plugin_info() {
'sections' => array()
);

/* Disable download link if plugin is tracked */
if ($this->is_tracked) {
$plugin_info['trunk'] = '';
$plugin_info['download_link'] = '';
$plugin_info['package'] = '';
}

/* Fetch plugin data */
$plugin_data = array();
if (file_exists($this->plugin_dir)) {
Expand Down
2 changes: 1 addition & 1 deletion lang/wpuactionlogs-fr_FR.l10n.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
return ['domain'=>NULL,'plural-forms'=>NULL,'messages'=>['New Post'=>'Nouvel article','Back'=>'Retour','No'=>'Non','Yes'=>'Oui','Submit'=>'Envoyer','Items %s - %s'=>'Articles %s - %s','<strong>Filter :</strong> %s • <strong>Value :</strong> %s'=>'<strong>Filtre:</strong> %s • <strong>Valeur :</strong> %s','Reset'=>'Réinitialiser','Search'=>'Rechercher','Clear'=>'Vider','Show more details'=>'Afficher plus de détails','Edit'=>'Modifier','View'=>'Voir','Delete'=>'Supprimer','Delete filtered lines'=>'Supprimer les lignes filtrées','Export all'=>'Tout exporter','Export filtered view'=>'Exporter la vue filtrée','Settings'=>'Réglages','Check all'=>'Tout cocher','Uncheck all'=>'Tout décocher','Settings saved.'=>'Paramètres sauvegardés.','Upload New Media'=>'Envoi d\'un nouveau média','Language'=>'Langue','Save'=>'Sauvegarder','Currently online'=>'Actuellement en ligne','Useful logs about what’s happening on your website admin.'=>'Des logs utiles sur ce qui se passe dans l’administration de votre site Web.','Actions'=>'Actions','User ID'=>'ID de l’utilisateur','Action type'=>'Type d’action','Action detail'=>'Détails de l’action','Action source'=>'Source de l’action','Action interface'=>'Interface','Interfaces'=>'Interfaces','Extras'=>'Extras','Enable logs for “%s”'=>'Activer les journaux pour les « %s »','Disable logs on %s'=>'Désactiver les journaux pour %s','Posts'=>'Publications','Menus'=>'Menus','Terms'=>'Termes','Options'=>'Options','Emails'=>'Emails','Users'=>'Utilisateurs','Plugins'=>'Extensions','Disable on web'=>'Désactiver sur web','web interface'=>'l’interface web','Disable on cron'=>'Désactiver sur cron','cron interface'=>'l’interface cron','Disable on CLI'=>'Désactiver sur CLI','CLI interface'=>'l’interface CLI','Display active users'=>'Afficher les utilisateurs actifs','Purge after N days'=>'Purger après N jours','Logs will be automatically deleted after this number of days. Set to 0 to disable'=>'Les logs seront automatiquement supprimés après ce nombre de jours. Définir à 0 pour désactiver','Select an user: '=>'Sélectionnez un utilisateur : ','All'=>'Tous','None'=>'Aucun','ID'=>'ID','Date'=>'Date','Account'=>'Compte','Save Changes'=>'Sauvegarder','Purge old logs'=>'Purger les vieux journaux','Delete all logs'=>'Supprimer tous les journaux','All logs have been deleted'=>'Tous les journaux ont été supprimés','Old logs have been purged'=>'Les vieux journaux ont été purgés','No active users'=>'Aucun utilisateur actif','Online here:'=>'En ligne ici :','(you)'=>'(vous)'],'language'=>'fr_FR','x-generator'=>'Poedit 3.4.4'];
return ['domain'=>NULL,'plural-forms'=>NULL,'messages'=>['New Post'=>'Nouvel article','Back'=>'Retour','No'=>'Non','Yes'=>'Oui','Submit'=>'Envoyer','Items %s - %s'=>'Articles %s - %s','<strong>Filter :</strong> %s • <strong>Value :</strong> %s'=>'<strong>Filtre:</strong> %s • <strong>Valeur :</strong> %s','Reset'=>'Réinitialiser','Search'=>'Rechercher','Clear'=>'Vider','Show more details'=>'Afficher plus de détails','Edit'=>'Modifier','View'=>'Voir','Delete'=>'Supprimer','Delete filtered lines'=>'Supprimer les lignes filtrées','Export all'=>'Tout exporter','Export filtered view'=>'Exporter la vue filtrée','Settings'=>'Réglages','Check all'=>'Tout cocher','Uncheck all'=>'Tout décocher','Settings saved.'=>'Paramètres sauvegardés.','Upload New Media'=>'Envoi d\'un nouveau média','Language'=>'Langue','Save'=>'Sauvegarder','Currently online'=>'Actuellement en ligne','Useful logs about what’s happening on your website admin.'=>'Des logs utiles sur ce qui se passe dans l’administration de votre site Web.','Actions'=>'Actions','User ID'=>'ID de l’utilisateur','Action type'=>'Type d’action','Action detail'=>'Détails de l’action','Action source'=>'Source de l’action','Action interface'=>'Interface','Interfaces'=>'Interfaces','Extras'=>'Extras','Enable logs for “%s”'=>'Activer les journaux pour les « %s »','Disable logs on %s'=>'Désactiver les journaux pour %s','Posts'=>'Publications','Menus'=>'Menus','Terms'=>'Termes','Options'=>'Options','Emails'=>'Emails','Users'=>'Utilisateurs','Plugins'=>'Extensions','Disable on web'=>'Désactiver sur web','web interface'=>'l’interface web','Disable on cron'=>'Désactiver sur cron','cron interface'=>'l’interface cron','Disable on CLI'=>'Désactiver sur CLI','CLI interface'=>'l’interface CLI','Display active users'=>'Afficher les utilisateurs actifs','Purge after N days'=>'Purger après N jours','Logs will be automatically deleted after this number of days. Set to 0 to disable'=>'Les logs seront automatiquement supprimés après ce nombre de jours. Définir à 0 pour désactiver','Select an user: '=>'Sélectionnez un utilisateur : ','All values'=>'Toutes les valeurs','None'=>'Aucun','Select an interface: '=>'Sélectionnez une interface : ','ID'=>'ID','Date'=>'Date','Account'=>'Compte','Save Changes'=>'Sauvegarder','Purge old logs'=>'Purger les vieux journaux','Delete all logs'=>'Supprimer tous les journaux','All logs have been deleted'=>'Tous les journaux ont été supprimés','Old logs have been purged'=>'Les vieux journaux ont été purgés','No active users'=>'Aucun utilisateur actif','Online here:'=>'En ligne ici :','(you)'=>'(vous)'],'language'=>'fr_FR','x-generator'=>'Poedit 3.4.4'];
Binary file modified lang/wpuactionlogs-fr_FR.mo
Binary file not shown.
87 changes: 47 additions & 40 deletions lang/wpuactionlogs-fr_FR.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: WPU Action Logs\n"
"POT-Creation-Date: 2024-06-15 17:10+0200\n"
"POT-Creation-Date: 2024-08-05 19:06+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -11,82 +11,82 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-KeywordsList: __;_e;_x\n"
"X-Generator: Poedit 3.4.4\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: inc/WPUBaseAdminPage\n"
"X-Poedit-SearchPathExcluded-1: inc/WPUBaseUpdate\n"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:582
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:817
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:587
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:823
msgid "New Post"
msgstr "Nouvel article"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:584
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:589
msgid "Back"
msgstr "Retour"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:603
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:608
#: inc/WPUBaseSettings/WPUBaseSettings.php:162
msgid "No"
msgstr "Non"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:604
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:609
#: inc/WPUBaseSettings/WPUBaseSettings.php:162
msgid "Yes"
msgstr "Oui"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:618
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:623
msgid "Submit"
msgstr "Envoyer"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:779
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:784
#, php-format
msgid "Items %s - %s"
msgstr "Articles %s - %s"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:792
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:798
#, php-format
msgid "<strong>Filter :</strong> %s • <strong>Value :</strong> %s"
msgstr "<strong>Filtre:</strong> %s • <strong>Valeur :</strong> %s"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:793
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:799
msgid "Reset"
msgstr "Réinitialiser"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:803
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:809
msgid "Search"
msgstr "Rechercher"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:805
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:811
msgid "Clear"
msgstr "Vider"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:862
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:870
msgid "Show more details"
msgstr "Afficher plus de détails"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:868
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:876
msgid "Edit"
msgstr "Modifier"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:868
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:876
msgid "View"
msgstr "Voir"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:876
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:884
msgid "Delete"
msgstr "Supprimer"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:878
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:886
msgid "Delete filtered lines"
msgstr "Supprimer les lignes filtrées"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:889
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:897
msgid "Export all"
msgstr "Tout exporter"

#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:891
#: inc/WPUBaseAdminDatas/WPUBaseAdminDatas.php:899
msgid "Export filtered view"
msgstr "Exporter la vue filtrée"

Expand Down Expand Up @@ -138,19 +138,19 @@ msgstr "Actions"
msgid "User ID"
msgstr "ID de l’utilisateur"

#: wpuactionlogs.php:180 wpuactionlogs.php:372
#: wpuactionlogs.php:180 wpuactionlogs.php:388
msgid "Action type"
msgstr "Type d’action"

#: wpuactionlogs.php:184 wpuactionlogs.php:374
#: wpuactionlogs.php:184 wpuactionlogs.php:390
msgid "Action detail"
msgstr "Détails de l’action"

#: wpuactionlogs.php:189 wpuactionlogs.php:373
#: wpuactionlogs.php:189 wpuactionlogs.php:389
msgid "Action source"
msgstr "Source de l’action"

#: wpuactionlogs.php:193 wpuactionlogs.php:375
#: wpuactionlogs.php:193 wpuactionlogs.php:391
msgid "Action interface"
msgstr "Interface"

Expand Down Expand Up @@ -240,58 +240,65 @@ msgstr ""
"Les logs seront automatiquement supprimés après ce nombre de jours. Définir "
"à 0 pour désactiver"

#: wpuactionlogs.php:353
#: wpuactionlogs.php:355
msgid "Select an user: "
msgstr "Sélectionnez un utilisateur : "

#: wpuactionlogs.php:354
msgid "All"
msgstr "Tous"
#: wpuactionlogs.php:356 wpuactionlogs.php:373
msgid "All values"
msgstr "Toutes les valeurs"

#: wpuactionlogs.php:355
#: wpuactionlogs.php:357
msgid "None"
msgstr "Aucun"

#: wpuactionlogs.php:369
#: wpuactionlogs.php:372
msgid "Select an interface: "
msgstr "Sélectionnez une interface : "

#: wpuactionlogs.php:385
msgid "ID"
msgstr "ID"

#: wpuactionlogs.php:370
#: wpuactionlogs.php:386
msgid "Date"
msgstr "Date"

#: wpuactionlogs.php:371
#: wpuactionlogs.php:387
msgid "Account"
msgstr "Compte"

#: wpuactionlogs.php:459
#: wpuactionlogs.php:475
msgid "Save Changes"
msgstr "Sauvegarder"

#: wpuactionlogs.php:468
#: wpuactionlogs.php:484
msgid "Purge old logs"
msgstr "Purger les vieux journaux"

#: wpuactionlogs.php:469
#: wpuactionlogs.php:485
msgid "Delete all logs"
msgstr "Supprimer tous les journaux"

#: wpuactionlogs.php:481
#: wpuactionlogs.php:497
msgid "All logs have been deleted"
msgstr "Tous les journaux ont été supprimés"

#: wpuactionlogs.php:486
#: wpuactionlogs.php:502
msgid "Old logs have been purged"
msgstr "Les vieux journaux ont été purgés"

#: wpuactionlogs.php:498
#: wpuactionlogs.php:514
msgid "No active users"
msgstr "Aucun utilisateur actif"

#: wpuactionlogs.php:909
#: wpuactionlogs.php:925
msgid "Online here:"
msgstr "En ligne ici :"

#: wpuactionlogs.php:914
#: wpuactionlogs.php:930
msgid "(you)"
msgstr "(vous)"

#~ msgid "All"
#~ msgstr "Tous"
Loading

0 comments on commit 8950d04

Please sign in to comment.