update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
9abe039dc8
commit
47263617c5
53 changed files with 418860 additions and 226988 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\Option;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugins\MobileMessaging\SMSProvider;
|
||||
|
|
@ -26,15 +25,6 @@ class API extends \Piwik\Plugin\API
|
|||
const VERIFICATION_CODE_LENGTH = 5;
|
||||
const SMS_FROM = 'Piwik';
|
||||
|
||||
/**
|
||||
* @param string $provider
|
||||
* @return SMSProvider
|
||||
*/
|
||||
static private function getSMSProviderInstance($provider)
|
||||
{
|
||||
return SMSProvider::factory($provider);
|
||||
}
|
||||
|
||||
/**
|
||||
* determine if SMS API credential are available for the current user
|
||||
*
|
||||
|
|
@ -83,7 +73,7 @@ class API extends \Piwik\Plugin\API
|
|||
{
|
||||
$this->checkCredentialManagementRights();
|
||||
|
||||
$smsProviderInstance = self::getSMSProviderInstance($provider);
|
||||
$smsProviderInstance = SMSProvider::factory($provider);
|
||||
$smsProviderInstance->verifyCredential($apiKey);
|
||||
|
||||
$settings = $this->getCredentialManagerSettings();
|
||||
|
|
@ -160,7 +150,7 @@ class API extends \Piwik\Plugin\API
|
|||
Piwik::checkUserIsNotAnonymous();
|
||||
|
||||
$credential = $this->getSMSAPICredential();
|
||||
$SMSProvider = self::getSMSProviderInstance($credential[MobileMessaging::PROVIDER_OPTION]);
|
||||
$SMSProvider = SMSProvider::factory($credential[MobileMessaging::PROVIDER_OPTION]);
|
||||
$SMSProvider->sendSMS(
|
||||
$credential[MobileMessaging::API_KEY_OPTION],
|
||||
$content,
|
||||
|
|
@ -183,7 +173,7 @@ class API extends \Piwik\Plugin\API
|
|||
$this->checkCredentialManagementRights();
|
||||
|
||||
$credential = $this->getSMSAPICredential();
|
||||
$SMSProvider = self::getSMSProviderInstance($credential[MobileMessaging::PROVIDER_OPTION]);
|
||||
$SMSProvider = SMSProvider::factory($credential[MobileMessaging::PROVIDER_OPTION]);
|
||||
return $SMSProvider->getCreditLeft(
|
||||
$credential[MobileMessaging::API_KEY_OPTION]
|
||||
);
|
||||
|
|
@ -365,7 +355,7 @@ class API extends \Piwik\Plugin\API
|
|||
{
|
||||
Option::set(
|
||||
$user . MobileMessaging::USER_SETTINGS_POSTFIX_OPTION,
|
||||
Common::json_encode($settings)
|
||||
json_encode($settings)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -392,7 +382,7 @@ class API extends \Piwik\Plugin\API
|
|||
if (empty($userSettings)) {
|
||||
$userSettings = array();
|
||||
} else {
|
||||
$userSettings = Common::json_decode($userSettings, true);
|
||||
$userSettings = json_decode($userSettings, true);
|
||||
}
|
||||
|
||||
return $userSettings;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -10,20 +10,38 @@
|
|||
namespace Piwik\Plugins\MobileMessaging;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\Intl\Data\Provider\RegionDataProvider;
|
||||
use Piwik\IP;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ControllerAdmin;
|
||||
use Piwik\Plugins\LanguagesManager\LanguagesManager;
|
||||
use Piwik\Plugins\MobileMessaging\SMSProvider;
|
||||
use Piwik\Translation\Translator;
|
||||
use Piwik\View;
|
||||
|
||||
require_once PIWIK_INCLUDE_PATH . '/plugins/UserCountry/functions.php';
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class Controller extends \Piwik\Plugin\ControllerAdmin
|
||||
class Controller extends ControllerAdmin
|
||||
{
|
||||
/*
|
||||
/**
|
||||
* @var RegionDataProvider
|
||||
*/
|
||||
private $regionDataProvider;
|
||||
|
||||
/**
|
||||
* @var Translator
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
public function __construct(RegionDataProvider $regionDataProvider, Translator $translator)
|
||||
{
|
||||
$this->regionDataProvider = $regionDataProvider;
|
||||
$this->translator = $translator;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mobile Messaging Settings tab :
|
||||
* - set delegated management
|
||||
* - provide & validate SMS API credential
|
||||
|
|
@ -32,33 +50,65 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
Piwik::checkUserIsNotAnonymous();
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
|
||||
$view = new View('@MobileMessaging/index');
|
||||
$this->setManageVariables($view);
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mobile Messaging Settings tab :
|
||||
* - set delegated management
|
||||
* - provide & validate SMS API credential
|
||||
* - add & activate phone numbers
|
||||
* - check remaining credits
|
||||
*/
|
||||
public function userSettings()
|
||||
{
|
||||
Piwik::checkUserIsNotAnonymous();
|
||||
|
||||
$view = new View('@MobileMessaging/userSettings');
|
||||
$this->setManageVariables($view);
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
|
||||
private function setManageVariables(View $view)
|
||||
{
|
||||
$view->isSuperUser = Piwik::hasUserSuperUserAccess();
|
||||
|
||||
$mobileMessagingAPI = API::getInstance();
|
||||
$view->delegatedManagement = $mobileMessagingAPI->getDelegatedManagement();
|
||||
$view->credentialSupplied = $mobileMessagingAPI->areSMSAPICredentialProvided();
|
||||
$view->accountManagedByCurrentUser = $view->isSuperUser || $view->delegatedManagement;
|
||||
$view->strHelpAddPhone = Piwik::translate('MobileMessaging_Settings_PhoneNumbers_HelpAdd', array(Piwik::translate('General_Settings'), Piwik::translate('MobileMessaging_SettingsMenu')));
|
||||
$view->strHelpAddPhone = $this->translator->translate('MobileMessaging_Settings_PhoneNumbers_HelpAdd', array(
|
||||
$this->translator->translate('General_Settings'),
|
||||
$this->translator->translate('MobileMessaging_SettingsMenu')
|
||||
));
|
||||
$view->creditLeft = 0;
|
||||
$view->provider = '';
|
||||
if ($view->credentialSupplied && $view->accountManagedByCurrentUser) {
|
||||
$view->provider = $mobileMessagingAPI->getSMSProvider();
|
||||
$view->creditLeft = $mobileMessagingAPI->getCreditLeft();
|
||||
}
|
||||
|
||||
$view->smsProviders = SMSProvider::$availableSMSProviders;
|
||||
$providers = array();
|
||||
foreach (SMSProvider::findAvailableSmsProviders() as $provider) {
|
||||
$providers[$provider->getId()] = $provider->getDescription();
|
||||
}
|
||||
|
||||
$view->smsProviders = $providers;
|
||||
|
||||
// construct the list of countries from the lang files
|
||||
$countries = array();
|
||||
foreach (Common::getCountriesList() as $countryCode => $continentCode) {
|
||||
foreach ($this->regionDataProvider->getCountryList() as $countryCode => $continentCode) {
|
||||
if (isset(CountryCallingCodes::$countryCallingCodes[$countryCode])) {
|
||||
$countries[$countryCode] =
|
||||
array(
|
||||
'countryName' => \Piwik\Plugins\UserCountry\countryTranslate($countryCode),
|
||||
'countryCallingCode' => CountryCallingCodes::$countryCallingCodes[$countryCode],
|
||||
);
|
||||
$countries[$countryCode] = array(
|
||||
'countryName' => \Piwik\Plugins\UserCountry\countryTranslate($countryCode),
|
||||
'countryCallingCode' => CountryCallingCodes::$countryCallingCodes[$countryCode],
|
||||
);
|
||||
}
|
||||
}
|
||||
$view->countries = $countries;
|
||||
|
|
@ -72,7 +122,5 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
|
|||
$view->phoneNumbers = $mobileMessagingAPI->getPhoneNumbers();
|
||||
|
||||
$this->setBasicVariablesView($view);
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
|
|||
30
www/analytics/plugins/MobileMessaging/Menu.php
Normal file
30
www/analytics/plugins/MobileMessaging/Menu.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging;
|
||||
|
||||
use Piwik\Menu\MenuAdmin;
|
||||
use Piwik\Menu\MenuUser;
|
||||
use Piwik\Piwik;
|
||||
|
||||
class Menu extends \Piwik\Plugin\Menu
|
||||
{
|
||||
public function configureAdminMenu(MenuAdmin $menu)
|
||||
{
|
||||
if (Piwik::hasUserSuperUserAccess()) {
|
||||
$menu->addSettingsItem('MobileMessaging_SettingsMenu', $this->urlForAction('index'), $order = 12);
|
||||
}
|
||||
}
|
||||
|
||||
public function configureUserMenu(MenuUser $menu)
|
||||
{
|
||||
if (!Piwik::isUserIsAnonymous()) {
|
||||
$menu->addPersonalItem('MobileMessaging_SettingsMenu', $this->urlForAction('userSettings'), $order = 12);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -8,8 +8,8 @@
|
|||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging;
|
||||
|
||||
use Piwik\Menu\MenuAdmin;
|
||||
use Piwik\Option;
|
||||
use Piwik\Period;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugins\API\API as APIPlugins;
|
||||
use Piwik\Plugins\MobileMessaging\API as APIMobileMessaging;
|
||||
|
|
@ -37,19 +37,19 @@ class MobileMessaging extends \Piwik\Plugin
|
|||
const MOBILE_TYPE = 'mobile';
|
||||
const SMS_FORMAT = 'sms';
|
||||
|
||||
static private $availableParameters = array(
|
||||
private static $availableParameters = array(
|
||||
self::PHONE_NUMBERS_PARAMETER => true,
|
||||
);
|
||||
|
||||
static private $managedReportTypes = array(
|
||||
private static $managedReportTypes = array(
|
||||
self::MOBILE_TYPE => 'plugins/MobileMessaging/images/phone.png'
|
||||
);
|
||||
|
||||
static private $managedReportFormats = array(
|
||||
private static $managedReportFormats = array(
|
||||
self::SMS_FORMAT => 'plugins/MobileMessaging/images/phone.png'
|
||||
);
|
||||
|
||||
static private $availableReports = array(
|
||||
private static $availableReports = array(
|
||||
array(
|
||||
'module' => 'MultiSites',
|
||||
'action' => 'getAll',
|
||||
|
|
@ -61,12 +61,11 @@ class MobileMessaging extends \Piwik\Plugin
|
|||
);
|
||||
|
||||
/**
|
||||
* @see Piwik\Plugin::getListHooksRegistered
|
||||
* @see Piwik\Plugin::registerEvents
|
||||
*/
|
||||
public function getListHooksRegistered()
|
||||
public function registerEvents()
|
||||
{
|
||||
return array(
|
||||
'Menu.Admin.addItems' => 'addMenu',
|
||||
'AssetManager.getJavaScriptFiles' => 'getJsFiles',
|
||||
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
|
||||
'ScheduledReports.getReportParameters' => 'getReportParameters',
|
||||
|
|
@ -82,15 +81,6 @@ class MobileMessaging extends \Piwik\Plugin
|
|||
);
|
||||
}
|
||||
|
||||
function addMenu()
|
||||
{
|
||||
MenuAdmin::addEntry('MobileMessaging_SettingsMenu',
|
||||
array('module' => 'MobileMessaging', 'action' => 'index'),
|
||||
true,
|
||||
$order = 12
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get JavaScript files
|
||||
*/
|
||||
|
|
@ -188,7 +178,7 @@ class MobileMessaging extends \Piwik\Plugin
|
|||
}
|
||||
|
||||
public function sendReport($reportType, $report, $contents, $filename, $prettyDate, $reportSubject, $reportTitle,
|
||||
$additionalFiles)
|
||||
$additionalFiles, Period $period = null, $force)
|
||||
{
|
||||
if (self::manageEvent($reportType)) {
|
||||
$parameters = $report['parameters'];
|
||||
|
|
@ -210,7 +200,7 @@ class MobileMessaging extends \Piwik\Plugin
|
|||
}
|
||||
}
|
||||
|
||||
static public function template_reportParametersScheduledReports(&$out)
|
||||
public static function template_reportParametersScheduledReports(&$out)
|
||||
{
|
||||
if (Piwik::isUserIsAnonymous()) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -68,4 +68,17 @@ class ReportRendererException extends ReportRenderer
|
|||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
/**
|
||||
* Get report attachments, ex. graph images
|
||||
*
|
||||
* @param $report
|
||||
* @param $processedReports
|
||||
* @param $prettyDate
|
||||
* @return array
|
||||
*/
|
||||
public function getAttachments($report, $processedReports, $prettyDate)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -95,7 +95,8 @@ class Sms extends ReportRenderer
|
|||
$evolutionMetrics,
|
||||
function ($value) use ($floatRegex) {
|
||||
$matched = preg_match($floatRegex, $value, $matches);
|
||||
return $matched ? sprintf("%+d", $matches[0]) : $value;
|
||||
$formatted = $matched ? sprintf("%+d", $matches[0]) : $value;
|
||||
return \Piwik\NumberFormatter::getInstance()->formatPercentEvolution($formatted);
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
@ -128,4 +129,17 @@ class Sms extends ReportRenderer
|
|||
|
||||
$this->rendering .= $view->render();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get report attachments, ex. graph images
|
||||
*
|
||||
* @param $report
|
||||
* @param $processedReports
|
||||
* @param $prettyDate
|
||||
* @return array
|
||||
*/
|
||||
public function getAttachments($report, $processedReports, $prettyDate)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -8,13 +8,16 @@
|
|||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging;
|
||||
|
||||
use Exception;
|
||||
use Piwik\Loader;
|
||||
use Piwik\Container\StaticContainer;
|
||||
use Piwik\Plugin;
|
||||
use Piwik\Piwik;
|
||||
|
||||
/**
|
||||
* The SMSProvider abstract class is used as a base class for SMS provider implementations.
|
||||
* The SMSProvider abstract class is used as a base class for SMS provider implementations. To create your own custom
|
||||
* SMSProvider extend this class and implement the methods to send text messages. The class needs to be placed in a
|
||||
* `SMSProvider` directory of your plugin.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
abstract class SMSProvider
|
||||
{
|
||||
|
|
@ -23,43 +26,102 @@ abstract class SMSProvider
|
|||
const MAX_UCS2_CHARS_IN_ONE_UNIQUE_SMS = 70;
|
||||
const MAX_UCS2_CHARS_IN_ONE_CONCATENATED_SMS = 67;
|
||||
|
||||
static public $availableSMSProviders = array(
|
||||
'Clockwork' => 'You can use <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/platforms/piwik/"><img src="plugins/MobileMessaging/images/Clockwork.png"/></a> to send SMS Reports from Piwik.<br/>
|
||||
<ul>
|
||||
<li> First, <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/platforms/piwik/">get an API Key from Clockwork</a> (Signup is free!)
|
||||
</li><li> Enter your Clockwork API Key on this page. </li>
|
||||
</ul>
|
||||
<br/><em>About Clockwork: </em><ul>
|
||||
<li>Clockwork gives you fast, reliable high quality worldwide SMS delivery, over 450 networks in every corner of the globe.
|
||||
</li><li>Cost per SMS message is around ~0.08USD (0.06EUR).
|
||||
</li><li>Most countries and networks are supported but we suggest you check the latest position on their coverage map <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/sms-coverage/">here</a>.
|
||||
</li>
|
||||
</ul>
|
||||
',
|
||||
);
|
||||
/**
|
||||
* Get the ID of the SMS Provider. Eg 'Clockwork' or 'FreeMobile'
|
||||
* @return string
|
||||
*/
|
||||
abstract public function getId();
|
||||
|
||||
/**
|
||||
* Return the SMSProvider associated to the provider name $providerName
|
||||
* Get a description about the SMS Provider. For example who the SMS Provider is, instructions how the API Key
|
||||
* needs to be set, and more. You may return HTML here for better formatting.
|
||||
*
|
||||
* @throws Exception If the provider is unknown
|
||||
* @param string $providerName
|
||||
* @return \Piwik\Plugins\MobileMessaging\SMSProvider
|
||||
* @return string
|
||||
*/
|
||||
static public function factory($providerName)
|
||||
{
|
||||
$className = __NAMESPACE__ . '\\SMSProvider\\' . $providerName;
|
||||
abstract public function getDescription();
|
||||
|
||||
try {
|
||||
Loader::loadClass($className);
|
||||
return new $className;
|
||||
} catch (Exception $e) {
|
||||
throw new Exception(
|
||||
Piwik::translate(
|
||||
'MobileMessaging_Exception_UnknownProvider',
|
||||
array($providerName, implode(', ', array_keys(self::$availableSMSProviders)))
|
||||
)
|
||||
);
|
||||
/**
|
||||
* Verify the SMS API credential.
|
||||
*
|
||||
* @param string $apiKey API Key
|
||||
* @return bool true if SMS API Key is valid, false otherwise
|
||||
*/
|
||||
abstract public function verifyCredential($apiKey);
|
||||
|
||||
/**
|
||||
* Get the amount of remaining credits.
|
||||
*
|
||||
* @param string $apiKey API Key
|
||||
* @return string remaining credits
|
||||
*/
|
||||
abstract public function getCreditLeft($apiKey);
|
||||
|
||||
/**
|
||||
* Actually send the given text message. This method should only send the text message, it should not trigger
|
||||
* any notifications etc.
|
||||
*
|
||||
* @param string $apiKey
|
||||
* @param string $smsText
|
||||
* @param string $phoneNumber
|
||||
* @param string $from
|
||||
* @return bool true
|
||||
*/
|
||||
abstract public function sendSMS($apiKey, $smsText, $phoneNumber, $from);
|
||||
|
||||
/**
|
||||
* Defines whether the SMS Provider is available. If a certain provider should be used only be a limited
|
||||
* range of users you can restrict the provider here. For example there is a Development SMS Provider that is only
|
||||
* available when the development is actually enabled. You could also create a SMS Provider that is only available
|
||||
* to Super Users etc. Usually this method does not have to be implemented by a SMS Provider.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isAvailable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $provider The name of the string
|
||||
* @return SMSProvider
|
||||
* @throws \Exception
|
||||
* @ignore
|
||||
*/
|
||||
public static function factory($provider)
|
||||
{
|
||||
$providers = self::findAvailableSmsProviders();
|
||||
|
||||
if (!array_key_exists($provider, $providers)) {
|
||||
throw new \Exception(Piwik::translate('MobileMessaging_Exception_UnknownProvider',
|
||||
array($provider, implode(', ', array_keys($providers)))
|
||||
));
|
||||
}
|
||||
|
||||
return $providers[$provider];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all available SMS Providers
|
||||
*
|
||||
* @return SMSProvider[]
|
||||
* @ignore
|
||||
*/
|
||||
public static function findAvailableSmsProviders()
|
||||
{
|
||||
/** @var SMSProvider[] $smsProviders */
|
||||
$smsProviders = Plugin\Manager::getInstance()->findMultipleComponents('SMSProvider', 'Piwik\Plugins\MobileMessaging\SMSProvider');
|
||||
|
||||
$providers = array();
|
||||
|
||||
foreach ($smsProviders as $provider) {
|
||||
/** @var SMSProvider $provider */
|
||||
$provider = StaticContainer::get($provider);
|
||||
if ($provider->isAvailable()) {
|
||||
$providers[$provider->getId()] = $provider;
|
||||
}
|
||||
}
|
||||
|
||||
return $providers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -67,8 +129,9 @@ abstract class SMSProvider
|
|||
*
|
||||
* @param string $string
|
||||
* @return bool true if $string contains UCS2 characters
|
||||
* @ignore
|
||||
*/
|
||||
static public function containsUCS2Characters($string)
|
||||
public static function containsUCS2Characters($string)
|
||||
{
|
||||
$GSMCharsetAsString = implode(array_keys(GSMCharset::$GSMCharset));
|
||||
|
||||
|
|
@ -89,8 +152,9 @@ abstract class SMSProvider
|
|||
* @param int $maximumNumberOfConcatenatedSMS
|
||||
* @param string $appendedString
|
||||
* @return string original $string or truncated $string appended with $appendedString
|
||||
* @ignore
|
||||
*/
|
||||
static public function truncate($string, $maximumNumberOfConcatenatedSMS, $appendedString = 'MobileMessaging_SMS_Content_Too_Long')
|
||||
public static function truncate($string, $maximumNumberOfConcatenatedSMS, $appendedString = 'MobileMessaging_SMS_Content_Too_Long')
|
||||
{
|
||||
$appendedString = Piwik::translate($appendedString);
|
||||
|
||||
|
|
@ -117,12 +181,12 @@ abstract class SMSProvider
|
|||
return preg_replace('/' . preg_quote($subStrToTruncate, '/') . '$/', $appendedString, $string);
|
||||
}
|
||||
|
||||
static private function mb_str_split($string)
|
||||
private static function mb_str_split($string)
|
||||
{
|
||||
return preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY);
|
||||
}
|
||||
|
||||
static private function sizeOfSMSContent($smsContent, $containsUCS2Chars)
|
||||
private static function sizeOfSMSContent($smsContent, $containsUCS2Chars)
|
||||
{
|
||||
if ($containsUCS2Chars) return mb_strlen($smsContent, 'UTF-8');
|
||||
|
||||
|
|
@ -133,7 +197,7 @@ abstract class SMSProvider
|
|||
return $sizeOfSMSContent;
|
||||
}
|
||||
|
||||
static private function maxCharsAllowed($maximumNumberOfConcatenatedSMS, $containsUCS2Chars)
|
||||
private static function maxCharsAllowed($maximumNumberOfConcatenatedSMS, $containsUCS2Chars)
|
||||
{
|
||||
$maxCharsInOneUniqueSMS = $containsUCS2Chars ? self::MAX_UCS2_CHARS_IN_ONE_UNIQUE_SMS : self::MAX_GSM_CHARS_IN_ONE_UNIQUE_SMS;
|
||||
$maxCharsInOneConcatenatedSMS = $containsUCS2Chars ? self::MAX_UCS2_CHARS_IN_ONE_CONCATENATED_SMS : self::MAX_GSM_CHARS_IN_ONE_CONCATENATED_SMS;
|
||||
|
|
@ -145,30 +209,4 @@ abstract class SMSProvider
|
|||
$maxCharsInOneConcatenatedSMS * $maximumNumberOfConcatenatedSMS;
|
||||
}
|
||||
|
||||
/**
|
||||
* verify the SMS API credential
|
||||
*
|
||||
* @param string $apiKey API Key
|
||||
* @return bool true if SMS API credential are valid, false otherwise
|
||||
*/
|
||||
abstract public function verifyCredential($apiKey);
|
||||
|
||||
/**
|
||||
* get remaining credits
|
||||
*
|
||||
* @param string $apiKey API Key
|
||||
* @return string remaining credits
|
||||
*/
|
||||
abstract public function getCreditLeft($apiKey);
|
||||
|
||||
/**
|
||||
* send SMS
|
||||
*
|
||||
* @param string $apiKey
|
||||
* @param string $smsText
|
||||
* @param string $phoneNumber
|
||||
* @param string $from
|
||||
* @return bool true
|
||||
*/
|
||||
abstract public function sendSMS($apiKey, $smsText, $phoneNumber, $from);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -15,8 +15,9 @@ use Piwik\Plugins\MobileMessaging\APIException;
|
|||
use Piwik\Plugins\MobileMessaging\SMSProvider;
|
||||
|
||||
require_once PIWIK_INCLUDE_PATH . "/plugins/MobileMessaging/APIException.php";
|
||||
|
||||
/**
|
||||
*
|
||||
* @ignore
|
||||
*/
|
||||
class Clockwork extends SMSProvider
|
||||
{
|
||||
|
|
@ -31,6 +32,27 @@ class Clockwork extends SMSProvider
|
|||
const MAXIMUM_FROM_LENGTH = 11;
|
||||
const MAXIMUM_CONCATENATED_SMS = 3;
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return 'Clockwork';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
return 'You can use <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/platforms/piwik/"><img src="plugins/MobileMessaging/images/Clockwork.png"/></a> to send SMS Reports from Piwik.<br/>
|
||||
<ul>
|
||||
<li> First, <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/platforms/piwik/">get an API Key from Clockwork</a> (Signup is free!)
|
||||
</li><li> Enter your Clockwork API Key on this page. </li>
|
||||
</ul>
|
||||
<br/><em>About Clockwork: </em><ul>
|
||||
<li>Clockwork gives you fast, reliable high quality worldwide SMS delivery, over 450 networks in every corner of the globe.
|
||||
</li><li>Cost per SMS message is around ~0.08USD (0.06EUR).
|
||||
</li><li>Most countries and networks are supported but we suggest you check the latest position on their coverage map <a target="_blank" href="?module=Proxy&action=redirect&url=http://www.clockworksms.com/sms-coverage/">here</a>.
|
||||
</li>
|
||||
</ul>
|
||||
';
|
||||
}
|
||||
|
||||
public function verifyCredential($apiKey)
|
||||
{
|
||||
$this->getCreditLeft($apiKey);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging\SMSProvider;
|
||||
|
||||
use Piwik\Notification;
|
||||
use Piwik\Plugins\MobileMessaging\SMSProvider;
|
||||
use Piwik\Development as PiwikDevelopment;
|
||||
|
||||
/**
|
||||
* Used for development only
|
||||
*
|
||||
* @ignore
|
||||
*/
|
||||
class Development extends SMSProvider
|
||||
{
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return 'Development';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
return 'Development SMS Provider<br />All sent SMS will be displayed as Notification';
|
||||
}
|
||||
|
||||
public function isAvailable()
|
||||
{
|
||||
return PiwikDevelopment::isEnabled();
|
||||
}
|
||||
|
||||
public function verifyCredential($apiKey)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function sendSMS($apiKey, $smsText, $phoneNumber, $from)
|
||||
{
|
||||
$message = sprintf('An SMS was sent:<br />From: %s<br />To: %s<br />Message: %s', $from, $phoneNumber, $smsText);
|
||||
|
||||
$notification = new Notification($message);
|
||||
$notification->raw = true;
|
||||
$notification->context = Notification::CONTEXT_INFO;
|
||||
Notification\Manager::notify('StubbedSMSProvider'.preg_replace('/[^a-z0-9]/', '', $phoneNumber), $notification);
|
||||
}
|
||||
|
||||
public function getCreditLeft($apiKey)
|
||||
{
|
||||
return 'Balance: 42';
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -13,10 +13,26 @@ use Piwik\Plugins\MobileMessaging\SMSProvider;
|
|||
/**
|
||||
* Used for testing
|
||||
*
|
||||
* @ignore
|
||||
*/
|
||||
class StubbedProvider extends SMSProvider
|
||||
{
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return 'StubbedProvider';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
return 'Only during testing available';
|
||||
}
|
||||
|
||||
public function isAvailable()
|
||||
{
|
||||
return defined('PIWIK_TEST_MODE') && PIWIK_TEST_MODE;
|
||||
}
|
||||
|
||||
public function verifyCredential($apiKey)
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
|
|||
34
www/analytics/plugins/MobileMessaging/lang/bg.json
Normal file
34
www/analytics/plugins/MobileMessaging/lang/bg.json
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"Exception_UnknownProvider": "Името на доставчика '%1$s' е неизвестно. Пробвайте друго име вместо: %2$s.",
|
||||
"MobileReport_AdditionalPhoneNumbers": "Могат да бъдат добавени повече телефонни номера достъпвайки",
|
||||
"MobileReport_MobileMessagingSettingsLink": "Страницата за настройка на мобилните съобщения",
|
||||
"MobileReport_NoPhoneNumbers": "Моля, активирайте поне един телефонен номер, достъпвайки",
|
||||
"PhoneNumbers": "Телефонни номера",
|
||||
"Settings_APIKey": "API ключ",
|
||||
"Settings_CountryCode": "Код на държавата",
|
||||
"Settings_CredentialNotProvided": "Преди да можете да създавате и управлявате телефонни номера, моля свържете Piwik с вашия SMS профил по-горе.",
|
||||
"Settings_CredentialNotProvidedByAdmin": "Преди да можете да добавяте и управлявате телефонни номера, моля, свържете се с вашия администратор, за да свърже Piwik с SMS профил.",
|
||||
"Settings_CredentialProvided": "Вашият %s SMS приложно-програмен интерфейсен профил е правилно настроен!",
|
||||
"Settings_DeleteAccountConfirm": "Сигурни ли сте, че искате да изтриете този SMS профил?",
|
||||
"Settings_InvalidActivationCode": "Въведеният код не е валиден, моля опитайте отново.",
|
||||
"Settings_LetUsersManageAPICredential": "Позволява на потребителите да управляват своите собствени идентификационни данни за SMS API",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Всеки потребител има възможност да си настрои свой собствен SMS приложно-програмен интерфейсен профил, като по този начин няма да използва вашия профил.",
|
||||
"Settings_ManagePhoneNumbers": "Управление на телефонните номера",
|
||||
"Settings_PhoneActivated": "Телефонният номер е потвърден! Вече имате възможност да получавате кратки съобщения (SMS) с вашите статистики.",
|
||||
"Settings_PhoneNumber": "Телефонен номер",
|
||||
"Settings_PhoneNumbers_Add": "Добави нов телефонен номер",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Ако не знаете телефонния код за вашата държава, може да го проверите тук",
|
||||
"Settings_SMSAPIAccount": "Управление на профила за SMS приложно-програмен интерфейс",
|
||||
"Settings_SMSProvider": "SMS провайдър",
|
||||
"Settings_SuperAdmin": "Настройки на супер потребителя",
|
||||
"Settings_SuspiciousPhoneNumber": "Ако не получите текстовото съобщение, може да опитате без водещата нула. т.е. %s",
|
||||
"Settings_UpdateOrDeleteAccount": "%1$sОбновяване%2$s или %3$sизтриване%4$s на този профил.",
|
||||
"Settings_ValidatePhoneNumber": "Валидиране",
|
||||
"Settings_VerificationCodeJustSent": "Туко-що беше изпратено кратко съобщение (SMS) до този номер с код: моля, въведете този код в горното поле и натиснете „Потвърди“.",
|
||||
"SettingsMenu": "Мобилни съобщения",
|
||||
"TopLinkTooltip": "Вземете Web Analytics Reports доставен във вашата пощенска кутия или във вашия мобилен телефон!",
|
||||
"TopMenu": "Email & SMS Доклади",
|
||||
"VerificationText": "Кодът е %1$s. За да потвърдите вашия телефонен номер и да получите Piwik SMS отчети, моля, копирайте този код във формата достъпна чрез Piwik > %2$s > %3$s."
|
||||
}
|
||||
}
|
||||
29
www/analytics/plugins/MobileMessaging/lang/ca.json
Normal file
29
www/analytics/plugins/MobileMessaging/lang/ca.json
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"MobileReport_NoPhoneNumbers": "Siusplau, activeu com a mínim un numbre de telèfon per accedir.",
|
||||
"MultiSites_Must_Be_Activated": "Per generar SMS de les vostres estadístiques web, siusplau activeu la extensió MultiSites de Piwik.",
|
||||
"PhoneNumbers": "Nombres de telèfon",
|
||||
"PluginDescription": "Crea i descarrega informes personalitzats per SMS i envieu-los al vostre mobil de forma diària, semanal o mensual.",
|
||||
"Settings_APIKey": "Clau API",
|
||||
"Settings_CountryCode": "Codi de país",
|
||||
"Settings_CredentialNotProvided": "Abans de crear i gestionar els vostres nombres de telèfon, siusplau conecteu el Piwik a la vostra compta de SMS.",
|
||||
"Settings_CredentialProvided": "La vostra compta de la API de SMS %s ha estat configurada correctament!",
|
||||
"Settings_DeleteAccountConfirm": "Esteu segurs d'esborrar aquest compte de SMS?",
|
||||
"Settings_InvalidActivationCode": "El codi introduït és invàlid, sisplau torneu-ho a probar.",
|
||||
"Settings_LetUsersManageAPICredential": "Permetre als usuaris administrar les seves credencials de la API de SMS",
|
||||
"Settings_LetUsersManageAPICredential_No_Help": "Tots els usuaris poden rebre informes per SMS i faran servir els credits de la vostra compta.",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Cada usuari pot configurar la seva pròpia compta de API de SMS i no farà servir els vostres crèdits.",
|
||||
"Settings_ManagePhoneNumbers": "Administra nombres de telèfon",
|
||||
"Settings_PhoneActivated": "Nombre de telèfon validat! Ara podeu rebre SMS amb les vostres estadístiques.",
|
||||
"Settings_PhoneNumber": "Telèfon",
|
||||
"Settings_PhoneNumbers_Add": "Afegir un nou telèfon",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Si no sabeu el vostre codi de pais el podeu buscar aquí.",
|
||||
"Settings_SMSAPIAccount": "Administra el compte de l'API de SMS",
|
||||
"Settings_SMSProvider": "Proveïdor SMS",
|
||||
"Settings_SuperAdmin": "Preferències del Super Usuari",
|
||||
"Settings_ValidatePhoneNumber": "Valida",
|
||||
"SettingsMenu": "Missatgeria Mòbil",
|
||||
"SMS_Content_Too_Long": "[massa llarg]",
|
||||
"TopMenu": "Informes per Email i SMS"
|
||||
}
|
||||
}
|
||||
41
www/analytics/plugins/MobileMessaging/lang/cs.json
Normal file
41
www/analytics/plugins/MobileMessaging/lang/cs.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"Exception_UnknownProvider": "Jméno poskytovatele '%1$s' není známé. Zkuste některé z %2$s.",
|
||||
"MobileReport_AdditionalPhoneNumbers": "Více telefonních čísel můžete přidat přejitím na",
|
||||
"MobileReport_MobileMessagingSettingsLink": "Stránka nastavení mobilních zpráv",
|
||||
"MobileReport_NoPhoneNumbers": "Prosím aktivujte aspoň jedno telefonní číslo přejitím na",
|
||||
"MultiSites_Must_Be_Activated": "Pro vytváření SMS zpráv se statistikami povolte v Piwiku plugin MultiSites.",
|
||||
"PhoneNumbers": "Telefonní čísla",
|
||||
"PluginDescription": "Vytvářejte a stahujte vlastní SMS hlášení a nechte si je zasílat do svého telefonu denně, týdně nebo měsíčně.",
|
||||
"Settings_APIKey": "Klíč k API",
|
||||
"Settings_CountryCode": "Kód země",
|
||||
"Settings_CredentialNotProvided": "Než budete moci vytvářet a spravovat telefonní čísla, musíte připojit Piwik ke svému SMS účtu výše.",
|
||||
"Settings_CredentialNotProvidedByAdmin": "Než budete moci vytvářet a spravovat telefonní čísla, požádejte svého administrátora, aby připojil Piwik k SMS účtu.",
|
||||
"Settings_CredentialProvided": ";Váš %s SMS účet je nastaven správně.",
|
||||
"Settings_DeleteAccountConfirm": "Opravdu chcete odstranit tento SMS účet?",
|
||||
"Settings_InvalidActivationCode": "Zadaný kód nebyl platný, prosím zkuste to znovu.",
|
||||
"Settings_LetUsersManageAPICredential": "Povolit uživatelům správu vlastních pověření API SMS účtů",
|
||||
"Settings_LetUsersManageAPICredential_No_Help": "Všichni uživatelé mohou přijímat hlášení prostřednictvím SMS a budou používat kredity vašeho účtu.",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Každý uživatel bude moci nastavit svůj SMS API účet a nebude používat váš kredit.",
|
||||
"Settings_ManagePhoneNumbers": "Spravovat telefonní čísla",
|
||||
"Settings_PhoneActivated": "Telefonní číslo ověřeno! Nyní můžete přijímat SMS se statistikami.",
|
||||
"Settings_PhoneNumber": "Telefonní číslo",
|
||||
"Settings_PhoneNumbers_Add": "Přidat nové telefonní číslo",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Pokud nevíte telefonní kód vaší země, podívejte se zde",
|
||||
"Settings_PhoneNumbers_Help": "Než budete moci přijímat SMS se statistikami, telefonní číslo musí být zadáno níže.",
|
||||
"Settings_PhoneNumbers_HelpAdd": "Po stisknutí \"přidat\" bude na telefon odeslána SMS s kódem. Uživatel, který obdrží SMS by se měl přihlásit do Piwiku, kliknout na nastavení, pak na Mobilní zprávy a zadat kód. Poté bude moci dostávat statistiky do svého telefonu.",
|
||||
"Settings_PleaseSignUp": "Pokud chcetevytvářet SMS hlášení a dostávat krátké zprávy o statistikách do svého telefonu, zaregistrujte se na SMS API a zadejte svoje informace níže.",
|
||||
"Settings_SMSAPIAccount": "Správa SMS API účtu",
|
||||
"Settings_SMSProvider": "SMS Provider",
|
||||
"Settings_SuperAdmin": "Nastavení super-uživatele",
|
||||
"Settings_SuspiciousPhoneNumber": "Pokud neobdržíte SMS zprávu, můžete to zkusit bez úvodní nuly, t. j. %s",
|
||||
"Settings_UpdateOrDeleteAccount": "Také můžete tento účet %1$saktualizovat%2$s nebo %3$ssmazat%4$s.",
|
||||
"Settings_ValidatePhoneNumber": "Ověřit",
|
||||
"Settings_VerificationCodeJustSent": "Právě jsme na zadané telefonní číslo odeslali SMS s kódem. Zadejte ho výše a stiskněte \"ověřit\".",
|
||||
"SettingsMenu": "Mobilní zprávy",
|
||||
"SMS_Content_Too_Long": "[příliš dlouhé]",
|
||||
"TopLinkTooltip": "Nechte si webové analýzy zasílat na email nebo na svůj mobilní telefon.",
|
||||
"TopMenu": "Email a SMS reporty",
|
||||
"VerificationText": "Kód je %1$s. Pro ověření vašeh otelefonního čísla tento kód zkopírujte do formuláře přístupného na Piwik > %2$s > %3$s."
|
||||
}
|
||||
}
|
||||
41
www/analytics/plugins/MobileMessaging/lang/da.json
Normal file
41
www/analytics/plugins/MobileMessaging/lang/da.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"Exception_UnknownProvider": "Udbydernavn '%1$s' er ukendt. Prøv et af følgende i stedet: %2$s.",
|
||||
"MobileReport_AdditionalPhoneNumbers": "Du kan tilføje flere telefonnumre ved at åbne",
|
||||
"MobileReport_MobileMessagingSettingsLink": "Mobil besked indstillinger",
|
||||
"MobileReport_NoPhoneNumbers": "Aktiver mindst ét telefonnummer ved at besøge",
|
||||
"MultiSites_Must_Be_Activated": "For at generere SMS beskeder med dine website statistik, skal du aktivere MultiSites udvidelsesmodulet i Piwik.",
|
||||
"PhoneNumbers": "Telefonnumre",
|
||||
"PluginDescription": "Opret og hent brugerdefinerede SMS rapporter og få dem sendt til din mobiltelefon på en daglig, ugentlig eller månedlig basis.",
|
||||
"Settings_APIKey": "API nøgle",
|
||||
"Settings_CountryCode": "Landekode",
|
||||
"Settings_CredentialNotProvided": "Før du kan oprette og administrere telefonnumre, skal du tilslutte Piwik til din SMS-konto ovenfor.",
|
||||
"Settings_CredentialNotProvidedByAdmin": "Før du kan oprette og administrere telefonnumre, skal du bede din administrator om at forbinde Piwik til en SMS-konto.",
|
||||
"Settings_CredentialProvided": "Din %s SMS API-konto er korrekt konfigureret!",
|
||||
"Settings_DeleteAccountConfirm": "Er du sikker på, at du vil slette denne SMS konto?",
|
||||
"Settings_InvalidActivationCode": "Indtastet kode var ikke gyldig, prøv igen.",
|
||||
"Settings_LetUsersManageAPICredential": "Tillad brugerne at styre deres egne SMS API legitimationsoplysninger",
|
||||
"Settings_LetUsersManageAPICredential_No_Help": "Alle brugere er i stand til at modtage SMS rapporter og vil bruge din kontos saldo.",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Hver bruger vil være i stand til at indstille deres egen SMS API-konto og vil ikke bruge din saldo.",
|
||||
"Settings_ManagePhoneNumbers": "Administrer telefonnumre",
|
||||
"Settings_PhoneActivated": "Telefonnummer er valideret! Du kan nu modtage SMS med din statistik.",
|
||||
"Settings_PhoneNumber": "Telefonnummer",
|
||||
"Settings_PhoneNumbers_Add": "Tilføj et nyt telefonnummer",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Hvis du ikke kender telefonens landekode, søg efter dit land her",
|
||||
"Settings_PhoneNumbers_Help": "Før modtagelse af SMS (tekstbeskeder) rapporter på telefonen, indtast telefonnummeret nedenfor.",
|
||||
"Settings_PhoneNumbers_HelpAdd": "Når du klikker på \"Tilføj\", vil en sms med en kode sendes til telefonen. Den bruger, der modtager koden skal derefter logge ind på Piwik, klikke på Indstillinger, og klik derefter på mobilbeskeder. Når du har indtastet koden, vil brugeren være i stand til at modtage SMS rapporter på telefonen.",
|
||||
"Settings_PleaseSignUp": "Hvis du vil oprette SMS-rapporter og modtage sms beskeder med hjemmesidernes statistik på din mobiltelefon, skal du tilmelde dig SMS API og indtaste oplysninger nedenfor.",
|
||||
"Settings_SMSAPIAccount": "Administrer SMS API-konto",
|
||||
"Settings_SMSProvider": "SMS udbyder",
|
||||
"Settings_SuperAdmin": "Superbruger indstillinger",
|
||||
"Settings_SuspiciousPhoneNumber": "Hvis du ikke modtager en SMS-besked, kan du prøve uden det forreste nul. dvs. %s",
|
||||
"Settings_UpdateOrDeleteAccount": "Du kan også %1$sopdatere%2$s eller %3$sslette%4$s denne konto.",
|
||||
"Settings_ValidatePhoneNumber": "Bekræft",
|
||||
"Settings_VerificationCodeJustSent": "Vi har sendt dig en SMS med en kode til dette nummer: Indtast denne kode nedenfor og klik på \"Godkend\".",
|
||||
"SettingsMenu": "Mobile beskeder",
|
||||
"SMS_Content_Too_Long": "[for lang]",
|
||||
"TopLinkTooltip": "Få web analyse rapporter leveret til din indbakke eller din mobiltelefon!",
|
||||
"TopMenu": "Email & SMS rapporter",
|
||||
"VerificationText": "Koden er %1$s. For at validere dit telefonnummer og modtage Piwik SMS rapporter, kopierer koden til formularen tilgængelig på Piwik > %2$s > %3$s."
|
||||
}
|
||||
}
|
||||
41
www/analytics/plugins/MobileMessaging/lang/de.json
Normal file
41
www/analytics/plugins/MobileMessaging/lang/de.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"Exception_UnknownProvider": "Der Anbietername '%1$s' ist unbekannt. Versuchen Sie stattdessen einen der folgenden: %2$s.",
|
||||
"MobileReport_AdditionalPhoneNumbers": "Sie können weitere Telefonnummern hinzufügen auf",
|
||||
"MobileReport_MobileMessagingSettingsLink": "der Mobile Messaging Einstellungsseite",
|
||||
"MobileReport_NoPhoneNumbers": "Bitte aktivieren Sie mindestens eine Telefonnummer auf",
|
||||
"MultiSites_Must_Be_Activated": "Um SMS-Berichte über Ihre Website-Statistiken generieren zu können, aktivieren Sie das MultiSites-Plugin in Piwik.",
|
||||
"PhoneNumbers": "Telefonnummern",
|
||||
"PluginDescription": "Erstellen Sie eigene SMS-Berichte, laden Sie diese herunter und lassen Sie diese täglich, wöchentlich oder monatlich auf Ihr Handy senden.",
|
||||
"Settings_APIKey": "API Schlüssel",
|
||||
"Settings_CountryCode": "Ländervorwahl",
|
||||
"Settings_CredentialNotProvided": "Bevor Sie Telefonnummern erstellen und verwalten können, verbinden Sie bitte Piwik mit Ihrem SMS Konto oberhalb.",
|
||||
"Settings_CredentialNotProvidedByAdmin": "Bevor Sie Telefonnummern anlegen und verwalten können, bitten Sie Ihren Administrator darum Piwik mit einem SMS-Account zu verknüpfen.",
|
||||
"Settings_CredentialProvided": "Ihr %s SMS-API Zugang ist korrekt konfiguriert.",
|
||||
"Settings_DeleteAccountConfirm": "Sind Sie sicher, dass Sie das SMS Konto löschen möchten?",
|
||||
"Settings_InvalidActivationCode": "Der eingegebene Code ist nicht korrekt, bitte probieren Sie es noch einmal.",
|
||||
"Settings_LetUsersManageAPICredential": "Erlauben Sie Benutzern das verwalten von eigenen SMS API Konten",
|
||||
"Settings_LetUsersManageAPICredential_No_Help": "Alle Benutzer können SMS Berichte empfangen und nutzen Ihr Kontoguthaben.",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Jeder Benutzer kann seinen eigenes SMS API Konto erstellen und Ihr Kontoguthaben wird nicht genutzt.",
|
||||
"Settings_ManagePhoneNumbers": "Telefonnummern verwalten",
|
||||
"Settings_PhoneActivated": "Telefonnummer wurde überprüft! Sie können nun SMS mit Ihren Statistiken empfangen.",
|
||||
"Settings_PhoneNumber": "Telefonnummer",
|
||||
"Settings_PhoneNumbers_Add": "Neue Telefonnummer hinzufügen",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Falls Sie die Ländervorwahl nicht wissen, suchen Sie hier Ihr Land",
|
||||
"Settings_PhoneNumbers_Help": "Bevor Sie SMS (Textnachrichten) auf dem Telefon empfangen können, müssen Sie unten die Telefonnummer eingeben.",
|
||||
"Settings_PhoneNumbers_HelpAdd": "Wenn Sie auf \"Hinzufügen\" klicken wird eine SMS mit einem Code an Ihre Telefon versendet. Wenn Sie den Code empfangen loggen Sie sich bitte in Piwik ein, klicken auf Einstellungen und danach Mobile Messaging. Nach dem eingeben des Codes können Sie Textberichte auf diesem Telefon empfangen.",
|
||||
"Settings_PleaseSignUp": "Um SMS Berichte zu erstellen und Textnachrichten mit Ihren Statistiken auf Ihrem Mobiltelefon empfangen zu können, registrieren Sie sich unterhalb für die SMS API.",
|
||||
"Settings_SMSAPIAccount": "SMS-API Zugang verwalten",
|
||||
"Settings_SMSProvider": "SMS-Anbieter",
|
||||
"Settings_SuperAdmin": "Einstellungen für Hauptadministrator",
|
||||
"Settings_SuspiciousPhoneNumber": "Falls Sie keine Textnachricht erhalten probieren Sie es bitte ohne eine führende 0, z.B.: %s",
|
||||
"Settings_UpdateOrDeleteAccount": "Sie können diesen Zugang auch %1$saktualisieren%2$s oder %3$sentfernen%4$s.",
|
||||
"Settings_ValidatePhoneNumber": "Validieren",
|
||||
"Settings_VerificationCodeJustSent": "Wir haben Ihnen eine SMS mit einem Code an diese Nummer geschickt: Bitte geben Sie diesen Code unterhalb ein und klicken auf \"Validieren\".",
|
||||
"SettingsMenu": "Mobile Messaging",
|
||||
"SMS_Content_Too_Long": "[zu lang]",
|
||||
"TopLinkTooltip": "Erhalten Sie Webanalytik Berichte direkt in Ihren E-Mail Posteingang oder auf Ihr Mobiltelefon!",
|
||||
"TopMenu": "E-Mail & SMS Berichte",
|
||||
"VerificationText": "Der Code lautet %1$s. Um Ihre Telefonnummer zu validieren und Piwik SMS Berichte zu erhalten kopieren Sie bitte diesen Code in das Formular unter Piwik > %2$s > %3$s."
|
||||
}
|
||||
}
|
||||
41
www/analytics/plugins/MobileMessaging/lang/el.json
Normal file
41
www/analytics/plugins/MobileMessaging/lang/el.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"MobileMessaging": {
|
||||
"Exception_UnknownProvider": "Άγνωστο όνομα Παρόχου '%1$s'. Εναλλακτικά, δοκιμάστε ένα από τα παρακάτω: %2$s.",
|
||||
"MobileReport_AdditionalPhoneNumbers": "Μπορείτε να προσθέσετε περισσότερους αριθμούς τηλεφώνου με πρόσβαση",
|
||||
"MobileReport_MobileMessagingSettingsLink": "τη σελίδα ρυθμίσεων Μηνύματα σε Κινητά",
|
||||
"MobileReport_NoPhoneNumbers": "Παρακαλούμε ενεργοποιήστε τουλάχιστον έναν αριθμό τηλεφώνου με πρόσβαση",
|
||||
"MultiSites_Must_Be_Activated": "Για την παραγωγή SMS με στατιστικά της ιστοσελίδας σας, παρακαλούμε να ενεργοποιήσετε το πρόσθετο MultiSites στο Piwik.",
|
||||
"PhoneNumbers": "Αριθμοί Τηλεφώνου",
|
||||
"PluginDescription": "Δημιουργία και λήψη προσαρμοσμένων αναφορών SMS και αποστολή στο κινητό σας σε καθημερινή, εβδομαδιαία ή μηνιαία βάση.",
|
||||
"Settings_APIKey": "Κλειδί API",
|
||||
"Settings_CountryCode": "Κωδικός Χώρας",
|
||||
"Settings_CredentialNotProvided": "Για να μπορέσετε να δημιουργήσετε και να διαχειριστείτε αριθμούς τηλεφώνου, μπορείτε να συνδέσετε το Piwik με το λογαριασμό SMS σας, παραπάνω.",
|
||||
"Settings_CredentialNotProvidedByAdmin": "Για να μπορέσετε να δημιουργήσετε και να διαχειριστείτε αριθμούς τηλεφώνου, ζητήστε από τον διαχειριστή σας να συνδέσει το Piwik σε ένα λογαριασμό SMS.",
|
||||
"Settings_CredentialProvided": "Ο λογαριασμός %s του SMS API σας, έχει ρυθμιστεί σωστά!",
|
||||
"Settings_DeleteAccountConfirm": "Είστε σίγουρος ότι θέλετε να διαγράψετε τον λογαριασμό SMS;",
|
||||
"Settings_InvalidActivationCode": "Ο κώδικας που εισάγατε δεν ήταν έγκυρος, παρακαλώ προσπαθήστε ξανά.",
|
||||
"Settings_LetUsersManageAPICredential": "Επιτρέπει στους χρήστες να διαχειρίζονται τα δικά τους διαπιστευτήρια SMS API",
|
||||
"Settings_LetUsersManageAPICredential_No_Help": "Όλοι οι χρήστες έχουν τη δυνατότητα να λαμβάνουν Αναφορές SMS και θα χρησιμοποιηθούν οι πιστώσεις του λογαριασμού σας.",
|
||||
"Settings_LetUsersManageAPICredential_Yes_Help": "Κάθε χρήστης θα είναι σε θέση να στήσει το δικό του λογαριασμό SMS API και δεν θα χρησιμοποιήσει την πίστωση σας.",
|
||||
"Settings_ManagePhoneNumbers": "Διαχείριση Αριθμών Τηλεφώνου",
|
||||
"Settings_PhoneActivated": "Το Τηλέφωνο επικυρώθηκε! Μπορείτε τώρα να λάβετε SMS με τα στατιστικά σας.",
|
||||
"Settings_PhoneNumber": "Αριθμός Τηλεφώνου",
|
||||
"Settings_PhoneNumbers_Add": "Προσθήκη ενός νέου αριθμού τηλεφώνου",
|
||||
"Settings_PhoneNumbers_CountryCode_Help": "Εάν δεν γνωρίζετε τον κωδικό κλήσης της χώρας, κοιτάξτε για τη χώρα σας εδώ",
|
||||
"Settings_PhoneNumbers_Help": "Πριν από τη λήψη αναφορών με SMS (μηνυμάτων κειμένου) σε ένα τηλέφωνο, ο αριθμός τηλεφώνου πρέπει να εισαχθεί παρακάτω.",
|
||||
"Settings_PhoneNumbers_HelpAdd": "Όταν κάνετε κλικ στην επιλογή \"Προσθήκη\", ένα SMS που περιέχει έναν κωδικό θα σταλεί στο τηλέφωνο. Ο χρήστης που θα λάβει τον κωδικό πρέπει να συνδεθεί στο Piwik, να κάνει κλικ στο Ρυθμίσεις, στη συνέχεια κλικ στο Μηνύματα σε Κινητά. Μετά την εισαγωγή του κωδικού, ο χρήστης θα είναι σε θέση να λαμβάνει αναφορές κειμένου στο τηλέφωνό του.",
|
||||
"Settings_PleaseSignUp": "Για να δημιουργήσετε αναφορές SMS και να λαμβάνετε σύντομα μηνύματα κειμένου με στατιστικά για τις ιστοσελίδες σας στο κινητό σας τηλέφωνο, μπορείτε να εγγραφείτε με το SMS API και εισάγετε τα στοιχεία σας παρακάτω.",
|
||||
"Settings_SMSAPIAccount": "Διαχείριση λογαριασμού SMS API",
|
||||
"Settings_SMSProvider": "Πάροχος SMS",
|
||||
"Settings_SuperAdmin": "Ρυθμίσεις Υπερχρήστη",
|
||||
"Settings_SuspiciousPhoneNumber": "Εάν δεν λάβετε το μήνυμα κειμένου, μπορείτε να δοκιμάσετε χωρίς το πρόθεμα μηδέν, δηλαδή %s",
|
||||
"Settings_UpdateOrDeleteAccount": "Μπορείτε επίσης να %1$sτροποποιήσετε%2$s ή να %3$sδιαγράψετε%4$s αυτόν τον λογαριασμό.",
|
||||
"Settings_ValidatePhoneNumber": "Επαλήθευση",
|
||||
"Settings_VerificationCodeJustSent": "Στείλαμε μόλις ένα SMS σε αυτόν τον αριθμό με κωδικό: παρακαλώ πληκτρολογήστε το κωδικό παραπάνω και κάντε κλικ στο κουμπί \"Επαλήθευση\".",
|
||||
"SettingsMenu": "Μηνύματα σε Κινητά",
|
||||
"SMS_Content_Too_Long": "[πολύ μεγάλο μήκος]",
|
||||
"TopLinkTooltip": "Λάβετε αναφορές Στατιστικών Ιστοσελίδων στο e-mail σας ή το κινητό σας τηλέφωνο!",
|
||||
"TopMenu": "Αναφορές Email & SMS",
|
||||
"VerificationText": "Ο κωδικός είναι %1$s. Για να επαληθεύσετε τον τηλεφωνικό σας αριθμό και να λάβετε αναφορές του Piwik σε SMS, αντιγράψτε τον κωδικό αυτόν στη διαθέσιμη φόρμα στο Piwik > %2$s > %3$s."
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue