Skip to content

Commit

Permalink
Issue #46 - add test files for i18n extract and localization
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Dec 7, 2020
1 parent f2e2c3f commit b09f55d
Show file tree
Hide file tree
Showing 9 changed files with 351 additions and 26 deletions.
28 changes: 28 additions & 0 deletions languages/bb_BB/block-template-parts/i18n-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:heading --><h2>Lsit</h2>
<!-- /wp:heading -->

<!-- wp:list --><ul><li>Cloor</li><li>Cneetr</li><li>Cehck</li><li>Itnreanitnolazie</li><li>Lcolazie</li><li>Aulimunm</li></ul>
<!-- /wp:list -->

<!-- wp:heading --><h2>Rvereesd bbbiong</h2>
<!-- /wp:heading -->

<!-- wp:paragraph --><p>Accroidng tO A rseaecrehr At Cmarbdige Uinevsrtiy, It deosn't mtaetr In wihch odrer thE lteetrs In A wrod ArE, thE olny ipmroatnt tihng Is taht thE frist And lsat lteetr bE At thE rgiht palce. ThE rset cAn bE A ttoal mses And yOU cAn sitll raed It wtiohut porlbem. Tihs Is bceuase thE hmuan mnid deos nOt raed eevry lteetr by istlef bUt thE wrod As A wohle.</p>
<!-- /wp:paragraph -->

<!-- wp:heading --><h2>NOn tarsnalatlbe</h2>
<!-- /wp:heading -->

<!-- wp:paragraph --><p>Cnoetnt taht sohlud nOt bE tarsnaletd cAn bE mraekd Up wtih <code>translate="no"</code>.</p>
<!-- /wp:paragraph -->

<!-- wp:quote --><blockquote class="wp-block-quote"><p>Ofbsuacte txet bUt laeve It raeadlbe.</p><cite>Hreb Mlielr, atuohr Of bbbiong</cite></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph --><p>Eaxpmle, uisng thE <code>croe/hmtl</code> bolck.</p>
<!-- /wp:paragraph -->

<!-- wp:html --><p><span translate="no">Hreb Mlielr</span></p>
<!-- /wp:html --></div>
<!-- /wp:column -->
11 changes: 11 additions & 0 deletions languages/bb_BB/block-templates/page-i18n-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="WP_DEBUG">pgae-I18-tset.hmtl 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"} /-->
28 changes: 28 additions & 0 deletions languages/en_GB/block-template-parts/i18n-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:heading --><h2>List</h2>
<!-- /wp:heading -->

<!-- wp:list --><ul><li>Colour</li><li>Centre</li><li>Check</li><li>Internationalise</li><li>Localise</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 -->
11 changes: 11 additions & 0 deletions languages/en_GB/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"} /-->
Binary file modified languages/fizzie-bb_BB.mo
Binary file not shown.
115 changes: 105 additions & 10 deletions languages/fizzie-bb_BB.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fizzie\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/fizzie\n"
"POT-Creation-Date: 2020-11-29 09:57:28+00:00\n"
"POT-Creation-Date: 2020-11-30 10:40:30+00:00\n"
"MIME-Version: 1.0\n"
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
"Language: bb_BB\n"
Expand Down Expand Up @@ -49,18 +49,23 @@ msgstr "idnex.hmtl"


#: page-13.html div>#text
msgid "pgae-13.hmtl 12:22"
msgstr "page-13.html 12:22"
msgid "page-13.html 12:48"
msgstr "pgae-13.hmtl 12:48"


#: page-about.html div>#text
msgid "pgae-aobut.hmtl 12:20"
msgstr "page-about.html 12:20"
msgid "page-about.html 11:49"
msgstr "pgae-aobut.hmtl 11:49"


#: page-i18n-test.html div>#text
msgid "page-i18-test.html 12:22"
msgstr "pgae-I18-tset.hmtl 12:22"


#: search.html div>#text
msgid "saecrh.hmtl"
msgstr "search.html"
msgid "search.html"
msgstr "saecrh.hmtl"


#: single-oik-plugins.html div>#text
Expand Down Expand Up @@ -163,9 +168,9 @@ msgid "oik plugins"
msgstr "OIk puligns"


#: header-menu.html core/navigation-link label
msgid "ome"
msgstr "OmE"
#: footer.html core/paragraph p>#text
msgid "[clone][cloned]"
msgstr "[clone][cloned]"


#: header-menu.html core/navigation-link label
Expand Down Expand Up @@ -193,6 +198,96 @@ msgid "home-part.html is part of home.html"
msgstr "hmoe-prat.hmtl Is prat Of hmoe.hmtl"


#: i18n-test.html core/heading h2>#text
msgid "List"
msgstr "Lsit"


#: i18n-test.html core/list ul>li>#text
msgid "Color"
msgstr "Cloor"


#: i18n-test.html core/list ul>li>#text
msgid "Center"
msgstr "Cneetr"


#: i18n-test.html core/list ul>li>#text
msgid "Check"
msgstr "Cehck"


#: i18n-test.html core/list ul>li>#text
msgid "Internationalize"
msgstr "Itnreanitnolazie"


#: i18n-test.html core/list ul>li>#text
msgid "Localize"
msgstr "Lcolazie"


#: i18n-test.html core/list ul>li>#text
msgid "Aluminum"
msgstr "Aulimunm"


#: i18n-test.html core/heading h2>#text
msgid "Reversed bbboing"
msgstr "Rvereesd bbbiong"


