Compare commits

...

6 Commits

Author SHA1 Message Date
Michael Vogel 0b312ae9b3
Merge pull request #11580 from tobiasd/20220530-lng
DE, FR and HU translation updates
2022-05-30 16:24:25 +02:00
Tobias Diekershoff d7eb78e65e
DE translation updates 2022-05-30 16:04:07 +02:00
Tobias Diekershoff 6ec812208f
update FR translations THX kalon33 2022-05-30 16:04:00 +02:00
Tobias Diekershoff 406b3f14dd
HU translation updated THX Balázs Úr 2022-05-30 16:03:45 +02:00
Michael Vogel ee40d8ea04
Merge pull request #11579 from MrPetovan/bug/11291-user-theme-display
Assume unsettable system.always_my_theme pconfig value is always true
2022-05-29 23:27:21 +02:00
Hypolite Petovan 7f711e266f Assume unsettable system.always_my_theme pconfig value is always true
- This was a logged in user setting so it assumes false for anonymous users
2022-05-29 16:13:49 -04:00
8 changed files with 1397 additions and 1416 deletions

View File

@ -472,7 +472,7 @@ class App
// Allow folks to override user themes and always use their own on their own site.
// This works only if the user is on the same server
$user = $this->database->selectFirst('user', ['theme'], ['uid' => $this->profile_owner]);
if ($this->database->isResult($user) && !$this->pConfig->get(local_user(), 'system', 'always_my_theme')) {
if ($this->database->isResult($user) && !local_user()) {
$page_theme = $user['theme'];
}
}
@ -504,7 +504,7 @@ class App
if (!empty($this->profile_owner) && ($this->profile_owner != local_user())) {
// Allow folks to override user themes and always use their own on their own site.
// This works only if the user is on the same server
if (!$this->pConfig->get(local_user(), 'system', 'always_my_theme')) {
if (!local_user()) {
$page_mobile_theme = $this->pConfig->get($this->profile_owner, 'system', 'mobile-theme');
}
}

View File

@ -235,7 +235,7 @@ class Profile
DI::page()['title'] = $profile['name'] . ' @ ' . DI::config()->get('config', 'sitename');
if (!DI::pConfig()->get(local_user(), 'system', 'always_my_theme')) {
if (!local_user()) {
$a->setCurrentTheme($profile['theme']);
$a->setCurrentMobileTheme(DI::pConfig()->get($a->getProfileOwner(), 'system', 'mobile_theme'));
}
@ -880,23 +880,17 @@ class Profile
*
* Used from within PCSS themes to set theme parameters. If there's a
* profile_uid variable set in App, that is the "page owner" and normally their theme
* settings take precedence; unless a local user sets the "always_my_theme"
* system pconfig, which means they don't want to see anybody else's theme
* settings except their own while on this site.
* settings take precedence; unless a local user is logged in which means they don't
* want to see anybody else's theme settings except their own while on this site.
*
* @param App $a
* @return int user ID
*
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @note Returns local_user instead of user ID if "always_my_theme" is set to true
*/
public static function getThemeUid(App $a)
public static function getThemeUid(App $a): int
{
$uid = !empty($a->getProfileOwner()) ? intval($a->getProfileOwner()) : 0;
if (local_user() && (DI::pConfig()->get(local_user(), 'system', 'always_my_theme') || !$uid)) {
return local_user();
}
return $uid;
return local_user() ?: $a->getProfileOwner();
}
/**

File diff suppressed because it is too large Load Diff

View File

@ -1304,8 +1304,6 @@ $a->strings['ID'] = 'ID';
$a->strings['Command'] = 'Befehl';
$a->strings['Job Parameters'] = 'Parameter der Aufgabe';
$a->strings['Priority'] = 'Priorität';
$a->strings['Can not parse base url. Must have at least <scheme>://<domain>'] = 'Die Basis-URL konnte nicht analysiert werden. Sie muss mindestens aus <protokoll>://<domain> bestehen';
$a->strings['Relocation started. Could take a while to complete.'] = 'Verschieben der Daten gestartet. Das kann eine Weile dauern.';
$a->strings['No special theme for mobile devices'] = 'Kein spezielles Theme für mobile Geräte verwenden.';
$a->strings['%s - (Experimental)'] = '%s - (Experimentell)';
$a->strings['No community page for local users'] = 'Keine Gemeinschaftsseite für lokale Nutzer';
@ -1339,8 +1337,9 @@ $a->strings['Message Relay'] = 'Nachrichten-Relais';
$a->strings['Use the command "console relay" in the command line to add or remove relays.'] = 'Verwende den Befehl "console relay" auf der Kommandozeile um weitere Relays hinzu zu fügen oder zu entfernen.';
$a->strings['The system is not subscribed to any relays at the moment.'] = 'Das System hat derzeit keinerlei Relays abonniert.';
$a->strings['The system is currently subscribed to the following relays:'] = 'Das System hat derzeit Abonnements bei folgenden Releays:';
$a->strings['Relocate Instance'] = 'Instanz Umziehen';
$a->strings['<strong>Warning!</strong> Advanced function. Could make this server unreachable.'] = '<strong>Achtung</strong> Funktionen für Fortgeschrittene. Könnte diesen Server unerreichbar machen.';
$a->strings['Relocate Node'] = 'Knoten umziehen';
$a->strings['Relocating your node enables you to change the DNS domain of this node and keep all the existing users and posts. This process takes a while and can only be started from the relocate console command like this:'] = 'Um deinen Friendica Knoten auf einen andere Domainnamen umzuziehen, und dabei alle existierenden Accounts und Beiträge zu behalten, kannst du dazu einen Konsolenbefehl verwenden. Die nötigen Aktualisierungen wird einige Zeit dauern und können nur auf der Konsole gestartet werden. Hierzu verwendest du einen Befehl wie den folgenden:';
$a->strings['(Friendica directory)# bin/console relocate https://newdomain.com'] = '(Friendica Verzeichnis)# bin/console relocate https://newdomain.com';
$a->strings['Site name'] = 'Seitenname';
$a->strings['Sender Email'] = 'Absender für Emails';
$a->strings['The email address your server shall use to send notification emails from.'] = 'Die E-Mail Adresse, die dein Server zum Versenden von Benachrichtigungen verwenden soll.';
@ -1480,8 +1479,6 @@ $a->strings['Temp path'] = 'Temp-Pfad';
$a->strings['If you have a restricted system where the webserver can\'t access the system temp path, enter another path here.'] = 'Solltest du ein eingeschränktes System haben, auf dem der Webserver nicht auf das temp-Verzeichnis des Systems zugreifen kann, setze hier einen anderen Pfad.';
$a->strings['Only search in tags'] = 'Nur in Tags suchen';
$a->strings['On large systems the text search can slow down the system extremely.'] = 'Auf großen Knoten kann die Volltext-Suche das System ausbremsen.';
$a->strings['New base url'] = 'Neue Basis-URL';
$a->strings['Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.'] = 'Ändert die Basis-URL dieses Servers und sendet eine Umzugsmitteilung an alle Friendica- und Diaspora*-Kontakte deiner NutzerInnen.';
$a->strings['Maximum number of parallel workers'] = 'Maximale Anzahl parallel laufender Worker';
$a->strings['On shared hosters set this to %d. On larger systems, values of %d are great. Default value is %d.'] = 'Wenn dein Knoten bei einem Shared Hoster ist, setze diesen Wert auf %d. Auf größeren Systemen funktioniert ein Wert von %d recht gut. Standardeinstellung sind %d.';
$a->strings['Enable fastlane'] = 'Aktiviere Fastlane';

File diff suppressed because it is too large Load Diff

View File

@ -298,7 +298,7 @@ $a->strings['Map'] = 'Carte';
$a->strings['View Album'] = 'Voir l\'album';
$a->strings['Bad Request.'] = 'Mauvaise requête.';
$a->strings['Contact not found.'] = 'Contact introuvable.';
$a->strings['[Friendica System Notify]'] = '[Friendica Notification Sytème]';
$a->strings['[Friendica System Notify]'] = '[Notification Système de Friendica]';
$a->strings['User deleted their account'] = 'L\'utilisateur a supprimé son compte';
$a->strings['On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'] = 'Sur votre nœud Friendica, un utilisateur a supprimé son compte. Veuillez vous assurer que ses données sont supprimées des sauvegardes.';
$a->strings['The user id is %d'] = 'L\'identifiant d\'utilisateur est %d';
@ -413,6 +413,12 @@ $a->strings['Could not find any unarchived contact entry for this URL (%s)'] = '
$a->strings['The contact entries have been archived'] = 'Les contacts ont été archivés';
$a->strings['Could not find any contact entry for this URL (%s)'] = 'Aucun profil distant n\'a été trouvé à cette URL (%s)';
$a->strings['The contact has been blocked from the node'] = 'Le profile distant a été bloqué';
$a->strings['The avatar cache needs to be enabled to use this command.'] = 'Le cache des avatars doit être activé pour pouvoir utiliser cette commande.';
$a->strings['no resource in photo %s'] = 'Aucune ressource dans la photo %s';
$a->strings['no photo with id %s'] = 'aucune photo avec l\'id %s';
$a->strings['no image data for photo with id %s'] = 'aucune donnée d\'image pour la photo avec l\'id %s';
$a->strings['invalid image for id %s'] = 'image invalide pour l\'id %s';
$a->strings['Quit on invalid photo %s'] = 'Sortie sur photo %s invalide';
$a->strings['Post update version number has been set to %s.'] = 'Le numéro de version de "post update" a été fixé à %s.';
$a->strings['Check for pending update actions.'] = 'Vérification pour les actions de mise à jour en cours.';
$a->strings['Done.'] = 'Fait.';
@ -1323,8 +1329,6 @@ $a->strings['ID'] = 'ID';
$a->strings['Command'] = 'Commande';
$a->strings['Job Parameters'] = 'Paramètres de la tâche';
$a->strings['Priority'] = 'Priorité';
$a->strings['Can not parse base url. Must have at least <scheme>://<domain>'] = 'Impossible d\'analyser l\'URL de base. Doit contenir au moins <scheme>://<domain>';
$a->strings['Relocation started. Could take a while to complete.'] = 'Déménagement en cours. Cette opération prend du temps à finir.';
$a->strings['No special theme for mobile devices'] = 'Pas de thème particulier pour les terminaux mobiles';
$a->strings['%s - (Experimental)'] = '%s- (expérimental)';
$a->strings['No community page for local users'] = 'Pas de page communauté pour les utilisateurs enregistrés';
@ -1358,8 +1362,9 @@ $a->strings['Message Relay'] = 'Relai de publication';
$a->strings['Use the command "console relay" in the command line to add or remove relays.'] = 'Utilisez la commande "console relay" en ligne de commande pour ajouter ou retirer des relais.';
$a->strings['The system is not subscribed to any relays at the moment.'] = 'Ce serveur n\'est pas abonné à un relai pour le moment.';
$a->strings['The system is currently subscribed to the following relays:'] = 'Ce serveur est actuellement abonné aux relais suivants:';
$a->strings['Relocate Instance'] = 'Déménager le site';
$a->strings['<strong>Warning!</strong> Advanced function. Could make this server unreachable.'] = '<strong>Attention !</strong> Fonctionalité avancée. Cette fonctionnalité avancée peut rendre ce serveur inaccessible.';
$a->strings['Relocate Node'] = 'Déplacer le nœud';
$a->strings['Relocating your node enables you to change the DNS domain of this node and keep all the existing users and posts. This process takes a while and can only be started from the relocate console command like this:'] = 'Déplacer votre nœud vous permet de changer le domaine DNS de celui-ci et de conserver tous les utilisateurs existants ainsi que les publications. Ce processus prend un certain temps et ne peut être lancé que depuis la ligne de commande relocate de la façon suivante :';
$a->strings['(Friendica directory)# bin/console relocate https://newdomain.com'] = '(Friendica directory)# bin/console relocate https://nouveaudomaine.fr';
$a->strings['Site name'] = 'Nom du site';
$a->strings['Sender Email'] = 'Courriel de l\'émetteur';
$a->strings['The email address your server shall use to send notification emails from.'] = 'L\'adresse courriel à partir de laquelle votre serveur enverra des courriels.';
@ -1499,8 +1504,6 @@ $a->strings['Temp path'] = 'Chemin des fichiers temporaires';
$a->strings['If you have a restricted system where the webserver can\'t access the system temp path, enter another path here.'] = 'Si vous n\'avez pas la possibilité d\'avoir accès au répertoire temp, entrez un autre répertoire ici.';
$a->strings['Only search in tags'] = 'Rechercher seulement dans les étiquettes';
$a->strings['On large systems the text search can slow down the system extremely.'] = 'La recherche textuelle peut ralentir considérablement les systèmes de grande taille.';
$a->strings['New base url'] = 'Nouvelle URL de base';
$a->strings['Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.'] = 'Changer l\'URL de base de ce serveur. Envoie un message de déménagement à tous les contacts Friendica et Diaspora des utilisateurs locaux.';
$a->strings['Maximum number of parallel workers'] = 'Nombre maximum de processus simultanés';
$a->strings['On shared hosters set this to %d. On larger systems, values of %d are great. Default value is %d.'] = 'Sur un hébergement partagé, mettez %d. Sur des serveurs plus puissants, %d est optimal. La valeur par défaut est %d.';
$a->strings['Enable fastlane'] = 'Activer la file prioritaire';
@ -1633,7 +1636,7 @@ $a->strings['User registrations awaiting review'] = 'Inscriptions en attente de
$a->strings['Request date'] = 'Date de la demande';
$a->strings['No registrations.'] = 'Pas d\'inscriptions.';
$a->strings['Note from the user'] = 'Message personnel';
$a->strings['Deny'] = 'Rejetter';
$a->strings['Deny'] = 'Refuser';
$a->strings['API endpoint %s %s is not implemented'] = 'La méthode d\'API %s %s n\'est pas implémentée';
$a->strings['The API endpoint is currently not implemented but might be in the future.'] = 'Cette méthode d\'API n\'est pas encore implémentée.';
$a->strings['Missing parameters'] = 'Paramètres manquants';

File diff suppressed because it is too large Load Diff

View File

@ -1329,8 +1329,6 @@ $a->strings['ID'] = 'Azonosító';
$a->strings['Command'] = 'Parancs';
$a->strings['Job Parameters'] = 'Feladat paraméterei';
$a->strings['Priority'] = 'Prioritás';
$a->strings['Can not parse base url. Must have at least <scheme>://<domain>'] = 'Nem lehet feldolgozni az alap URL-t. Legalább <séma>://<tartomány> értékkel kell rendelkeznie.';
$a->strings['Relocation started. Could take a while to complete.'] = 'Az áthelyezés elkezdődött. Eltarthat egy ideig, mire befejeződik.';
$a->strings['No special theme for mobile devices'] = 'Nincs különleges téma a mobil eszközökhöz';
$a->strings['%s - (Experimental)'] = '%s (kísérleti)';
$a->strings['No community page for local users'] = 'Nincs közösségi oldal a helyi felhasználókhoz';
@ -1364,8 +1362,9 @@ $a->strings['Message Relay'] = 'Üzenettovábbítás';
$a->strings['Use the command "console relay" in the command line to add or remove relays.'] = 'Használja a „console relay” parancsot a parancssorban a továbbítók hozzáadásához vagy eltávolításához.';
$a->strings['The system is not subscribed to any relays at the moment.'] = 'A rendszer jelenleg nincs feliratkozva semmilyen továbbítóra sem.';
$a->strings['The system is currently subscribed to the following relays:'] = 'A rendszer jelenleg a következő továbbítókra van feliratkozva:';
$a->strings['Relocate Instance'] = 'Példány áthelyezése';
$a->strings['<strong>Warning!</strong> Advanced function. Could make this server unreachable.'] = '<strong>Figyelmeztetés!</strong> Speciális funkció. Elérhetetlenné teheti a kiszolgálót.';
$a->strings['Relocate Node'] = 'Csomópont áthelyezése';
$a->strings['Relocating your node enables you to change the DNS domain of this node and keep all the existing users and posts. This process takes a while and can only be started from the relocate console command like this:'] = 'A csomópont áthelyezése lehetővé teszi a csomópont DNS-tartományának megváltoztatását, valamint az összes meglévő felhasználó és bejegyzés megtartását. Ez a folyamat eltart egy ideig, és csak az áthelyezés konzolparanccsal indítható el az alábbi módon:';
$a->strings['(Friendica directory)# bin/console relocate https://newdomain.com'] = '(Friendica könyvtár)# bin/console relocate https://uj-tartomany.hu';
$a->strings['Site name'] = 'Oldal neve';
$a->strings['Sender Email'] = 'Küldő e-mail-címe';
$a->strings['The email address your server shall use to send notification emails from.'] = 'Az az e-mail-cím, amelyet a kiszolgáló használhat az értesítési e-mailek kiküldéséhez.';
@ -1505,8 +1504,6 @@ $a->strings['Temp path'] = 'Ideiglenes mappa útvonala';
$a->strings['If you have a restricted system where the webserver can\'t access the system temp path, enter another path here.'] = 'Ha korlátozott rendszere van, ahol a webkiszolgáló nem tudja elérni a rendszer ideiglenes mappájának útvonalát, akkor adjon meg egy másik útvonalat itt.';
$a->strings['Only search in tags'] = 'Keresés csak címkékben';
$a->strings['On large systems the text search can slow down the system extremely.'] = 'Nagy rendszereknél a szöveges keresés rendkívüli módon lelassíthatja a rendszert.';
$a->strings['New base url'] = 'Új alap URL';
$a->strings['Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.'] = 'A kiszolgáló alap URL-ének megváltoztatása. Áthelyezési üzenetet küld az összes felhasználó minden Friendica és Diaspora* partnerének.';
$a->strings['Maximum number of parallel workers'] = 'Párhuzamos feldolgozók legnagyobb száma';
$a->strings['On shared hosters set this to %d. On larger systems, values of %d are great. Default value is %d.'] = 'Osztott tárhelyszolgáltatóknál állítsa ezt %d értékre. Nagyobb rendszereknél érdemes a számot %d értékre állítani. Az alapértelmezett érték %d.';
$a->strings['Enable fastlane'] = 'Prioritásos sor engedélyezése';