mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Editor: Fix failing unit test for i18n support in theme.json
As part of the change, I also did some code reorganization to match with how other test fixtures are handled. Follow-up [50959]. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@50960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
BIN
tests/phpunit/data/languages/themes/fse-pl_PL.mo
Normal file
BIN
tests/phpunit/data/languages/themes/fse-pl_PL.mo
Normal file
Binary file not shown.
31
tests/phpunit/data/languages/themes/fse-pl_PL.po
Normal file
31
tests/phpunit/data/languages/themes/fse-pl_PL.po
Normal file
@@ -0,0 +1,31 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2015-12-31 16:31+0100\n"
|
||||
"PO-Revision-Date: 2021-03-15 13:10+0100\n"
|
||||
"Language: pl_PL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
||||
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
||||
"esc_html_x:1,2c\n"
|
||||
"X-Textdomain-Support: yes\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
|
||||
msgctxt "Custom template name"
|
||||
msgid "Homepage template"
|
||||
msgstr "Szablon strony głównej"
|
||||
|
||||
msgctxt "Color name"
|
||||
msgid "Light"
|
||||
msgstr "Jasny"
|
||||
|
||||
msgctxt "Color name"
|
||||
msgid "Dark"
|
||||
msgstr "Ciemny"
|
||||
4
tests/phpunit/data/themedir1/fse/index.php
Normal file
4
tests/phpunit/data/themedir1/fse/index.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
/**
|
||||
* Dummy theme.
|
||||
*/
|
||||
7
tests/phpunit/data/themedir1/fse/style.css
Normal file
7
tests/phpunit/data/themedir1/fse/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
Theme Name: FSE Theme
|
||||
Theme URI: https://wordpress.org/
|
||||
Description: For testing purposes only.
|
||||
Version: 1.0.0
|
||||
Text Domain: fse
|
||||
*/
|
||||
45
tests/phpunit/data/themedir1/fse/theme.json
Normal file
45
tests/phpunit/data/themedir1/fse/theme.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"version": 1,
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "light",
|
||||
"name": "Light",
|
||||
"color": "#f5f7f9"
|
||||
},
|
||||
{
|
||||
"slug": "dark",
|
||||
"name": "Dark",
|
||||
"color": "#000"
|
||||
}
|
||||
],
|
||||
"custom": false
|
||||
},
|
||||
"blocks": {
|
||||
"core/paragraph": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "light",
|
||||
"name": "Light",
|
||||
"color": "#f5f7f9"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "page-home",
|
||||
"title": "Homepage template"
|
||||
}
|
||||
],
|
||||
"templateParts": [
|
||||
{
|
||||
"name": "small-header",
|
||||
"area": "header"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user