mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-19 23:07:03 +00:00
Merge 5ecc5ae756
into 8ef2b13360
This commit is contained in:
commit
9eff4c80c0
1522 changed files with 70281 additions and 69273 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Přístup odmítnut.";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Nyní jste přihlášen k app.net.";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Chyba v přenesení tokenu. Prosím zkuste to znovu.</p>";
|
||||
$a->strings["return to the connector page"] = "návrat ke stránce konektor";
|
||||
$a->strings["Post to app.net"] = "Poslat příspěvek na app.net";
|
||||
$a->strings["App.net Export"] = "App.net Export";
|
||||
$a->strings["Currently connected to: "] = "V současné době připojen k:";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Aktivovat App.net Post Plugin";
|
||||
$a->strings["Post to App.net by default"] = "Defaultně poslat na App.net";
|
||||
$a->strings["Import the remote timeline"] = "Importovat vzdálenou časovou osu";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Chyba v přenesení uživatelského profilu. Prosím zkuste smazat konfiguraci a zkusit to znovu.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Máte nyní dvě možnosti jak se připojit k App.net.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>První možnost: Registrovat svou žádost na <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> a zadat Client ID and Client Secret. ";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Přístup odmítnut.';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Nyní jste přihlášen k app.net.';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = '<p>Chyba v přenesení tokenu. Prosím zkuste to znovu.</p>';
|
||||
$a->strings['return to the connector page'] = 'návrat ke stránce konektor';
|
||||
$a->strings['Post to app.net'] = 'Poslat příspěvek na app.net';
|
||||
$a->strings['App.net Export'] = 'App.net Export';
|
||||
$a->strings['Currently connected to: '] = 'V současné době připojen k:';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Aktivovat App.net Post Plugin';
|
||||
$a->strings['Post to App.net by default'] = 'Defaultně poslat na App.net';
|
||||
$a->strings['Import the remote timeline'] = 'Importovat vzdálenou časovou osu';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = '<p>Chyba v přenesení uživatelského profilu. Prosím zkuste smazat konfiguraci a zkusit to znovu.</p>';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Máte nyní dvě možnosti jak se připojit k App.net.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = '<p>První možnost: Registrovat svou žádost na <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> a zadat Client ID and Client Secret. ';
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Použít '%s' jako URI pro přesměrování<p>";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>Druhá možnost: vložit token do <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. ";
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>Druhá možnost: vložit token do <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. ';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Nastavte tyto rámce: 'Základní', 'Stream', 'Psaní příspěvků, 'Veřejné zprávy', 'Zprávy'.</p>";
|
||||
$a->strings["Token"] = "Token";
|
||||
$a->strings["Sign in using App.net"] = "Přihlásit se s použitím App.net";
|
||||
$a->strings["Clear OAuth configuration"] = "Vymazat konfiguraci OAuth";
|
||||
$a->strings["Save Settings"] = "Uložit Nastavení";
|
||||
$a->strings['Token'] = 'Token';
|
||||
$a->strings['Sign in using App.net'] = 'Přihlásit se s použitím App.net';
|
||||
$a->strings['Clear OAuth configuration'] = 'Vymazat konfiguraci OAuth';
|
||||
$a->strings['Save Settings'] = 'Uložit Nastavení';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Zugriff verweigert.";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Du bist nun auf app.net authentifiziert.";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Fehler beim Holen des Tokens, bitte versuche es später noch einmal.</p>";
|
||||
$a->strings["return to the connector page"] = "zurück zur Connector Seite";
|
||||
$a->strings["Post to app.net"] = "Nach app.net senden";
|
||||
$a->strings["App.net Export"] = "App.net Export";
|
||||
$a->strings["Currently connected to: "] = "Momentan verbunden mit: ";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Veröffentlichungen bei App.net erlauben";
|
||||
$a->strings["Post to App.net by default"] = "Standardmäßig bei App.net veröffentlichen";
|
||||
$a->strings["Import the remote timeline"] = "Importiere die entfernte Zeitleiste";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Beim Laden des Nutzerprofils ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Du hast zwei Wege deinen friendica Account mit App.net zu verbinden.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>Erster Weg: Registriere eine Anwendung unter <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> und wähle eine Client ID und ein Client Secret.";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Zugriff verweigert.';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Du bist nun auf app.net authentifiziert.';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = '<p>Fehler beim Holen des Tokens, bitte versuche es später noch einmal.</p>';
|
||||
$a->strings['return to the connector page'] = 'zurück zur Connector Seite';
|
||||
$a->strings['Post to app.net'] = 'Nach app.net senden';
|
||||
$a->strings['App.net Export'] = 'App.net Export';
|
||||
$a->strings['Currently connected to: '] = 'Momentan verbunden mit: ';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Veröffentlichungen bei App.net erlauben';
|
||||
$a->strings['Post to App.net by default'] = 'Standardmäßig bei App.net veröffentlichen';
|
||||
$a->strings['Import the remote timeline'] = 'Importiere die entfernte Zeitleiste';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = '<p>Beim Laden des Nutzerprofils ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.</p>';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Du hast zwei Wege deinen friendica Account mit App.net zu verbinden.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = '<p>Erster Weg: Registriere eine Anwendung unter <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> und wähle eine Client ID und ein Client Secret.';
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Verwende '%s' als Redirect URI<p>";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>Zweiter Weg: Beantrage ein Token unter <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. ";
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>Zweiter Weg: Beantrage ein Token unter <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. ';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Verwende folgende Scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>";
|
||||
$a->strings["Token"] = "Token";
|
||||
$a->strings["Sign in using App.net"] = "Per App.net anmelden";
|
||||
$a->strings["Clear OAuth configuration"] = "OAuth Konfiguration löschen";
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
$a->strings['Token'] = 'Token';
|
||||
$a->strings['Sign in using App.net'] = 'Per App.net anmelden';
|
||||
$a->strings['Clear OAuth configuration'] = 'OAuth Konfiguration löschen';
|
||||
$a->strings['Save Settings'] = 'Einstellungen speichern';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Autorisation refusée";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Vous êtes maintenant authentifié sur app.net";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Impossible d'obtenir le jeton, merci de réessayer.</p>";
|
||||
$a->strings["return to the connector page"] = "revenir à la page du connecteur";
|
||||
$a->strings["Post to app.net"] = "Publier sur app.net";
|
||||
$a->strings["App.net Export"] = "Export App.net";
|
||||
$a->strings["Currently connected to: "] = "Actuellement connecté à :";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Activer le plugin de publication app.net";
|
||||
$a->strings["Post to App.net by default"] = "Publier sur App.net par défaut";
|
||||
$a->strings["Import the remote timeline"] = "Importer la timeline distante";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Impossible d'obtenir le profil utilisateur. Merci de réinitialiser la configuration et de réessayer.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Vous avez deux possibilités pour vous connecter à App.net.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>Première méthode: Enregistrer une application sur <a href=\"https://account.app.net/developer/apps/\">App.net [en]</a> et entrez l'ID Client et le Secret Client. ";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Autorisation refusée';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Vous êtes maintenant authentifié sur app.net';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = "<p>Impossible d'obtenir le jeton, merci de réessayer.</p>";
|
||||
$a->strings['return to the connector page'] = 'revenir à la page du connecteur';
|
||||
$a->strings['Post to app.net'] = 'Publier sur app.net';
|
||||
$a->strings['App.net Export'] = 'Export App.net';
|
||||
$a->strings['Currently connected to: '] = 'Actuellement connecté à :';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Activer le plugin de publication app.net';
|
||||
$a->strings['Post to App.net by default'] = 'Publier sur App.net par défaut';
|
||||
$a->strings['Import the remote timeline'] = 'Importer la timeline distante';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = "<p>Impossible d'obtenir le profil utilisateur. Merci de réinitialiser la configuration et de réessayer.</p>";
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Vous avez deux possibilités pour vous connecter à App.net.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = "<p>Première méthode: Enregistrer une application sur <a href=\"https://account.app.net/developer/apps/\">App.net [en]</a> et entrez l'ID Client et le Secret Client. ";
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Utilisez '%s' pour l'URI de Redirection";
|
||||
$a->strings["Client ID"] = "ID Client";
|
||||
$a->strings["Client Secret"] = "Secret Client";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>Deuxième méthode: obtenez un jeton ur <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/ [en]</a>. ";
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Cochez les \"scopes\" suivant: \"Basic\", \"Stream\", \"Write Post\", \"Public Messages\", \"Messages\".</p>";
|
||||
$a->strings["Token"] = "Jeton";
|
||||
$a->strings["Sign in using App.net"] = "Se connecter avec App.net";
|
||||
$a->strings["Clear OAuth configuration"] = "Effacer la configuration OAuth";
|
||||
$a->strings["Save Settings"] = "Sauvegarder les paramètres";
|
||||
$a->strings['Client ID'] = 'ID Client';
|
||||
$a->strings['Client Secret'] = 'Secret Client';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>Deuxième méthode: obtenez un jeton ur <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/ [en]</a>. ';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = 'Cochez les "scopes" suivant: "Basic", "Stream", "Write Post", "Public Messages", "Messages".</p>';
|
||||
$a->strings['Token'] = 'Jeton';
|
||||
$a->strings['Sign in using App.net'] = 'Se connecter avec App.net';
|
||||
$a->strings['Clear OAuth configuration'] = 'Effacer la configuration OAuth';
|
||||
$a->strings['Save Settings'] = 'Sauvegarder les paramètres';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permesso negato.";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Sei autenticato su app.net";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Errore recuperando il token. Prova di nuovo</p>";
|
||||
$a->strings["return to the connector page"] = "ritorna alla pagina del connettore";
|
||||
$a->strings["Post to app.net"] = "Invia ad app.net";
|
||||
$a->strings["App.net Export"] = "Esporta App.net";
|
||||
$a->strings["Currently connected to: "] = "Al momento connesso con:";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Abilita il plugin di invio ad App.net";
|
||||
$a->strings["Post to App.net by default"] = "Invia sempre ad App.net";
|
||||
$a->strings["Import the remote timeline"] = "Importa la timeline remota";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Errore recuperando il profilo utente. Svuota la configurazione e prova di nuovo.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Puoi collegarti ad App.net in due modi.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>Registrare un'applicazione su <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> e inserire Client ID e Client Secret.";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permesso negato.';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Sei autenticato su app.net';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = '<p>Errore recuperando il token. Prova di nuovo</p>';
|
||||
$a->strings['return to the connector page'] = 'ritorna alla pagina del connettore';
|
||||
$a->strings['Post to app.net'] = 'Invia ad app.net';
|
||||
$a->strings['App.net Export'] = 'Esporta App.net';
|
||||
$a->strings['Currently connected to: '] = 'Al momento connesso con:';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Abilita il plugin di invio ad App.net';
|
||||
$a->strings['Post to App.net by default'] = 'Invia sempre ad App.net';
|
||||
$a->strings['Import the remote timeline'] = 'Importa la timeline remota';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = '<p>Errore recuperando il profilo utente. Svuota la configurazione e prova di nuovo.</p>';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Puoi collegarti ad App.net in due modi.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = "<p>Registrare un'applicazione su <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> e inserire Client ID e Client Secret.";
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Usa '%s' come Redirect URI</p>";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>Oppure puoi recuperare un token su <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>.";
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>Oppure puoi recuperare un token su <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>.';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Imposta gli ambiti 'Basic', 'Stream', 'Scrivi Post', 'Messaggi Pubblici', 'Messaggi'.</p>";
|
||||
$a->strings["Token"] = "Token";
|
||||
$a->strings["Sign in using App.net"] = "Autenticati con App.net";
|
||||
$a->strings["Clear OAuth configuration"] = "Pulisci configurazione OAuth";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings['Token'] = 'Token';
|
||||
$a->strings['Sign in using App.net'] = 'Autenticati con App.net';
|
||||
$a->strings['Clear OAuth configuration'] = 'Pulisci configurazione OAuth';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_nl")) {
|
||||
function string_plural_select_nl($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Toegang geweigerd";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Je bent nu aangemeld bij app.net.";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Fout tijdens token fetching. Probeer het nogmaals.</p>";
|
||||
$a->strings["return to the connector page"] = "ga terug naar de connector pagina";
|
||||
$a->strings["Post to app.net"] = "Post naar app.net.";
|
||||
$a->strings["App.net Export"] = "App.net Export";
|
||||
$a->strings["Currently connected to: "] = "Momenteel verbonden met:";
|
||||
$a->strings["Enable App.net Post Plugin"] = "App.net Post Plugin inschakelen";
|
||||
$a->strings["Post to App.net by default"] = "Naar App.net posten als standaard instellen";
|
||||
$a->strings["Import the remote timeline"] = "The tijdlijn op afstand importeren";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Fout tijdens het ophalen van gebruikersprofiel. Leeg de configuratie en probeer het opnieuw.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Er zijn twee manieren om met App.net te verbinden.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "";
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "";
|
||||
$a->strings["Client ID"] = "";
|
||||
$a->strings["Client Secret"] = "";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "";
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "";
|
||||
$a->strings["Token"] = "";
|
||||
$a->strings["Sign in using App.net"] = "";
|
||||
$a->strings["Clear OAuth configuration"] = "";
|
||||
$a->strings["Save Settings"] = "";
|
||||
if (!function_exists('string_plural_select_nl')) {
|
||||
function string_plural_select_nl($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Toegang geweigerd';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Je bent nu aangemeld bij app.net.';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = '<p>Fout tijdens token fetching. Probeer het nogmaals.</p>';
|
||||
$a->strings['return to the connector page'] = 'ga terug naar de connector pagina';
|
||||
$a->strings['Post to app.net'] = 'Post naar app.net.';
|
||||
$a->strings['App.net Export'] = 'App.net Export';
|
||||
$a->strings['Currently connected to: '] = 'Momenteel verbonden met:';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'App.net Post Plugin inschakelen';
|
||||
$a->strings['Post to App.net by default'] = 'Naar App.net posten als standaard instellen';
|
||||
$a->strings['Import the remote timeline'] = 'The tijdlijn op afstand importeren';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = '<p>Fout tijdens het ophalen van gebruikersprofiel. Leeg de configuratie en probeer het opnieuw.</p>';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Er zijn twee manieren om met App.net te verbinden.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = '';
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = '';
|
||||
$a->strings['Client ID'] = '';
|
||||
$a->strings['Client Secret'] = '';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = '';
|
||||
$a->strings['Token'] = '';
|
||||
$a->strings['Sign in using App.net'] = '';
|
||||
$a->strings['Clear OAuth configuration'] = '';
|
||||
$a->strings['Save Settings'] = '';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permissão negada.";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Você está autenticado no app.net.";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "Erro ocorrido na obtenção do token. Tente novamente.";
|
||||
$a->strings["return to the connector page"] = "Volte a página de conectores.";
|
||||
$a->strings["Post to app.net"] = "Publicar no App.net";
|
||||
$a->strings["App.net Export"] = "App.net exportar";
|
||||
$a->strings["Currently connected to: "] = "Atualmente conectado em: ";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Habilitar plug-in para publicar no App.net";
|
||||
$a->strings["Post to App.net by default"] = "Publicar em App.net por padrão";
|
||||
$a->strings["Import the remote timeline"] = "Importar a linha do tempo remota";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "Erro na obtenção do perfil do usuário. Confira as configurações e tente novamente.";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Você possui duas formas de conectar ao App.net</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>1º Método: Registre uma aplicação em <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> e entre o Client ID e Client Secret";
|
||||
if (!function_exists('string_plural_select_pt_br')) {
|
||||
function string_plural_select_pt_br($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permissão negada.';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Você está autenticado no app.net.';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = 'Erro ocorrido na obtenção do token. Tente novamente.';
|
||||
$a->strings['return to the connector page'] = 'Volte a página de conectores.';
|
||||
$a->strings['Post to app.net'] = 'Publicar no App.net';
|
||||
$a->strings['App.net Export'] = 'App.net exportar';
|
||||
$a->strings['Currently connected to: '] = 'Atualmente conectado em: ';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Habilitar plug-in para publicar no App.net';
|
||||
$a->strings['Post to App.net by default'] = 'Publicar em App.net por padrão';
|
||||
$a->strings['Import the remote timeline'] = 'Importar a linha do tempo remota';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = 'Erro na obtenção do perfil do usuário. Confira as configurações e tente novamente.';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Você possui duas formas de conectar ao App.net</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = '<p>1º Método: Registre uma aplicação em <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> e entre o Client ID e Client Secret';
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Use '%s' como URI redirecionador<p>";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>2º Método: obtenha um token em <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. ";
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>2º Método: obtenha um token em <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. ';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Adicione valor as estas saídas: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>";
|
||||
$a->strings["Token"] = "Token";
|
||||
$a->strings["Sign in using App.net"] = "Entre usando o App.net";
|
||||
$a->strings["Clear OAuth configuration"] = "Limpar configuração OAuth";
|
||||
$a->strings["Save Settings"] = "Salvar Configurações";
|
||||
$a->strings['Token'] = 'Token';
|
||||
$a->strings['Sign in using App.net'] = 'Entre usando o App.net';
|
||||
$a->strings['Clear OAuth configuration'] = 'Limpar configuração OAuth';
|
||||
$a->strings['Save Settings'] = 'Salvar Configurações';
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permisiune refuzată.";
|
||||
$a->strings["You are now authenticated to app.net. "] = "Acum sunteți autentificat pe App.net.";
|
||||
$a->strings["<p>Error fetching token. Please try again.</p>"] = "<p>Eroare la procesarea token-ului. Vă rugăm să reîncercați.</p>";
|
||||
$a->strings["return to the connector page"] = "revenire la pagina de conectare";
|
||||
$a->strings["Post to app.net"] = "Postați pe App.net";
|
||||
$a->strings["App.net Export"] = "Exportare pe App.net";
|
||||
$a->strings["Currently connected to: "] = "Conectat curent la:";
|
||||
$a->strings["Enable App.net Post Plugin"] = "Activare Modul Postare pe App.net";
|
||||
$a->strings["Post to App.net by default"] = "Postați implicit pe App.net";
|
||||
$a->strings["Import the remote timeline"] = "Importare cronologie la distanță";
|
||||
$a->strings["<p>Error fetching user profile. Please clear the configuration and try again.</p>"] = "<p>Eroare la procesarea profilului de utilizator. Vă rugăm să ștergeți configurarea şi apoi reîncercați.</p>";
|
||||
$a->strings["<p>You have two ways to connect to App.net.</p>"] = "<p>Aveți două modalități de a vă conecta la App.net.</p>";
|
||||
$a->strings["<p>First way: Register an application at <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. "] = "<p>Prima modalitate: Înregistrați o cerere pe <a href=\"https://account.app.net/developer/apps/\">https://account.app.net/developer/apps/</a> şi introduceți ID Client şi Cheia Secretă Client.";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permisiune refuzată.';
|
||||
$a->strings['You are now authenticated to app.net. '] = 'Acum sunteți autentificat pe App.net.';
|
||||
$a->strings['<p>Error fetching token. Please try again.</p>'] = '<p>Eroare la procesarea token-ului. Vă rugăm să reîncercați.</p>';
|
||||
$a->strings['return to the connector page'] = 'revenire la pagina de conectare';
|
||||
$a->strings['Post to app.net'] = 'Postați pe App.net';
|
||||
$a->strings['App.net Export'] = 'Exportare pe App.net';
|
||||
$a->strings['Currently connected to: '] = 'Conectat curent la:';
|
||||
$a->strings['Enable App.net Post Plugin'] = 'Activare Modul Postare pe App.net';
|
||||
$a->strings['Post to App.net by default'] = 'Postați implicit pe App.net';
|
||||
$a->strings['Import the remote timeline'] = 'Importare cronologie la distanță';
|
||||
$a->strings['<p>Error fetching user profile. Please clear the configuration and try again.</p>'] = '<p>Eroare la procesarea profilului de utilizator. Vă rugăm să ștergeți configurarea şi apoi reîncercați.</p>';
|
||||
$a->strings['<p>You have two ways to connect to App.net.</p>'] = '<p>Aveți două modalități de a vă conecta la App.net.</p>';
|
||||
$a->strings['<p>First way: Register an application at <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> and enter Client ID and Client Secret. '] = '<p>Prima modalitate: Înregistrați o cerere pe <a href="https://account.app.net/developer/apps/">https://account.app.net/developer/apps/</a> şi introduceți ID Client şi Cheia Secretă Client.';
|
||||
$a->strings["Use '%s' as Redirect URI<p>"] = "Utilizați '%s' ca URI de Redirecţionare<p>";
|
||||
$a->strings["Client ID"] = "ID Client";
|
||||
$a->strings["Client Secret"] = "Cheia Secretă Client";
|
||||
$a->strings["<p>Second way: fetch a token at <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a>. "] = "<p>A doua cale: autorizați un indicativ de acces token de pe <a href=\"http://dev-lite.jonathonduerig.com/\">http://dev-lite.jonathonduerig.com/</a> .";
|
||||
$a->strings['Client ID'] = 'ID Client';
|
||||
$a->strings['Client Secret'] = 'Cheia Secretă Client';
|
||||
$a->strings['<p>Second way: fetch a token at <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a>. '] = '<p>A doua cale: autorizați un indicativ de acces token de pe <a href="http://dev-lite.jonathonduerig.com/">http://dev-lite.jonathonduerig.com/</a> .';
|
||||
$a->strings["Set these scopes: 'Basic', 'Stream', 'Write Post', 'Public Messages', 'Messages'.</p>"] = "Stabiliți aceste scopuri: 'De Bază', 'Flux', 'Scriere Postare', 'Mesaje Publice', 'Mesaje'.</p>";
|
||||
$a->strings["Token"] = "Token";
|
||||
$a->strings["Sign in using App.net"] = "Autentificați-vă utilizând App.net";
|
||||
$a->strings["Clear OAuth configuration"] = "Ștergeți configurările OAuth";
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
$a->strings['Token'] = 'Token';
|
||||
$a->strings['Sign in using App.net'] = 'Autentificați-vă utilizând App.net';
|
||||
$a->strings['Clear OAuth configuration'] = 'Ștergeți configurările OAuth';
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Description: Blackout your ~friendica node during a given period, requires PHP >= 5.3
|
||||
* License: MIT
|
||||
* Version: 1.0
|
||||
* Author: Tobias Diekershoff <https://f.diekershoff.de/~tobias>
|
||||
* Author: Tobias Diekershoff <https://f.diekershoff.de/~tobias>.
|
||||
*
|
||||
* About
|
||||
* =====
|
||||
|
@ -48,23 +48,25 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
function blackout_install() {
|
||||
function blackout_install()
|
||||
{
|
||||
register_hook('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
}
|
||||
|
||||
function blackout_uninstall() {
|
||||
function blackout_uninstall()
|
||||
{
|
||||
unregister_hook('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
}
|
||||
function blackout_redirect ($a, $b) {
|
||||
function blackout_redirect($a, $b)
|
||||
{
|
||||
// if we have a logged in user, don't throw her out
|
||||
if (local_user()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (! (version_compare(PHP_VERSION, '5.3.0') >= 0))
|
||||
if (!(version_compare(PHP_VERSION, '5.3.0') >= 0)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// else...
|
||||
$mystart = get_config('blackout', 'begindate');
|
||||
|
@ -86,20 +88,27 @@ function blackout_redirect ($a, $b) {
|
|||
}
|
||||
}
|
||||
|
||||
function blackout_plugin_admin(&$a, &$o) {
|
||||
function blackout_plugin_admin(&$a, &$o)
|
||||
{
|
||||
$mystart = get_config('blackout', 'begindate');
|
||||
if (! is_string($mystart)) { $mystart = "YYYY-MM-DD:hhmm"; }
|
||||
if (!is_string($mystart)) {
|
||||
$mystart = 'YYYY-MM-DD:hhmm';
|
||||
}
|
||||
$myend = get_config('blackout', 'enddate');
|
||||
if (! is_string($myend)) { $myend = "YYYY-MM-DD:hhmm"; }
|
||||
if (!is_string($myend)) {
|
||||
$myend = 'YYYY-MM-DD:hhmm';
|
||||
}
|
||||
$myurl = get_config('blackout', 'url');
|
||||
if (! is_string($myurl)) { $myurl = "http://www.example.com"; }
|
||||
$t = get_markup_template( "admin.tpl", "addon/blackout/" );
|
||||
if (!is_string($myurl)) {
|
||||
$myurl = 'http://www.example.com';
|
||||
}
|
||||
$t = get_markup_template('admin.tpl', 'addon/blackout/');
|
||||
|
||||
$o = replace_macros($t, array(
|
||||
'$submit' => t('Save Settings'),
|
||||
'$rurl' => array("rurl", "Redirect URL", $myurl, "all your visitors from the web will be redirected to this URL"),
|
||||
'$startdate' => array("startdate", "Begin of the Blackout<br />(YYYY-MM-DD hh:mm)", $mystart, "format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"),
|
||||
'$enddate' => array("enddate", "End of the Blackout<br />(YYYY-MM-DD hh:mm)", $myend, ""),
|
||||
'$rurl' => array('rurl', 'Redirect URL', $myurl, 'all your visitors from the web will be redirected to this URL'),
|
||||
'$startdate' => array('startdate', 'Begin of the Blackout<br />(YYYY-MM-DD hh:mm)', $mystart, 'format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'),
|
||||
'$enddate' => array('enddate', 'End of the Blackout<br />(YYYY-MM-DD hh:mm)', $myend, ''),
|
||||
|
||||
));
|
||||
$date1 = DateTime::createFromFormat('Y-m-d G:i', $mystart);
|
||||
|
@ -110,7 +119,8 @@ function blackout_plugin_admin(&$a, &$o) {
|
|||
$o = '<p>Please double check that the current settings for the blackout. Begin will be <strong>'.$mystart.'</strong> and it will end <strong>'.$myend.'</strong>.</p>'.$o;
|
||||
}
|
||||
}
|
||||
function blackout_plugin_admin_post (&$a) {
|
||||
function blackout_plugin_admin_post(&$a)
|
||||
{
|
||||
$begindate = trim($_POST['startdate']);
|
||||
$enddate = trim($_POST['enddate']);
|
||||
$url = trim($_POST['rurl']);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
$a->strings['Submit'] = 'Enviar';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Uložit Nastavení";
|
||||
$a->strings["Redirect URL"] = "URL Přesměrování";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "všichni vaši návštěvníci z webu budou přesměrování na tuto URL adresu";
|
||||
$a->strings["Begin of the Blackout"] = "Zahájení odstávky";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "formát je <em>RRRR</em> rok, <em>MM</em> měsíc, <em>DD</em> den, <em>hh</em> hodina a <em>mm</em> minuta";
|
||||
$a->strings["End of the Blackout"] = "Konec odstávky";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Datum konce odstávky je před datem zahájení odstávky prosím opravte to.";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Uložit Nastavení';
|
||||
$a->strings['Redirect URL'] = 'URL Přesměrování';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'všichni vaši návštěvníci z webu budou přesměrování na tuto URL adresu';
|
||||
$a->strings['Begin of the Blackout'] = 'Zahájení odstávky';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'formát je <em>RRRR</em> rok, <em>MM</em> měsíc, <em>DD</em> den, <em>hh</em> hodina a <em>mm</em> minuta';
|
||||
$a->strings['End of the Blackout'] = 'Konec odstávky';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'Datum konce odstávky je před datem zahájení odstávky prosím opravte to.';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
$a->strings["Redirect URL"] = "Umleitungs-URL";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "Alle Besucher der Webseite werden zu dieser URL umgeleitet";
|
||||
$a->strings["Begin of the Blackout"] = "Beginn des Blackouts";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "Das Format ist <em>YYYY</em> Jahr, <em>MM</em> Monat, <em>DD</em> Tag, <em>hh</em> Stunde und <em>mm</em> Minute";
|
||||
$a->strings["End of the Blackout"] = "Ende des Blackouts";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Das Enddatum liegt vor dem Startdatum des Blackouts, du solltest dies korrigieren.";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Einstellungen speichern';
|
||||
$a->strings['Redirect URL'] = 'Umleitungs-URL';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'Alle Besucher der Webseite werden zu dieser URL umgeleitet';
|
||||
$a->strings['Begin of the Blackout'] = 'Beginn des Blackouts';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'Das Format ist <em>YYYY</em> Jahr, <em>MM</em> Monat, <em>DD</em> Tag, <em>hh</em> Stunde und <em>mm</em> Minute';
|
||||
$a->strings['End of the Blackout'] = 'Ende des Blackouts';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'Das Enddatum liegt vor dem Startdatum des Blackouts, du solltest dies korrigieren.';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Sendi";
|
||||
$a->strings['Submit'] = 'Sendi';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_es")) {
|
||||
function string_plural_select_es($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Guardar configuración";
|
||||
$a->strings["Redirect URL"] = "Redirigir URL";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "todos los visitantes de la web serán redirigidos a esta dirección.";
|
||||
$a->strings["Begin of the Blackout"] = "Inicio del apagón.";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "formato es <em>YYYY</em> año, <em>MM</em> mes, <em>DD</em> día, <em>hh</em> hora y <em>mm</em> minuto";
|
||||
$a->strings["End of the Blackout"] = "Fin del apagón.";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "La fecha de final del apagón es antes de la fecha de inicio, deberías arreglar esto.";
|
||||
if (!function_exists('string_plural_select_es')) {
|
||||
function string_plural_select_es($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Guardar configuración';
|
||||
$a->strings['Redirect URL'] = 'Redirigir URL';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'todos los visitantes de la web serán redirigidos a esta dirección.';
|
||||
$a->strings['Begin of the Blackout'] = 'Inicio del apagón.';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'formato es <em>YYYY</em> año, <em>MM</em> mes, <em>DD</em> día, <em>hh</em> hora y <em>mm</em> minuto';
|
||||
$a->strings['End of the Blackout'] = 'Fin del apagón.';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'La fecha de final del apagón es antes de la fecha de inicio, deberías arreglar esto.';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Sauvegarder les paramètres";
|
||||
$a->strings["Redirect URL"] = "Adresse de redirection";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "Tous vos visiteurs venant du web seront redirigés vers cette URL.";
|
||||
$a->strings["Begin of the Blackout"] = "Début du blackout";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "Le format est <em>YYYY</em> année, <em>MM</em> mois, <em>DD</em> jour, <em>hh</em> heure and <em>mm</em> minute";
|
||||
$a->strings["End of the Blackout"] = "Fin du blackout";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "La date de fin est antérieure à la date de début. Veuillez corriger cela.";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Sauvegarder les paramètres';
|
||||
$a->strings['Redirect URL'] = 'Adresse de redirection';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'Tous vos visiteurs venant du web seront redirigés vers cette URL.';
|
||||
$a->strings['Begin of the Blackout'] = 'Début du blackout';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'Le format est <em>YYYY</em> année, <em>MM</em> mois, <em>DD</em> jour, <em>hh</em> heure and <em>mm</em> minute';
|
||||
$a->strings['End of the Blackout'] = 'Fin du blackout';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'La date de fin est antérieure à la date de début. Veuillez corriger cela.';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Senda inn";
|
||||
$a->strings['Submit'] = 'Senda inn';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings["Redirect URL"] = "URL di reindirizzamento";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "tutti i visitatori dal web verranno reindirizzati a questo URL";
|
||||
$a->strings["Begin of the Blackout"] = "Inzio del blackout";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "il formato è <em>YYYY</em> anno, <em>MM</em> mese, <em>DD</em> giorno, <em>hh</em> ora e <em>mm</em> minuto";
|
||||
$a->strings["End of the Blackout"] = "Fine del blackout";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "La data di fine è precedente alla data di inizio. Dovresti sistemarla.";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Redirect URL'] = 'URL di reindirizzamento';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'tutti i visitatori dal web verranno reindirizzati a questo URL';
|
||||
$a->strings['Begin of the Blackout'] = 'Inzio del blackout';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'il formato è <em>YYYY</em> anno, <em>MM</em> mese, <em>DD</em> giorno, <em>hh</em> ora e <em>mm</em> minuto';
|
||||
$a->strings['End of the Blackout'] = 'Fine del blackout';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'La data di fine è precedente alla data di inizio. Dovresti sistemarla.';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Lagre";
|
||||
$a->strings['Submit'] = 'Lagre';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Potwierdź";
|
||||
$a->strings['Submit'] = 'Potwierdź';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
$a->strings['Submit'] = 'Enviar';
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
$a->strings["Redirect URL"] = "URL de Redirecționare";
|
||||
$a->strings["all your visitors from the web will be redirected to this URL"] = "toți vizitatorii dvs. de pe web vor fi redirecționați către acest URL";
|
||||
$a->strings["Begin of the Blackout"] = "Pornire punct Blackout";
|
||||
$a->strings["format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"] = "formatul este <em>YYYY</em> anul, <em>MM</em> luna, <em>DD</em> ziua, <em>hh</em> ora și <em>mm</em> minute";
|
||||
$a->strings["End of the Blackout"] = "Finalizare punct Blackout";
|
||||
$a->strings["The end-date is prior to the start-date of the blackout, you should fix this."] = "Data de finalizare este anterioară punctului blackout de pornire, ar trebui să corectați aceasta.";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
$a->strings['Redirect URL'] = 'URL de Redirecționare';
|
||||
$a->strings['all your visitors from the web will be redirected to this URL'] = 'toți vizitatorii dvs. de pe web vor fi redirecționați către acest URL';
|
||||
$a->strings['Begin of the Blackout'] = 'Pornire punct Blackout';
|
||||
$a->strings['format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute'] = 'formatul este <em>YYYY</em> anul, <em>MM</em> luna, <em>DD</em> ziua, <em>hh</em> ora și <em>mm</em> minute';
|
||||
$a->strings['End of the Blackout'] = 'Finalizare punct Blackout';
|
||||
$a->strings['The end-date is prior to the start-date of the blackout, you should fix this.'] = 'Data de finalizare este anterioară punctului blackout de pornire, ar trebui să corectați aceasta.';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Подтвердить";
|
||||
$a->strings['Submit'] = 'Подтвердить';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Spara";
|
||||
$a->strings['Submit'] = 'Spara';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "提交";
|
||||
$a->strings['Submit'] = '提交';
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
* Name: blockem
|
||||
* Description: block people
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>.
|
||||
*/
|
||||
|
||||
function blockem_install() {
|
||||
function blockem_install()
|
||||
{
|
||||
register_hook('prepare_body', 'addon/blockem/blockem.php', 'blockem_prepare_body');
|
||||
register_hook('display_item', 'addon/blockem/blockem.php', 'blockem_display_item');
|
||||
register_hook('plugin_settings', 'addon/blockem/blockem.php', 'blockem_addon_settings');
|
||||
|
@ -19,8 +18,8 @@ function blockem_install() {
|
|||
register_hook('enotify_store', 'addon/blockem/blockem.php', 'blockem_enotify_store');
|
||||
}
|
||||
|
||||
|
||||
function blockem_uninstall() {
|
||||
function blockem_uninstall()
|
||||
{
|
||||
unregister_hook('prepare_body', 'addon/blockem/blockem.php', 'blockem_prepare_body');
|
||||
unregister_hook('display_item', 'addon/blockem/blockem.php', 'blockem_display_item');
|
||||
unregister_hook('plugin_settings', 'addon/blockem/blockem.php', 'blockem_addon_settings');
|
||||
|
@ -28,26 +27,22 @@ function blockem_uninstall() {
|
|||
unregister_hook('conversation_start', 'addon/blockem/blockem.php', 'blockem_conversation_start');
|
||||
unregister_hook('item_photo_menu', 'addon/blockem/blockem.php', 'blockem_item_photo_menu');
|
||||
unregister_hook('enotify_store', 'addon/blockem/blockem.php', 'blockem_enotify_store');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function blockem_addon_settings(&$a,&$s) {
|
||||
|
||||
if(! local_user())
|
||||
function blockem_addon_settings(&$a, &$s)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/addon/blockem/blockem.css'.'" media="all" />'."\r\n";
|
||||
|
||||
|
||||
$words = get_pconfig(local_user(), 'blockem', 'words');
|
||||
if(! $words)
|
||||
if (!$words) {
|
||||
$words = '';
|
||||
}
|
||||
|
||||
$s .= '<span id="settings_blockem_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_blockem_expanded\'); openClose(\'settings_blockem_inflated\');">';
|
||||
$s .= '<h3>'.t('"Blockem"').'</h3>';
|
||||
|
@ -65,13 +60,13 @@ function blockem_addon_settings(&$a,&$s) {
|
|||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="blockem-submit" name="blockem-submit" class="settings-submit" value="'.t('Save Settings').'" /></div></div>';
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
function blockem_addon_settings_post(&$a,&$b) {
|
||||
|
||||
if(! local_user())
|
||||
function blockem_addon_settings_post(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($_POST['blockem-submit']) {
|
||||
set_pconfig(local_user(), 'blockem', 'words', trim($_POST['blockem-words']));
|
||||
|
@ -79,14 +74,12 @@ function blockem_addon_settings_post(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function blockem_enotify_store(&$a,&$b) {
|
||||
|
||||
function blockem_enotify_store(&$a, &$b)
|
||||
{
|
||||
$words = get_pconfig($b['uid'], 'blockem', 'words');
|
||||
if ($words) {
|
||||
$arr = explode(',', $words);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -108,10 +101,11 @@ function blockem_enotify_store(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
function blockem_prepare_body(&$a,&$b) {
|
||||
|
||||
if(! local_user())
|
||||
function blockem_prepare_body(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$words = null;
|
||||
if (local_user()) {
|
||||
|
@ -119,8 +113,7 @@ function blockem_prepare_body(&$a,&$b) {
|
|||
}
|
||||
if ($words) {
|
||||
$arr = explode(',', $words);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -143,23 +136,24 @@ function blockem_prepare_body(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function blockem_display_item(&$a,&$b) {
|
||||
if(strstr($b['output']['body'],'id="blockem-wrap-'))
|
||||
$b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg";
|
||||
function blockem_display_item(&$a, &$b)
|
||||
{
|
||||
if (strstr($b['output']['body'], 'id="blockem-wrap-')) {
|
||||
$b['output']['thumb'] = $a->get_baseurl().'/images/person-80.jpg';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function blockem_conversation_start(&$a,&$b) {
|
||||
|
||||
if(! local_user())
|
||||
function blockem_conversation_start(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$words = get_pconfig(local_user(), 'blockem', 'words');
|
||||
if ($words) {
|
||||
$a->data['blockem'] = explode(',', $words);
|
||||
}
|
||||
$a->page['htmlhead'] .= <<< EOT
|
||||
$a->page['htmlhead'] .= <<< 'EOT'
|
||||
|
||||
<script>
|
||||
function blockemBlock(author) {
|
||||
|
@ -175,13 +169,13 @@ function blockemUnblock(author) {
|
|||
</script>
|
||||
|
||||
EOT;
|
||||
|
||||
}
|
||||
|
||||
function blockem_item_photo_menu(&$a,&$b) {
|
||||
|
||||
if((! local_user()) || ($b['item']['self']))
|
||||
function blockem_item_photo_menu(&$a, &$b)
|
||||
{
|
||||
if ((!local_user()) || ($b['item']['self'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$blocked = false;
|
||||
$author = $b['item']['author-link'];
|
||||
|
@ -193,25 +187,29 @@ function blockem_item_photo_menu(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if($blocked)
|
||||
if ($blocked) {
|
||||
$b['menu'][ t('Unblock Author')] = 'javascript:blockemUnblock(\''.$author.'\');';
|
||||
else
|
||||
} else {
|
||||
$b['menu'][ t('Block Author')] = 'javascript:blockemBlock(\''.$author.'\');';
|
||||
}
|
||||
}
|
||||
|
||||
function blockem_module() {}
|
||||
function blockem_module()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
function blockem_init(&$a) {
|
||||
|
||||
if(! local_user())
|
||||
function blockem_init(&$a)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$words = get_pconfig(local_user(), 'blockem', 'words');
|
||||
|
||||
if (array_key_exists('block', $_GET) && $_GET['block']) {
|
||||
if(strlen($words))
|
||||
if (strlen($words)) {
|
||||
$words .= ',';
|
||||
}
|
||||
$words .= trim($_GET['block']);
|
||||
}
|
||||
if (array_key_exists('unblock', $_GET) && $_GET['unblock']) {
|
||||
|
@ -220,10 +218,11 @@ function blockem_init(&$a) {
|
|||
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $x) {
|
||||
if(! link_compare(trim($x),trim($_GET['unblock'])))
|
||||
if (!link_compare(trim($x), trim($_GET['unblock']))) {
|
||||
$newarr[] = $x;
|
||||
}
|
||||
}
|
||||
}
|
||||
$words = implode(',', $newarr);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "Configuració de \"Bloqueig\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "URLS dels perfils a bloquejar, separats per comes";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Guardada la configuració de BLOQUEIG.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "Bloquejar %s - Clica per obrir/tancar";
|
||||
$a->strings["Unblock Author"] = "Desbloquejar Autor";
|
||||
$a->strings["Block Author"] = "Bloquejar Autor";
|
||||
$a->strings["blockem settings updated"] = "Actualitzar la Configuració de bloqueig";
|
||||
$a->strings['"Blockem" Settings'] = 'Configuració de "Bloqueig"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'URLS dels perfils a bloquejar, separats per comes';
|
||||
$a->strings['Submit'] = 'Enviar';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Guardada la configuració de BLOQUEIG.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = 'Bloquejar %s - Clica per obrir/tancar';
|
||||
$a->strings['Unblock Author'] = 'Desbloquejar Autor';
|
||||
$a->strings['Block Author'] = 'Bloquejar Autor';
|
||||
$a->strings['blockem settings updated'] = 'Actualitzar la Configuració de bloqueig';
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["\"Blockem\""] = "\"Blockem\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Čárkou oddělené URL adresy profilů určených k ignorování";
|
||||
$a->strings["Save Settings"] = "Uložit Nastavení";
|
||||
$a->strings["BLOCKEM Settings saved."] = "BLOCKEM nastavení uloženo.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "Blokován %s - Klikněte pro otevření/zavření";
|
||||
$a->strings["Unblock Author"] = "Odblokovat autora";
|
||||
$a->strings["Block Author"] = "Zablokovat autora";
|
||||
$a->strings["blockem settings updated"] = "blockem nastavení aktualizováno";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['"Blockem"'] = '"Blockem"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Čárkou oddělené URL adresy profilů určených k ignorování';
|
||||
$a->strings['Save Settings'] = 'Uložit Nastavení';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'BLOCKEM nastavení uloženo.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = 'Blokován %s - Klikněte pro otevření/zavření';
|
||||
$a->strings['Unblock Author'] = 'Odblokovat autora';
|
||||
$a->strings['Block Author'] = 'Zablokovat autora';
|
||||
$a->strings['blockem settings updated'] = 'blockem nastavení aktualizováno';
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["\"Blockem\" Settings"] = "\"Blockem\"-Einstellungen";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Profil-URLs, die geblockt werden sollen (durch Kommas getrennt)";
|
||||
$a->strings["Submit"] = "Senden";
|
||||
$a->strings["BLOCKEM Settings saved."] = "BLOCKEM-Einstellungen gesichert.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s blockiert - Zum Öffnen/Schließen klicken";
|
||||
$a->strings["Unblock Author"] = "Autor freischalten";
|
||||
$a->strings["Block Author"] = "Autor blockieren";
|
||||
$a->strings["blockem settings updated"] = "blockem Einstellungen aktualisiert";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['"Blockem" Settings'] = '"Blockem"-Einstellungen';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Profil-URLs, die geblockt werden sollen (durch Kommas getrennt)';
|
||||
$a->strings['Submit'] = 'Senden';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'BLOCKEM-Einstellungen gesichert.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s blockiert - Zum Öffnen/Schließen klicken';
|
||||
$a->strings['Unblock Author'] = 'Autor freischalten';
|
||||
$a->strings['Block Author'] = 'Autor blockieren';
|
||||
$a->strings['blockem settings updated'] = 'blockem Einstellungen aktualisiert';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "\"Blockem\" Agordoj";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Blokotaj URL adresoj, disigita per komo";
|
||||
$a->strings["Submit"] = "Sendi";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Konservis Agordojn de BLOCKEM.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s blokita - Klaku por malfermi/fermi";
|
||||
$a->strings["Unblock Author"] = "Malbloki Aŭtoron";
|
||||
$a->strings["Block Author"] = "Bloki Aŭtoron";
|
||||
$a->strings["blockem settings updated"] = "Ĝisdatigis la blockem agordojn";
|
||||
$a->strings['"Blockem" Settings'] = '"Blockem" Agordoj';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Blokotaj URL adresoj, disigita per komo';
|
||||
$a->strings['Submit'] = 'Sendi';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Konservis Agordojn de BLOCKEM.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s blokita - Klaku por malfermi/fermi';
|
||||
$a->strings['Unblock Author'] = 'Malbloki Aŭtoron';
|
||||
$a->strings['Block Author'] = 'Bloki Aŭtoron';
|
||||
$a->strings['blockem settings updated'] = 'Ĝisdatigis la blockem agordojn';
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_es")) {
|
||||
function string_plural_select_es($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["\"Blockem\""] = "\"Bloquealos\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "URLS separados por coma para bloquear.";
|
||||
$a->strings["Save Settings"] = "Guardar configuración";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Configuración de BLOQUEALOS guardado.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s bloqueado - click para abrir/cerrar";
|
||||
$a->strings["Unblock Author"] = "Desbloquear autor";
|
||||
$a->strings["Block Author"] = "Bloquear autor";
|
||||
$a->strings["blockem settings updated"] = "configuración de BLOQUEALOS actualizado";
|
||||
if (!function_exists('string_plural_select_es')) {
|
||||
function string_plural_select_es($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['"Blockem"'] = '"Bloquealos"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'URLS separados por coma para bloquear.';
|
||||
$a->strings['Save Settings'] = 'Guardar configuración';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Configuración de BLOQUEALOS guardado.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s bloqueado - click para abrir/cerrar';
|
||||
$a->strings['Unblock Author'] = 'Desbloquear autor';
|
||||
$a->strings['Block Author'] = 'Bloquear autor';
|
||||
$a->strings['blockem settings updated'] = 'configuración de BLOQUEALOS actualizado';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "Réglages de Blockem";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Liste d'URLS de profils à bloquer, séparés par des virgules";
|
||||
$a->strings["Submit"] = "Envoyer";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Réglages Blockem sauvés.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "Bloqué %s - Cliquez pour ouvrir/fermer";
|
||||
$a->strings["Unblock Author"] = "Débloquer l'auteur";
|
||||
$a->strings["Block Author"] = "Bloquer l'auteur";
|
||||
$a->strings["blockem settings updated"] = "Réglages blockem sauvés";
|
||||
$a->strings['"Blockem" Settings'] = 'Réglages de Blockem';
|
||||
$a->strings['Comma separated profile URLS to block'] = "Liste d'URLS de profils à bloquer, séparés par des virgules";
|
||||
$a->strings['Submit'] = 'Envoyer';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Réglages Blockem sauvés.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = 'Bloqué %s - Cliquez pour ouvrir/fermer';
|
||||
$a->strings['Unblock Author'] = "Débloquer l'auteur";
|
||||
$a->strings['Block Author'] = "Bloquer l'auteur";
|
||||
$a->strings['blockem settings updated'] = 'Réglages blockem sauvés';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "\"Blockem\" stillingar";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Banna lista af forsíðum (komma á milli)";
|
||||
$a->strings["Submit"] = "Senda inn";
|
||||
$a->strings["BLOCKEM Settings saved."] = "BLOCKEM stillingar vistaðar.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s sett í straff - Smella til að taka úr/setja á";
|
||||
$a->strings["Unblock Author"] = "Leyfa notanda";
|
||||
$a->strings["Block Author"] = "Banna notanda";
|
||||
$a->strings["blockem settings updated"] = "";
|
||||
$a->strings['"Blockem" Settings'] = '"Blockem" stillingar';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Banna lista af forsíðum (komma á milli)';
|
||||
$a->strings['Submit'] = 'Senda inn';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'BLOCKEM stillingar vistaðar.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s sett í straff - Smella til að taka úr/setja á';
|
||||
$a->strings['Unblock Author'] = 'Leyfa notanda';
|
||||
$a->strings['Block Author'] = 'Banna notanda';
|
||||
$a->strings['blockem settings updated'] = '';
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["\"Blockem\""] = "\"Blockem\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Lista, separata da virgola, di indirizzi da bloccare";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Impostazioni BLOCKEM salvate.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s bloccato - Clicca per aprire/chiudere";
|
||||
$a->strings["Unblock Author"] = "Sblocca autore";
|
||||
$a->strings["Block Author"] = "Blocca autore";
|
||||
$a->strings["blockem settings updated"] = "Impostazioni 'blockem' aggiornate.";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['"Blockem"'] = '"Blockem"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Lista, separata da virgola, di indirizzi da bloccare';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Impostazioni BLOCKEM salvate.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s bloccato - Clicca per aprire/chiudere';
|
||||
$a->strings['Unblock Author'] = 'Sblocca autore';
|
||||
$a->strings['Block Author'] = 'Blocca autore';
|
||||
$a->strings['blockem settings updated'] = "Impostazioni 'blockem' aggiornate.";
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "";
|
||||
$a->strings["Comma separated profile URLS to block"] = "";
|
||||
$a->strings["Submit"] = "Lagre";
|
||||
$a->strings["BLOCKEM Settings saved."] = "";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "";
|
||||
$a->strings["Unblock Author"] = "";
|
||||
$a->strings["Block Author"] = "";
|
||||
$a->strings["blockem settings updated"] = "";
|
||||
$a->strings['"Blockem" Settings'] = '';
|
||||
$a->strings['Comma separated profile URLS to block'] = '';
|
||||
$a->strings['Submit'] = 'Lagre';
|
||||
$a->strings['BLOCKEM Settings saved.'] = '';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '';
|
||||
$a->strings['Unblock Author'] = '';
|
||||
$a->strings['Block Author'] = '';
|
||||
$a->strings['blockem settings updated'] = '';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "";
|
||||
$a->strings["Comma separated profile URLS to block"] = "";
|
||||
$a->strings["Submit"] = "Potwierdź";
|
||||
$a->strings["BLOCKEM Settings saved."] = "";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "";
|
||||
$a->strings["Unblock Author"] = "Odblokuj autora";
|
||||
$a->strings["Block Author"] = "Zablokuj autora";
|
||||
$a->strings["blockem settings updated"] = "";
|
||||
$a->strings['"Blockem" Settings'] = '';
|
||||
$a->strings['Comma separated profile URLS to block'] = '';
|
||||
$a->strings['Submit'] = 'Potwierdź';
|
||||
$a->strings['BLOCKEM Settings saved.'] = '';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '';
|
||||
$a->strings['Unblock Author'] = 'Odblokuj autora';
|
||||
$a->strings['Block Author'] = 'Zablokuj autora';
|
||||
$a->strings['blockem settings updated'] = '';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "Configurações \"Blockem\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "URLS de perfis separados por vírgulas a serem bloqueados";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Configurações BLOCKEM armazenadas.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "Bloqueado %s - Clique para abrir/fechar";
|
||||
$a->strings["Unblock Author"] = "Desbloqueie Autor";
|
||||
$a->strings["Block Author"] = "Bloqueie Autor";
|
||||
$a->strings["blockem settings updated"] = "configurações blockem atualizadas";
|
||||
$a->strings['"Blockem" Settings'] = 'Configurações "Blockem"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'URLS de perfis separados por vírgulas a serem bloqueados';
|
||||
$a->strings['Submit'] = 'Enviar';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Configurações BLOCKEM armazenadas.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = 'Bloqueado %s - Clique para abrir/fechar';
|
||||
$a->strings['Unblock Author'] = 'Desbloqueie Autor';
|
||||
$a->strings['Block Author'] = 'Bloqueie Autor';
|
||||
$a->strings['blockem settings updated'] = 'configurações blockem atualizadas';
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["\"Blockem\""] = "\"Blockem\"";
|
||||
$a->strings["Comma separated profile URLS to block"] = "Adresele URL de profil, de blocat, separate prin virgulă";
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
$a->strings["BLOCKEM Settings saved."] = "Configurările BLOCKEM au fost salvate.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s Blocate - Apăsați pentru a deschide/închide";
|
||||
$a->strings["Unblock Author"] = "Deblocare Autor";
|
||||
$a->strings["Block Author"] = "Blocare Autor";
|
||||
$a->strings["blockem settings updated"] = "Configurările blockem au fost actualizate";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['"Blockem"'] = '"Blockem"';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'Adresele URL de profil, de blocat, separate prin virgulă';
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'Configurările BLOCKEM au fost salvate.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s Blocate - Apăsați pentru a deschide/închide';
|
||||
$a->strings['Unblock Author'] = 'Deblocare Autor';
|
||||
$a->strings['Block Author'] = 'Blocare Autor';
|
||||
$a->strings['blockem settings updated'] = 'Configurările blockem au fost actualizate';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "\"Blockem\" настройки";
|
||||
$a->strings["Comma separated profile URLS to block"] = "URLS, которые заблокировать (список через запятую)";
|
||||
$a->strings["Submit"] = "Подтвердить";
|
||||
$a->strings["BLOCKEM Settings saved."] = "BLOCKEM-Настройки сохранены.";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "Заблокированные %s - Нажмите, чтобы открыть/закрыть";
|
||||
$a->strings["Unblock Author"] = "";
|
||||
$a->strings["Block Author"] = "Блокировать Автора";
|
||||
$a->strings["blockem settings updated"] = "\"Blockem\" настройки обновлены";
|
||||
$a->strings['"Blockem" Settings'] = '"Blockem" настройки';
|
||||
$a->strings['Comma separated profile URLS to block'] = 'URLS, которые заблокировать (список через запятую)';
|
||||
$a->strings['Submit'] = 'Подтвердить';
|
||||
$a->strings['BLOCKEM Settings saved.'] = 'BLOCKEM-Настройки сохранены.';
|
||||
$a->strings['Blocked %s - Click to open/close'] = 'Заблокированные %s - Нажмите, чтобы открыть/закрыть';
|
||||
$a->strings['Unblock Author'] = '';
|
||||
$a->strings['Block Author'] = 'Блокировать Автора';
|
||||
$a->strings['blockem settings updated'] = '"Blockem" настройки обновлены';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Spara";
|
||||
$a->strings['Submit'] = 'Spara';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$a->strings["\"Blockem\" Settings"] = "「Blockem」配置";
|
||||
$a->strings["Comma separated profile URLS to block"] = "逗号分简介URL为栏";
|
||||
$a->strings["Submit"] = "提交";
|
||||
$a->strings["BLOCKEM Settings saved."] = "「Blockem」配置保存了。";
|
||||
$a->strings["Blocked %s - Click to open/close"] = "%s拦了-点击为开关";
|
||||
$a->strings["Unblock Author"] = "不拦作家";
|
||||
$a->strings["Block Author"] = "拦作家";
|
||||
$a->strings["blockem settings updated"] = "blockem设置更新了";
|
||||
$a->strings['"Blockem" Settings'] = '「Blockem」配置';
|
||||
$a->strings['Comma separated profile URLS to block'] = '逗号分简介URL为栏';
|
||||
$a->strings['Submit'] = '提交';
|
||||
$a->strings['BLOCKEM Settings saved.'] = '「Blockem」配置保存了。';
|
||||
$a->strings['Blocked %s - Click to open/close'] = '%s拦了-点击为开关';
|
||||
$a->strings['Unblock Author'] = '不拦作家';
|
||||
$a->strings['Block Author'] = '拦作家';
|
||||
$a->strings['blockem settings updated'] = 'blockem设置更新了';
|
||||
|
|
|
@ -3,19 +3,18 @@
|
|||
/**
|
||||
* Name: Blogger Post Connector
|
||||
* Description: Post to Blogger (or anything else which uses blogger XMLRPC API)
|
||||
* Version: 1.0
|
||||
*
|
||||
* Version: 1.0.
|
||||
*/
|
||||
|
||||
function blogger_install() {
|
||||
function blogger_install()
|
||||
{
|
||||
register_hook('post_local', 'addon/blogger/blogger.php', 'blogger_post_local');
|
||||
register_hook('notifier_normal', 'addon/blogger/blogger.php', 'blogger_send');
|
||||
register_hook('jot_networks', 'addon/blogger/blogger.php', 'blogger_jot_nets');
|
||||
register_hook('connector_settings', 'addon/blogger/blogger.php', 'blogger_settings');
|
||||
register_hook('connector_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
|
||||
|
||||
}
|
||||
function blogger_uninstall() {
|
||||
function blogger_uninstall()
|
||||
{
|
||||
unregister_hook('post_local', 'addon/blogger/blogger.php', 'blogger_post_local');
|
||||
unregister_hook('notifier_normal', 'addon/blogger/blogger.php', 'blogger_send');
|
||||
unregister_hook('jot_networks', 'addon/blogger/blogger.php', 'blogger_jot_nets');
|
||||
|
@ -26,13 +25,13 @@ function blogger_uninstall() {
|
|||
unregister_hook('post_local_end', 'addon/blogger/blogger.php', 'blogger_send');
|
||||
unregister_hook('plugin_settings', 'addon/blogger/blogger.php', 'blogger_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function blogger_jot_nets(&$a,&$b) {
|
||||
if(! local_user())
|
||||
function blogger_jot_nets(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$bl_post = get_pconfig(local_user(), 'blogger', 'post');
|
||||
if (intval($bl_post) == 1) {
|
||||
|
@ -43,11 +42,11 @@ function blogger_jot_nets(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function blogger_settings(&$a,&$s) {
|
||||
|
||||
if(! local_user())
|
||||
function blogger_settings(&$a, &$s)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
|
@ -67,7 +66,6 @@ function blogger_settings(&$a,&$s) {
|
|||
$bl_password = get_pconfig(local_user(), 'blogger', 'bl_password');
|
||||
$bl_blog = get_pconfig(local_user(), 'blogger', 'bl_blog');
|
||||
|
||||
|
||||
/* Add some HTML to the existing form */
|
||||
|
||||
$s .= '<span id="settings_blogger_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_blogger_expanded\'); openClose(\'settings_blogger_inflated\');">';
|
||||
|
@ -106,74 +104,74 @@ function blogger_settings(&$a,&$s) {
|
|||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="blogger-submit" name="blogger-submit" class="settings-submit" value="'.t('Save Settings').'" /></div></div>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
function blogger_settings_post(&$a,&$b) {
|
||||
|
||||
function blogger_settings_post(&$a, &$b)
|
||||
{
|
||||
if (x($_POST, 'blogger-submit')) {
|
||||
|
||||
set_pconfig(local_user(), 'blogger', 'post', intval($_POST['blogger']));
|
||||
set_pconfig(local_user(), 'blogger', 'post_by_default', intval($_POST['bl_bydefault']));
|
||||
set_pconfig(local_user(), 'blogger', 'bl_username', trim($_POST['bl_username']));
|
||||
set_pconfig(local_user(), 'blogger', 'bl_password', trim($_POST['bl_password']));
|
||||
set_pconfig(local_user(), 'blogger', 'bl_blog', trim($_POST['bl_blog']));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function blogger_post_local(&$a,&$b) {
|
||||
function blogger_post_local(&$a, &$b)
|
||||
{
|
||||
|
||||
// This can probably be changed to allow editing by pointing to a different API endpoint
|
||||
|
||||
if($b['edit'])
|
||||
if ($b['edit']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if((! local_user()) || (local_user() != $b['uid']))
|
||||
if ((!local_user()) || (local_user() != $b['uid'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($b['private'] || $b['parent'])
|
||||
if ($b['private'] || $b['parent']) {
|
||||
return;
|
||||
}
|
||||
|
||||
$bl_post = intval(get_pconfig(local_user(), 'blogger', 'post'));
|
||||
|
||||
$bl_enable = (($bl_post && x($_REQUEST, 'blogger_enable')) ? intval($_REQUEST['blogger_enable']) : 0);
|
||||
|
||||
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'blogger','post_by_default')))
|
||||
if ($_REQUEST['api_source'] && intval(get_pconfig(local_user(), 'blogger', 'post_by_default'))) {
|
||||
$bl_enable = 1;
|
||||
}
|
||||
|
||||
if(! $bl_enable)
|
||||
if (!$bl_enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(strlen($b['postopts']))
|
||||
if (strlen($b['postopts'])) {
|
||||
$b['postopts'] .= ',';
|
||||
}
|
||||
$b['postopts'] .= 'blogger';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function blogger_send(&$a,&$b) {
|
||||
|
||||
if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
|
||||
function blogger_send(&$a, &$b)
|
||||
{
|
||||
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(! strstr($b['postopts'],'blogger'))
|
||||
if (!strstr($b['postopts'], 'blogger')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($b['parent'] != $b['id'])
|
||||
if ($b['parent'] != $b['id']) {
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
$bl_username = xmlify(get_pconfig($b['uid'], 'blogger', 'bl_username'));
|
||||
$bl_password = xmlify(get_pconfig($b['uid'], 'blogger', 'bl_password'));
|
||||
$bl_blog = get_pconfig($b['uid'], 'blogger', 'bl_blog');
|
||||
|
||||
if ($bl_username && $bl_password && $bl_blog) {
|
||||
|
||||
require_once('include/bbcode.php');
|
||||
require_once 'include/bbcode.php';
|
||||
|
||||
$title = '<title>'.(($b['title']) ? $b['title'] : t('Post from Friendica')).'</title>';
|
||||
$post = $title.bbcode($b['body']);
|
||||
|
@ -197,10 +195,9 @@ EOT;
|
|||
|
||||
logger('blogger: data: '.$xml, LOGGER_DATA);
|
||||
|
||||
if($bl_blog !== 'test')
|
||||
if ($bl_blog !== 'test') {
|
||||
$x = post_url($bl_blog, $xml);
|
||||
}
|
||||
logger('posted to blogger: '.(($x) ? $x : ''), LOGGER_DEBUG);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "Enviament a blogger";
|
||||
$a->strings["Blogger Post Settings"] = "Ajustos d'enviament a blogger";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Habilita el Plugin d'Enviaments a Blogger";
|
||||
$a->strings["Blogger username"] = "Nom d'usuari a blogger";
|
||||
$a->strings["Blogger password"] = "Contrasenya a blogger";
|
||||
$a->strings["Blogger API URL"] = "Blogger API URL";
|
||||
$a->strings["Post to Blogger by default"] = "Enviament a Blogger per defecte";
|
||||
$a->strings["Submit"] = "Enviar";
|
||||
$a->strings["Post from Friendica"] = "Enviament des de Friendica";
|
||||
$a->strings['Post to blogger'] = 'Enviament a blogger';
|
||||
$a->strings['Blogger Post Settings'] = "Ajustos d'enviament a blogger";
|
||||
$a->strings['Enable Blogger Post Plugin'] = "Habilita el Plugin d'Enviaments a Blogger";
|
||||
$a->strings['Blogger username'] = "Nom d'usuari a blogger";
|
||||
$a->strings['Blogger password'] = 'Contrasenya a blogger';
|
||||
$a->strings['Blogger API URL'] = 'Blogger API URL';
|
||||
$a->strings['Post to Blogger by default'] = 'Enviament a Blogger per defecte';
|
||||
$a->strings['Submit'] = 'Enviar';
|
||||
$a->strings['Post from Friendica'] = 'Enviament des de Friendica';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Auf Blogger posten";
|
||||
$a->strings["Blogger Export"] = "Blogger Export";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Blogger-Post-Plugin aktivieren";
|
||||
$a->strings["Blogger username"] = "Blogger-Benutzername";
|
||||
$a->strings["Blogger password"] = "Blogger-Passwort";
|
||||
$a->strings["Blogger API URL"] = "Blogger-API-URL";
|
||||
$a->strings["Post to Blogger by default"] = "Standardmäßig auf Blogger posten";
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
$a->strings["Post from Friendica"] = "Post via Friendica";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Auf Blogger posten';
|
||||
$a->strings['Blogger Export'] = 'Blogger Export';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Blogger-Post-Plugin aktivieren';
|
||||
$a->strings['Blogger username'] = 'Blogger-Benutzername';
|
||||
$a->strings['Blogger password'] = 'Blogger-Passwort';
|
||||
$a->strings['Blogger API URL'] = 'Blogger-API-URL';
|
||||
$a->strings['Post to Blogger by default'] = 'Standardmäßig auf Blogger posten';
|
||||
$a->strings['Save Settings'] = 'Einstellungen speichern';
|
||||
$a->strings['Post from Friendica'] = 'Post via Friendica';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "Afiŝi al blogger";
|
||||
$a->strings["Blogger Post Settings"] = "Agordo pri Blogger Afiŝoj";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Ŝalti la Blogger afiŝo kromprogramon";
|
||||
$a->strings["Blogger username"] = "Blogger uzantonomo";
|
||||
$a->strings["Blogger password"] = "Blogger pasvorto";
|
||||
$a->strings["Blogger API URL"] = "Blogger API URL";
|
||||
$a->strings["Post to Blogger by default"] = "Defaŭlte afiŝi al Blogger";
|
||||
$a->strings["Submit"] = "Sendi";
|
||||
$a->strings["Post from Friendica"] = "Afiŝo de Friendica";
|
||||
$a->strings['Post to blogger'] = 'Afiŝi al blogger';
|
||||
$a->strings['Blogger Post Settings'] = 'Agordo pri Blogger Afiŝoj';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Ŝalti la Blogger afiŝo kromprogramon';
|
||||
$a->strings['Blogger username'] = 'Blogger uzantonomo';
|
||||
$a->strings['Blogger password'] = 'Blogger pasvorto';
|
||||
$a->strings['Blogger API URL'] = 'Blogger API URL';
|
||||
$a->strings['Post to Blogger by default'] = 'Defaŭlte afiŝi al Blogger';
|
||||
$a->strings['Submit'] = 'Sendi';
|
||||
$a->strings['Post from Friendica'] = 'Afiŝo de Friendica';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "Publícar en Blogger";
|
||||
$a->strings["Blogger Post Settings"] = "Configuración de las publicaciones en Blogger";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Activar el módulo de publicación en Blogger";
|
||||
$a->strings["Blogger username"] = "Nombre de usuario de Blogger";
|
||||
$a->strings["Blogger password"] = "Contraseña de Blogger";
|
||||
$a->strings["Blogger API URL"] = "Dirección de la API de Blogger";
|
||||
$a->strings["Post to Blogger by default"] = "Publicar en Blogger por defecto";
|
||||
$a->strings["Submit"] = "Envíar";
|
||||
$a->strings["Post from Friendica"] = "Publicado desde Friendica";
|
||||
$a->strings['Post to blogger'] = 'Publícar en Blogger';
|
||||
$a->strings['Blogger Post Settings'] = 'Configuración de las publicaciones en Blogger';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Activar el módulo de publicación en Blogger';
|
||||
$a->strings['Blogger username'] = 'Nombre de usuario de Blogger';
|
||||
$a->strings['Blogger password'] = 'Contraseña de Blogger';
|
||||
$a->strings['Blogger API URL'] = 'Dirección de la API de Blogger';
|
||||
$a->strings['Post to Blogger by default'] = 'Publicar en Blogger por defecto';
|
||||
$a->strings['Submit'] = 'Envíar';
|
||||
$a->strings['Post from Friendica'] = 'Publicado desde Friendica';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Poster sur Blogger";
|
||||
$a->strings["Blogger Export"] = "";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Activer le connecteur Blogger";
|
||||
$a->strings["Blogger username"] = "Nom d'utilisateur Blogger";
|
||||
$a->strings["Blogger password"] = "Mot de passe Blogger";
|
||||
$a->strings["Blogger API URL"] = "URL de l'API de Blogger";
|
||||
$a->strings["Post to Blogger by default"] = "";
|
||||
$a->strings["Save Settings"] = "Sauvegarder les paramètres";
|
||||
$a->strings["Post from Friendica"] = "";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Poster sur Blogger';
|
||||
$a->strings['Blogger Export'] = '';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Activer le connecteur Blogger';
|
||||
$a->strings['Blogger username'] = "Nom d'utilisateur Blogger";
|
||||
$a->strings['Blogger password'] = 'Mot de passe Blogger';
|
||||
$a->strings['Blogger API URL'] = "URL de l'API de Blogger";
|
||||
$a->strings['Post to Blogger by default'] = '';
|
||||
$a->strings['Save Settings'] = 'Sauvegarder les paramètres';
|
||||
$a->strings['Post from Friendica'] = '';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_is")) {
|
||||
function string_plural_select_is($n){
|
||||
return ($n % 10 != 1 || $n % 100 == 11);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Senda færslu á bloggara";
|
||||
$a->strings["Blogger Export"] = "Flytja út blogg";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Virkja sendiviðbót fyrir blogg";
|
||||
$a->strings["Blogger username"] = "Notandanafn bloggara";
|
||||
$a->strings["Blogger password"] = "Aðgangsorð bloggara";
|
||||
$a->strings["Blogger API URL"] = "API slóð bloggs";
|
||||
$a->strings["Post to Blogger by default"] = "Sjálfgefið láta færslur flæða inn á blogg";
|
||||
$a->strings["Save Settings"] = "Vista stillingar";
|
||||
$a->strings["Post from Friendica"] = "Færslur frá Friendica";
|
||||
if (!function_exists('string_plural_select_is')) {
|
||||
function string_plural_select_is($n)
|
||||
{
|
||||
return $n % 10 != 1 || $n % 100 == 11;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Senda færslu á bloggara';
|
||||
$a->strings['Blogger Export'] = 'Flytja út blogg';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Virkja sendiviðbót fyrir blogg';
|
||||
$a->strings['Blogger username'] = 'Notandanafn bloggara';
|
||||
$a->strings['Blogger password'] = 'Aðgangsorð bloggara';
|
||||
$a->strings['Blogger API URL'] = 'API slóð bloggs';
|
||||
$a->strings['Post to Blogger by default'] = 'Sjálfgefið láta færslur flæða inn á blogg';
|
||||
$a->strings['Save Settings'] = 'Vista stillingar';
|
||||
$a->strings['Post from Friendica'] = 'Færslur frá Friendica';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Invia a Blogger";
|
||||
$a->strings["Blogger Export"] = "Esporta Blogger";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Abilita il plugin di invio a Blogger";
|
||||
$a->strings["Blogger username"] = "Nome utente Blogger";
|
||||
$a->strings["Blogger password"] = "Password Blogger";
|
||||
$a->strings["Blogger API URL"] = "Indirizzo API Blogger";
|
||||
$a->strings["Post to Blogger by default"] = "Invia sempre a Blogger";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings["Post from Friendica"] = "Messaggio da Friendica";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Invia a Blogger';
|
||||
$a->strings['Blogger Export'] = 'Esporta Blogger';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Abilita il plugin di invio a Blogger';
|
||||
$a->strings['Blogger username'] = 'Nome utente Blogger';
|
||||
$a->strings['Blogger password'] = 'Password Blogger';
|
||||
$a->strings['Blogger API URL'] = 'Indirizzo API Blogger';
|
||||
$a->strings['Post to Blogger by default'] = 'Invia sempre a Blogger';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Post from Friendica'] = 'Messaggio da Friendica';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "";
|
||||
$a->strings["Blogger Post Settings"] = "";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "";
|
||||
$a->strings["Blogger username"] = "";
|
||||
$a->strings["Blogger password"] = "";
|
||||
$a->strings["Blogger API URL"] = "";
|
||||
$a->strings["Post to Blogger by default"] = "";
|
||||
$a->strings["Submit"] = "Lagre";
|
||||
$a->strings["Post from Friendica"] = "";
|
||||
$a->strings['Post to blogger'] = '';
|
||||
$a->strings['Blogger Post Settings'] = '';
|
||||
$a->strings['Enable Blogger Post Plugin'] = '';
|
||||
$a->strings['Blogger username'] = '';
|
||||
$a->strings['Blogger password'] = '';
|
||||
$a->strings['Blogger API URL'] = '';
|
||||
$a->strings['Post to Blogger by default'] = '';
|
||||
$a->strings['Submit'] = 'Lagre';
|
||||
$a->strings['Post from Friendica'] = '';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "Post na blogger";
|
||||
$a->strings["Blogger Post Settings"] = "Ustawienia postów na Blogger";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "";
|
||||
$a->strings["Blogger username"] = "Nazwa użytkownika na Blogger";
|
||||
$a->strings["Blogger password"] = "Hasło do Blogger";
|
||||
$a->strings["Blogger API URL"] = "";
|
||||
$a->strings["Post to Blogger by default"] = "";
|
||||
$a->strings["Submit"] = "Potwierdź";
|
||||
$a->strings["Post from Friendica"] = "Post z Friendica";
|
||||
$a->strings['Post to blogger'] = 'Post na blogger';
|
||||
$a->strings['Blogger Post Settings'] = 'Ustawienia postów na Blogger';
|
||||
$a->strings['Enable Blogger Post Plugin'] = '';
|
||||
$a->strings['Blogger username'] = 'Nazwa użytkownika na Blogger';
|
||||
$a->strings['Blogger password'] = 'Hasło do Blogger';
|
||||
$a->strings['Blogger API URL'] = '';
|
||||
$a->strings['Post to Blogger by default'] = '';
|
||||
$a->strings['Submit'] = 'Potwierdź';
|
||||
$a->strings['Post from Friendica'] = 'Post z Friendica';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Publicar no Blogger";
|
||||
$a->strings["Blogger Export"] = "Exportador Blogger";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Habilitar plug-in para publicar no Blogger";
|
||||
$a->strings["Blogger username"] = "Nome de usuário no Blogger";
|
||||
$a->strings["Blogger password"] = "Senha do Blogger";
|
||||
$a->strings["Blogger API URL"] = "URL da API do Blogger";
|
||||
$a->strings["Post to Blogger by default"] = "Publicar no Blogger por padrão";
|
||||
$a->strings["Save Settings"] = "Salvar Configurações";
|
||||
$a->strings["Post from Friendica"] = "Postar a partir de Friendica";
|
||||
if (!function_exists('string_plural_select_pt_br')) {
|
||||
function string_plural_select_pt_br($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Publicar no Blogger';
|
||||
$a->strings['Blogger Export'] = 'Exportador Blogger';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Habilitar plug-in para publicar no Blogger';
|
||||
$a->strings['Blogger username'] = 'Nome de usuário no Blogger';
|
||||
$a->strings['Blogger password'] = 'Senha do Blogger';
|
||||
$a->strings['Blogger API URL'] = 'URL da API do Blogger';
|
||||
$a->strings['Post to Blogger by default'] = 'Publicar no Blogger por padrão';
|
||||
$a->strings['Save Settings'] = 'Salvar Configurações';
|
||||
$a->strings['Post from Friendica'] = 'Postar a partir de Friendica';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Post to blogger"] = "Postați pe Blogger";
|
||||
$a->strings["Blogger Export"] = "Export pe Blogger ";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "Activare Modul Postare pe Blogger ";
|
||||
$a->strings["Blogger username"] = "Utilizator Blogger";
|
||||
$a->strings["Blogger password"] = "Parolă Blogger ";
|
||||
$a->strings["Blogger API URL"] = "URL Cheie API Blogger ";
|
||||
$a->strings["Post to Blogger by default"] = "Postați implicit pe Blogger";
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
$a->strings["Post from Friendica"] = "Postați din Friendica";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Post to blogger'] = 'Postați pe Blogger';
|
||||
$a->strings['Blogger Export'] = 'Export pe Blogger ';
|
||||
$a->strings['Enable Blogger Post Plugin'] = 'Activare Modul Postare pe Blogger ';
|
||||
$a->strings['Blogger username'] = 'Utilizator Blogger';
|
||||
$a->strings['Blogger password'] = 'Parolă Blogger ';
|
||||
$a->strings['Blogger API URL'] = 'URL Cheie API Blogger ';
|
||||
$a->strings['Post to Blogger by default'] = 'Postați implicit pe Blogger';
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
$a->strings['Post from Friendica'] = 'Postați din Friendica';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "";
|
||||
$a->strings["Blogger Post Settings"] = "";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "";
|
||||
$a->strings["Blogger username"] = "";
|
||||
$a->strings["Blogger password"] = "";
|
||||
$a->strings["Blogger API URL"] = "";
|
||||
$a->strings["Post to Blogger by default"] = "";
|
||||
$a->strings["Submit"] = "Подтвердить";
|
||||
$a->strings["Post from Friendica"] = "Сообщение от Friendica";
|
||||
$a->strings['Post to blogger'] = '';
|
||||
$a->strings['Blogger Post Settings'] = '';
|
||||
$a->strings['Enable Blogger Post Plugin'] = '';
|
||||
$a->strings['Blogger username'] = '';
|
||||
$a->strings['Blogger password'] = '';
|
||||
$a->strings['Blogger API URL'] = '';
|
||||
$a->strings['Post to Blogger by default'] = '';
|
||||
$a->strings['Submit'] = 'Подтвердить';
|
||||
$a->strings['Post from Friendica'] = 'Сообщение от Friendica';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Submit"] = "Spara";
|
||||
$a->strings['Submit'] = 'Spara';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Post to blogger"] = "转播到blogger";
|
||||
$a->strings["Blogger Post Settings"] = "Blogger转播设置";
|
||||
$a->strings["Enable Blogger Post Plugin"] = "使Blogger转播插件可用";
|
||||
$a->strings["Blogger username"] = "Blogger用户名";
|
||||
$a->strings["Blogger password"] = "Blogger密码";
|
||||
$a->strings["Blogger API URL"] = "Blogger API URL";
|
||||
$a->strings["Post to Blogger by default"] = "默认地转播到Blogger";
|
||||
$a->strings["Submit"] = "提交";
|
||||
$a->strings["Post from Friendica"] = "文章从Friendica";
|
||||
$a->strings['Post to blogger'] = '转播到blogger';
|
||||
$a->strings['Blogger Post Settings'] = 'Blogger转播设置';
|
||||
$a->strings['Enable Blogger Post Plugin'] = '使Blogger转播插件可用';
|
||||
$a->strings['Blogger username'] = 'Blogger用户名';
|
||||
$a->strings['Blogger password'] = 'Blogger密码';
|
||||
$a->strings['Blogger API URL'] = 'Blogger API URL';
|
||||
$a->strings['Post to Blogger by default'] = '默认地转播到Blogger';
|
||||
$a->strings['Submit'] = '提交';
|
||||
$a->strings['Post from Friendica'] = '文章从Friendica';
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
* Name: Buffer Post Connector
|
||||
* Description: Post to Buffer (Linkedin, App.net, Google+, Facebook, Twitter)
|
||||
* Version: 0.2
|
||||
* Author: Michael Vogel <http://pirati.ca/profile/heluecht>
|
||||
* Author: Michael Vogel <http://pirati.ca/profile/heluecht>.
|
||||
*/
|
||||
require('addon/buffer/bufferapp.php');
|
||||
require 'addon/buffer/bufferapp.php';
|
||||
|
||||
function buffer_install() {
|
||||
function buffer_install()
|
||||
{
|
||||
register_hook('post_local', 'addon/buffer/buffer.php', 'buffer_post_local');
|
||||
register_hook('notifier_normal', 'addon/buffer/buffer.php', 'buffer_send');
|
||||
register_hook('jot_networks', 'addon/buffer/buffer.php', 'buffer_jot_nets');
|
||||
|
@ -15,7 +16,8 @@ function buffer_install() {
|
|||
register_hook('connector_settings_post', 'addon/buffer/buffer.php', 'buffer_settings_post');
|
||||
}
|
||||
|
||||
function buffer_uninstall() {
|
||||
function buffer_uninstall()
|
||||
{
|
||||
unregister_hook('post_local', 'addon/buffer/buffer.php', 'buffer_post_local');
|
||||
unregister_hook('notifier_normal', 'addon/buffer/buffer.php', 'buffer_send');
|
||||
unregister_hook('jot_networks', 'addon/buffer/buffer.php', 'buffer_jot_nets');
|
||||
|
@ -23,35 +25,40 @@ function buffer_uninstall() {
|
|||
unregister_hook('connector_settings_post', 'addon/buffer/buffer.php', 'buffer_settings_post');
|
||||
}
|
||||
|
||||
function buffer_module() {}
|
||||
|
||||
function buffer_content(&$a) {
|
||||
function buffer_module()
|
||||
{
|
||||
}
|
||||
|
||||
function buffer_content(&$a)
|
||||
{
|
||||
if (!local_user()) {
|
||||
notice(t('Permission denied.').EOL);
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
require_once("mod/settings.php");
|
||||
require_once 'mod/settings.php';
|
||||
settings_init($a);
|
||||
|
||||
if (isset($a->argv[1]))
|
||||
if (isset($a->argv[1])) {
|
||||
switch ($a->argv[1]) {
|
||||
case "connect":
|
||||
case 'connect':
|
||||
$o = buffer_connect($a);
|
||||
break;
|
||||
default:
|
||||
$o = print_r($a->argv, true);
|
||||
break;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
$o = buffer_connect($a);
|
||||
}
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
||||
function buffer_plugin_admin(&$a, &$o){
|
||||
$t = get_markup_template( "admin.tpl", "addon/buffer/" );
|
||||
function buffer_plugin_admin(&$a, &$o)
|
||||
{
|
||||
$t = get_markup_template('admin.tpl', 'addon/buffer/');
|
||||
|
||||
$o = replace_macros($t, array(
|
||||
'$submit' => t('Save Settings'),
|
||||
|
@ -60,7 +67,8 @@ function buffer_plugin_admin(&$a, &$o){
|
|||
'$client_secret' => array('client_secret', t('Client Secret'), get_config('buffer', 'client_secret'), ''),
|
||||
));
|
||||
}
|
||||
function buffer_plugin_admin_post(&$a){
|
||||
function buffer_plugin_admin_post(&$a)
|
||||
{
|
||||
$client_id = ((x($_POST, 'client_id')) ? notags(trim($_POST['client_id'])) : '');
|
||||
$client_secret = ((x($_POST, 'client_secret')) ? notags(trim($_POST['client_secret'])) : '');
|
||||
set_config('buffer', 'client_id', $client_id);
|
||||
|
@ -68,10 +76,11 @@ function buffer_plugin_admin_post(&$a){
|
|||
info(t('Settings updated.').EOL);
|
||||
}
|
||||
|
||||
function buffer_connect(&$a) {
|
||||
function buffer_connect(&$a)
|
||||
{
|
||||
if (isset($_REQUEST['error'])) {
|
||||
$o = t('Error when registering buffer connection:').' '.$_REQUEST['error'];
|
||||
|
||||
if (isset($_REQUEST["error"])) {
|
||||
$o = t('Error when registering buffer connection:')." ".$_REQUEST["error"];
|
||||
return $o;
|
||||
}
|
||||
// Start a session. This is necessary to hold on to a few keys the callback script will also need
|
||||
|
@ -82,25 +91,27 @@ function buffer_connect(&$a) {
|
|||
$client_secret = get_config('buffer', 'client_secret');
|
||||
|
||||
// The callback URL is the script that gets called after the user authenticates with buffer
|
||||
$callback_url = $a->get_baseurl()."/buffer/connect";
|
||||
$callback_url = $a->get_baseurl().'/buffer/connect';
|
||||
|
||||
$buffer = new BufferApp($client_id, $client_secret, $callback_url);
|
||||
|
||||
if (!$buffer->ok) {
|
||||
$o .= '<a href="'.$buffer->get_login_url().'">Connect to Buffer!</a>';
|
||||
} else {
|
||||
logger("buffer_connect: authenticated");
|
||||
$o .= t("You are now authenticated to buffer. ");
|
||||
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.t("return to the connector page").'</a>';
|
||||
logger('buffer_connect: authenticated');
|
||||
$o .= t('You are now authenticated to buffer. ');
|
||||
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.t('return to the connector page').'</a>';
|
||||
set_pconfig(local_user(), 'buffer', 'access_token', $buffer->access_token);
|
||||
}
|
||||
|
||||
return($o);
|
||||
return $o;
|
||||
}
|
||||
|
||||
function buffer_jot_nets(&$a,&$b) {
|
||||
if(! local_user())
|
||||
function buffer_jot_nets(&$a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$buffer_post = get_pconfig(local_user(), 'buffer', 'post');
|
||||
if (intval($buffer_post) == 1) {
|
||||
|
@ -111,10 +122,11 @@ function buffer_jot_nets(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
function buffer_settings(&$a,&$s) {
|
||||
|
||||
if(! local_user())
|
||||
function buffer_settings(&$a, &$s)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
|
@ -139,14 +151,14 @@ function buffer_settings(&$a,&$s) {
|
|||
$s .= '<img class="connector'.$css.'" src="images/buffer.png" /><h3 class="connector">'.t('Buffer Export').'</h3>';
|
||||
$s .= '</span>';
|
||||
|
||||
$client_id = get_config("buffer", "client_id");
|
||||
$client_secret = get_config("buffer", "client_secret");
|
||||
$access_token = get_pconfig(local_user(), "buffer", "access_token");
|
||||
$client_id = get_config('buffer', 'client_id');
|
||||
$client_secret = get_config('buffer', 'client_secret');
|
||||
$access_token = get_pconfig(local_user(), 'buffer', 'access_token');
|
||||
|
||||
$s .= '<div id="buffer-password-wrapper">';
|
||||
if ($access_token == "") {
|
||||
if ($access_token == '') {
|
||||
$s .= '<div id="buffer-authenticate-wrapper">';
|
||||
$s .= '<a href="'.$a->get_baseurl().'/buffer/connect">'.t("Authenticate your Buffer connection").'</a>';
|
||||
$s .= '<a href="'.$a->get_baseurl().'/buffer/connect">'.t('Authenticate your Buffer connection').'</a>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
} else {
|
||||
$s .= '<div id="buffer-enable-wrapper">';
|
||||
|
@ -169,20 +181,20 @@ function buffer_settings(&$a,&$s) {
|
|||
$profiles = $buffer->go('/profiles');
|
||||
if (is_array($profiles)) {
|
||||
$s .= '<div id="buffer-accounts-wrapper">';
|
||||
$s .= t("Posts are going to all accounts that are enabled by default:");
|
||||
$s .= "<ul>";
|
||||
$s .= t('Posts are going to all accounts that are enabled by default:');
|
||||
$s .= '<ul>';
|
||||
foreach ($profiles as $profile) {
|
||||
if (!$profile->default)
|
||||
if (!$profile->default) {
|
||||
continue;
|
||||
$s .= "<li>";
|
||||
//$s .= "<img src='".$profile->avatar_https."' width='16' />";
|
||||
$s .= " ".$profile->formatted_username." (".$profile->formatted_service.")";
|
||||
$s .= "</li>";
|
||||
}
|
||||
$s .= "</ul>";
|
||||
$s .= '<li>';
|
||||
//$s .= "<img src='".$profile->avatar_https."' width='16' />";
|
||||
$s .= ' '.$profile->formatted_username.' ('.$profile->formatted_service.')';
|
||||
$s .= '</li>';
|
||||
}
|
||||
$s .= '</ul>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
|
@ -190,12 +202,10 @@ function buffer_settings(&$a,&$s) {
|
|||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="buffer-submit" name="buffer-submit" class="settings-submit" value="'.t('Save Settings').'" /></div></div>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
function buffer_settings_post(&$a,&$b) {
|
||||
|
||||
function buffer_settings_post(&$a, &$b)
|
||||
{
|
||||
if (x($_POST, 'buffer-submit')) {
|
||||
if (x($_POST, 'buffer_delete')) {
|
||||
set_pconfig(local_user(), 'buffer', 'access_token', '');
|
||||
|
@ -208,93 +218,101 @@ function buffer_settings_post(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
|
||||
function buffer_post_local(&$a,&$b) {
|
||||
|
||||
if((! local_user()) || (local_user() != $b['uid']))
|
||||
function buffer_post_local(&$a, &$b)
|
||||
{
|
||||
if ((!local_user()) || (local_user() != $b['uid'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$buffer_post = intval(get_pconfig(local_user(), 'buffer', 'post'));
|
||||
|
||||
$buffer_enable = (($buffer_post && x($_REQUEST, 'buffer_enable')) ? intval($_REQUEST['buffer_enable']) : 0);
|
||||
|
||||
if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'buffer','post_by_default')))
|
||||
if ($_REQUEST['api_source'] && intval(get_pconfig(local_user(), 'buffer', 'post_by_default'))) {
|
||||
$buffer_enable = 1;
|
||||
}
|
||||
|
||||
if(! $buffer_enable)
|
||||
if (!$buffer_enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(strlen($b['postopts']))
|
||||
if (strlen($b['postopts'])) {
|
||||
$b['postopts'] .= ',';
|
||||
}
|
||||
|
||||
$b['postopts'] .= 'buffer';
|
||||
}
|
||||
|
||||
function buffer_send(&$a,&$b) {
|
||||
|
||||
if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
|
||||
function buffer_send(&$a, &$b)
|
||||
{
|
||||
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(! strstr($b['postopts'],'buffer'))
|
||||
if (!strstr($b['postopts'], 'buffer')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($b['parent'] != $b['id'])
|
||||
if ($b['parent'] != $b['id']) {
|
||||
return;
|
||||
}
|
||||
|
||||
// if post comes from buffer don't send it back
|
||||
//if($b['app'] == "Buffer")
|
||||
// return;
|
||||
|
||||
$client_id = get_config("buffer", "client_id");
|
||||
$client_secret = get_config("buffer", "client_secret");
|
||||
$access_token = get_pconfig($b['uid'], "buffer","access_token");
|
||||
$client_id = get_config('buffer', 'client_id');
|
||||
$client_secret = get_config('buffer', 'client_secret');
|
||||
$access_token = get_pconfig($b['uid'], 'buffer', 'access_token');
|
||||
|
||||
if ($access_token) {
|
||||
$buffer = new BufferApp($client_id, $client_secret, $callback_url, $access_token);
|
||||
|
||||
require_once("include/plaintext.php");
|
||||
require_once("include/network.php");
|
||||
require_once 'include/plaintext.php';
|
||||
require_once 'include/network.php';
|
||||
|
||||
$profiles = $buffer->go('/profiles');
|
||||
if (is_array($profiles)) {
|
||||
logger("Will send these parameter ".print_r($b, true), LOGGER_DEBUG);
|
||||
logger('Will send these parameter '.print_r($b, true), LOGGER_DEBUG);
|
||||
|
||||
foreach ($profiles as $profile) {
|
||||
if (!$profile->default)
|
||||
if (!$profile->default) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$send = false;
|
||||
|
||||
switch ($profile->service) {
|
||||
case 'appdotnet':
|
||||
$send = ($b["extid"] != NETWORK_APPNET);
|
||||
$send = ($b['extid'] != NETWORK_APPNET);
|
||||
$limit = 256;
|
||||
$markup = false;
|
||||
$includedlinks = true;
|
||||
$htmlmode = 6;
|
||||
break;
|
||||
case 'facebook':
|
||||
$send = ($b["extid"] != NETWORK_FACEBOOK);
|
||||
$send = ($b['extid'] != NETWORK_FACEBOOK);
|
||||
$limit = 0;
|
||||
$markup = false;
|
||||
$includedlinks = false;
|
||||
$htmlmode = 9;
|
||||
break;
|
||||
case 'google':
|
||||
$send = ($b["extid"] != NETWORK_GPLUS);
|
||||
$send = ($b['extid'] != NETWORK_GPLUS);
|
||||
$limit = 0;
|
||||
$markup = true;
|
||||
$includedlinks = false;
|
||||
$htmlmode = 9;
|
||||
break;
|
||||
case 'twitter':
|
||||
$send = ($b["extid"] != NETWORK_TWITTER);
|
||||
$send = ($b['extid'] != NETWORK_TWITTER);
|
||||
$limit = 140;
|
||||
$markup = false;
|
||||
$includedlinks = true;
|
||||
$htmlmode = 8;
|
||||
break;
|
||||
case 'linkedin':
|
||||
$send = ($b["extid"] != NETWORK_LINKEDIN);
|
||||
$send = ($b['extid'] != NETWORK_LINKEDIN);
|
||||
$limit = 700;
|
||||
$markup = false;
|
||||
$includedlinks = true;
|
||||
|
@ -302,84 +320,97 @@ function buffer_send(&$a,&$b) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (!$send)
|
||||
if (!$send) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$item = $b;
|
||||
|
||||
// Markup for Google+
|
||||
if ($markup) {
|
||||
if ($item["title"] != "")
|
||||
$item["title"] = "*".$item["title"]."*";
|
||||
if ($item['title'] != '') {
|
||||
$item['title'] = '*'.$item['title'].'*';
|
||||
}
|
||||
|
||||
$item["body"] = preg_replace("(\[b\](.*?)\[\/b\])ism",'*$1*',$item["body"]);
|
||||
$item["body"] = preg_replace("(\[i\](.*?)\[\/i\])ism",'_$1_',$item["body"]);
|
||||
$item["body"] = preg_replace("(\[s\](.*?)\[\/s\])ism",'-$1-',$item["body"]);
|
||||
$item['body'] = preg_replace("(\[b\](.*?)\[\/b\])ism", '*$1*', $item['body']);
|
||||
$item['body'] = preg_replace("(\[i\](.*?)\[\/i\])ism", '_$1_', $item['body']);
|
||||
$item['body'] = preg_replace("(\[s\](.*?)\[\/s\])ism", '-$1-', $item['body']);
|
||||
}
|
||||
|
||||
$post = plaintext($a, $item, $limit, $includedlinks, $htmlmode);
|
||||
logger("buffer_send: converted message ".$b["id"]." result: ".print_r($post, true), LOGGER_DEBUG);
|
||||
logger('buffer_send: converted message '.$b['id'].' result: '.print_r($post, true), LOGGER_DEBUG);
|
||||
|
||||
// The image proxy is used as a sanitizer. Buffer seems to be really picky about pictures
|
||||
require_once("mod/proxy.php");
|
||||
if (isset($post["image"]))
|
||||
$post["image"] = proxy_url($post["image"]);
|
||||
require_once 'mod/proxy.php';
|
||||
if (isset($post['image'])) {
|
||||
$post['image'] = proxy_url($post['image']);
|
||||
}
|
||||
|
||||
if (isset($post["preview"]))
|
||||
$post["preview"] = proxy_url($post["preview"]);
|
||||
if (isset($post['preview'])) {
|
||||
$post['preview'] = proxy_url($post['preview']);
|
||||
}
|
||||
|
||||
//if ($profile->service == "twitter") {
|
||||
if ($includedlinks) {
|
||||
if (isset($post["url"]))
|
||||
$post["url"] = short_link($post["url"]);
|
||||
if (isset($post["image"]))
|
||||
$post["image"] = short_link($post["image"]);
|
||||
if (isset($post["preview"]))
|
||||
$post["preview"] = short_link($post["preview"]);
|
||||
if (isset($post['url'])) {
|
||||
$post['url'] = short_link($post['url']);
|
||||
}
|
||||
if (isset($post['image'])) {
|
||||
$post['image'] = short_link($post['image']);
|
||||
}
|
||||
if (isset($post['preview'])) {
|
||||
$post['preview'] = short_link($post['preview']);
|
||||
}
|
||||
}
|
||||
|
||||
// Seems like a bug to me
|
||||
// Buffer doesn't add links to Twitter and App.net (but pictures)
|
||||
//if ($includedlinks AND isset($post["url"]))
|
||||
if (($profile->service == "twitter") AND isset($post["url"]) AND ($post["type"] != "photo"))
|
||||
$post["text"] .= " ".$post["url"];
|
||||
elseif (($profile->service == "appdotnet") AND isset($post["url"]) AND isset($post["title"]) AND ($post["type"] != "photo")) {
|
||||
$post["title"] = shortenmsg($post["title"], 90);
|
||||
$post["text"] = shortenmsg($post["text"], $limit - (24 + strlen($post["title"])));
|
||||
$post["text"] .= "\n[".$post["title"]."](".$post["url"].")";
|
||||
} elseif (($profile->service == "appdotnet") AND isset($post["url"]) AND ($post["type"] != "photo"))
|
||||
$post["text"] .= " ".$post["url"];
|
||||
elseif ($profile->service == "google")
|
||||
$post["text"] .= html_entity_decode(" ", ENT_QUOTES, 'UTF-8'); // Send a special blank to identify the post through the "fromgplus" addon
|
||||
if (($profile->service == 'twitter') and isset($post['url']) and ($post['type'] != 'photo')) {
|
||||
$post['text'] .= ' '.$post['url'];
|
||||
} elseif (($profile->service == 'appdotnet') and isset($post['url']) and isset($post['title']) and ($post['type'] != 'photo')) {
|
||||
$post['title'] = shortenmsg($post['title'], 90);
|
||||
$post['text'] = shortenmsg($post['text'], $limit - (24 + strlen($post['title'])));
|
||||
$post['text'] .= "\n[".$post['title'].']('.$post['url'].')';
|
||||
} elseif (($profile->service == 'appdotnet') and isset($post['url']) and ($post['type'] != 'photo')) {
|
||||
$post['text'] .= ' '.$post['url'];
|
||||
} elseif ($profile->service == 'google') {
|
||||
$post['text'] .= html_entity_decode(' ', ENT_QUOTES, 'UTF-8');
|
||||
} // Send a special blank to identify the post through the "fromgplus" addon
|
||||
|
||||
$message = array();
|
||||
$message["text"] = $post["text"];
|
||||
$message["profile_ids[]"] = $profile->id;
|
||||
$message["shorten"] = false;
|
||||
$message["now"] = true;
|
||||
$message['text'] = $post['text'];
|
||||
$message['profile_ids[]'] = $profile->id;
|
||||
$message['shorten'] = false;
|
||||
$message['now'] = true;
|
||||
|
||||
if (isset($post["title"]))
|
||||
$message["media[title]"] = $post["title"];
|
||||
|
||||
if (isset($post["description"]))
|
||||
$message["media[description]"] = $post["description"];
|
||||
|
||||
if (isset($post["url"]) AND ($post["type"] != "photo"))
|
||||
$message["media[link]"] = $post["url"];
|
||||
|
||||
if (isset($post["image"])) {
|
||||
$message["media[picture]"] = $post["image"];
|
||||
if ($post["type"] == "photo")
|
||||
$message["media[thumbnail]"] = $post["image"];
|
||||
if (isset($post['title'])) {
|
||||
$message['media[title]'] = $post['title'];
|
||||
}
|
||||
|
||||
if (isset($post["preview"]))
|
||||
$message["media[thumbnail]"] = $post["preview"];
|
||||
if (isset($post['description'])) {
|
||||
$message['media[description]'] = $post['description'];
|
||||
}
|
||||
|
||||
if (isset($post['url']) and ($post['type'] != 'photo')) {
|
||||
$message['media[link]'] = $post['url'];
|
||||
}
|
||||
|
||||
if (isset($post['image'])) {
|
||||
$message['media[picture]'] = $post['image'];
|
||||
if ($post['type'] == 'photo') {
|
||||
$message['media[thumbnail]'] = $post['image'];
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($post['preview'])) {
|
||||
$message['media[thumbnail]'] = $post['preview'];
|
||||
}
|
||||
|
||||
//print_r($message);
|
||||
logger("buffer_send: data for message ".$b["id"].": ".print_r($message, true), LOGGER_DEBUG);
|
||||
logger('buffer_send: data for message '.$b['id'].': '.print_r($message, true), LOGGER_DEBUG);
|
||||
$ret = $buffer->go('/updates/create', $message);
|
||||
logger("buffer_send: send message ".$b["id"]." result: ".print_r($ret, true), LOGGER_DEBUG);
|
||||
logger('buffer_send: send message '.$b['id'].' result: '.print_r($ret, true), LOGGER_DEBUG);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
class BufferApp {
|
||||
class bufferapp
|
||||
{
|
||||
private $client_id;
|
||||
private $client_secret;
|
||||
private $code;
|
||||
|
@ -79,22 +80,33 @@
|
|||
'1051' => 'No authorization to access client.',
|
||||
);
|
||||
|
||||
function __construct($client_id = '', $client_secret = '', $callback_url = '', $access_token = '') {
|
||||
if ($client_id) $this->set_client_id($client_id);
|
||||
if ($client_secret) $this->set_client_secret($client_secret);
|
||||
if ($callback_url) $this->set_callback_url($callback_url);
|
||||
if ($access_token) $this->access_token = $access_token;
|
||||
public function __construct($client_id = '', $client_secret = '', $callback_url = '', $access_token = '')
|
||||
{
|
||||
if ($client_id) {
|
||||
$this->set_client_id($client_id);
|
||||
}
|
||||
if ($client_secret) {
|
||||
$this->set_client_secret($client_secret);
|
||||
}
|
||||
if ($callback_url) {
|
||||
$this->set_callback_url($callback_url);
|
||||
}
|
||||
if ($access_token) {
|
||||
$this->access_token = $access_token;
|
||||
}
|
||||
|
||||
if (isset($_GET['code']) AND $_GET['code']) {
|
||||
if (isset($_GET['code']) and $_GET['code']) {
|
||||
$this->code = $_GET['code'];
|
||||
$this->create_access_token_url();
|
||||
}
|
||||
|
||||
if (!$access_token)
|
||||
if (!$access_token) {
|
||||
$this->retrieve_access_token();
|
||||
}
|
||||
}
|
||||
|
||||
function go($endpoint = '', $data = '') {
|
||||
public function go($endpoint = '', $data = '')
|
||||
{
|
||||
if (in_array($endpoint, array_keys($this->endpoints))) {
|
||||
$done_endpoint = $endpoint;
|
||||
} else {
|
||||
|
@ -107,21 +119,27 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (!$ok) return $this->error('invalid-endpoint');
|
||||
if (!$ok) {
|
||||
return $this->error('invalid-endpoint');
|
||||
}
|
||||
}
|
||||
|
||||
if (!$data || !is_array($data)) $data = array();
|
||||
if (!$data || !is_array($data)) {
|
||||
$data = array();
|
||||
}
|
||||
$data['access_token'] = $this->access_token;
|
||||
|
||||
$method = $this->endpoints[$done_endpoint]; //get() or post()
|
||||
return $this->$method($this->buffer_url.$endpoint.'.json', $data);
|
||||
}
|
||||
|
||||
function store_access_token() {
|
||||
public function store_access_token()
|
||||
{
|
||||
$_SESSION['oauth']['buffer']['access_token'] = $this->access_token;
|
||||
}
|
||||
|
||||
function retrieve_access_token() {
|
||||
public function retrieve_access_token()
|
||||
{
|
||||
$this->access_token = $_SESSION['oauth']['buffer']['access_token'];
|
||||
|
||||
if ($this->access_token) {
|
||||
|
@ -129,11 +147,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
function error($error) {
|
||||
public function error($error)
|
||||
{
|
||||
return (object) array('error' => $this->errors[$error]);
|
||||
}
|
||||
|
||||
function create_access_token_url() {
|
||||
public function create_access_token_url()
|
||||
{
|
||||
$data = array(
|
||||
'code' => $this->code,
|
||||
'grant_type' => 'authorization_code',
|
||||
|
@ -148,16 +168,21 @@
|
|||
$this->store_access_token();
|
||||
}
|
||||
|
||||
function req($url = '', $data = '', $post = true) {
|
||||
if (!$url) return false;
|
||||
if (!$data || !is_array($data)) $data = array();
|
||||
public function req($url = '', $data = '', $post = true)
|
||||
{
|
||||
if (!$url) {
|
||||
return false;
|
||||
}
|
||||
if (!$data || !is_array($data)) {
|
||||
$data = array();
|
||||
}
|
||||
|
||||
$options = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false);
|
||||
|
||||
if ($post) {
|
||||
$options += array(
|
||||
CURLOPT_POST => $post,
|
||||
CURLOPT_POSTFIELDS => $data
|
||||
CURLOPT_POSTFIELDS => $data,
|
||||
);
|
||||
} else {
|
||||
$url .= '?'.http_build_query($data);
|
||||
|
@ -175,31 +200,36 @@
|
|||
return json_decode($rs);
|
||||
}
|
||||
|
||||
function get($url = '', $data = '') {
|
||||
public function get($url = '', $data = '')
|
||||
{
|
||||
return $this->req($url, $data, false);
|
||||
}
|
||||
|
||||
function post($url = '', $data = '') {
|
||||
public function post($url = '', $data = '')
|
||||
{
|
||||
return $this->req($url, $data, true);
|
||||
}
|
||||
|
||||
function get_login_url() {
|
||||
public function get_login_url()
|
||||
{
|
||||
return $this->authorize_url.'?'
|
||||
.'client_id='.$this->client_id
|
||||
.'&redirect_uri='.urlencode($this->callback_url)
|
||||
.'&response_type=code';
|
||||
}
|
||||
|
||||
function set_client_id($client_id) {
|
||||
public function set_client_id($client_id)
|
||||
{
|
||||
$this->client_id = $client_id;
|
||||
}
|
||||
|
||||
function set_client_secret($client_secret) {
|
||||
public function set_client_secret($client_secret)
|
||||
{
|
||||
$this->client_secret = $client_secret;
|
||||
}
|
||||
|
||||
function set_callback_url($callback_url) {
|
||||
public function set_callback_url($callback_url)
|
||||
{
|
||||
$this->callback_url = $callback_url;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Přístup odmítnut.";
|
||||
$a->strings["Save Settings"] = "Uložit Nastavení";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["Error when registering buffer connection:"] = "Chyba při registraci buffer spojená";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Nyní jste přihlášen k bufferu.";
|
||||
$a->strings["return to the connector page"] = "návrat ke stránce konektor";
|
||||
$a->strings["Post to Buffer"] = "Příspěvek na Buffer";
|
||||
$a->strings["Buffer Export"] = "Buffer Export";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Přihlásit ke spojení na Buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Povolit Buffer Post Plugin";
|
||||
$a->strings["Post to Buffer by default"] = "Defaultně zaslat na Buffer";
|
||||
$a->strings["Check to delete this preset"] = "Zaškrtnout pro smazání tohoto nastavení";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "Příspěvky jsou zasílány na všechny účty, které jsou defaultně povoleny:";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Přístup odmítnut.';
|
||||
$a->strings['Save Settings'] = 'Uložit Nastavení';
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Chyba při registraci buffer spojená';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Nyní jste přihlášen k bufferu.';
|
||||
$a->strings['return to the connector page'] = 'návrat ke stránce konektor';
|
||||
$a->strings['Post to Buffer'] = 'Příspěvek na Buffer';
|
||||
$a->strings['Buffer Export'] = 'Buffer Export';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Přihlásit ke spojení na Buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Povolit Buffer Post Plugin';
|
||||
$a->strings['Post to Buffer by default'] = 'Defaultně zaslat na Buffer';
|
||||
$a->strings['Check to delete this preset'] = 'Zaškrtnout pro smazání tohoto nastavení';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = 'Příspěvky jsou zasílány na všechny účty, které jsou defaultně povoleny:';
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Zugriff verweigert.";
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["Error when registering buffer connection:"] = "Fehler beim Registrieren des buffer Connectors.";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Du bist nun auf buffer authentifiziert.";
|
||||
$a->strings["return to the connector page"] = "zurück zur Connector Seite";
|
||||
$a->strings["Post to Buffer"] = "Auf buffer veröffentlichen";
|
||||
$a->strings["Buffer Export"] = "Buffer Export";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Authentifiziere deine Verbindung zu buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Buffer Post-Plugin aktivieren";
|
||||
$a->strings["Post to Buffer by default"] = "Standardmäßig auf buffer veröffentlichen";
|
||||
$a->strings["Check to delete this preset"] = "Markieren um dieses Preset zu löschen";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "Beiträge werden an alle Accounts geschickt, die Standardmäßig aktiviert sind.";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Zugriff verweigert.';
|
||||
$a->strings['Save Settings'] = 'Einstellungen speichern';
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Fehler beim Registrieren des buffer Connectors.';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Du bist nun auf buffer authentifiziert.';
|
||||
$a->strings['return to the connector page'] = 'zurück zur Connector Seite';
|
||||
$a->strings['Post to Buffer'] = 'Auf buffer veröffentlichen';
|
||||
$a->strings['Buffer Export'] = 'Buffer Export';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Authentifiziere deine Verbindung zu buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Buffer Post-Plugin aktivieren';
|
||||
$a->strings['Post to Buffer by default'] = 'Standardmäßig auf buffer veröffentlichen';
|
||||
$a->strings['Check to delete this preset'] = 'Markieren um dieses Preset zu löschen';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = 'Beiträge werden an alle Accounts geschickt, die Standardmäßig aktiviert sind.';
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permission refusée.";
|
||||
$a->strings["Save Settings"] = "Enregistrer les Paramètres";
|
||||
$a->strings["Client ID"] = "Identifiant client";
|
||||
$a->strings["Client Secret"] = "Secret Client";
|
||||
$a->strings["Error when registering buffer connection:"] = "Une erreur est survenue lors de la connexion à Buffer :";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Vous êtes maintenant authentifié sur Buffer.";
|
||||
$a->strings["return to the connector page"] = "revenir à la page du connecteur";
|
||||
$a->strings["Post to Buffer"] = "Publier sur Buffer";
|
||||
$a->strings["Buffer Export"] = "Export Buffer";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Authentifier votre connexion à Buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Activer le connecteur Buffer";
|
||||
$a->strings["Post to Buffer by default"] = "Publier sur Buffer par défaut";
|
||||
$a->strings["Check to delete this preset"] = "Cocher pour supprimer ce préréglage";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "Les posts sont envoyés à tous les comptes activés par défault:";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permission refusée.';
|
||||
$a->strings['Save Settings'] = 'Enregistrer les Paramètres';
|
||||
$a->strings['Client ID'] = 'Identifiant client';
|
||||
$a->strings['Client Secret'] = 'Secret Client';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Une erreur est survenue lors de la connexion à Buffer :';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Vous êtes maintenant authentifié sur Buffer.';
|
||||
$a->strings['return to the connector page'] = 'revenir à la page du connecteur';
|
||||
$a->strings['Post to Buffer'] = 'Publier sur Buffer';
|
||||
$a->strings['Buffer Export'] = 'Export Buffer';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Authentifier votre connexion à Buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Activer le connecteur Buffer';
|
||||
$a->strings['Post to Buffer by default'] = 'Publier sur Buffer par défaut';
|
||||
$a->strings['Check to delete this preset'] = 'Cocher pour supprimer ce préréglage';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = 'Les posts sont envoyés à tous les comptes activés par défault:';
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permesso negato.";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
$a->strings["Client ID"] = "Client ID";
|
||||
$a->strings["Client Secret"] = "Client Secret";
|
||||
$a->strings["Error when registering buffer connection:"] = "Errore registrando la connessione a buffer:";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Sei autenticato su buffer.";
|
||||
$a->strings["return to the connector page"] = "ritorna alla pagina del connettore";
|
||||
$a->strings["Post to Buffer"] = "Invia a Buffer";
|
||||
$a->strings["Buffer Export"] = "Esporta Buffer";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Autentica la tua connessione a Buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Abilita il plugin di invio a Buffer";
|
||||
$a->strings["Post to Buffer by default"] = "Invia sempre a Buffer";
|
||||
$a->strings["Check to delete this preset"] = "Seleziona per eliminare questo preset";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "I messaggi andranno a tutti gli account che sono abilitati:";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permesso negato.';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
$a->strings['Client ID'] = 'Client ID';
|
||||
$a->strings['Client Secret'] = 'Client Secret';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Errore registrando la connessione a buffer:';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Sei autenticato su buffer.';
|
||||
$a->strings['return to the connector page'] = 'ritorna alla pagina del connettore';
|
||||
$a->strings['Post to Buffer'] = 'Invia a Buffer';
|
||||
$a->strings['Buffer Export'] = 'Esporta Buffer';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Autentica la tua connessione a Buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Abilita il plugin di invio a Buffer';
|
||||
$a->strings['Post to Buffer by default'] = 'Invia sempre a Buffer';
|
||||
$a->strings['Check to delete this preset'] = 'Seleziona per eliminare questo preset';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = 'I messaggi andranno a tutti gli account che sono abilitati:';
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permissão negada.";
|
||||
$a->strings["Save Settings"] = "Salvar configurações";
|
||||
$a->strings["Client ID"] = "";
|
||||
$a->strings["Client Secret"] = "";
|
||||
$a->strings["Error when registering buffer connection:"] = "Erro ao registrar conexão de buffer:";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Você está autenticado no buffer.";
|
||||
$a->strings["return to the connector page"] = "Volte a página de conectores.";
|
||||
$a->strings["Post to Buffer"] = "Publicar no Buffer";
|
||||
$a->strings["Buffer Export"] = "Exportar Buffer";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Autenticar sua conexão de Buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Habilita plugin para publicar no Buffer";
|
||||
$a->strings["Post to Buffer by default"] = "Publica no Buffer por padrão";
|
||||
$a->strings["Check to delete this preset"] = "Marque para excluir este perfil";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "";
|
||||
if (!function_exists('string_plural_select_pt_br')) {
|
||||
function string_plural_select_pt_br($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permissão negada.';
|
||||
$a->strings['Save Settings'] = 'Salvar configurações';
|
||||
$a->strings['Client ID'] = '';
|
||||
$a->strings['Client Secret'] = '';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Erro ao registrar conexão de buffer:';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Você está autenticado no buffer.';
|
||||
$a->strings['return to the connector page'] = 'Volte a página de conectores.';
|
||||
$a->strings['Post to Buffer'] = 'Publicar no Buffer';
|
||||
$a->strings['Buffer Export'] = 'Exportar Buffer';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Autenticar sua conexão de Buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Habilita plugin para publicar no Buffer';
|
||||
$a->strings['Post to Buffer by default'] = 'Publica no Buffer por padrão';
|
||||
$a->strings['Check to delete this preset'] = 'Marque para excluir este perfil';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = '';
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Permission denied."] = "Permisiune refuzată.";
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
$a->strings["Client ID"] = "ID Client";
|
||||
$a->strings["Client Secret"] = "Cheia Secretă Client";
|
||||
$a->strings["Error when registering buffer connection:"] = "Eroare la înregistrarea conexiunii Buffer:";
|
||||
$a->strings["You are now authenticated to buffer. "] = "Acum sunteți autentificat pe Buffer.";
|
||||
$a->strings["return to the connector page"] = "revenire la pagina de conectare";
|
||||
$a->strings["Post to Buffer"] = "Postați pe Buffer";
|
||||
$a->strings["Buffer Export"] = "Export pe Buffer ";
|
||||
$a->strings["Authenticate your Buffer connection"] = "Autentificați-vă conectarea la Buffer";
|
||||
$a->strings["Enable Buffer Post Plugin"] = "Activare Modul Postare pe Buffer";
|
||||
$a->strings["Post to Buffer by default"] = "Postați implicit pe Buffer";
|
||||
$a->strings["Check to delete this preset"] = "Bifați pentru a șterge această presetare";
|
||||
$a->strings["Posts are going to all accounts that are enabled by default:"] = "Posturile merg către toate conturile care sunt activate implicit:";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Permission denied.'] = 'Permisiune refuzată.';
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
$a->strings['Client ID'] = 'ID Client';
|
||||
$a->strings['Client Secret'] = 'Cheia Secretă Client';
|
||||
$a->strings['Error when registering buffer connection:'] = 'Eroare la înregistrarea conexiunii Buffer:';
|
||||
$a->strings['You are now authenticated to buffer. '] = 'Acum sunteți autentificat pe Buffer.';
|
||||
$a->strings['return to the connector page'] = 'revenire la pagina de conectare';
|
||||
$a->strings['Post to Buffer'] = 'Postați pe Buffer';
|
||||
$a->strings['Buffer Export'] = 'Export pe Buffer ';
|
||||
$a->strings['Authenticate your Buffer connection'] = 'Autentificați-vă conectarea la Buffer';
|
||||
$a->strings['Enable Buffer Post Plugin'] = 'Activare Modul Postare pe Buffer';
|
||||
$a->strings['Post to Buffer by default'] = 'Postați implicit pe Buffer';
|
||||
$a->strings['Check to delete this preset'] = 'Bifați pentru a șterge această presetare';
|
||||
$a->strings['Posts are going to all accounts that are enabled by default:'] = 'Posturile merg către toate conturile care sunt activate implicit:';
|
||||
|
|
|
@ -3,13 +3,19 @@
|
|||
* Name: BugLink
|
||||
* Description: Show link to Friendica bug site at bottom of page
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <mike@macgirvin.com>
|
||||
* Author: Mike Macgirvin <mike@macgirvin.com>.
|
||||
*/
|
||||
function buglink_install()
|
||||
{
|
||||
register_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
|
||||
}
|
||||
|
||||
function buglink_uninstall()
|
||||
{
|
||||
unregister_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
|
||||
}
|
||||
|
||||
function buglink_install() { register_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active'); }
|
||||
|
||||
|
||||
function buglink_uninstall() { unregister_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active'); }
|
||||
|
||||
function buglink_active(&$a,&$b) { $b .= '<div id="buglink_wrapper" style="position: fixed; bottom: 5px; left: 5px;"><a href="https://github.com/friendica/friendica/issues" target="_blank" title="' . t('Report Bug') . '"><img src="addon/buglink/bug-x.gif" alt="' . t('Report Bug') . '" /></a></div>'; }
|
||||
function buglink_active(&$a, &$b)
|
||||
{
|
||||
$b .= '<div id="buglink_wrapper" style="position: fixed; bottom: 5px; left: 5px;"><a href="https://github.com/friendica/friendica/issues" target="_blank" title="'.t('Report Bug').'"><img src="addon/buglink/bug-x.gif" alt="'.t('Report Bug').'" /></a></div>';
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Informar de problema";
|
||||
$a->strings['Report Bug'] = 'Informar de problema';
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Report Bug"] = "Nahlásit chybu";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Report Bug'] = 'Nahlásit chybu';
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Report Bug"] = "Fehler melden.";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Report Bug'] = 'Fehler melden.';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Skribi cimraporton";
|
||||
$a->strings['Report Bug'] = 'Skribi cimraporton';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Informe de errores";
|
||||
$a->strings['Report Bug'] = 'Informe de errores';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Signaler un bug";
|
||||
$a->strings['Report Bug'] = 'Signaler un bug';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Tilkynna bilun";
|
||||
$a->strings['Report Bug'] = 'Tilkynna bilun';
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Report Bug"] = "Segnala un Bug";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Report Bug'] = 'Segnala un Bug';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "";
|
||||
$a->strings['Report Bug'] = '';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Zgłoś problem";
|
||||
$a->strings['Report Bug'] = 'Zgłoś problem';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Relate um Bug";
|
||||
$a->strings['Report Bug'] = 'Relate um Bug';
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Report Bug"] = "Raportează Problema";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Report Bug'] = 'Raportează Problema';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "Сообщить об ошибке";
|
||||
$a->strings['Report Bug'] = 'Сообщить об ошибке';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Report Bug"] = "报案程序错误";
|
||||
$a->strings['Report Bug'] = '报案程序错误';
|
||||
|
|
60
cal/cal.php
60
cal/cal.php
|
@ -8,7 +8,6 @@
|
|||
* Status: Unsupported
|
||||
* ******************************************************************/
|
||||
|
||||
|
||||
function cal_install()
|
||||
{
|
||||
register_hook('plugin_settings', 'addon/cal/cal.php', 'cal_addon_settings');
|
||||
|
@ -29,9 +28,9 @@ function cal_module()
|
|||
function cal_content()
|
||||
{
|
||||
$a = get_app();
|
||||
$o = "";
|
||||
$o = '';
|
||||
if ($a->argc == 1) {
|
||||
$o .= "<h3>".t('Event Export')."</h3><p>".t('You can download public events from: ').$a->get_baseurl()."/cal/username/export/ical</p>";
|
||||
$o .= '<h3>'.t('Event Export').'</h3><p>'.t('You can download public events from: ').$a->get_baseurl().'/cal/username/export/ical</p>';
|
||||
} elseif ($a->argc == 4) {
|
||||
// get the parameters from the request we just received
|
||||
$username = $a->argv[1];
|
||||
|
@ -39,62 +38,65 @@ function cal_content()
|
|||
$format = $a->argv[3];
|
||||
// check that there is a user matching the requested profile
|
||||
$r = q("SELECT uid FROM user WHERE nickname='".$username."' LIMIT 1;");
|
||||
if (count($r))
|
||||
{
|
||||
if (count($r)) {
|
||||
$uid = $r[0]['uid'];
|
||||
} else {
|
||||
killme();
|
||||
}
|
||||
// if we shall do anything other then export, end here
|
||||
if (! $do == 'export' )
|
||||
if (!$do == 'export') {
|
||||
killme();
|
||||
}
|
||||
// check if the user allows us to share the profile
|
||||
$enable = get_pconfig($uid, 'cal', 'enable');
|
||||
if (!$enable == 1) {
|
||||
info(t('The user does not export the calendar.'));
|
||||
|
||||
return;
|
||||
}
|
||||
// we are allowed to show events
|
||||
// get the timezone the user is in
|
||||
$r = q("SELECT timezone FROM user WHERE uid=".$uid." LIMIT 1;");
|
||||
if (count($r))
|
||||
$r = q('SELECT timezone FROM user WHERE uid='.$uid.' LIMIT 1;');
|
||||
if (count($r)) {
|
||||
$timezone = $r[0]['timezone'];
|
||||
}
|
||||
// does the user who requests happen to be the owner of the events
|
||||
// requested? then show all of your events, otherwise only those that
|
||||
// don't have limitations set in allow_cid and allow_gid
|
||||
if (local_user() == $uid) {
|
||||
$r = q("SELECT `start`, `finish`, `adjust`, `summary`, `desc`, `location` FROM `event` WHERE `uid`=".$uid." and `cid`=0;");
|
||||
$r = q('SELECT `start`, `finish`, `adjust`, `summary`, `desc`, `location` FROM `event` WHERE `uid`='.$uid.' and `cid`=0;');
|
||||
} else {
|
||||
$r = q("SELECT `start`, `finish`, `adjust`, `summary`, `desc`, `location` FROM `event` WHERE `allow_cid`='' and `allow_gid`='' and `uid`='".$uid."' and `cid`='0';");
|
||||
}
|
||||
// we have the events that are available for the requestor
|
||||
// now format the output according to the requested format
|
||||
$res = cal_format_output($r, $format, $timezone);
|
||||
if (! $res=='')
|
||||
if (!$res == '') {
|
||||
info($res);
|
||||
}
|
||||
} else {
|
||||
// wrong number of parameters
|
||||
killme();
|
||||
}
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
||||
function cal_format_output($r, $f, $tz)
|
||||
{
|
||||
$res = t('This calendar format is not supported');
|
||||
switch ($f)
|
||||
{
|
||||
switch ($f) {
|
||||
// format the exported data as a CSV file
|
||||
case "csv":
|
||||
header("Content-type: text/csv");
|
||||
case 'csv':
|
||||
header('Content-type: text/csv');
|
||||
$o = '"Subject", "Start Date", "Start Time", "Description", "End Date", "End Time", "Location"'.PHP_EOL;
|
||||
foreach ($r as $rr) {
|
||||
// TODO the time / date entries don't include any information about the
|
||||
// timezone the event is scheduled in :-/
|
||||
$tmp1 = strtotime($rr['start']);
|
||||
$tmp2 = strtotime($rr['finish']);
|
||||
$time_format = "%H:%M:%S";
|
||||
$date_format = "%Y-%m-%d";
|
||||
$time_format = '%H:%M:%S';
|
||||
$date_format = '%Y-%m-%d';
|
||||
$o .= '"'.$rr['summary'].'", "'.strftime($date_format, $tmp1).
|
||||
'", "'.strftime($time_format, $tmp1).'", "'.$rr['desc'].
|
||||
'", "'.strftime($date_format, $tmp2).
|
||||
|
@ -104,8 +106,8 @@ function cal_format_output ($r, $f, $tz)
|
|||
echo $o;
|
||||
killme();
|
||||
|
||||
case "ical":
|
||||
header("Content-type: text/ics");
|
||||
case 'ical':
|
||||
header('Content-type: text/ics');
|
||||
$o = 'BEGIN:VCALENDAR'.PHP_EOL
|
||||
.'VERSION:2.0'.PHP_EOL
|
||||
.'PRODID:-//friendica calendar export//0.1//EN'.PHP_EOL;
|
||||
|
@ -126,21 +128,23 @@ function cal_format_output ($r, $f, $tz)
|
|||
$o .= 'BEGIN:VEVENT'.PHP_EOL;
|
||||
if ($rr[start]) {
|
||||
$tmp = strtotime($rr['start']);
|
||||
$dtformat = "%Y%m%dT%H%M%S".$UTC;
|
||||
$dtformat = '%Y%m%dT%H%M%S'.$UTC;
|
||||
$o .= 'DTSTART:'.strftime($dtformat, $tmp).PHP_EOL;
|
||||
}
|
||||
if ($rr['finish']) {
|
||||
$tmp = strtotime($rr['finish']);
|
||||
$dtformat = "%Y%m%dT%H%M%S".$UTC;
|
||||
$dtformat = '%Y%m%dT%H%M%S'.$UTC;
|
||||
$o .= 'DTEND:'.strftime($dtformat, $tmp).PHP_EOL;
|
||||
}
|
||||
if ($rr['summary'])
|
||||
if ($rr['summary']) {
|
||||
$tmp = $rr['summary'];
|
||||
}
|
||||
$tmp = str_replace(PHP_EOL, PHP_EOL.' ', $tmp);
|
||||
$tmp = addcslashes($tmp, ',;');
|
||||
$o .= 'SUMMARY:'.$tmp.PHP_EOL;
|
||||
if ($rr['desc'])
|
||||
if ($rr['desc']) {
|
||||
$tmp = $rr['desc'];
|
||||
}
|
||||
$tmp = str_replace(PHP_EOL, PHP_EOL.' ', $tmp);
|
||||
$tmp = addcslashes($tmp, ',;');
|
||||
$o .= 'DESCRIPTION:'.$tmp.PHP_EOL;
|
||||
|
@ -156,23 +160,27 @@ function cal_format_output ($r, $f, $tz)
|
|||
echo $o;
|
||||
killme();
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
function cal_addon_settings_post(&$a, &$b)
|
||||
{
|
||||
if (! local_user())
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!x($_POST,'cal-submit'))
|
||||
if (!x($_POST, 'cal-submit')) {
|
||||
return;
|
||||
}
|
||||
|
||||
set_pconfig(local_user(), 'cal', 'enable', intval($_POST['cal-enable']));
|
||||
}
|
||||
function cal_addon_settings(&$a, &$s)
|
||||
{
|
||||
if (! local_user())
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$enabled = get_pconfig(local_user(), 'cal', 'enable');
|
||||
$checked = (($enabled) ? ' checked="checked" ' : '');
|
||||
|
@ -196,5 +204,3 @@ function cal_addon_settings ( &$a, &$s )
|
|||
$s .= '</div>';
|
||||
$s .= '</div>';
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
;
|
||||
$a->strings["Event Export"] = "";
|
||||
$a->strings["You can download public events from: "] = "";
|
||||
$a->strings["The user does not export the calendar."] = "";
|
||||
$a->strings["This calendar format is not supported"] = "";
|
||||
$a->strings["Export Events"] = "";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "";
|
||||
$a->strings["Enable calendar export"] = "";
|
||||
$a->strings["Submit"] = "";
|
||||
|
||||
$a->strings['Event Export'] = '';
|
||||
$a->strings['You can download public events from: '] = '';
|
||||
$a->strings['The user does not export the calendar.'] = '';
|
||||
$a->strings['This calendar format is not supported'] = '';
|
||||
$a->strings['Export Events'] = '';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = '';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = '';
|
||||
$a->strings['Enable calendar export'] = '';
|
||||
$a->strings['Submit'] = '';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Export událostí";
|
||||
$a->strings["You can download public events from: "] = "Veřejné události si můžete stánout z:";
|
||||
$a->strings["The user does not export the calendar."] = "Uživatel kalenář neexportuje.";
|
||||
$a->strings["This calendar format is not supported"] = "Tento kalendářový formát není podporován.";
|
||||
$a->strings["Export Events"] = "Export událostí";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Pokud je toto povoleno, vaše veřejné události budou viditelné na";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "Aktuálně podporované formáty jsou ical a csv.";
|
||||
$a->strings["Enable calendar export"] = "Povolit export kalendáře";
|
||||
$a->strings["Save Settings"] = "Uložit Nastavení";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = 'Export událostí';
|
||||
$a->strings['You can download public events from: '] = 'Veřejné události si můžete stánout z:';
|
||||
$a->strings['The user does not export the calendar.'] = 'Uživatel kalenář neexportuje.';
|
||||
$a->strings['This calendar format is not supported'] = 'Tento kalendářový formát není podporován.';
|
||||
$a->strings['Export Events'] = 'Export událostí';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Pokud je toto povoleno, vaše veřejné události budou viditelné na';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'Aktuálně podporované formáty jsou ical a csv.';
|
||||
$a->strings['Enable calendar export'] = 'Povolit export kalendáře';
|
||||
$a->strings['Save Settings'] = 'Uložit Nastavení';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Ereignis Export";
|
||||
$a->strings["You can download public events from: "] = "Du kannst öffentliche Ereignisse hier herunterladen;";
|
||||
$a->strings["The user does not export the calendar."] = "Diese_r Nutzer_in exportiert den Kalender nicht.";
|
||||
$a->strings["This calendar format is not supported"] = "Dieses Kalenderformat wird nicht unterstützt.";
|
||||
$a->strings["Export Events"] = "Exportiere Ereignisse";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Wenn dies aktiviert ist, werden alle öffentliche Ereignisse unter folgender URL verfügbar sein";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "Derzeit werden die Formate ical und csv unterstützt.";
|
||||
$a->strings["Enable calendar export"] = "Kalenderexport aktivieren";
|
||||
$a->strings["Save Settings"] = "Einstellungen speichern";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = 'Ereignis Export';
|
||||
$a->strings['You can download public events from: '] = 'Du kannst öffentliche Ereignisse hier herunterladen;';
|
||||
$a->strings['The user does not export the calendar.'] = 'Diese_r Nutzer_in exportiert den Kalender nicht.';
|
||||
$a->strings['This calendar format is not supported'] = 'Dieses Kalenderformat wird nicht unterstützt.';
|
||||
$a->strings['Export Events'] = 'Exportiere Ereignisse';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Wenn dies aktiviert ist, werden alle öffentliche Ereignisse unter folgender URL verfügbar sein';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'Derzeit werden die Formate ical und csv unterstützt.';
|
||||
$a->strings['Enable calendar export'] = 'Kalenderexport aktivieren';
|
||||
$a->strings['Save Settings'] = 'Einstellungen speichern';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Exportation d'événement";
|
||||
$a->strings["You can download public events from: "] = "Vous pouvez télécharger les événements publiques de :";
|
||||
$a->strings["The user does not export the calendar."] = "L'utilisateur n'exporte pas le calendrier.";
|
||||
$a->strings["This calendar format is not supported"] = "Ce format de calendrier n'est pas pris en charge";
|
||||
$a->strings["Export Events"] = "Exporter les événements";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Si activé, vos événements publiques seront disponible à";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "Les formats actuellement pris en charge sont ical et csv.";
|
||||
$a->strings["Enable calendar export"] = "Activer l'export de calendrier";
|
||||
$a->strings["Save Settings"] = "Sauvegarder les paramètres";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = "Exportation d'événement";
|
||||
$a->strings['You can download public events from: '] = 'Vous pouvez télécharger les événements publiques de :';
|
||||
$a->strings['The user does not export the calendar.'] = "L'utilisateur n'exporte pas le calendrier.";
|
||||
$a->strings['This calendar format is not supported'] = "Ce format de calendrier n'est pas pris en charge";
|
||||
$a->strings['Export Events'] = 'Exporter les événements';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Si activé, vos événements publiques seront disponible à';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'Les formats actuellement pris en charge sont ical et csv.';
|
||||
$a->strings['Enable calendar export'] = "Activer l'export de calendrier";
|
||||
$a->strings['Save Settings'] = 'Sauvegarder les paramètres';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Esporta Evento";
|
||||
$a->strings["You can download public events from: "] = "Puoi scaricare gli eventi publici da:";
|
||||
$a->strings["The user does not export the calendar."] = "L'utente non esporta il calendario.";
|
||||
$a->strings["This calendar format is not supported"] = "Il formato del calendario non è supportato";
|
||||
$a->strings["Export Events"] = "Esporta Eventi";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Se abilitato, i tuoi eventi pubblici saranno disponibili a";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "I formati supportati sono ical e csv.";
|
||||
$a->strings["Enable calendar export"] = "Abilita esporazione calendario";
|
||||
$a->strings["Save Settings"] = "Salva Impostazioni";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = 'Esporta Evento';
|
||||
$a->strings['You can download public events from: '] = 'Puoi scaricare gli eventi publici da:';
|
||||
$a->strings['The user does not export the calendar.'] = "L'utente non esporta il calendario.";
|
||||
$a->strings['This calendar format is not supported'] = 'Il formato del calendario non è supportato';
|
||||
$a->strings['Export Events'] = 'Esporta Eventi';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Se abilitato, i tuoi eventi pubblici saranno disponibili a';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'I formati supportati sono ical e csv.';
|
||||
$a->strings['Enable calendar export'] = 'Abilita esporazione calendario';
|
||||
$a->strings['Save Settings'] = 'Salva Impostazioni';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Exportar Evento";
|
||||
$a->strings["You can download public events from: "] = "Você pode baixar eventos públicos de:";
|
||||
$a->strings["The user does not export the calendar."] = "O usuário não exportou o calendário.";
|
||||
$a->strings["This calendar format is not supported"] = "Esse formato de calendário não é suportado.";
|
||||
$a->strings["Export Events"] = "Exporta Eventos";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Se isso estiver habiltiado, seus eventos públicos estarão disponíveis";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "Os formatos disponíveis atualmente são ical e csv.";
|
||||
$a->strings["Enable calendar export"] = "Habilite exportar calendário";
|
||||
$a->strings["Save Settings"] = "Salvar as Configurações";
|
||||
if (!function_exists('string_plural_select_pt_br')) {
|
||||
function string_plural_select_pt_br($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = 'Exportar Evento';
|
||||
$a->strings['You can download public events from: '] = 'Você pode baixar eventos públicos de:';
|
||||
$a->strings['The user does not export the calendar.'] = 'O usuário não exportou o calendário.';
|
||||
$a->strings['This calendar format is not supported'] = 'Esse formato de calendário não é suportado.';
|
||||
$a->strings['Export Events'] = 'Exporta Eventos';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Se isso estiver habiltiado, seus eventos públicos estarão disponíveis';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'Os formatos disponíveis atualmente são ical e csv.';
|
||||
$a->strings['Enable calendar export'] = 'Habilite exportar calendário';
|
||||
$a->strings['Save Settings'] = 'Salvar as Configurações';
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_ro")) {
|
||||
function string_plural_select_ro($n){
|
||||
return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
|
||||
}}
|
||||
;
|
||||
$a->strings["Event Export"] = "Exportare Eveniment";
|
||||
$a->strings["You can download public events from: "] = "Puteți descărca evenimente publice de la:";
|
||||
$a->strings["The user does not export the calendar."] = "Utilizatorul nu își exportă calendarul.";
|
||||
$a->strings["This calendar format is not supported"] = "Acest format de calendar nu este acceptat";
|
||||
$a->strings["Export Events"] = "Exportați Evenimente";
|
||||
$a->strings["If this is enabled, your public events will be available at"] = "Dacă este activat, evenimente dvs publice vor fi disponibile pe";
|
||||
$a->strings["Currently supported formats are ical and csv."] = "Formate acceptate în prezent sunt ical şi csv.";
|
||||
$a->strings["Enable calendar export"] = "Activați exportarea calendarului";
|
||||
$a->strings["Save Settings"] = "Salvare Configurări";
|
||||
if (!function_exists('string_plural_select_ro')) {
|
||||
function string_plural_select_ro($n)
|
||||
{
|
||||
return $n == 1 ? 0 : ((($n % 100 > 19) || (($n % 100 == 0) && ($n != 0))) ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Event Export'] = 'Exportare Eveniment';
|
||||
$a->strings['You can download public events from: '] = 'Puteți descărca evenimente publice de la:';
|
||||
$a->strings['The user does not export the calendar.'] = 'Utilizatorul nu își exportă calendarul.';
|
||||
$a->strings['This calendar format is not supported'] = 'Acest format de calendar nu este acceptat';
|
||||
$a->strings['Export Events'] = 'Exportați Evenimente';
|
||||
$a->strings['If this is enabled, your public events will be available at'] = 'Dacă este activat, evenimente dvs publice vor fi disponibile pe';
|
||||
$a->strings['Currently supported formats are ical and csv.'] = 'Formate acceptate în prezent sunt ical şi csv.';
|
||||
$a->strings['Enable calendar export'] = 'Activați exportarea calendarului';
|
||||
$a->strings['Save Settings'] = 'Salvare Configurări';
|
||||
|
|
|
@ -3,32 +3,30 @@
|
|||
* Name: Calculator App
|
||||
* Description: Simple Calculator Application
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>.
|
||||
*/
|
||||
|
||||
|
||||
function calc_install() {
|
||||
function calc_install()
|
||||
{
|
||||
register_hook('app_menu', 'addon/calc/calc.php', 'calc_app_menu');
|
||||
}
|
||||
|
||||
function calc_uninstall() {
|
||||
function calc_uninstall()
|
||||
{
|
||||
unregister_hook('app_menu', 'addon/calc/calc.php', 'calc_app_menu');
|
||||
|
||||
}
|
||||
|
||||
function calc_app_menu($a,&$b) {
|
||||
function calc_app_menu($a, &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="calc">Calculator</a></div>';
|
||||
}
|
||||
|
||||
function calc_module()
|
||||
{
|
||||
}
|
||||
|
||||
function calc_module() {}
|
||||
|
||||
|
||||
|
||||
|
||||
function calc_init($a) {
|
||||
|
||||
$x = <<< EOT
|
||||
function calc_init($a)
|
||||
{
|
||||
$x = <<< 'EOT'
|
||||
|
||||
<script language="JavaScript">
|
||||
/**************************************
|
||||
|
@ -287,11 +285,11 @@ EOT;
|
|||
$a->page['htmlhead'] .= $x;
|
||||
}
|
||||
|
||||
function calc_content($app) {
|
||||
|
||||
function calc_content($app)
|
||||
{
|
||||
$o = '';
|
||||
|
||||
$o .= <<< EOT
|
||||
$o .= <<< 'EOT'
|
||||
|
||||
<h3>Calculator</h3>
|
||||
<br /><br />
|
||||
|
@ -358,6 +356,6 @@ $o .= <<< EOT
|
|||
</td></tr></tbody></table>
|
||||
|
||||
EOT;
|
||||
return $o;
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
|
|
@ -3,24 +3,24 @@
|
|||
* Name: Community home
|
||||
* Description: Show last community activity in homepage
|
||||
* Version: 2.0
|
||||
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrixxm>
|
||||
* Author: Fabio Comuni <http://kirgroup.com/profile/fabrixxm>.
|
||||
*/
|
||||
require_once 'mod/community.php';
|
||||
|
||||
|
||||
require_once('mod/community.php');
|
||||
|
||||
|
||||
function communityhome_install() {
|
||||
function communityhome_install()
|
||||
{
|
||||
register_hook('home_content', 'addon/communityhome/communityhome.php', 'communityhome_home');
|
||||
logger("installed communityhome");
|
||||
logger('installed communityhome');
|
||||
}
|
||||
|
||||
function communityhome_uninstall() {
|
||||
function communityhome_uninstall()
|
||||
{
|
||||
unregister_hook('home_content', 'addon/communityhome/communityhome.php', 'communityhome_home');
|
||||
logger("removed communityhome");
|
||||
logger('removed communityhome');
|
||||
}
|
||||
|
||||
function communityhome_home(&$a, &$o){
|
||||
function communityhome_home(&$a, &$o)
|
||||
{
|
||||
// custom css
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/addon/communityhome/communityhome.css" media="all" />';
|
||||
|
||||
|
@ -34,20 +34,21 @@ function communityhome_home(&$a, &$o){
|
|||
// login form
|
||||
$aside['$login_title'] = t('Login');
|
||||
$aside['$login_form'] = login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
|
||||
} else
|
||||
} else {
|
||||
$aside = array(
|
||||
//'$tab_1' => t('Login'),
|
||||
//'$tab_2' => t('OpenID'),
|
||||
//'$noOid' => get_config('system','no_openid'),
|
||||
);
|
||||
}
|
||||
|
||||
// last 12 users
|
||||
if (get_config('communityhome', 'showlastusers') === true) {
|
||||
$aside['$lastusers_title'] = t('Latest users');
|
||||
$aside['$lastusers_items'] = array();
|
||||
$sql_extra = "";
|
||||
$publish = (get_config('system','publish_all') ? '' : " AND `publish` = 1 " );
|
||||
$order = " ORDER BY `register_date` DESC ";
|
||||
$sql_extra = '';
|
||||
$publish = (get_config('system', 'publish_all') ? '' : ' AND `publish` = 1 ');
|
||||
$order = ' ORDER BY `register_date` DESC ';
|
||||
|
||||
$r = q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname`
|
||||
FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||
|
@ -55,7 +56,7 @@ function communityhome_home(&$a, &$o){
|
|||
0,
|
||||
12
|
||||
);
|
||||
# $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
||||
// $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
||||
$tpl = get_markup_template('directory_item.tpl', 'addon/communityhome/');
|
||||
if (count($r)) {
|
||||
$photo = 'thumb';
|
||||
|
@ -74,7 +75,7 @@ function communityhome_home(&$a, &$o){
|
|||
// 12 most active users (by posts and contacts)
|
||||
// this query don't work on some mysql versions
|
||||
if (get_config('communityhome', 'showactiveusers') === true) {
|
||||
$r = q("SELECT `uni`.`contacts`,`uni`.`items`, `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname` FROM
|
||||
$r = q('SELECT `uni`.`contacts`,`uni`.`items`, `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname` FROM
|
||||
(SELECT COUNT(*) as `contacts`, `uid` FROM `contact` WHERE `self`=0 GROUP BY `uid`) AS `con`,
|
||||
(SELECT COUNT(*) as `items`, `uid` FROM `item` WHERE `item`.`changed` > DATE(NOW() - INTERVAL 1 MONTH) AND `item`.`wall` = 1 GROUP BY `uid`) AS `ite`,
|
||||
(
|
||||
|
@ -86,7 +87,7 @@ function communityhome_home(&$a, &$o){
|
|||
AND `uni`.`uid`=`profile`.`uid` AND `profile`.`publish`=1
|
||||
GROUP BY `uid`
|
||||
ORDER BY `items` DESC,`contacts` DESC
|
||||
LIMIT 0,10");
|
||||
LIMIT 0,10');
|
||||
if ($r && count($r)) {
|
||||
$aside['$activeusers_title'] = t('Most active users');
|
||||
$aside['$activeusers_items'] = array();
|
||||
|
@ -98,7 +99,7 @@ function communityhome_home(&$a, &$o){
|
|||
'$id' => $rr['id'],
|
||||
'$profile_link' => $profile_link,
|
||||
'$photo' => $rr[$photo],
|
||||
'$alt_text' => sprintf("%s (%s posts, %s contacts)",$rr['name'], ($rr['items']?$rr['items']:'0'), ($rr['contacts']?$rr['contacts']:'0'))
|
||||
'$alt_text' => sprintf('%s (%s posts, %s contacts)', $rr['name'], ($rr['items'] ? $rr['items'] : '0'), ($rr['contacts'] ? $rr['contacts'] : '0')),
|
||||
));
|
||||
$aside['$activeusers_items'][] = $entry;
|
||||
}
|
||||
|
@ -123,9 +124,8 @@ function communityhome_home(&$a, &$o){
|
|||
dbesc(t('Profile Photos'))
|
||||
);
|
||||
|
||||
|
||||
if (count($r)) {
|
||||
# $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
||||
// $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
|
||||
$tpl = get_markup_template('directory_item.tpl', 'addon/communityhome/');
|
||||
foreach ($r as $rr) {
|
||||
$photo_page = $a->get_baseurl().'/photos/'.$rr['nickname'].'/image/'.$rr['resource-id'];
|
||||
|
@ -135,7 +135,7 @@ function communityhome_home(&$a, &$o){
|
|||
'$id' => $rr['id'],
|
||||
'$profile_link' => $photo_page,
|
||||
'$photo' => $photo_url,
|
||||
'$alt_text' => $rr['username']." : ".$rr['desc'],
|
||||
'$alt_text' => $rr['username'].' : '.$rr['desc'],
|
||||
));
|
||||
|
||||
$aside['$photos_items'][] = $entry;
|
||||
|
@ -176,7 +176,8 @@ function communityhome_home(&$a, &$o){
|
|||
default:
|
||||
if ($rr['resource-id']) {
|
||||
$post_type = t('photo');
|
||||
$m=array(); preg_match("/\[url=([^]]*)\]/", $rr['body'], $m);
|
||||
$m = array();
|
||||
preg_match("/\[url=([^]]*)\]/", $rr['body'], $m);
|
||||
$rr['plink'] = $m[1];
|
||||
} else {
|
||||
$post_type = t('status');
|
||||
|
@ -185,27 +186,29 @@ function communityhome_home(&$a, &$o){
|
|||
$plink = '<a href="'.$rr['plink'].'">'.$post_type.'</a>';
|
||||
|
||||
$aside['$like_items'][] = sprintf(t('%1$s likes %2$s\'s %3$s'), $author, $objauthor, $plink);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
# $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl');
|
||||
// $tpl = file_get_contents(dirname(__file__).'/communityhome.tpl');
|
||||
$tpl = get_markup_template('communityhome.tpl', 'addon/communityhome/');
|
||||
$a->page['aside'] = replace_macros($tpl, $aside);
|
||||
|
||||
$o = '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
|
||||
$o = '<h1>'.((x($a->config, 'sitename')) ? sprintf(t('Welcome to %s'), $a->config['sitename']) : '').'</h1>';
|
||||
|
||||
if(file_exists('home.html'))
|
||||
if (file_exists('home.html')) {
|
||||
$o = file_get_contents('home.html');
|
||||
}
|
||||
|
||||
if (get_config('communityhome', 'showcommunitystream') === true) {
|
||||
$oldset = get_config('system', 'community_page_style');
|
||||
if ($oldset == CP_NO_COMMUNITY_PAGE)
|
||||
if ($oldset == CP_NO_COMMUNITY_PAGE) {
|
||||
set_config('system', 'community_page_style', CP_USERS_ON_SERVER);
|
||||
}
|
||||
|
||||
$o .= community_content($a, 1);
|
||||
|
||||
if ($oldset == CP_NO_COMMUNITY_PAGE)
|
||||
if ($oldset == CP_NO_COMMUNITY_PAGE) {
|
||||
set_config('system', 'community_page_style', $oldset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Identifica't";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Últims usuaris";
|
||||
$a->strings["Most active users"] = "Usuaris més actius";
|
||||
$a->strings["Latest photos"] = "Darreres fotos";
|
||||
$a->strings["Contact Photos"] = "Fotos de Contacte";
|
||||
$a->strings["Profile Photos"] = "Fotos del Perfil";
|
||||
$a->strings["Latest likes"] = "Darrers agrada";
|
||||
$a->strings["event"] = "esdeveniment";
|
||||
$a->strings["status"] = "estatus";
|
||||
$a->strings["photo"] = "foto";
|
||||
$a->strings["Welcome to %s"] = "Benvingut a %s";
|
||||
$a->strings['Login'] = "Identifica't";
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Últims usuaris';
|
||||
$a->strings['Most active users'] = 'Usuaris més actius';
|
||||
$a->strings['Latest photos'] = 'Darreres fotos';
|
||||
$a->strings['Contact Photos'] = 'Fotos de Contacte';
|
||||
$a->strings['Profile Photos'] = 'Fotos del Perfil';
|
||||
$a->strings['Latest likes'] = 'Darrers agrada';
|
||||
$a->strings['event'] = 'esdeveniment';
|
||||
$a->strings['status'] = 'estatus';
|
||||
$a->strings['photo'] = 'foto';
|
||||
$a->strings['Welcome to %s'] = 'Benvingut a %s';
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_cs")) {
|
||||
function string_plural_select_cs($n){
|
||||
return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
|
||||
}}
|
||||
;
|
||||
$a->strings["Login"] = "Přihlásit se";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Poslední uživatelé";
|
||||
$a->strings["Most active users"] = "Nejaktivnější uživatelé";
|
||||
$a->strings["Latest photos"] = "Poslední fotky";
|
||||
$a->strings["Contact Photos"] = "Fotogalerie kontaktu";
|
||||
$a->strings["Profile Photos"] = "Profilové fotografie";
|
||||
$a->strings["Latest likes"] = "Poslední \"líbí se mi\"";
|
||||
$a->strings["event"] = "událost";
|
||||
$a->strings["status"] = "Stav";
|
||||
$a->strings["photo"] = "fotografie";
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = "Uživateli %1\$s se líbí %3\$s uživatele %2\$s";
|
||||
$a->strings["Welcome to %s"] = "Vítá Vás %s";
|
||||
if (!function_exists('string_plural_select_cs')) {
|
||||
function string_plural_select_cs($n)
|
||||
{
|
||||
return ($n == 1) ? 0 : ($n >= 2 && $n <= 4) ? 1 : 2;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Login'] = 'Přihlásit se';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Poslední uživatelé';
|
||||
$a->strings['Most active users'] = 'Nejaktivnější uživatelé';
|
||||
$a->strings['Latest photos'] = 'Poslední fotky';
|
||||
$a->strings['Contact Photos'] = 'Fotogalerie kontaktu';
|
||||
$a->strings['Profile Photos'] = 'Profilové fotografie';
|
||||
$a->strings['Latest likes'] = 'Poslední "líbí se mi"';
|
||||
$a->strings['event'] = 'událost';
|
||||
$a->strings['status'] = 'Stav';
|
||||
$a->strings['photo'] = 'fotografie';
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = 'Uživateli %1$s se líbí %3$s uživatele %2$s';
|
||||
$a->strings['Welcome to %s'] = 'Vítá Vás %s';
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_de")) {
|
||||
function string_plural_select_de($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Login"] = "Anmeldung";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Letzte Benutzer";
|
||||
$a->strings["Most active users"] = "Aktivste Nutzer";
|
||||
$a->strings["Latest photos"] = "Neueste Fotos";
|
||||
$a->strings["Contact Photos"] = "Kontaktbilder";
|
||||
$a->strings["Profile Photos"] = "Profilbilder";
|
||||
$a->strings["Latest likes"] = "Neueste Favoriten";
|
||||
$a->strings["event"] = "Veranstaltung";
|
||||
$a->strings["status"] = "Status";
|
||||
$a->strings["photo"] = "Foto";
|
||||
if (!function_exists('string_plural_select_de')) {
|
||||
function string_plural_select_de($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Login'] = 'Anmeldung';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Letzte Benutzer';
|
||||
$a->strings['Most active users'] = 'Aktivste Nutzer';
|
||||
$a->strings['Latest photos'] = 'Neueste Fotos';
|
||||
$a->strings['Contact Photos'] = 'Kontaktbilder';
|
||||
$a->strings['Profile Photos'] = 'Profilbilder';
|
||||
$a->strings['Latest likes'] = 'Neueste Favoriten';
|
||||
$a->strings['event'] = 'Veranstaltung';
|
||||
$a->strings['status'] = 'Status';
|
||||
$a->strings['photo'] = 'Foto';
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = "%1\$s mag %2\$s's %3\$s";
|
||||
$a->strings["Welcome to %s"] = "Willkommen zu %s";
|
||||
$a->strings['Welcome to %s'] = 'Willkommen zu %s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Ensaluti";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Ĵusaj uzantoj";
|
||||
$a->strings["Most active users"] = "Plej aktivaj uzantoj";
|
||||
$a->strings["Latest photos"] = "Ĵusaj bildoj";
|
||||
$a->strings["Contact Photos"] = "Kontaktbildoj";
|
||||
$a->strings["Profile Photos"] = "Profilbildoj";
|
||||
$a->strings["Latest likes"] = "Ĵusaj ŝatitaĵoj";
|
||||
$a->strings["event"] = "okazo";
|
||||
$a->strings["status"] = "staton";
|
||||
$a->strings["photo"] = "bildo";
|
||||
$a->strings["Welcome to %s"] = "Bonvenon ĉe %s";
|
||||
$a->strings['Login'] = 'Ensaluti';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Ĵusaj uzantoj';
|
||||
$a->strings['Most active users'] = 'Plej aktivaj uzantoj';
|
||||
$a->strings['Latest photos'] = 'Ĵusaj bildoj';
|
||||
$a->strings['Contact Photos'] = 'Kontaktbildoj';
|
||||
$a->strings['Profile Photos'] = 'Profilbildoj';
|
||||
$a->strings['Latest likes'] = 'Ĵusaj ŝatitaĵoj';
|
||||
$a->strings['event'] = 'okazo';
|
||||
$a->strings['status'] = 'staton';
|
||||
$a->strings['photo'] = 'bildo';
|
||||
$a->strings['Welcome to %s'] = 'Bonvenon ĉe %s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Acceder";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Últimos usuarios";
|
||||
$a->strings["Most active users"] = "Usuarios más activos";
|
||||
$a->strings["Latest photos"] = "Últimas fotos";
|
||||
$a->strings["Contact Photos"] = "Foto del contacto";
|
||||
$a->strings["Profile Photos"] = "Foto del perfil";
|
||||
$a->strings["Latest likes"] = "Últimos me gusta";
|
||||
$a->strings["event"] = "evento";
|
||||
$a->strings["status"] = "estado";
|
||||
$a->strings["photo"] = "foto";
|
||||
$a->strings["Welcome to %s"] = "Bienvenido a %s";
|
||||
$a->strings['Login'] = 'Acceder';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Últimos usuarios';
|
||||
$a->strings['Most active users'] = 'Usuarios más activos';
|
||||
$a->strings['Latest photos'] = 'Últimas fotos';
|
||||
$a->strings['Contact Photos'] = 'Foto del contacto';
|
||||
$a->strings['Profile Photos'] = 'Foto del perfil';
|
||||
$a->strings['Latest likes'] = 'Últimos me gusta';
|
||||
$a->strings['event'] = 'evento';
|
||||
$a->strings['status'] = 'estado';
|
||||
$a->strings['photo'] = 'foto';
|
||||
$a->strings['Welcome to %s'] = 'Bienvenido a %s';
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_fr")) {
|
||||
function string_plural_select_fr($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Login"] = "Identifiant";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Derniers utilisateurs";
|
||||
$a->strings["Most active users"] = "Utilisateurs les plus actifs";
|
||||
$a->strings["Latest photos"] = "Dernières photos";
|
||||
$a->strings["Contact Photos"] = "Photos du contact";
|
||||
$a->strings["Profile Photos"] = "Photos de profil";
|
||||
$a->strings["Latest likes"] = "Derniers likes";
|
||||
$a->strings["event"] = "événement";
|
||||
$a->strings["status"] = "statut";
|
||||
$a->strings["photo"] = "photo";
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = "%1\$s aime %3\$s de %2\$s";
|
||||
$a->strings["Welcome to %s"] = "Bienvenue sur %s";
|
||||
if (!function_exists('string_plural_select_fr')) {
|
||||
function string_plural_select_fr($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Login'] = 'Identifiant';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Derniers utilisateurs';
|
||||
$a->strings['Most active users'] = 'Utilisateurs les plus actifs';
|
||||
$a->strings['Latest photos'] = 'Dernières photos';
|
||||
$a->strings['Contact Photos'] = 'Photos du contact';
|
||||
$a->strings['Profile Photos'] = 'Photos de profil';
|
||||
$a->strings['Latest likes'] = 'Derniers likes';
|
||||
$a->strings['event'] = 'événement';
|
||||
$a->strings['status'] = 'statut';
|
||||
$a->strings['photo'] = 'photo';
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = '%1$s aime %3$s de %2$s';
|
||||
$a->strings['Welcome to %s'] = 'Bienvenue sur %s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Innskrá";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "";
|
||||
$a->strings["Most active users"] = "Ofvirkustu notendurnir";
|
||||
$a->strings["Latest photos"] = "";
|
||||
$a->strings["Contact Photos"] = "Myndir tengiliðs";
|
||||
$a->strings["Profile Photos"] = "Forsíðu myndir";
|
||||
$a->strings["Latest likes"] = "";
|
||||
$a->strings["event"] = "atburður";
|
||||
$a->strings["status"] = "staða";
|
||||
$a->strings["photo"] = "mynd";
|
||||
$a->strings["Welcome to %s"] = "Velkomin(n) til %s";
|
||||
$a->strings['Login'] = 'Innskrá';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = '';
|
||||
$a->strings['Most active users'] = 'Ofvirkustu notendurnir';
|
||||
$a->strings['Latest photos'] = '';
|
||||
$a->strings['Contact Photos'] = 'Myndir tengiliðs';
|
||||
$a->strings['Profile Photos'] = 'Forsíðu myndir';
|
||||
$a->strings['Latest likes'] = '';
|
||||
$a->strings['event'] = 'atburður';
|
||||
$a->strings['status'] = 'staða';
|
||||
$a->strings['photo'] = 'mynd';
|
||||
$a->strings['Welcome to %s'] = 'Velkomin(n) til %s';
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_it")) {
|
||||
function string_plural_select_it($n){
|
||||
return ($n != 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Login"] = "Accedi";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Ultimi utenti";
|
||||
$a->strings["Most active users"] = "Utenti più attivi";
|
||||
$a->strings["Latest photos"] = "Ultime foto";
|
||||
$a->strings["Contact Photos"] = "Foto dei contatti";
|
||||
$a->strings["Profile Photos"] = "Foto del profilo";
|
||||
$a->strings["Latest likes"] = "Ultimi \"mi piace\"";
|
||||
$a->strings["event"] = "l'evento";
|
||||
$a->strings["status"] = "lo stato";
|
||||
$a->strings["photo"] = "la foto";
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = "a %1\$s piace %2\$s di %3\$s";
|
||||
$a->strings["Welcome to %s"] = "Benvenuto su %s";
|
||||
if (!function_exists('string_plural_select_it')) {
|
||||
function string_plural_select_it($n)
|
||||
{
|
||||
return $n != 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Login'] = 'Accedi';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Ultimi utenti';
|
||||
$a->strings['Most active users'] = 'Utenti più attivi';
|
||||
$a->strings['Latest photos'] = 'Ultime foto';
|
||||
$a->strings['Contact Photos'] = 'Foto dei contatti';
|
||||
$a->strings['Profile Photos'] = 'Foto del profilo';
|
||||
$a->strings['Latest likes'] = 'Ultimi "mi piace"';
|
||||
$a->strings['event'] = "l'evento";
|
||||
$a->strings['status'] = 'lo stato';
|
||||
$a->strings['photo'] = 'la foto';
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = 'a %1$s piace %2$s di %3$s';
|
||||
$a->strings['Welcome to %s'] = 'Benvenuto su %s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Logg inn";
|
||||
$a->strings["OpenID"] = "";
|
||||
$a->strings["Latest users"] = "";
|
||||
$a->strings["Most active users"] = "";
|
||||
$a->strings["Latest photos"] = "";
|
||||
$a->strings["Contact Photos"] = "Kontaktbilder";
|
||||
$a->strings["Profile Photos"] = "Profilbilder";
|
||||
$a->strings["Latest likes"] = "";
|
||||
$a->strings["event"] = "hendelse";
|
||||
$a->strings["status"] = "status";
|
||||
$a->strings["photo"] = "bilde";
|
||||
$a->strings["Welcome to %s"] = "Velkommen til %s";
|
||||
$a->strings['Login'] = 'Logg inn';
|
||||
$a->strings['OpenID'] = '';
|
||||
$a->strings['Latest users'] = '';
|
||||
$a->strings['Most active users'] = '';
|
||||
$a->strings['Latest photos'] = '';
|
||||
$a->strings['Contact Photos'] = 'Kontaktbilder';
|
||||
$a->strings['Profile Photos'] = 'Profilbilder';
|
||||
$a->strings['Latest likes'] = '';
|
||||
$a->strings['event'] = 'hendelse';
|
||||
$a->strings['status'] = 'status';
|
||||
$a->strings['photo'] = 'bilde';
|
||||
$a->strings['Welcome to %s'] = 'Velkommen til %s';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
$a->strings["Login"] = "Login";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Ostatni użytkownicy";
|
||||
$a->strings["Most active users"] = "najaktywniejsi użytkownicy";
|
||||
$a->strings["Latest photos"] = "Ostatnie zdjęcia";
|
||||
$a->strings["Contact Photos"] = "Zdjęcia kontaktu";
|
||||
$a->strings["Profile Photos"] = "Zdjęcia profilowe";
|
||||
$a->strings["Latest likes"] = "Ostatnie polubienia";
|
||||
$a->strings["event"] = "wydarzenie";
|
||||
$a->strings["status"] = "status";
|
||||
$a->strings["photo"] = "zdjęcie";
|
||||
$a->strings["Welcome to %s"] = "Witamy w %s";
|
||||
$a->strings['Login'] = 'Login';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Ostatni użytkownicy';
|
||||
$a->strings['Most active users'] = 'najaktywniejsi użytkownicy';
|
||||
$a->strings['Latest photos'] = 'Ostatnie zdjęcia';
|
||||
$a->strings['Contact Photos'] = 'Zdjęcia kontaktu';
|
||||
$a->strings['Profile Photos'] = 'Zdjęcia profilowe';
|
||||
$a->strings['Latest likes'] = 'Ostatnie polubienia';
|
||||
$a->strings['event'] = 'wydarzenie';
|
||||
$a->strings['status'] = 'status';
|
||||
$a->strings['photo'] = 'zdjęcie';
|
||||
$a->strings['Welcome to %s'] = 'Witamy w %s';
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(! function_exists("string_plural_select_pt_br")) {
|
||||
function string_plural_select_pt_br($n){
|
||||
return ($n > 1);;
|
||||
}}
|
||||
;
|
||||
$a->strings["Login"] = "Entrar";
|
||||
$a->strings["OpenID"] = "OpenID";
|
||||
$a->strings["Latest users"] = "Usuários mais recentes";
|
||||
$a->strings["Most active users"] = "Usuários mais ativos";
|
||||
$a->strings["Latest photos"] = "Fotos mais recentes";
|
||||
$a->strings["Contact Photos"] = "Fotos dos Contatos";
|
||||
$a->strings["Profile Photos"] = "Fotos do Perfil";
|
||||
$a->strings["Latest likes"] = "Curtidas recentes";
|
||||
$a->strings["event"] = "evento";
|
||||
$a->strings["status"] = "status";
|
||||
$a->strings["photo"] = "foto";
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = "%1\$s curtiu %2\$s que publicou %3\$s";
|
||||
$a->strings["Welcome to %s"] = "Bem-vindo a %s";
|
||||
if (!function_exists('string_plural_select_pt_br')) {
|
||||
function string_plural_select_pt_br($n)
|
||||
{
|
||||
return $n > 1;
|
||||
}
|
||||
}
|
||||
|
||||
$a->strings['Login'] = 'Entrar';
|
||||
$a->strings['OpenID'] = 'OpenID';
|
||||
$a->strings['Latest users'] = 'Usuários mais recentes';
|
||||
$a->strings['Most active users'] = 'Usuários mais ativos';
|
||||
$a->strings['Latest photos'] = 'Fotos mais recentes';
|
||||
$a->strings['Contact Photos'] = 'Fotos dos Contatos';
|
||||
$a->strings['Profile Photos'] = 'Fotos do Perfil';
|
||||
$a->strings['Latest likes'] = 'Curtidas recentes';
|
||||
$a->strings['event'] = 'evento';
|
||||
$a->strings['status'] = 'status';
|
||||
$a->strings['photo'] = 'foto';
|
||||
$a->strings["%1\$s likes %2\$s's %3\$s"] = '%1$s curtiu %2$s que publicou %3$s';
|
||||
$a->strings['Welcome to %s'] = 'Bem-vindo a %s';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue