Skip to content

Commit 0213d72

Browse files
Merge pull request #10 from Personare/refactor/melhorias-estruturais
Refactor/melhorias estruturais
2 parents 142fafa + 969baca commit 0213d72

21 files changed

+1395
-3056
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/.gitattributes export-ignore
2-
/.releaserc.yml export-ignore
32
/README.md export-ignore

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Release
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Plugin Boilerplate
1+
# Plugin Boilerplate ![Release](https://github.com/Personare/plugin-boilerplate/workflows/Release/badge.svg)
22
Plugin destinado a ser usado como boilerplate, ele irá ser usado principalmente quando surgir a necessidade de criar um plugin WordPress do zero,
33
mas com uma estrutura já bem definida, pronto para testes unitários, linter + analisador estático de código e com container de injeção de dependência.
44
## Requirements

config.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
return [
1414
'service_providers' => [
15-
MyApp\WordPress\Services\Assets\AdminServiceProvider::class,
16-
MyApp\WordPress\Services\Assets\EditorServiceProvider::class,
17-
MyApp\WordPress\Services\Assets\LoginServiceProvider::class,
18-
MyApp\WordPress\Services\Assets\ThemeServiceProvider::class,
19-
MyApp\WordPress\Services\ExampleCategoryServiceProvider::class,
20-
MyApp\WordPress\Services\ExampleServiceProvider::class,
21-
MyApp\WordPress\Services\I18nServiceProvider::class,
15+
MyApp\WordPress\Setup\Assets\AdminServiceProvider::class,
16+
MyApp\WordPress\Setup\Assets\EditorServiceProvider::class,
17+
MyApp\WordPress\Setup\Assets\LoginServiceProvider::class,
18+
MyApp\WordPress\Setup\Assets\ThemeServiceProvider::class,
19+
MyApp\WordPress\Setup\ExampleCategoryServiceProvider::class,
20+
MyApp\WordPress\Setup\ExampleServiceProvider::class,
21+
MyApp\WordPress\Setup\I18nServiceProvider::class,
2222
],
2323
];

languages/my-app-en_US.mo

25 Bytes
Binary file not shown.

languages/my-app-en_US.po

Lines changed: 38 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# This file is distributed under the same license as the WP Steak package.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: WP Steak 2.0.0\n"
6-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpsteak-plugin\n"
7-
"POT-Creation-Date: 2020-07-08 02:59:10+00:00\n"
8-
"PO-Revision-Date: 2020-07-07 23:59-0300\n"
5+
"Project-Id-Version: Personare Plugin Boilerplate. 1.0.0\n"
6+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/plugin-"
7+
"boilerplate\n"
8+
"POT-Creation-Date: 2020-07-10 03:15:02+00:00\n"
9+
"PO-Revision-Date: 2020-07-10 00:29-0300\n"
910
"Last-Translator: \n"
1011
"Language-Team: \n"
1112
"Language: en_US\n"
@@ -16,183 +17,183 @@ msgstr ""
1617
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1718

1819
#. translators: %s label plural lower.
19-
#: src/WordPress/Labels/Common.php:20
20+
#: src/WordPress/Labels/Common.php:22
2021
msgid "Todas %s"
2122
msgid_plural "Todos %s"
2223
msgstr[0] "All %s"
2324
msgstr[1] "All %s"
2425

2526
#. translators: %s label singular lower.
26-
#: src/WordPress/Labels/Common.php:22
27+
#: src/WordPress/Labels/Common.php:24
2728
msgid "Editar %s"
2829
msgstr "Edit %s"
2930

3031
#. translators: %s label singular lower.
3132
#. translators: %s label plural lower.
32-
#: src/WordPress/Labels/Common.php:24 src/WordPress/Labels/PostType.php:22
33+
#: src/WordPress/Labels/Common.php:26 src/WordPress/Labels/PostType.php:28
3334
msgid "Ver %s"
3435
msgstr "Show %s"
3536

3637
#. translators: %s label singular lower.
37-
#: src/WordPress/Labels/Common.php:27
38+
#: src/WordPress/Labels/Common.php:29
3839
msgid "Adicionar nova %s"
3940
msgid_plural "Adicionar novo %s"
4041
msgstr[0] "Add new %s"
4142
msgstr[1] "Add new %s"
4243

4344
#. translators: %s label singular.
44-
#: src/WordPress/Labels/Common.php:31
45+
#: src/WordPress/Labels/Common.php:33
4546
msgid "%s pai:"
4647
msgstr "%s parent:"
4748

