Permalink
Browse files

Merge pull request #13 from jurajkapsz/integration

Doctype now lowercase as per h5bp.
  • Loading branch information...
nitriques committed Apr 22, 2015
2 parents 6f2fe2b + e918653 commit e0b537dc5532c116d4bb2cf439d0ec68c01503b6
Showing with 26 additions and 1 deletion.
  1. +1 −1 extension.driver.php
  2. +4 −0 extension.meta.xml
  3. +21 −0 lang/lang.sk.php
View
@@ -96,7 +96,7 @@ public function parse_html($context) {
$html_doctype = implode("\n", $html_array);
// Parse the doctype to convert XHTML syntax to HTML5
$html_doctype = preg_replace("/<!DOCTYPE [^>]+>/", "<!DOCTYPE html>", $html_doctype);
$html_doctype = preg_replace("/<!DOCTYPE [^>]+>/", "<!doctype html>", $html_doctype);
$html_doctype = preg_replace('/ xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"| xml:lang="[^\"]*\"/', '', $html_doctype);
$html_doctype = preg_replace('/<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=(.*[a-z0-9-])\"( \/)?>/i', '<meta charset="\1"\2>', $html_doctype);
View
@@ -17,6 +17,10 @@
</author>
</authors>
<releases>
<release version="1.3.3" date="2015-04-22" min="2.3" max="2.6.x">
- Doctype now lowercase as per h5bp
- Added Slovak translation
</release>
<release version="1.3.2" date="2014-11-05" min="2.3">
- Compatibility update for Symphony 2.4: Add 'data-interactive' attribute to tag field in preferences
</release>
View
@@ -0,0 +1,21 @@
<?php
$about = array(
'name' => 'Slovensky',
'author' => array(
'name' => 'Juraj Kapsz',
'email' => 'info@jurajkapsz.sk',
'website' => 'http://jurajkapsz.sk'
),
'release-date' => '2015-04-22'
);
/**
* HTML5 Doctype
*/
$dictionary = array(
'Exclude Types' =>
'Ignorovať typy stránok',
);

0 comments on commit e0b537d

Please sign in to comment.