FIX Update translations to match class namespaces

This commit is contained in:
Robbie Averill 2017-11-27 14:14:00 +13:00
parent 112059c6e5
commit 1f0292c564
24 changed files with 35 additions and 38 deletions

3
.upgrade.yml Normal file
View File

@ -0,0 +1,3 @@
mappings:
IFramePage: SilverStripe\IFrame\IFramePage
IFramePage_Controller: SilverStripe\IFrame\IFramePageController

View File

@ -1,5 +1,5 @@
ar: ar:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'يقوم بتضمين آى فريم بداخل جسم الصفحة.' DESCRIPTION: 'يقوم بتضمين آى فريم بداخل جسم الصفحة.'
PLURALNAME: 'الصفحات الرئيسية' PLURALNAME: 'الصفحات الرئيسية'
SINGULARNAME: 'صفحة الإطار' SINGULARNAME: 'صفحة الإطار'

View File

@ -1,3 +1,3 @@
cs: cs:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Základní stránky' PLURALNAME: 'Základní stránky'

View File

@ -1,5 +1,5 @@
de: de:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Bettet eine andere Seite mittels Iframe ein.' DESCRIPTION: 'Bettet eine andere Seite mittels Iframe ein.'
PLURALNAME: 'Iframe Seiten' PLURALNAME: 'Iframe Seiten'
SINGULARNAME: 'Iframe Seite' SINGULARNAME: 'Iframe Seite'

View File

@ -1,8 +1,11 @@
en: en:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Embeds an iframe into the body of the page.' 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.' 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...' 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.'

View File

@ -1,5 +1,5 @@
eo: eo:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Enkorpigas je iframe (kadro) en la korpon de la paĝo.' DESCRIPTION: 'Enkorpigas je iframe (kadro) en la korpon de la paĝo.'
PLURALNAME: 'Bazaj paĝoj' PLURALNAME: 'Bazaj paĝoj'
SINGULARNAME: 'Paĝo de iframe (kadro)' SINGULARNAME: 'Paĝo de iframe (kadro)'

View File

@ -1,3 +1,3 @@
es: es:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Página base' PLURALNAME: 'Página base'

View File

@ -1,4 +1,4 @@
fa_IR: fa_IR:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'صفحه اصلی' PLURALNAME: 'صفحه اصلی'
SINGULARNAME: 'صفحه I Frame' SINGULARNAME: 'صفحه I Frame'

View File

@ -1,10 +1,9 @@
fi: fi:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Upottaa iframen sivulle.' DESCRIPTION: 'Upottaa iframen sivulle.'
PLURALNAME: Pohjasivut PLURALNAME: Pohjasivut
SINGULARNAME: 'I Frame sivu' SINGULARNAME: 'I Frame sivu'
VALIDATION: VALIDATION:
BANNEDURLSCHEME: 'Tämä URL-skeema ei ole sallittu.' 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.' 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öä...' Loading: 'Ladataan sisältöä...'

View File

@ -1,3 +1,3 @@
fi_FI: fi_FI:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: Pohjasivut PLURALNAME: Pohjasivut

View File

@ -1,3 +1,3 @@
fr: fr:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Base Pages' PLURALNAME: 'Base Pages'

View File

@ -1 +0,0 @@
id:

View File

@ -1 +0,0 @@
it:

View File

@ -1,3 +1,3 @@
lt: lt:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Baziniai puslapiai' PLURALNAME: 'Baziniai puslapiai'

View File

@ -1,5 +1,5 @@
lt_LT: lt_LT:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Įtraukia iframe į puslapio body dalį' DESCRIPTION: 'Įtraukia iframe į puslapio body dalį'
PLURALNAME: 'Baziniai puslapiai' PLURALNAME: 'Baziniai puslapiai'
SINGULARNAME: 'Iframe puslapis' SINGULARNAME: 'Iframe puslapis'

View File

