Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Commit ff7dad1

Browse files
committed
Update the portuguese translation
Added missing translations and tests for Json, Rest and System
1 parent 022fc8a commit ff7dad1

4 files changed

Lines changed: 110 additions & 13 deletions

File tree

i18n/pt.xliff

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@
8383
<source><![CDATA[the element :element should be enabled]]></source>
8484
<target><![CDATA[o elemento :element deve estar ativo]]></target>
8585
</trans-unit>
86-
<trans-unit id="i-should-see-the-parameter">
87-
<source><![CDATA[(I )shoud see the :parameter parameter]]></source>
88-
<target><![CDATA[(eu )devo ver o parâmetro :parameter]]></target>
89-
</trans-unit>
9086
<trans-unit id="the-select-box-should-contain">
9187
<source><![CDATA[the :select select box should contain :option]]></source>
9288
<target><![CDATA[o select :select deve conter :option]]></target>
@@ -116,7 +112,7 @@
116112
<target><![CDATA[(eu )mudo para o frame principal]]></target>
117113
</trans-unit>
118114

119-
<!-- FileSystemContext.php -->
115+
<!-- SystemContext.php -->
120116
<trans-unit id="i-put-the-file-into-field">
121117
<source><![CDATA[(I )put the file :file into :field]]></source>
122118
<target><![CDATA[(eu )coloco o arquivo :file no campo :field]]></target>
@@ -129,10 +125,42 @@
129125
<source><![CDATA[(I )execute :command from project root]]></source>
130126
<target><![CDATA[(eu )executo :command a partir da raíz do projeto]]></target>
131127
</trans-unit>
128+
<trans-unit id="command-should-succeed">
129+
<source>command should succeed</source>
130+
<target>o comando deve ser executado com sucesso</target>
131+
</trans-unit>
132+
<trans-unit id="command-should-fail">
133+
<source>command should fail</source>
134+
<target>o comando deve falhar</target>
135+
</trans-unit>
136+
<trans-unit id="command-should-last-lett-than">
137+
<source>command should last less than :seconds seconds</source>
138+
<target>o comando deve demorar menos que :seconds segundos</target>
139+
</trans-unit>
140+
<trans-unit id="command-should-last-more-than">
141+
<source>command should last more than :seconds seconds</source>
142+
<target>o comando deve demorar mais que :seconds segundos</target>
143+
</trans-unit>
132144
<trans-unit id="i-create-the-file-contening">
133145
<source><![CDATA[(I )create the file :filename containing:]]></source>
134146
<target><![CDATA[(eu )crio o arquivo :filename contendo:]]></target>
135147
</trans-unit>
148+
<trans-unit id="output-should-contain">
149+
<source>output should contain :text</source>
150+
<target>a saída deve conter :text</target>
151+
</trans-unit>
152+
<trans-unit id="output-should-not-contain">
153+
<source>output should not contain :text</source>
154+
<target>a saída não deve conter :text</target>
155+
</trans-unit>
156+
<trans-unit id="output-should-be">
157+
<source>output should be:</source>
158+
<target>a saída deve ser:</target>
159+
</trans-unit>
160+
<trans-unit id="output-should-not-be">
161+
<source>output should not be:</source>
162+
<target>a saída não deve ser:</target>
163+
</trans-unit>
136164
<trans-unit id="print-the-content-of-file">
137165
<source><![CDATA[print the content of :filename file]]></source>
138166
<target><![CDATA[exiba o conteúdo do arquivo :filename]]></target>
@@ -155,11 +183,31 @@
155183
<source><![CDATA[the JSON nodes should be equal to:]]></source>
156184
<target><![CDATA[os nós JSON devem ser iguais a:]]></target>
157185
</trans-unit>
186+
<trans-unit id="the-json-node-should-be-null">
187+
<source>the JSON node :node should be null</source>
188+
<target>o nó JSON :node deve ser null</target>
189+
</trans-unit>
190+
<trans-unit id="the-json-node-should-be-true">
191+
<source>the JSON node :node should be true</source>
192+
<target>o nó JSON :node deve ser true</target>
193+
</trans-unit>
194+
<trans-unit id="the-json-node-should-be-false">
195+
<source>the JSON node :node should be false</source>
196+
<target>o nó JSON :node deve ser false</target>
197+
</trans-unit>
198+
<trans-unit id="the-json-node-should-be-the-string">
199+
<source>the JSON node :node should be equal to the string :text</source>
200+
<target>o nó JSON :node deve ser igual a string :text</target>
201+
</trans-unit>
202+
<trans-unit id="the-json-node-should-be-the-number">
203+
<source>the JSON node :node should be equal to the number :number</source>
204+
<target>o nó JSON :node deve ser igual ao número :number</target>
205+
</trans-unit>
158206
<trans-unit id="the-json-node-should-have-n-elements">
159207
<source><![CDATA[the JSON node :node should have :count element(s)]]></source>
160208
<target><![CDATA[o nó JSON :node deve ter :count elemento(s)]]></target>
161209
</trans-unit>
162-
<trans-unit id="the-json-node-should-contain">
210+
<trans-unit id="the-json-node-should-contain-text">
163211
<source><![CDATA[the JSON node :node should contain :text]]></source>
164212
<target><![CDATA[o nó JSON :node deve conter :text]]></target>
165213
</trans-unit>
@@ -179,7 +227,7 @@
179227
<source><![CDATA[the JSON node :name should exist]]></source>
180228
<target><![CDATA[o nó JSON :name deve existir]]></target>
181229
</trans-unit>
182-
<trans-unit id="the-json-node-should-not-exsists">
230+
<trans-unit id="the-json-node-should-not-exists">
183231
<source><![CDATA[the JSON node :name should not exist]]></source>
184232
<target><![CDATA[o nó JSON :name não deve existir]]></target>
185233
</trans-unit>
@@ -191,6 +239,10 @@
191239
<source><![CDATA[the JSON should be valid according to the schema :filename]]></source>
192240
<target><![CDATA[o JSON deve ser válido de acordo com o schema :filename]]></target>
193241
</trans-unit>
242+
<trans-unit id="the-json-should-be-invalid-according-to-the-schema">
243+
<source>the JSON should be invalid according to the schema :filename</source>
244+
<target>o JSON deve ser inválido de acordo com o schema :filename</target>
245+
</trans-unit>
194246
<trans-unit id="the-json-should-be-eqal-to">
195247
<source><![CDATA[the JSON should be equal to:]]></source>
196248
<target><![CDATA[o JSON deve ser igual a:]]></target>
@@ -205,11 +257,11 @@
205257
<source><![CDATA[I send a :method request to :url]]></source>
206258
<target><![CDATA[(eu )envio uma requisição :method para :url]]></target>
207259
</trans-unit>
208-
<trans-unit id="i-send-a-request-to-with-parameters">
260+
<trans-unit id="i-send-a-request-on-with-parameters">
209261
<source><![CDATA[I send a :method request to :url with parameters:]]></source>
210262
<target><![CDATA[(eu )envio uma requisição :method para :url com os parâmetros:]]></target>
211263
</trans-unit>
212-
<trans-unit id="i-send-a-request-to-with-body">
264+
<trans-unit id="i-send-a-request-on-with-body">
213265
<source><![CDATA[I send a :method request to :url with body:]]></source>
214266
<target><![CDATA[(eu )envio uma requisição :method para :url com o corpo:]]></target>
215267
</trans-unit>

