Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.travis.yml
  • Loading branch information
iMattPro committed Jun 4, 2019
2 parents dd6724b + 9097bd8 commit 65fe22b
Show file tree
Hide file tree
Showing 31 changed files with 554 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: php
sudo: required
dist: trusty

matrix:
include:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### 2.0.1 - 2019-05-24

- Updated Lightbox2 library to 2.11.0
- Made the gallery label "Image" translatable
- Fixed Lightbox effect in edited mChat messages

### 2.0.0 - 2018-10-01

- Maximum height can now be set, in addition to the maximum width, for resizing large images
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "Lightbox for phpBB can resize posted images to a maximum set height/width and display them full-screen in an elegant Lightbox overlay effect.",
"homepage": "https://github.com/VSEphpbb/lightbox",
"version": "2.0.0",
"version": "2.0.1",
"keywords": ["phpbb", "extension", "lightbox", "image", "resizer"],
"license": "GPL-2.0-only",
"authors": [
Expand Down
1 change: 1 addition & 0 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static function getSubscribedEvents()
*/
public function set_lightbox_tpl_data()
{
$this->language->add_lang('common', 'vse/lightbox');
$this->template->assign_vars(array(
'LIGHTBOX_RESIZE_WIDTH' => (int) $this->config['lightbox_max_width'],
'LIGHTBOX_RESIZE_HEIGHT' => (int) $this->config['lightbox_max_height'],
Expand Down
27 changes: 27 additions & 0 deletions language/ar/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Arabic] Translated By : Bassel Taha Alhitary - www.alhitary.net
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Image %1 of %2',
));
27 changes: 27 additions & 0 deletions language/cs/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Czech]
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Obrázek %1 z %2',
));
27 changes: 27 additions & 0 deletions language/de/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Gernman]
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Bild %1 von %2',
));
4 changes: 2 additions & 2 deletions language/de/lightbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
'LIGHTBOX_MAX_WIDTH_APPEND' => 'Empfehlung basierend auf den Bilderanhang-Einstellungen: %spx',
'LIGHTBOX_MAX_HEIGHT' => 'Maximale Bildhöhe in pixel',
'LIGHTBOX_MAX_HEIGHT_EXPLAIN' => 'Bilder, die diese Höhe überschreiten, werden verkleinert und können durch den Lightbox-Effekt vergrößert werden. Setze diesen Wert auf 0, um die Bildgrößenanpassung nach Höhe zu deaktivieren.',
'LIGHTBOX_ALL_IMAGES' => 'Include all images in Lightbox effect',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'With this setting enabled, all posted images can be opened in the Lightbox effect even if they are not being resized.',
'LIGHTBOX_ALL_IMAGES' => 'Alle Bilder in den Lightbox-Effekt einschließen',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'Wenn diese Einstellung aktiviert ist, können alle geposteten Bilder im Lightbox-Effekt geöffnet werden, auch wenn sie nicht in der Größe geändert werden.',
'LIGHTBOX_GALLERY' => 'Erlaube Galeriemodus',
'LIGHTBOX_GALLERY_EXPLAIN' => 'Erlaubt einfache Navigation zwischen allen verkleinerten Bildern auf der Seite, unter Benutzung des Lightbox-Effekts.',
'LIGHTBOX_GALLERY_ALL' => 'Alle skalierten Bilder der Seite',
Expand Down
27 changes: 27 additions & 0 deletions language/en/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [English]
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Image %1 of %2',
));
27 changes: 27 additions & 0 deletions language/es/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Spanish] Translation by phpbb-es
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Imagen %1 de %2',
));
27 changes: 27 additions & 0 deletions language/fr/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [French] translation by Galixte (http://www.galixte.com)
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Image %1 de %2',
));
12 changes: 6 additions & 6 deletions language/fr/lightbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
$lang = array_merge($lang, array(
'LIGHTBOX_SETTINGS' => 'Paramètres de redimensionnement de la « Lightbox »',
'LIGHTBOX_MAX_WIDTH' => 'Largeur maximale de l’image en pixel',
'LIGHTBOX_MAX_WIDTH_EXPLAIN' => 'Les images qui dépassent cette largeur seront redimensionnées et peuvent être agrandies en utilisant l’effet de la « Lightbox ». Paramétrer cette valeur à 0 désactive le redimensionnement de l’image dans la « Lightbox » de l’image en largeur.',
'LIGHTBOX_MAX_WIDTH_EXPLAIN' => 'Permet aux images qui dépassent cette largeur d’être redimensionnées et agrandies en utilisant l’effet « Lightbox ». Définir cette valeur sur 0 désactive le redimensionnement de l’image dans la « Lightbox » suivant sa largeur.',
'LIGHTBOX_MAX_WIDTH_APPEND' => 'Recommandation en fonction des paramètres des images transférées en pièces jointes : %spx',
'LIGHTBOX_MAX_HEIGHT' => 'Hauteur maximale de limage en pixels',
'LIGHTBOX_MAX_HEIGHT_EXPLAIN' => 'Les images qui dépassent cette hauteur seront redimensionnées et peuvent être agrandies en utilisant l’effet de la « Lightbox ». Paramétrer cette valeur à 0 désactive le redimensionnement de l’image dans la « Lightbox » de l’image en hauteur.',
'LIGHTBOX_ALL_IMAGES' => 'Include all images in Lightbox effect',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'With this setting enabled, all posted images can be opened in the Lightbox effect even if they are not being resized.',
'LIGHTBOX_MAX_HEIGHT' => 'Hauteur maximale de limage en pixels',
'LIGHTBOX_MAX_HEIGHT_EXPLAIN' => 'Permet aux images qui dépassent cette hauteur d’être redimensionnées et agrandies en utilisant l’effet « Lightbox ». Définir cette valeur sur 0 désactive le redimensionnement de l’image dans la « Lightbox » suivant sa hauteur.',
'LIGHTBOX_ALL_IMAGES' => 'Intégrer toutes les images dans la « Lightbox »',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'Permet à toutes les images publiées d’être affichées au moyen de l’effet « Lightbox » même si elles n’ont pas été redimensionnées.',
'LIGHTBOX_GALLERY' => 'Utiliser le mode galerie',
'LIGHTBOX_GALLERY_EXPLAIN' => 'Permet de parcourir les images redimensionnées plus facilement en utilisant l’effet de la « Lightbox ».',
'LIGHTBOX_GALLERY_ALL' => 'Pour toutes les images redimensionnées sur la page',
'LIGHTBOX_GALLERY_POSTS' => 'Pour toutes les images redimensionnées par message',
'LIGHTBOX_SIGNATURES' => 'Redimensionner les images de la signature',
'LIGHTBOX_SIGNATURES_EXPLAIN' => 'Permet aux images utilisées dans les signatures d’être redimensionnées.',
'LIGHTBOX_IMG_TITLES' => 'Afficher les noms des fichiers des images',
'LIGHTBOX_IMG_TITLES_EXPLAIN' => 'Le nom du fichier apparaitra en tant que légende dans la « Lightbox ».',
'LIGHTBOX_IMG_TITLES_EXPLAIN' => 'Permet d’afficher le nom du fichier en tant que légende dans la « Lightbox ».',
));
27 changes: 27 additions & 0 deletions language/it/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Italian] Translation by Mauron and alex75 https://phpbb-store.it
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Immagine %1 di %2',
));
14 changes: 7 additions & 7 deletions language/it/lightbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Italian] Translation by Mauron.
* [Italian] Translation by Mauron and alex75 https://phpbb-store.it
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
Expand All @@ -29,14 +29,14 @@
'LIGHTBOX_MAX_WIDTH_APPEND' => 'Raccomandazione sulla base di impostazioni per gli allegati di immagini: %spx',
'LIGHTBOX_MAX_HEIGHT' => 'Altezza massima immagine in pixel',
'LIGHTBOX_MAX_HEIGHT_EXPLAIN' => 'Le immagini di altezza superiore a quella specificata saranno ridimensionate e potranno essere ingrandite con l’effetto Lightbox. Impostare il valore a 0 per disattivare il ridimensionamento delle immagini in base all’altezza.',
'LIGHTBOX_ALL_IMAGES' => 'Include all images in Lightbox effect',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'With this setting enabled, all posted images can be opened in the Lightbox effect even if they are not being resized.',
'LIGHTBOX_ALL_IMAGES' => 'Includi tutte le immagini nell’effetto Lightbox',
'LIGHTBOX_ALL_IMAGES_EXPLAIN' => 'Con questa impostazione attivata, tutte le immagini pubblicate possono essere aperte con l’effetto Lightbox anche se non vengono ridimensionate.',
'LIGHTBOX_GALLERY' => 'Attiva modalità galleria',
'LIGHTBOX_GALLERY_EXPLAIN' => 'Permette la navigazione fra immagini ridimensionate nella stessa pagina con l’effetto Lightbox.',
'LIGHTBOX_GALLERY_ALL' => 'All resized images on page',
'LIGHTBOX_GALLERY_POSTS' => 'All resized images per post',
'LIGHTBOX_GALLERY_ALL' => 'Tutte le immagini ridimensionate nellaa pagina',
'LIGHTBOX_GALLERY_POSTS' => 'Tutte le immagini ridimensionate per post',
'LIGHTBOX_SIGNATURES' => 'Ridimensiona immagini in firma',
'LIGHTBOX_SIGNATURES_EXPLAIN' => 'Permette il ridimensionamento delle immagini inserite nella firma',
'LIGHTBOX_SIGNATURES_EXPLAIN' => 'Permette il ridimensionamento delle immagini inserite in firma',
'LIGHTBOX_IMG_TITLES' => 'Mostra nomi file immagine',
'LIGHTBOX_IMG_TITLES_EXPLAIN' => 'I nome delle immagini compariranno in una didascalia nell’effetto Lightbox.',
'LIGHTBOX_IMG_TITLES_EXPLAIN' => 'I nomi delle immagini compariranno in una didascalia con l’effetto Lightbox.',
));
27 changes: 27 additions & 0 deletions language/ja/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Japanese] Translation by momo-i.
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => '%2 の画像 %1',
));
27 changes: 27 additions & 0 deletions language/nl/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Dutch] translated by Dutch Translators (https://github.com/dutch-translators)
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Bilde %1 av %2',
));
27 changes: 27 additions & 0 deletions language/pl/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
*
* Lightbox extension for the phpBB Forum Software package.
* [Polish] translation by HPK.
*
* @copyright (c) 2015 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'LIGHTBOX_GALLERY_LABEL' => 'Obraz %1 z %2',
));
Loading

0 comments on commit 65fe22b

Please sign in to comment.