mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 11:05:51 +02:00
FIX Update translations to match class namespaces
This commit is contained in:
parent
112059c6e5
commit
1f0292c564
3
.upgrade.yml
Normal file
3
.upgrade.yml
Normal file
@ -0,0 +1,3 @@
|
||||
mappings:
|
||||
IFramePage: SilverStripe\IFrame\IFramePage
|
||||
IFramePage_Controller: SilverStripe\IFrame\IFramePageController
|
@ -1,5 +1,5 @@
|
||||
ar:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'يقوم بتضمين آى فريم بداخل جسم الصفحة.'
|
||||
PLURALNAME: 'الصفحات الرئيسية'
|
||||
SINGULARNAME: 'صفحة الإطار'
|
||||
|
@ -1,3 +1,3 @@
|
||||
cs:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Základní stránky'
|
||||
|
@ -1,5 +1,5 @@
|
||||
de:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Bettet eine andere Seite mittels Iframe ein.'
|
||||
PLURALNAME: 'Iframe Seiten'
|
||||
SINGULARNAME: 'Iframe Seite'
|
||||
|
11
lang/en.yml
11
lang/en.yml
@ -1,8 +1,11 @@
|
||||
en:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Embeds an iframe into the body of the page.'
|
||||
PLURALNAME: 'Base Pages'
|
||||
SINGULARNAME: 'I Frame Page'
|
||||
VALIDATION_BANNEDURLSCHEME: 'This URL scheme is not allowed.'
|
||||
ExternalNote: 'Please note the following section of content is possibly being delivered from an external source (IFRAME in HTML terms), and may present unusual experiences for screen readers.'
|
||||
Loading: 'Loading content...'
|
||||
PLURALNAME: 'IFrame Pages'
|
||||
PLURALS:
|
||||
one: 'An IFrame Page'
|
||||
other: '{count} IFrame Pages'
|
||||
SINGULARNAME: 'IFrame Page'
|
||||
VALIDATION_BANNEDURLSCHEME: 'This URL scheme is not allowed.'
|
||||
|
@ -1,5 +1,5 @@
|
||||
eo:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Enkorpigas je iframe (kadro) en la korpon de la paĝo.'
|
||||
PLURALNAME: 'Bazaj paĝoj'
|
||||
SINGULARNAME: 'Paĝo de iframe (kadro)'
|
||||
|
@ -1,3 +1,3 @@
|
||||
es:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Página base'
|
||||
|
@ -1,4 +1,4 @@
|
||||
fa_IR:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'صفحه اصلی'
|
||||
SINGULARNAME: 'صفحه I Frame'
|
||||
|
@ -1,10 +1,9 @@
|
||||
fi:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Upottaa iframen sivulle.'
|
||||
PLURALNAME: Pohjasivut
|
||||
SINGULARNAME: 'I Frame sivu'
|
||||
VALIDATION:
|
||||
BANNEDURLSCHEME: 'Tämä URL-skeema ei ole sallittu.'
|
||||
IframePage:
|
||||
ExternalNote: 'Huomioithan, että seuraava sisältöosio on upotettu ulkopuolisesta lähteestä (HTML-kielen IFRAME-käskyllä) ja saattaa aiheuttaa odottamattoman käyttökokemuksen selaimessa.'
|
||||
Loading: 'Ladataan sisältöä...'
|
||||
|
@ -1,3 +1,3 @@
|
||||
fi_FI:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: Pohjasivut
|
||||
|
@ -1,3 +1,3 @@
|
||||
fr:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Base Pages'
|
||||
|
@ -1 +0,0 @@
|
||||
id:
|
@ -1 +0,0 @@
|
||||
it:
|
@ -1,3 +1,3 @@
|
||||
lt:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Baziniai puslapiai'
|
||||
|
@ -1,5 +1,5 @@
|
||||
lt_LT:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Įtraukia iframe į puslapio body dalį'
|
||||
PLURALNAME: 'Baziniai puslapiai'
|
||||
SINGULARNAME: 'Iframe puslapis'
|
||||
|
@ -1,10 +1,7 @@
|
||||
mi:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Ka tāmau i tētahi ī-tāpare ki roto i te tinana o te whārangi.'
|
||||
PLURALNAME: 'Ngā Whārangi Pūtake'
|
||||
SINGULARNAME: 'Whārangi Ī-Tāpare'
|
||||
ExternalNote: 'Me mōhio ka tukuna pea te wāhanga ihirangi e whai nei i tētahi pūtake ā-waho (he Ī-TĀPARE e pā ana ki te HTML), ā, ka whakarato pea i ngā wheako rerekē mō ngā pūpānui mata.'
|
||||
Loading: 'Uta ihirangi ana...'
|
||||
SiteTree:
|
||||
PLURALNAME: 'Ngā Whārangi'
|
||||
SINGULARNAME: Whārangi
|
||||
|
@ -1,13 +1,9 @@
|
||||
nl:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Voegt een iframe toe aan de pagina.'
|
||||
PLURALNAME: 'Basis pagina''s'
|
||||
SINGULARNAME: 'I Frame Pagina'
|
||||
VALIDATION:
|
||||
BANNEDURLSCHEME: 'Dit URL schema is niet toegestaan.'
|
||||
IframePage:
|
||||
ExternalNote: 'Gelieve op te merken dat de volgende sectie mogelijk kan aangeleverd worden door een externe bron (IFRAME in HTML termen) en dat dit een ongewone ervaring kan leveren voor scherm lezers.'
|
||||
Loading: 'Laden van inhoud...'
|
||||
SiteTree:
|
||||
PLURALNAME: 'Pagina''s'
|
||||
SINGULARNAME: Pagina
|
||||
|
@ -1 +0,0 @@
|
||||
pt_BR:
|
@ -1,5 +1,5 @@
|
||||
ru:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: 'Вставка элемента iframe в основную область страницы.'
|
||||
PLURALNAME: 'Страницы iframe'
|
||||
SINGULARNAME: 'Страница iframe'
|
||||
|
@ -1,3 +1,3 @@
|
||||
sk:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Základné stránky'
|
||||
|
@ -1,3 +1,3 @@
|
||||
sv:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
PLURALNAME: 'Bas sidor'
|
||||
|
@ -1,5 +1,5 @@
|
||||
zh:
|
||||
IFramePage:
|
||||
SilverStripe\IFrame\IFramePage:
|
||||
DESCRIPTION: '将 iframe 嵌入页面主体'
|
||||
PLURALNAME: 基页
|
||||
SINGULARNAME: 'IFRAME 页面'
|
||||
|
@ -35,6 +35,8 @@ class IFramePage extends Page
|
||||
|
||||
private static $description = 'Embeds an iframe into the body of the page.';
|
||||
|
||||
private static $singular_name = 'IFrame Page';
|
||||
|
||||
public function getCMSFields()
|
||||
{
|
||||
$fields = parent::getCMSFields();
|
||||
@ -128,7 +130,7 @@ class IFramePage extends Page
|
||||
$allowed_schemes = array('http', 'https');
|
||||
if ($matches = parse_url($this->IFrameURL)) {
|
||||
if (isset($matches['scheme']) && !in_array($matches['scheme'], $allowed_schemes)) {
|
||||
$result->addError(_t('IFramePage.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed."));
|
||||
$result->addError(_t(__CLASS__ . '.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
<div class="typography">
|
||||
<h2>$Title</h2>
|
||||
|
||||
|
||||
$Content
|
||||
<% if IFrameURL %>
|
||||
<% if $IFrameURL %>
|
||||
<span id="Iframepage-loading" style="display: none;">
|
||||
<%t IframePage.Loading "Loading content..." %>
|
||||
<%t SilverStripe\\IFrame\\IFramePage.Loading "Loading content..." %>
|
||||
</span>
|
||||
<div class="nonvisual-indicator" style="position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0;">
|
||||
<%t IframePage.ExternalNote "Please note the following section of content is possibly being delivered from an external source (IFRAME in HTML terms), and may present unusual experiences for screen readers." %>
|
||||
<%t SilverStripe\\IFrame\\IFramePage.ExternalNote "Please note the following section of content is possibly being delivered from an external source (IFRAME in HTML terms), and may present unusual experiences for screen readers." %>
|
||||
</div>
|
||||
<iframe id="Iframepage-iframe" style="$Style" src="$IFrameURL" class="$Class">$AlternateContent</iframe>
|
||||
<% end_if %>
|
||||
$BottomContent
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user