From 4b2fdbd11544f348d9fa5013be3f9513389d13a6 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Wed, 4 Feb 2015 17:38:09 -0700 Subject: [PATCH] Fix #19: Implement GithubXPlugin --- .gitattributes | 26 --- .gitignore | 1 - CHANGE.md | 1 + Disqus.php | 4 +- FacebookPlugin.php | 2 +- GithubPlugin.php | 2 +- GithubXPlugin.php | 217 ++++++++++++++++++++ GooglePlugin.php | 8 +- Module.php | 17 +- README.md | 7 + TwitterPlugin.php | 2 +- Widget.php | 8 +- messages/config.php | 52 +++++ messages/da/{social.php => kvsocial.php} | 40 ++-- messages/de/{social.php => kvsocial.php} | 40 ++-- messages/en/kvsocial.php | 44 ++++ messages/{en/social.php => es/kvsocial.php} | 28 ++- messages/fr/kvsocial.php | 32 +++ messages/hu/{social.php => kvsocial.php} | 40 ++-- messages/it/kvsocial.php | 32 +++ messages/nl/kvsocial.php | 32 +++ messages/pl/kvsocial.php | 32 +++ messages/pt/kvsocial.php | 32 +++ messages/ru/{social.php => kvsocial.php} | 40 ++-- messages/uk/{social.php => kvsocial.php} | 0 messages/vi/kvsocial.php | 32 +++ 26 files changed, 649 insertions(+), 122 deletions(-) delete mode 100644 .gitattributes delete mode 100644 .gitignore create mode 100644 GithubXPlugin.php create mode 100644 messages/config.php rename messages/da/{social.php => kvsocial.php} (55%) rename messages/de/{social.php => kvsocial.php} (56%) create mode 100644 messages/en/kvsocial.php rename messages/{en/social.php => es/kvsocial.php} (68%) create mode 100644 messages/fr/kvsocial.php rename messages/hu/{social.php => kvsocial.php} (56%) create mode 100644 messages/it/kvsocial.php create mode 100644 messages/nl/kvsocial.php create mode 100644 messages/pl/kvsocial.php create mode 100644 messages/pt/kvsocial.php rename messages/ru/{social.php => kvsocial.php} (56%) rename messages/uk/{social.php => kvsocial.php} (100%) create mode 100644 messages/vi/kvsocial.php diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 39a8c57..0000000 --- a/.gitattributes +++ /dev/null @@ -1,26 +0,0 @@ -# Autodetect text files -* text=auto - -# ...Unless the name matches the following overriding patterns - -# Definitively text files -*.php text -*.css text -*.js text -*.txt text -*.md text -*.xml text -*.json text -*.bat text -*.sql text -*.xml text -*.yml text - -# Ensure those won't be messed up with -*.png binary -*.jpg binary -*.gif binary -*.ttf binary -*.svg binary -*.eot binary -*.woff binary diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 140fada..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -vendor/* diff --git a/CHANGE.md b/CHANGE.md index 57717bb..2bfadb9 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -27,6 +27,7 @@ version 1.3.0 - Ability to add additional javascript **before** sending the ga data. - Ability to add additional javascript **after** sending the ga data. - (enh #18): Separate Github star and watch buttons as per v2.0. +- (enh #19): Implement GithubXPlugin based on [github buttons](https://github.com/ntkme/github-buttons). version 1.2.0 ============= diff --git a/Disqus.php b/Disqus.php index 4273386..b3d65d0 100644 --- a/Disqus.php +++ b/Disqus.php @@ -50,9 +50,9 @@ public function init() parent::init(); $config = $this->setConfig('disqus'); if ($this->credits === null) { - $this->credits = Html::a(Yii::t('social', 'comments powered by Disqus'), 'http://disqus.com/?ref_noscript'); + $this->credits = Html::a(Yii::t('kvsocial', 'comments powered by Disqus'), 'http://disqus.com/?ref_noscript'); } - $this->noscript = Yii::t('social', 'Please enable JavaScript to view the {pluginLink}.', ['pluginLink' => $this->credits]); + $this->noscript = Yii::t('kvsocial', 'Please enable JavaScript to view the {pluginLink}.', ['pluginLink' => $this->credits]); if (empty($this->settings['shortname'])) { throw new InvalidConfigException("Disqus 'shortname' has not been set in settings."); } diff --git a/FacebookPlugin.php b/FacebookPlugin.php index aca2fde..8594341 100644 --- a/FacebookPlugin.php +++ b/FacebookPlugin.php @@ -88,7 +88,7 @@ public function init() throw new InvalidConfigException("The Facebook 'appId' has not been set."); } if (!isset($this->noscript)) { - $this->noscript = Yii::t('social', 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('social', str_replace('fb-', '', $this->type))] + $this->noscript = Yii::t('kvsocial', 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('kvsocial', str_replace('fb-', '', $this->type))] ); } $this->registerAssets(); diff --git a/GithubPlugin.php b/GithubPlugin.php index 76d425f..85a8c47 100644 --- a/GithubPlugin.php +++ b/GithubPlugin.php @@ -88,7 +88,7 @@ public function init() throw new InvalidConfigException("The GitHub button 'type' has not been set."); } if (!isset($this->noscript)) { - $this->noscript = Yii::t('social', 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('social', str_replace('fb-', '', $this->type))] + $this->noscript = Yii::t('kvsocial', 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('kvsocial', str_replace('fb-', '', $this->type))] ); } if (!empty($this->settings['count']) && ($this->settings['count'] || $this->settings['count'] == 'true')) { diff --git a/GithubXPlugin.php b/GithubXPlugin.php new file mode 100644 index 0000000..2b2c5f2 --- /dev/null +++ b/GithubXPlugin.php @@ -0,0 +1,217 @@ + GithubPlugin::WATCH, + * 'user' => 'GITHUB_USER', + * 'repo' => 'GITHUB_REPO', + * 'settings' => ['data-style'=>'mega'] + * ]); + * ``` + * + * @see https://github.com/ntkme/github-buttons + * + * @author Kartik Visweswaran + * @since 1.0 + */ +class GithubXPlugin extends Widget +{ + const WATCH = 'watch'; + const STAR = 'star'; + const FORK = 'fork'; + const ISSUE = 'issue'; + const DOWNLOAD = 'download'; + const FOLLOW = 'follow'; + + /** + * @var string the type of button. One of 'watch', 'fork', 'follow'. This is mandatory. + */ + public $type; + + /** + * @var string the Github user name that owns the repo. This is mandatory. + */ + public $user; + + /** + * @var string the Github repository name. This is mandatory for all buttons except FOLLOW. + */ + public $repo; + + /** + * @var bool whether to show the count. Defaults to `true`. + */ + public $showCount = true; + + /** + * @var string the button label to display. If not set it will be autogenerated based on + * the button type. + */ + public $label; + + /** + * @var array the social plugin settings. The following attributes are recognized: + * - href: controls the size of the button one of `default` or `mega`. + * - data-style: controls the size of the button one of `default` or `mega`. + * - data-icon: string, the octicon for the button. It will be autogenerated if not set. + * All available icons can be found at [Octicons](https://octicons.github.com/). + * - data-count-href: GitHub link for the count. It defaults to `href` value (generated from + * `repo` and `user` name). Relative url will be relative to `href` value. It will + * be autogenerated if not set. + * - data-count-api: string, GitHub API endpoint for the count. It will be autogenerated if + * not set. + */ + public $settings = []; + + /** + * @var string the HTML attributes for the button + */ + public $options = []; + + /** + * @var array the valid plugins + */ + protected $validPlugins = [ + self::WATCH, + self::STAR, + self::FORK, + self::ISSUE, + self::DOWNLOAD, + self::FOLLOW + ]; + + /** + * Initialize the widget + * + * @throws InvalidConfigException + */ + public function init() + { + parent::init(); + $this->setConfig('githubX'); + if (empty($this->user)) { + throw new InvalidConfigException("The GitHub 'user' must be set."); + } + if (empty($this->repo) && $this->type !== self::FOLLOW) { + throw new InvalidConfigException("The GitHub 'repository' has not been set."); + } + if (empty($this->type)) { + throw new InvalidConfigException("The GitHub button 'type' has not been set."); + } + if (!isset($this->noscript)) { + $this->noscript = Yii::t('kvsocial', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.', + ['pluginName' => Yii::t('kvsocial', str_replace('fb-', '', $this->type))] + ); + } + } + + /** + * @inheritdoc + */ + public function run() + { + Html::addCssClass($this->options, 'github-button'); + Html::addCssStyle($this->options, 'padding:0 5px'); + echo $this->renderButton(); + $view = $this->getView(); + $view->registerJsFile('https://buttons.github.io/buttons.js', [ + 'id' => 'github-bjs', + 'async' => true, + 'defer' => true + ]); + } + + /** + * Gets the default button configurations settings + * + * @return array + */ + public function getDefaultSetting() + { + $repodir = $this->user . '/' . $this->repo; + $href = "https://github.com/{$repodir}"; + $api = "/repos/{$repodir}#"; + switch ($this->type) { + case self::WATCH: + return [ + "href" => $href, + "data-icon" => "octicon-eye", + "data-count-api" => "{$api}subscribers_count", + "data-count-href" => "/{$repodir}/watchers", + "label" => Yii::t('kvsocial', 'Watch') + ]; + case self::STAR: + return [ + "href" => $href, + "data-icon" => "octicon-star", + "data-count-api" => "{$api}stargazers_count", + "data-count-href" => "/{$repodir}/stargazers", + "label" => Yii::t('kvsocial', 'Star') + ]; + case self::FORK: + return [ + "href" => $href . '/fork', + "data-icon" => "octicon-git-branch", + "data-count-api" => "{$api}forks_count", + "data-count-href" => "{$href}/{$repodir}/network", + "label" => Yii::t('kvsocial', 'Fork') + ]; + case self::ISSUE: + return [ + "href" => $href . "/issues", + "data-icon" => "octicon-issue-opened", + "data-count-api" => "{$api}open_issues_count", + "label" => Yii::t('kvsocial', 'Issue') + ]; + case self::DOWNLOAD: + return [ + "href" => "https://github.com/{$this->user}", + "data-icon" => "octicon-cloud-download", + "label" => Yii::t('kvsocial', 'Download') + ]; + case self::FOLLOW: + return [ + "href" => $href . "/archive/master.zip", + "data-icon" => "octicon-mark-github", + "data-count-api" => "/users/{$this->user}#followers", + "data-count-href" => "/{$this->user}/followers", + "label" => Yii::t('kvsocial', 'Follow') . " @{$this->user}" + ]; + default: + return []; + } + } + + /** + * Renders the button + * + * @return string + */ + public function renderButton() + { + $setting = $this->getDefaultSetting(); + $label = empty($this->label) ? ArrayHelper::remove($setting, 'label', '') : $this->label; + $setting += $this->settings + $this->options; + return Html::tag('a', $label, $setting); + } +} \ No newline at end of file diff --git a/GooglePlugin.php b/GooglePlugin.php index e989db8..bf15b4d 100644 --- a/GooglePlugin.php +++ b/GooglePlugin.php @@ -107,7 +107,7 @@ public function init() throw new InvalidConfigException("The Google 'communityId' must be set for the community badge."); } if (!isset($this->noscript)) { - $this->noscript = Yii::t('social', 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('social', str_replace('ga-', '', $this->type))] + $this->noscript = Yii::t('kvsocial', 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('kvsocial', str_replace('ga-', '', $this->type))] ); } $this->registerAssets(); @@ -147,9 +147,9 @@ protected function registerAssets() { $view = $this->getView(); $view->registerJsFile('https://apis.google.com/js/platform.js', [ - 'position'=>View::POS_HEAD, - 'async'=>true, - 'defer'=>true + 'position' => View::POS_HEAD, + 'async' => true, + 'defer' => true ]); $view->registerJs("\nwindow.___gcfg={lang:'{$this->language}'};\n", View::POS_HEAD); } diff --git a/Module.php b/Module.php index 09c2dd9..983a535 100644 --- a/Module.php +++ b/Module.php @@ -95,8 +95,7 @@ class Module extends \yii\base\Module /** * @var array the github buttons api configuration. You can setup these keys: - * - type: string the Twitter Screen Name. This is mandatory for - * follow, mention, and hashtag buttons. + * - type: string the Github button type. * - settings: array the configuration for the GitHub buttons widget * - options: array the HTML attributes for the GitHub buttons iframe container. * - noscript: string/boolean text to be displayed if browser does not support @@ -106,6 +105,20 @@ class Module extends \yii\base\Module */ public $github = []; + /** + * @var array the github extended alternative buttons api configuration. You can setup these keys: + * - type: string the Github button type. + * - user: string the Github user name. + * - repo: string the Github repo name. + * - settings: array the configuration for the GitHub buttons widget + * - options: array the HTML attributes for the GitHub buttons iframe container. + * - noscript: string/boolean text to be displayed if browser does not support + * javascript. If set to false will not displayed. + * - noscriptOptions: array HTML attributes for the noscript message container. + * Defaults to ['class' => 'alert alert-danger']. + */ + public $githubX = []; + /** * @var FacebookSession the Facebook session object */ diff --git a/README.md b/README.md index ca4f8e5..35f42af 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,13 @@ Module that enables access to social plugins for Yii Framework 2.0. It includes - Star Button - Fork Button - Follow Button +- GitHubX + - Watch Button + - Star Button + - Fork Button + - Issue Button + - Download Button + - Follow Button ## Installation diff --git a/TwitterPlugin.php b/TwitterPlugin.php index d101748..bb18e06 100644 --- a/TwitterPlugin.php +++ b/TwitterPlugin.php @@ -87,7 +87,7 @@ public function init() throw new InvalidConfigException("The Twitter 'content' must be set for displaying 'embedded tweets'."); } if (!isset($this->noscript)) { - $this->noscript = Yii::t('social', 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('social', str_replace('twitter-', '', $this->type))] + $this->noscript = Yii::t('kvsocial', 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.', ['pluginName' => Yii::t('kvsocial', str_replace('twitter-', '', $this->type))] ); } $this->registerAssets(); diff --git a/Widget.php b/Widget.php index b6f99b1..98c2b6e 100644 --- a/Widget.php +++ b/Widget.php @@ -101,16 +101,16 @@ public function init() if ($this->validPlugins !== false && !in_array($this->type, $this->validPlugins)) { throw new InvalidConfigException("Invalid plugin type 'type'."); } - Yii::setAlias('@social', dirname(__FILE__)); + Yii::setAlias('@kvsocial', dirname(__FILE__)); if (empty($this->i18n)) { $this->i18n = [ 'class' => 'yii\i18n\PhpMessageSource', - 'basePath' => '@social/messages', + 'basePath' => '@kvsocial/messages', 'forceTranslation' => true ]; } - Yii::$app->i18n->translations['social'] = $this->i18n; - $this->noscript = Yii::t('social', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.'); + Yii::$app->i18n->translations['kvsocial'] = $this->i18n; + $this->noscript = Yii::t('kvsocial', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.'); } /** diff --git a/messages/config.php b/messages/config.php new file mode 100644 index 0000000..b51858f --- /dev/null +++ b/messages/config.php @@ -0,0 +1,52 @@ + __DIR__ . DIRECTORY_SEPARATOR . '..', + // string, required, root directory containing message translations. + 'messagePath' => __DIR__, + // array, required, list of language codes that the extracted messages + // should be translated to. For example, ['zh-CN', 'de']. + 'languages' => ['da', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'ru', 'vi'], + // string, the name of the function for translating messages. + // Defaults to 'Yii::t'. This is used as a mark to find the messages to be + // translated. You may use a string for single function name or an array for + // multiple function names. + 'translator' => 'Yii::t', + // boolean, whether to sort messages by keys when merging new messages + // with the existing ones. Defaults to false, which means the new (untranslated) + // messages will be separated from the old (translated) ones. + 'sort' => false, + // boolean, whether the message file should be overwritten with the merged messages + 'overwrite' => true, + // boolean, whether to remove messages that no longer appear in the source code. + // Defaults to false, which means each of these messages will be enclosed with a pair of '' marks. + 'removeUnused' => false, + // array, list of patterns that specify which files/directories should NOT be processed. + // If empty or not set, all files/directories will be processed. + // A path matches a pattern if it contains the pattern string at its end. For example, + // '/a/b' will match all files and directories ending with '/a/b'; + // the '*.svn' will match all files and directories whose name ends with '.svn'. + // and the '.svn' will match all files and directories named exactly '.svn'. + // Note, the '/' characters in a pattern matches both '/' and '\'. + // See helpers/FileHelper::findFiles() description for more details on pattern matching rules. + 'only' => ['*.php'], + // array, list of patterns that specify which files (not directories) should be processed. + // If empty or not set, all files will be processed. + // Please refer to "except" for details about the patterns. + // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed. + 'except' => [ + '.svn', + '.git', + '.gitignore', + '.gitkeep', + '.hgignore', + '.hgkeep', + '/messages', + ], + // Generated file format. Can be either "php", "po" or "db". + 'format' => 'php', + // When format is "db", you may specify the following two options + //'db' => 'db', + //'sourceMessageTable' => '{{%source_message}}', +]; diff --git a/messages/da/social.php b/messages/da/kvsocial.php similarity index 55% rename from messages/da/social.php rename to messages/da/kvsocial.php index 8542478..421236b 100644 --- a/messages/da/social.php +++ b/messages/da/kvsocial.php @@ -1,5 +1,4 @@ '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'Please enable JavaScript to view the {pluginLink}' => '@@Aktiver venligst Javascript for at vise {pluginLink}@@', + 'activity' => '@@aktivitet@@', + 'comments' => '@@kommentarer@@', + 'facepile' => '@@ansigtsstak@@', + 'follow' => '@@følg@@', + 'like' => '@@synes-godt-om@@', + 'like-box' => '@@synes-godt-om-boks@@', + 'post' => '@@slå-op@@', + 'recommendations' => '@@anbefalinger@@', + 'recommendations-bar' => '@@anbefalinger-bar@@', + 'send' => '@@send@@', + 'share-button' => '@@del-knap@@', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Aktiver venligst Javascript i din browser for at vise Facebooks {pluginName} plugin korrekt på denne side.', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => 'Du skal aktivere Javascript i din browser for at siden kan virke optimalt og vise sektioner korrekt.', - 'Please enable JavaScript to view the {pluginLink}' => 'Aktiver venligst Javascript for at vise {pluginLink}', 'comments powered by Disqus' => 'kommentarer drevet af Disqus', - 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Aktiver venligst Javascript i din browser for at vise Facebooks {pluginName} plugin korrekt på denne side.', - 'like' => 'synes-godt-om', - 'share-button' => 'del-knap', - 'send' => 'send', - 'post' => 'slå-op', - 'follow' => 'følg', - 'comments' => 'kommentarer', - 'activity' => 'aktivitet', - 'recommendations' => 'anbefalinger', - 'recommendations-bar' => 'anbefalinger-bar', - 'like-box' => 'synes-godt-om-boks', - 'facepile' => 'ansigtsstak' -); +]; diff --git a/messages/de/social.php b/messages/de/kvsocial.php similarity index 56% rename from messages/de/social.php rename to messages/de/kvsocial.php index 381dfda..d70646b 100644 --- a/messages/de/social.php +++ b/messages/de/kvsocial.php @@ -1,5 +1,4 @@ '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'Please enable JavaScript to view the {pluginLink}' => '@@Bitte aktivieren Sie Javascript um {pluginLink} zu sehen@@', + 'activity' => '@@Aktivitäten@@', + 'comments' => '@@Kommentare@@', + 'facepile' => '@@facepile@@', + 'follow' => '@@folgen@@', + 'like' => '@@like@@', + 'like-box' => '@@like-box@@', + 'post' => '@@Beitrag@@', + 'recommendations' => '@@Empfehlungen@@', + 'recommendations-bar' => '@@Empfehlungsbar@@', + 'send' => '@@senden@@', + 'share-button' => '@@teilen@@', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Bitte aktivieren Sie Javascript in Ihrem Browser um das Facebook {pluginName} plugin korrekt angezeigt zu bekommen', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => 'Sie müssen Javascript in Ihrem Browser aktivieren, damit die Seite optimal und Abschnitte komplett angezeigt wird.', - 'Please enable JavaScript to view the {pluginLink}' => 'Bitte aktivieren Sie Javascript um {pluginLink} zu sehen', 'comments powered by Disqus' => 'Kommentare betrieben durch Disqus', - 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Bitte aktivieren Sie Javascript in Ihrem Browser um das Facebook {pluginName} plugin korrekt angezeigt zu bekommen', - 'like' => 'like', - 'share-button' => 'teilen', - 'send' => 'senden', - 'post' => 'Beitrag', - 'follow' => 'folgen', - 'comments' => 'Kommentare', - 'activity' => 'Aktivitäten', - 'recommendations' => 'Empfehlungen', - 'recommendations-bar' => 'Empfehlungsbar', - 'like-box' => 'like-box', - 'facepile' => 'facepile' -); +]; diff --git a/messages/en/kvsocial.php b/messages/en/kvsocial.php new file mode 100644 index 0000000..3d32553 --- /dev/null +++ b/messages/en/kvsocial.php @@ -0,0 +1,44 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', + 'Please enable JavaScript to view the {pluginLink}' => '@@@@', + 'activity' => '@@@@', + 'comments' => '@@@@', + 'facepile' => '@@@@', + 'follow' => '@@@@', + 'like' => '@@@@', + 'like-box' => '@@@@', + 'post' => '@@@@', + 'recommendations' => '@@@@', + 'recommendations-bar' => '@@@@', + 'send' => '@@@@', + 'share-button' => '@@@@', +]; diff --git a/messages/en/social.php b/messages/es/kvsocial.php similarity index 68% rename from messages/en/social.php rename to messages/es/kvsocial.php index 7c64440..7953117 100644 --- a/messages/en/social.php +++ b/messages/es/kvsocial.php @@ -1,5 +1,4 @@ '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', - 'Please enable JavaScript to view the {pluginLink}' => '', 'comments powered by Disqus' => '', - 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', - 'like' => '', - 'share-button' => '', - 'send' => '', - 'post' => '', - 'follow' => '', - 'comments' => '', - 'activity' => '', - 'recommendations' => '', - 'recommendations-bar' => '', - 'like-box' => '', - 'facepile' => '' -); +]; diff --git a/messages/fr/kvsocial.php b/messages/fr/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/fr/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +]; diff --git a/messages/hu/social.php b/messages/hu/kvsocial.php similarity index 56% rename from messages/hu/social.php rename to messages/hu/kvsocial.php index 3c3901b..9b072b6 100644 --- a/messages/hu/social.php +++ b/messages/hu/kvsocial.php @@ -1,5 +1,4 @@ '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'Please enable JavaScript to view the {pluginLink}' => '@@Kérlek engedélyezd a JavaScipt-et, hogy megnézd a {pluginLink}-et@@', + 'activity' => '@@tevékenység@@', + 'comments' => '@@megjegyzések@@', + 'facepile' => '@@facepile@@', + 'follow' => '@@követés@@', + 'like' => '@@tetszik@@', + 'like-box' => '@@like-box@@', + 'post' => '@@küldés@@', + 'recommendations' => '@@ajánlások@@', + 'recommendations-bar' => '@@ajánlások-sáv@@', + 'send' => '@@küldés@@', + 'share-button' => '@@megosztás@@', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Kérlek engedélyezd a JavaScript-et a böngésződben, hogy jól jelenjen meg a Facebook {pluginName} plugin az oldalon.', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => 'Engedélyezned kell a JavaScipt-et a böngésződben, hogy az oldal optimálisan működjön és az oldal egyes részei teljesen látszódjanak.', - 'Please enable JavaScript to view the {pluginLink}' => 'Kérlek engedélyezd a JavaScipt-et, hogy megnézd a {pluginLink}-et', 'comments powered by Disqus' => 'A hozzászólások a Disqus segítségével jöttek létre', - 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Kérlek engedélyezd a JavaScript-et a böngésződben, hogy jól jelenjen meg a Facebook {pluginName} plugin az oldalon.', - 'like' => 'tetszik', - 'share-button' => 'megosztás', - 'send' => 'küldés', - 'post' => 'küldés', - 'follow' => 'követés', - 'comments' => 'megjegyzések', - 'activity' => 'tevékenység', - 'recommendations' => 'ajánlások', - 'recommendations-bar' => 'ajánlások-sáv', - 'like-box' => 'like-box', - 'facepile' => 'facepile' -); +]; diff --git a/messages/it/kvsocial.php b/messages/it/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/it/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +]; diff --git a/messages/nl/kvsocial.php b/messages/nl/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/nl/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +]; diff --git a/messages/pl/kvsocial.php b/messages/pl/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/pl/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +]; diff --git a/messages/pt/kvsocial.php b/messages/pt/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/pt/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +]; diff --git a/messages/ru/social.php b/messages/ru/kvsocial.php similarity index 56% rename from messages/ru/social.php rename to messages/ru/kvsocial.php index aa47d5b..11d8283 100644 --- a/messages/ru/social.php +++ b/messages/ru/kvsocial.php @@ -1,5 +1,4 @@ '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'Please enable JavaScript to view the {pluginLink}' => '@@Пожалуйста, включите JavaScript для просмотра {pluginLink}@@', + 'activity' => '@@активность@@', + 'comments' => '@@комментарии@@', + 'facepile' => '@@facepile@@', + 'follow' => '@@следить@@', + 'like' => '@@нравиться@@', + 'like-box' => '@@раздел понравившегося@@', + 'post' => '@@пост@@', + 'recommendations' => '@@рекомендации@@', + 'recommendations-bar' => '@@раздел рекомендаций@@', + 'send' => '@@отправить@@', + 'share-button' => '@@кнопка поделиться@@', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Пожалуйста, включите JavaScript в вашем браузере, чтобы просмотреть Facebook {pluginName} и для его корректной работы на этом сайте.', 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => 'Вы должны включить Javascript в вашем браузере для оптимальной работы сайта и отображения разделов полностью.', - 'Please enable JavaScript to view the {pluginLink}' => 'Пожалуйста, включите JavaScript для просмотра {pluginLink}', 'comments powered by Disqus' => 'комментарии простроенны на платформе Disqus', - 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => 'Пожалуйста, включите JavaScript в вашем браузере, чтобы просмотреть Facebook {pluginName} и для его корректной работы на этом сайте.', - 'like' => 'нравиться', - 'share-button' => 'кнопка поделиться', - 'send' => 'отправить', - 'post' => 'пост', - 'follow' => 'следить', - 'comments' => 'комментарии', - 'activity' => 'активность', - 'recommendations' => 'рекомендации', - 'recommendations-bar' => 'раздел рекомендаций', - 'like-box' => 'раздел понравившегося', - 'facepile' => 'facepile' -); +]; diff --git a/messages/uk/social.php b/messages/uk/kvsocial.php similarity index 100% rename from messages/uk/social.php rename to messages/uk/kvsocial.php diff --git a/messages/vi/kvsocial.php b/messages/vi/kvsocial.php new file mode 100644 index 0000000..7953117 --- /dev/null +++ b/messages/vi/kvsocial.php @@ -0,0 +1,32 @@ + '', + 'Follow' => '', + 'Fork' => '', + 'Issue' => '', + 'Please enable JavaScript on your browser to view the Facebook {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Google {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript on your browser to view the Twitter {pluginName} plugin correctly on this site.' => '', + 'Please enable JavaScript to view the {pluginLink}.' => '', + 'Star' => '', + 'Watch' => '', + 'You must enable Javascript on your browser for the site to work optimally and display sections completely.' => '', + 'comments powered by Disqus' => '', +];