tests/features/pt/json.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Funcionalidade: Testando o JSONContext
5151
Quando Eu estou em "/json/imajson.json"
5252
Então o JSON deve ser válido de acordo com o schema "tests/fixtures/www/json/schema.json"
5353

54+
Cenário: Validação do JSON com schema contendo ref (caso inválido)
55+
Quando Eu estou em "/json/withref-invalid.json"
56+
Então o JSON deve ser inválido de acordo com o schema "tests/fixtures/www/json/schemaref.json"
57+
5458
Cenário: Validação do JSON com schema contendo ref
5559
Quando Eu estou em "/json/withref.json"
5660
Então o JSON deve ser válido de acordo com o schema "tests/fixtures/www/json/schemaref.json"
@@ -117,3 +121,14 @@ Funcionalidade: Testando o JSONContext
117121
Então a resposta deve estar em JSON
118122
E o nó JSON "root[0].name" deve existir
119123
E o nó JSON "root" deve ter 2 elementos
124+
125+
Cenário: Verificação com comparação de tipos
126+
Quando Eu estou em "/json/arraywithtypes.json"
127+
Então a resposta deve estar em JSON
128+
E o nó JSON "root[0]" deve ser null
129+
E o nó JSON "root[1]" deve ser true
130+
E o nó JSON "root[2]" deve ser false
131+
E o nó JSON "root[3]" deve ser igual a string "dunglas.fr"
132+
E o nó JSON "root[4]" deve ser igual ao número 1312
133+
E o nó JSON "root[4]" deve ser igual ao número 1312.0
134+
E o nó JSON "root[5]" deve ser igual ao número 1936.2

tests/features/pt/rest.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Funcionalidade: Testando o RESTContext
5757
Então devo ver "HTTP_XXX : yyy"
5858

5959
Cenário: Nome do header case-insensitive
60-
Como descrito na rfc2614 §4.2
61-
https://tools.ietf.org/html/rfc2616#section-4.2
60+
Como descrito na rfc2614 §4.2
61+
https://tools.ietf.org/html/rfc2616#section-4.2
6262

6363
Quando envio uma requisição GET para "rest/index.php"
6464
Então o header "content-type" deve conter "text"

tests/features/pt/system.feature

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
11
#language: pt
22
Funcionalidade: System
33

4-
Cenário: Testando a execução de comandos
5-
Quando executo "ls"
4+
Cenário: Testando a execução
5+
Quando Eu executo "true"
6+
Então o comando deve ser executado com sucesso
7+
Quando Eu executo "false"
8+
Então o comando deve falhar
9+
10+
Cenário: Testando o tempo de execução
11+
Quando Eu executo "sleep 1"
12+
Então o comando deve demorar menos que 2 segundos
13+
14+
Quando Eu executo "sleep 2"
15+
Então o comando deve demorar mais que 1 segundos
16+
17+
Cenário: Testando a saída da execução
18+
Quando Eu executo "echo 'Hello world'"
19+
Então a saída deve conter "Hello world"
20+
E a saída deve conter "Hel.*ld"
21+
E a saída não deve conter "Hello John"
22+
E a saída não deve conter "Hel.*hn"
23+
24+
Cenário: Testando a saída da execução com múltiplas linhas
25+
Quando Eu executo "echo 'Hello world\nHow are you?'"
26+
Então a saída deve ser:
27+
"""
28+
Hello world
29+
How are you?
30+
"""
31+
E a saída não deve ser:
32+
"""
33+
Hello John
34+
How are you?
35+
"""
636

737
Cenário: Testando a execução de comandos a partir da raiz do projeto
838
Quando executo "bin/behat --help"

0 commit comments

Comments
 (0)