@ -1,10 +1,7 @@
mi: mi:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Ka tāmau i tētahi ī-tāpare ki roto i te tinana o te whārangi.' DESCRIPTION: 'Ka tāmau i tētahi ī-tāpare ki roto i te tinana o te whārangi.'
PLURALNAME: 'Ngā Whārangi Pūtake' PLURALNAME: 'Ngā Whārangi Pūtake'
SINGULARNAME: 'Whārangi Ī-Tāpare' 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.' 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...' Loading: 'Uta ihirangi ana...'
SiteTree:
PLURALNAME: 'Ngā Whārangi'
SINGULARNAME: Whārangi

View File

@ -1,13 +1,9 @@
nl: nl:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Voegt een iframe toe aan de pagina.' DESCRIPTION: 'Voegt een iframe toe aan de pagina.'
PLURALNAME: 'Basis pagina''s' PLURALNAME: 'Basis pagina''s'
SINGULARNAME: 'I Frame Pagina' SINGULARNAME: 'I Frame Pagina'
VALIDATION: VALIDATION:
BANNEDURLSCHEME: 'Dit URL schema is niet toegestaan.' 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.' 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...' Loading: 'Laden van inhoud...'
SiteTree:
PLURALNAME: 'Pagina''s'
SINGULARNAME: Pagina

View File

@ -1 +0,0 @@
pt_BR:

View File

@ -1,5 +1,5 @@
ru: ru:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: 'Вставка элемента iframe в основную область страницы.' DESCRIPTION: 'Вставка элемента iframe в основную область страницы.'
PLURALNAME: 'Страницы iframe' PLURALNAME: 'Страницы iframe'
SINGULARNAME: 'Страница iframe' SINGULARNAME: 'Страница iframe'

View File

@ -1,3 +1,3 @@
sk: sk:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Základné stránky' PLURALNAME: 'Základné stránky'

View File

@ -1,3 +1,3 @@
sv: sv:
IFramePage: SilverStripe\IFrame\IFramePage:
PLURALNAME: 'Bas sidor' PLURALNAME: 'Bas sidor'

View File

@ -1,5 +1,5 @@
zh: zh:
IFramePage: SilverStripe\IFrame\IFramePage:
DESCRIPTION: '将 iframe 嵌入页面主体' DESCRIPTION: '将 iframe 嵌入页面主体'
PLURALNAME: 基页 PLURALNAME: 基页
SINGULARNAME: 'IFRAME 页面' SINGULARNAME: 'IFRAME 页面'

View File

@ -35,6 +35,8 @@ class IFramePage extends Page
private static $description = 'Embeds an iframe into the body of the page.'; private static $description = 'Embeds an iframe into the body of the page.';
private static $singular_name = 'IFrame Page';
public function getCMSFields() public function getCMSFields()
{ {
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
@ -128,7 +130,7 @@ class IFramePage extends Page
$allowed_schemes = array('http', 'https'); $allowed_schemes = array('http', 'https');
if ($matches = parse_url($this->IFrameURL)) { if ($matches = parse_url($this->IFrameURL)) {
if (isset($matches['scheme']) && !in_array($matches['scheme'], $allowed_schemes)) { 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."));
} }
} }

View File

@ -1,15 +1,15 @@
<div class="typography"> <div class="typography">
<h2>$Title</h2> <h2>$Title</h2>
$Content $Content
<% if IFrameURL %> <% if $IFrameURL %>
<span id="Iframepage-loading" style="display: none;"> <span id="Iframepage-loading" style="display: none;">
<%t IframePage.Loading "Loading content..." %> <%t SilverStripe\\IFrame\\IFramePage.Loading "Loading content..." %>
</span> </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;"> <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> </div>
<iframe id="Iframepage-iframe" style="$Style" src="$IFrameURL" class="$Class">$AlternateContent</iframe> <iframe id="Iframepage-iframe" style="$Style" src="$IFrameURL" class="$Class">$AlternateContent</iframe>
<% end_if %> <% end_if %>
$BottomContent $BottomContent
</div> </div>