4849
#. translators: %s label plural lower.
49-
#: src/WordPress/Labels/Common.php:33
50+
#: src/WordPress/Labels/Common.php:35
5051
msgid "Buscar %s"
5152
msgstr "Search %s"
5253

5354
#. translators: %s label singular lower.
54-
#: src/WordPress/Labels/Common.php:36
55+
#: src/WordPress/Labels/Common.php:38
5556
msgid "Nenhuma %s encontrada."
5657
msgid_plural "Nenhum %s encontrado."
5758
msgstr[0] "None %s found."
5859
msgstr[1] "None %s found."
5960

60-
#: src/WordPress/Labels/PostType.php:18
61+
#: src/WordPress/Labels/PostType.php:24
6162
msgid "Adicionar nova"
6263
msgid_plural "Adicionar novo"
6364
msgstr[0] "Add new"
6465
msgstr[1] "Add new"
6566

6667
#. translators: %s label singular female lower; %s label singular male lower;
67-
#: src/WordPress/Labels/PostType.php:20
68+
#: src/WordPress/Labels/PostType.php:26
6869
msgid "Nova %s"
6970
msgid_plural "Novo %s"
7071
msgstr[0] "New %s"
7172
msgstr[1] "New %s"
7273

7374
#. translators: %s label singular lower.
74-
#: src/WordPress/Labels/PostType.php:25
75+
#: src/WordPress/Labels/PostType.php:31
7576
msgid "Nenhuma %s encontrada na Lixeira."
7677
msgid_plural "Nenhum %s encontrado na Lixeira."
7778
msgstr[0] "None %s found on trash."
7879
msgstr[1] "None %s found on trash."
7980

8081
#. translators: %s label plural lower.
81-
#: src/WordPress/Labels/PostType.php:29
82+
#: src/WordPress/Labels/PostType.php:35
8283
msgid "Arquivos de %s"
8384
msgstr "Archives %s"
8485

8586
#. translators: %s label plural lower.
86-
#: src/WordPress/Labels/PostType.php:31
87+
#: src/WordPress/Labels/PostType.php:37
8788
msgid "Atributos de %s"
8889
msgstr "Attributes %s"
8990

9091
#. translators: %s label singular lower.
91-
#: src/WordPress/Labels/PostType.php:34
92+
#: src/WordPress/Labels/PostType.php:40
9293
msgid "Inserir na %s"
9394
msgid_plural "Inserir no %s"
9495
msgstr[0] "Insert on %s"
9596
msgstr[1] "Insert on %s"
9697

9798
#. translators: %s label singular lower.
98-
#: src/WordPress/Labels/PostType.php:39
99+
#: src/WordPress/Labels/PostType.php:45
99100
msgid "Carregado para esta %s"
100101
msgid_plural "Carregado para este %s"
101102
msgstr[0] "Loaded for %s"
102103
msgstr[1] "Loaded for %s"
103104

104-
#: src/WordPress/Labels/PostType.php:42
105+
#: src/WordPress/Labels/PostType.php:48
105106
msgid "Imagem destacada"
106107
msgstr "Featured image"
107108

108-
#: src/WordPress/Labels/PostType.php:43
109+
#: src/WordPress/Labels/PostType.php:49
109110
msgid "Definir imagem destacada"
110111
msgstr "Define featured image"
111112

112-
#: src/WordPress/Labels/PostType.php:44
113+
#: src/WordPress/Labels/PostType.php:50
113114
msgid "Remover imagem destacada"
114115
msgstr "Remove featured image"
115116

116-
#: src/WordPress/Labels/PostType.php:45
117+
#: src/WordPress/Labels/PostType.php:51
117118
msgid "Usar como imagem destacada"
118119
msgstr "Use as featured image"
119120

120121
#. translators: %s label plural lower.
121-
#: src/WordPress/Labels/PostType.php:47
122+
#: src/WordPress/Labels/PostType.php:53
122123
msgid "Filtrar lista de %s"
123124
msgstr "Filter list %s"
124125

125126
#. translators: %s label plural lower.
126-
#: src/WordPress/Labels/PostType.php:49
127+
#: src/WordPress/Labels/PostType.php:55
127128
msgid "Navegação da lista de %s"
128129
msgstr "List navigation of %s"
129130

130131
#. translators: %s label plural lower.
131-
#: src/WordPress/Labels/PostType.php:51
132+
#: src/WordPress/Labels/PostType.php:57
132133
msgid "Lista de %s"
133134
msgstr "List of %s"
134135

