Skip to content

Commit

Permalink
Issue #46 - add template and template part to test localization (l10n…
Browse files Browse the repository at this point in the history
…) into en_GB and bb_BB
  • Loading branch information
bobbingwide committed Nov 30, 2020
1 parent dd2dd6a commit e71ab70
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
37 changes: 37 additions & 0 deletions block-template-parts/i18n-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:heading -->
<h2>List</h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Color</li><li>Center</li><li>Check</li><li>Internationalize</li><li>Localize</li><li>Aluminum</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2>Reversed bbboing</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>According to a researcher at Cambridge University, it doesn't matter in which order the letters in a word are, the only important thing is that the first and last letter be at the right place. The rest can be a total mess and you can still read it without problem. This is because the human mind does not read every letter by itself but the word as a whole.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Non translatable</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Content that should not be translated can be marked up with <code>translate="no"</code>.</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Obfuscate text but leave it readable.</p><cite>Herb Miller, author of bbboing</cite></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p>Example, using the <code>core/html</code> block.</p>
<!-- /wp:paragraph -->

<!-- wp:html -->
<p><span translate="no">Herb Miller</span></p>
<!-- /wp:html --></div>
<!-- /wp:column -->
3 changes: 3 additions & 0 deletions block-templates/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

echo "norty";
11 changes: 11 additions & 0 deletions block-templates/page-i18n-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="WP_DEBUG">page-i18-test.html 12:22</div>
<!-- wp:template-part {"slug":"header","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie","className":"breadcrumbs"} /-->
<!-- wp:template-part {"slug":"post-content","theme":"fizzie","className":"post-content"} /-->
<!-- wp:template-part {"slug":"i18n-test","theme":"fizzie","className":"i18n-test"} /-->
<!-- wp:template-part {"slug":"metadates","theme":"fizzie","className":"metadates"} /-->
<!-- wp:template-part {"slug":"information","theme":"fizzie","className":"information"} /-->
<!-- wp:template-part {"slug":"search","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"page-footer","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"footer","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"footer-menu","theme":"fizzie","className":"footer-menu"} /-->

0 comments on commit e71ab70

Please sign in to comment.