#: i18n-test.html core/paragraph p>#text
msgid "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."
msgstr "Accroidng tO A rseaecrehr At Cmarbdige Uinevsrtiy, It deosn't mtaetr In wihch odrer thE lteetrs In A wrod ArE, thE olny ipmroatnt tihng Is taht thE frist And lsat lteetr bE At thE rgiht palce. ThE rset cAn bE A ttoal mses And yOU cAn sitll raed It wtiohut porlbem. Tihs Is bceuase thE hmuan mnid deos nOt raed eevry lteetr by istlef bUt thE wrod As A wohle."


#: i18n-test.html core/heading h2>#text
msgid "Non translatable"
msgstr "NOn tarsnalatlbe"


#: i18n-test.html core/paragraph p>#text
msgid "Content that should not be translated can be marked up with"
msgstr "Cnoetnt taht sohlud nOt bE tarsnaletd cAn bE mraekd Up wtih"


#: i18n-test.html core/paragraph p>code>#text
msgid "translate=\"no\""
msgstr "translate=\"no\""


#: i18n-test.html core/paragraph p>#text
msgid "."
msgstr "."


#: i18n-test.html core/quote blockquote>p>#text
msgid "Obfuscate text but leave it readable."
msgstr "Ofbsuacte txet bUt laeve It raeadlbe."


#: i18n-test.html core/quote blockquote>cite>#text
msgid "Herb Miller, author of bbboing"
msgstr "Hreb Mlielr, atuohr Of bbbiong"


#: i18n-test.html core/paragraph p>#text
msgid "Example, using the"
msgstr "Eaxpmle, uisng thE"


#: i18n-test.html core/paragraph p>code>#text
msgid "core/html"
msgstr "croe/hmtl"


#: i18n-test.html core/paragraph p>#text
msgid "block."
msgstr "bolck."


#: information.html core/heading h2>#text
msgid "Information"
msgstr "Ifnroamiton"
Expand Down
Binary file modified languages/fizzie-en_GB.mo
Binary file not shown.
96 changes: 86 additions & 10 deletions languages/fizzie-en_GB.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fizzie\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/fizzie\n"
"POT-Creation-Date: 2020-11-29 09:57:28+00:00\n"
"POT-Creation-Date: 2020-11-30 10:40:30+00:00\n"
"MIME-Version: 1.0\n"
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
"Language: en_GB\n"
Expand Down Expand Up @@ -42,16 +42,20 @@ msgid "index.html"
msgstr "index.html"

#: page-13.html div>#text
msgid "pgae-13.hmtl 12:22"
msgstr "pgae-13.hmtl 12:22"
msgid "page-13.html 12:48"
msgstr "page-13.html 12:48"

#: page-about.html div>#text
msgid "pgae-aobut.hmtl 12:20"
msgstr "pgae-aobut.hmtl 12:20"
msgid "page-about.html 11:49"
msgstr "page-about.html 11:49"

#: page-i18n-test.html div>#text
msgid "page-i18-test.html 12:22"
msgstr "page-i18-test.html 12:22"

#: search.html div>#text
msgid "saecrh.hmtl"
msgstr "saecrh.hmtl"
msgid "search.html"
msgstr "search.html"

#: single-oik-plugins.html div>#text
msgid "single-oik-plugins.html"
Expand Down Expand Up @@ -133,9 +137,9 @@ msgstr " and "
msgid "oik plugins"
msgstr "oik plugins"

#: header-menu.html core/navigation-link label
msgid "ome"
msgstr "ome"
#: footer.html core/paragraph p>#text
msgid "[clone][cloned]"
msgstr "[clone][cloned]"

#: header-menu.html core/navigation-link label
msgid "Blocks"
Expand All @@ -157,6 +161,78 @@ msgstr "About"
msgid "home-part.html is part of home.html"
msgstr "home-part.html is part of home.html"

#: i18n-test.html core/heading h2>#text
msgid "List"
msgstr "List"

#: i18n-test.html core/list ul>li>#text
msgid "Color"
msgstr "Colour"

#: i18n-test.html core/list ul>li>#text
msgid "Center"
msgstr "Centre"

#: i18n-test.html core/list ul>li>#text
msgid "Check"
msgstr "Check"

#: i18n-test.html core/list ul>li>#text
msgid "Internationalize"
msgstr "Internationalise"

#: i18n-test.html core/list ul>li>#text
msgid "Localize"
msgstr "Localise"

#: i18n-test.html core/list ul>li>#text
msgid "Aluminum"
msgstr "Aluminum"

#: i18n-test.html core/heading h2>#text
msgid "Reversed bbboing"
msgstr "Reversed bbboing"

#: i18n-test.html core/paragraph p>#text
msgid "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."
msgstr "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."

#: i18n-test.html core/heading h2>#text
msgid "Non translatable"
msgstr "Non translatable"

#: i18n-test.html core/paragraph p>#text
msgid "Content that should not be translated can be marked up with"
msgstr "Content that should not be translated can be marked up with"

#: i18n-test.html core/paragraph p>code>#text
msgid "translate=\"no\""
msgstr "translate=\"no\""

#: i18n-test.html core/paragraph p>#text
msgid "."
msgstr "."

#: i18n-test.html core/quote blockquote>p>#text
msgid "Obfuscate text but leave it readable."
msgstr "Obfuscate text but leave it readable."

#: i18n-test.html core/quote blockquote>cite>#text
msgid "Herb Miller, author of bbboing"
msgstr "Herb Miller, author of bbboing"

#: i18n-test.html core/paragraph p>#text
msgid "Example, using the"
msgstr "Example, using the"

#: i18n-test.html core/paragraph p>code>#text
msgid "core/html"
msgstr "core/html"

#: i18n-test.html core/paragraph p>#text
msgid "block."
msgstr "block."

#: information.html core/heading h2>#text
msgid "Information"
msgstr "Information"
Expand Down
Loading

0 comments on commit b09f55d

Please sign in to comment.