135136
#. translators: %s label singular lower.
136-
#: src/WordPress/Labels/Taxonomy.php:19
137+
#: src/WordPress/Labels/Taxonomy.php:25
137138
msgid "Atualizar %s"
138139
msgstr "Update %s"
139140

140141
#. translators: %s label singular lower.
141-
#: src/WordPress/Labels/Taxonomy.php:22
142+
#: src/WordPress/Labels/Taxonomy.php:28
142143
msgid "Nome da nova %s"
143144
msgid_plural "Nome do novo %s"
144145
msgstr[0] "Name of new %s"
145146
msgstr[1] "Name of new %s"
146147

147148
#. translators: %s label singular.
148-
#: src/WordPress/Labels/Taxonomy.php:26
149+
#: src/WordPress/Labels/Taxonomy.php:32
149150
msgid "%s pai"
150151
msgstr "%s parent"
151152

152153
#. translators: %s label singular.
153-
#: src/WordPress/Labels/Taxonomy.php:28
154+
#: src/WordPress/Labels/Taxonomy.php:34
154155
msgid "%s populares"
155156
msgstr "%s popular"
156157

157158
#. translators: %s label plural lower.
158-
#: src/WordPress/Labels/Taxonomy.php:31
159+
#: src/WordPress/Labels/Taxonomy.php:37
159160
msgid "Separe as %s com virgulas"
160161
msgid_plural "Separe os %s com virgulas"
161162
msgstr[0] "Separe %s with commas"
162163
msgstr[1] "Separe %s with commas"
163164

164165
#. translators: %s label singular lower.
165-
#: src/WordPress/Labels/Taxonomy.php:35
166+
#: src/WordPress/Labels/Taxonomy.php:41
166167
msgid "Adicionar ou remover %s"
167168
msgstr "Add or remove %s"
168169

169170
#. translators: %s label plural lower.
170-
#: src/WordPress/Labels/Taxonomy.php:38
171+
#: src/WordPress/Labels/Taxonomy.php:44
171172
msgid "Escolher entre as %s mais usadas"
172173
msgid_plural "Escolher entre os %s mais usados"
173174
msgstr[0] "Chose from %s most used"
174175
msgstr[1] "Chose from %s most used"
175176

176177
#. translators: %s label singular lower.
177-
#: src/WordPress/Labels/Taxonomy.php:43
178+
#: src/WordPress/Labels/Taxonomy.php:49
178179
msgid "Voltar para as %s"
179180
msgid_plural "Voltar para os %s"
180181
msgstr[0] "Back to %s"
181182
msgstr[1] "Back to %s"
182183

183-
#: src/WordPress/Services/ExampleCategoryServiceProvider.php:38
184+
#: src/WordPress/Setup/ExampleCategoryServiceProvider.php:39
184185
msgid "Categoria"
185186
msgstr "Category"
186187

187-
#: src/WordPress/Services/ExampleCategoryServiceProvider.php:38
188+
#: src/WordPress/Setup/ExampleCategoryServiceProvider.php:40
188189
msgid "Categorias"
189190
msgstr "Categories"
190191

191-
#: src/WordPress/Services/ExampleServiceProvider.php:36
192+
#: src/WordPress/Setup/ExampleServiceProvider.php:37
192193
msgid "Examplo"
193194
msgstr "Example"
194195

195-
#: src/WordPress/Services/ExampleServiceProvider.php:36
196+
#: src/WordPress/Setup/ExampleServiceProvider.php:38
196197
msgid "Exemplos"
197198
msgstr "Examples"
198199

@@ -211,21 +212,3 @@ msgstr "Personare"
211212
#. Author URI of the plugin/theme
212213
msgid "https://personare.com.br/"
213214
msgstr "https://personare.com.br/"
214-
215-
#~ msgid "Endereço:"
216-
#~ msgstr "Address line:"
217-
218-
#~ msgid "WP Steak"
219-
#~ msgstr "WP Steak"
220-
221-
#~ msgid "A fully structured plugin."
222-
#~ msgstr "A fully structured plugin."
223-
224-
#~ msgid "Apiki"
225-
#~ msgstr "Apiki"
226-
227-
#~ msgid "Endereço."
228-
#~ msgstr "Address line."
229-
230-
#~ msgid "Data"
231-
#~ msgstr "Data"

0 commit comments

Comments
 (0)