Skip to content

Commit aafe392

Browse files
authored
Merge pull request #133 from phpbb-extensions/release-1.0.5
Merge Release 1.0.5 Branch
2 parents 4fa20d5 + 9802e93 commit aafe392

12 files changed

Lines changed: 372 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.0.5 - 2016-11-10
4+
5+
- Fix the Brazilian Portuguese language (renamed from pt-br to pt_br)
6+
- Fix posted images to fit within the page area and not overflow
7+
- Minor code and HTML improvements
8+
- Added German language pack
9+
310
## 1.0.4 - 2016-01-17
411

512
- Added a feature where route names are auto-suggested based on the page title

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An extension which allows you to add static pages to your phpBB forum",
55
"homepage": "https://www.phpbb.com",
6-
"version": "1.0.5-dev",
6+
"version": "1.0.5",
77
"keywords": ["phpbb", "extension", "static", "pages"],
88
"license": "GPL-2.0",
99
"authors": [
@@ -31,11 +31,11 @@
3131
},
3232
{
3333
"name": "Lukasz Kaczynski",
34-
"role": "Extensions Development Team"
34+
"role": "Former Extensions Development Team member"
3535
},
3636
{
3737
"name": "John Peskens",
38-
"role": "Extensions Development Team"
38+
"role": "Former Extensions Development Team member"
3939
},
4040
{
4141
"name": "Ruslan Uzdenov",
@@ -53,7 +53,7 @@
5353
"extra": {
5454
"display-name": "Pages",
5555
"soft-require": {
56-
"phpbb/phpbb": ">=3.1.3,<3.3.0@dev"
56+
"phpbb/phpbb": ">=3.1.3,<3.2.0@dev"
5757
},
5858
"version-check": {
5959
"host": "www.phpbb.com",

controller/admin_controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ protected function add_edit_page_data($entity)
312312

313313
// Set output vars for display in the template
314314
$this->template->assign_vars(array(
315-
'S_ERROR' => (bool) sizeof($errors),
316-
'ERROR_MSG' => sizeof($errors) ? implode('<br />', $errors) : '',
315+
'S_ERROR' => (bool) count($errors),
316+
'ERROR_MSG' => count($errors) ? implode('<br />', $errors) : '',
317317

318318
'PAGES_TITLE' => $entity->get_title(),
319319
'PAGES_ROUTE' => $entity->get_route(),

language/de/pages_acp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'ACP_PAGES_MANAGE_EXPLAIN' => 'Von dieser Seite aus kannst du selbstdefiniert statische Seiten hinzufügen, verwalten und löschen.',
4444
'ACP_PAGES_CREATE_PAGE' => 'Erstelle Seite',
4545
'ACP_PAGES_CREATE_PAGE_EXPLAIN' => 'Mit dem Formular unten kannst du neue selbstdefinierte statische Seiten für dein Forum anlegen.',
46-
'ACP_PAGES_EDIT_PAGE' => 'Bestbeite Seite',
46+
'ACP_PAGES_EDIT_PAGE' => 'Bearbeite Seite',
4747
'ACP_PAGES_EDIT_PAGE_EXPLAIN' => 'Mit dem Formular unten kannst du eine bestehende selbstdefinierte statische Seite aktualisieren.',
4848

4949
// Display pages list

language/tr/exceptions.php

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
/**
3+
*
4+
* Pages extension for the phpBB Forum Software package.
5+
* Turkish translation by ESQARE (http://www.phpbbturkey.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ » “ ” …
39+
//
40+
41+
/*
42+
* These are errors which can be triggered by sending invalid data to the
43+
* pages extension API.
44+
*
45+
* These errors will never show to a user unless they are either modifying
46+
* the core pages extension code OR unless they are writing an extension
47+
* which makes calls to this extension.
48+
*
49+
* Translators: Feel free to not translate these language strings
50+
*/
51+
$lang = array_merge($lang, array(
52+
'EXCEPTION_FIELD_MISSING' => 'Gerekli alan eksik',
53+
'EXCEPTION_INVALID_ARGUMENT' => '`%1$s` için geçersiz bağımsız değişken belirtildi. Sebep: %2$s',
54+
'EXCEPTION_OUT_OF_BOUNDS' => '`%1$s` alanı sınırların üzerinde veri aldı',
55+
'EXCEPTION_TOO_LONG' => 'Giriş, en fazla uzunluk sınırını aştı.',
56+
'EXCEPTION_NOT_UNIQUE' => 'Giriş, özgün ve benzersiz değil.',
57+
'EXCEPTION_UNEXPECTED_VALUE' => '`%1$s` alanı beklenmeyen veri aldı. Sebep: %2$s',
58+
'EXCEPTION_ILLEGAL_CHARACTERS' => 'Giriş, illegal karakterler içeriyor.',
59+
));

language/tr/info_acp_pages.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
/**
3+
*
4+
* Pages extension for the phpBB Forum Software package.
5+
* Turkish translation by ESQARE (http://www.phpbbturkey.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ » “ ” …
39+
//
40+
41+
$lang = array_merge($lang, array(
42+
// ACP modules
43+
'ACP_PAGES' => 'Sayfalar',
44+
'ACP_PAGES_MANAGE' => 'Sayfaları yönet',
45+
46+
// Logs
47+
'ACP_PAGES_ADDED_LOG' => '<strong>Sayfa eklendi</strong><br />» %s',
48+
'ACP_PAGES_EDITED_LOG' => '<strong>Sayfa düzenlendi</strong><br />» %s',
49+
'ACP_PAGES_DELETED_LOG' => '<strong>Sayfa silindi</strong><br />» %s',
50+
));

language/tr/pages_acp.php

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?php
2+
/**
3+
*
4+
* Pages extension for the phpBB Forum Software package.
5+
* Turkish translation by ESQARE (http://www.phpbbturkey.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ » “ ” …
39+
//
40+
41+
$lang = array_merge($lang, array(
42+
// Manage page
43+
'ACP_PAGES_MANAGE' => 'Sayfaları yönet',
44+
'ACP_PAGES_MANAGE_EXPLAIN' => 'Bu sayfadan özel sabit sayfalar ekleyebilir, düzenleyebilir ve silebilirsiniz.',
45+
'ACP_PAGES_CREATE_PAGE' => 'Sayfa oluştur',
46+
'ACP_PAGES_CREATE_PAGE_EXPLAIN' => 'Alttaki formu kullanarak mesaj panonuz için yeni bir özel sabit sayfa oluşturabilirsiniz.',
47+
'ACP_PAGES_EDIT_PAGE' => 'Sayfayı düzenle',
48+
'ACP_PAGES_EDIT_PAGE_EXPLAIN' => 'Alttaki formu kullanarak mesaj panonuzda mevcut olan özel sabit sayfayı güncelleyebilirsiniz.',
49+
50+
// Display pages list
51+
'ACP_PAGES_TITLE' => 'Başlık',
52+
'ACP_PAGES_DESCRIPTION' => 'Açıklama',
53+
'ACP_PAGES_ROUTE' => 'Yol',
54+
'ACP_PAGES_TEMPLATE' => 'Şablon',
55+
'ACP_PAGES_ORDER' => 'Sıra',
56+
'ACP_PAGES_LINK' => 'Bağlantı',
57+
'ACP_PAGES_VIEW' => 'Sayfayı görüntüle',
58+
'ACP_PAGES_STATUS' => 'Durum',
59+
'ACP_PAGES_PUBLISHED' => 'Yayınlandı',
60+
'ACP_PAGES_PUBLISHED_NO_GUEST' => 'Yayınlandı (sadece üyeler)',
61+
'ACP_PAGES_PRIVATE' => 'Özel',
62+
'ACP_PAGES_EMPTY' => 'Hiç bir sayfa bulunamadı',
63+
64+
// Purge icons
65+
'ACP_PAGES_PURGE_ICONS' => 'Simgeleri temizle',
66+
'ACP_PAGES_PURGE_ICONS_LABEL' => 'Sayfa simgeleri önbelleğini temizle',
67+
'ACP_PAGES_PURGE_ICONS_EXPLAIN' => 'Özel sayfa bağlantı simgeleri eklediğiniz zaman, yeni simgeleri görmek için simge önbelleğini temizlemeniz gerekebilir. phpBB’nin <samp>styles/*/theme/images/</samp> dizinine <samp>pages_route.gif</samp> adında özel simge yerleştirdiğinizde, <samp>route</samp> Sayfa’nın yolu olacaktır.',
68+
69+
// Messages shown to user
70+
'ACP_PAGES_DELETE_CONFIRM' => 'Bu sayfayı silmek istediğinize emin misiniz?',
71+
'ACP_PAGES_DELETE_SUCCESS' => 'Sayfa başarıyla silindi.',
72+
'ACP_PAGES_DELETE_ERRORED' => 'Sayfa silinemedi.',
73+
'ACP_PAGES_ADD_SUCCESS' => 'Sayfa başarıyla eklendi.',
74+
'ACP_PAGES_EDIT_SUCCESS' => 'Sayfa başarıyla güncellendi.',
75+
76+
// Add/edit page
77+
'ACP_PAGES_SETTINGS' => 'Sayfa ayarları',
78+
'ACP_PAGES_OPTIONS' => 'Sayfa seçenekleri',
79+
'ACP_PAGES_FORM_TITLE' => 'Sayfa başlığı',
80+
'ACP_PAGES_FORM_TITLE_EXPLAIN' => 'Bu gerekli bir alandır.',
81+
'ACP_PAGES_FORM_DESC' => 'Sayfa açıklaması',
82+
'ACP_PAGES_FORM_DESC_EXPLAIN' => 'Bu, sadece YKP’de sayfaların listesinde gösterilecektir.',
83+
'ACP_PAGES_FORM_ROUTE' => 'Sayfa URL yolu',
84+
'ACP_PAGES_FORM_ROUTE_EXPLAIN' => '<strong>yol</strong>, sayfaya bağlantı vermek için belirlenen, sayfanın URL adresinin sonunda kullanılacak benzersiz bir tanımlayıcıdır, ör. <samp>phpBB/sayfa/<strong>yol</strong></samp>. Sadece harfler, rakamlar, tire ve alt çizgilere izin verilir. Bu zorunlu bir alandır.',
85+
'ACP_PAGES_FORM_CONTENT' => 'Sayfa içeriği',
86+
'ACP_PAGES_FORM_CONTENT_EXPLAIN' => 'İçerik normal phpBB BBCode’ları, ifadeler, sihirli url’ler ya da HTML modu kullanılarak. HTML modunda, BBCode’lar, ifadeler ve sihirli url’ler çalışmayacaktır, fakat bunun yerine herhangi bir HTML sözdizimi kullanmakta özgürsünüz. Not: bu içerik mevcut HTML şablonuna eklenecektir, bu nedenle DOCTYPE, HTML, BODY ya da HEAD etiketleri kullanmamalısınız. Bununla birlikte, tüm diğer IFRAME, SCRIPT, STYLE, EMBED, VIDEO, v.b. gibi HTML biçimlendirme etiketleri kullanılabilir.',
87+
'ACP_PAGES_FORM_TEMPLATE' => 'Sayfa şablonu',
88+
'ACP_PAGES_FORM_TEMPLATE_EXPLAIN' => '<samp>pages_*.html</samp> adlı özel şablon temaları phpBB’nin <samp>styles/*/template</samp> dizinine eklenebilir.',
89+
'ACP_PAGES_FORM_TEMPLATE_SELECT' => 'Bir şablon seçin',
90+
'ACP_PAGES_FORM_ORDER' => 'Sayfa sırası',
91+
'ACP_PAGES_FORM_ORDER_EXPLAIN' => 'Sayfalar bu alana göre sıralanacaktır, bağlantıların görünme sırasını organize edebilirsiniz. Düşük sayılar yüksek sayılardan önceliklidir.',
92+
'ACP_PAGES_FORM_LINKS' => 'Sayfa bağlantı yerleri',
93+
'ACP_PAGES_FORM_LINKS_EXPLAIN' => 'Bu sayfaya görünebilir bağlantı verilecek bir ya da daha fazla yer seçin. Birden fazla öge seçmek için CTRL+TIKLA (ya da Mac’te CMD+TIKLA) mouse/klavye kombinasyonunu kullanın.',
94+
'ACP_PAGES_FORM_DISPLAY' => 'Sayfayı göster',
95+
'ACP_PAGES_FORM_DISPLAY_EXPLAIN' => 'Eğer hayır olarak ayarlarsanız, sayfa erişilebiir olmayacaktır. (Not: Yöneticiler, sayfayı geliştirmeye devam ederken önizleme yapabilmeleri için özel olarak sayfaya erişebileceklerdir.)',
96+
'ACP_PAGES_FORM_GUESTS' => 'Sayfayı misafirlere göster',
97+
'ACP_PAGES_FORM_GUESTS_EXPLAIN' => 'Eğer hayır olarak ayarlarsanız, sadece kayıtlı kullanıcılar sayfaya erişebileceklerdir.',
98+
'ACP_PAGES_FORM_VIEW_PAGE' => 'Sayfa bağlantısı',
99+
'PARSE_HTML' => 'HTML ayrıştır',
100+
101+
// Page link location names
102+
'NAV_BAR_LINKS_BEFORE' => 'Gezinme Çubuğu Bağlantılardan Önce',
103+
'NAV_BAR_LINKS_AFTER' => 'Gezinme Çubuğu Bağlantılardan Sonra',
104+
'NAV_BAR_CRUMBS_BEFORE' => 'Gezinme Çubuğu Menülerden Önce',
105+
'NAV_BAR_CRUMBS_AFTER' => 'Gezinme Çubuğu Menülerden Sonra',
106+
'FOOTER_TIMEZONE_BEFORE' => 'Sayfa Altı Zaman Diliminden Önce',
107+
'FOOTER_TIMEZONE_AFTER' => 'Sayfa Altı Zaman Diliminden Sonra',
108+
'FOOTER_TEAMS_BEFORE' => 'Sayfa Altı Takım Bağlantısından Önce',
109+
'FOOTER_TEAMS_AFTER' => 'Sayfa Altı Takım Bağlantısından Sonra',
110+
'QUICK_LINK_MENU_BEFORE' => 'Hızlı Bağlantılar Menüsünün Üstü',
111+
'QUICK_LINK_MENU_AFTER' => 'Hızlı Bağlantılar Menüsünün Altı',
112+
));

language/tr/pages_common.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
*
4+
* Pages extension for the phpBB Forum Software package.
5+
* Turkish translation by ESQARE (http://www.phpbbturkey.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ » “ ” …
39+
//
40+
41+
$lang = array_merge($lang, array(
42+
'PAGES_VIEWONLINE' => '%s görüntüleniyor',
43+
));

language/tr/pages_controller.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
*
4+
* Pages extension for the phpBB Forum Software package.
5+
* Turkish translation by ESQARE (http://www.phpbbturkey.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ » “ ” …
39+
//
40+
41+
$lang = array_merge($lang, array(
42+
'PAGE_NOT_AVAILABLE' => 'İstenilen “%s” sayfası mevcut değil.',
43+
));

0 commit comments

Comments
 (0)