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

Commit f9c0093

Browse files
committed
Merge branch 'davialexandre-update_portuguese_translation'
2 parents 627cbe1 + ff7dad1 commit f9c0093

5 files changed

Lines changed: 182 additions & 21 deletions

File tree

i18n/en.xliff.dist

Lines changed: 72 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,6 @@
183183
<source>the JSON nodes should be equal to:</source>
184184
<target></target>
185185
</trans-unit>
186-
<trans-unit id="the-json-nodes-should-not-be-equal-to">
187-
<source>the JSON nodes should not be equal to:</source>
188-
<target></target>
189-
</trans-unit>
190186
<trans-unit id="the-json-node-should-be-null">
191187
<source>the JSON node :node should be null</source>
192188
<target></target>
@@ -199,12 +195,12 @@
199195
<source>the JSON node :node should be false</source>
200196
<target></target>
201197
</trans-unit>
202-
<trans-unit id="the-json-node-should-be-the-string">
203-
<source>the JSON node :node should be the string :text</source>
198+
<trans-unit id="the-json-node-should-be-equal-to-the-string">
199+
<source>the JSON node :node should be equal to the string :text</source>
204200
<target></target>
205201
</trans-unit>
206-
<trans-unit id="the-json-node-should-be-the-number">
207-
<source>the JSON node :node should be the number :number</source>
202+
<trans-unit id="the-json-node-should-be-equal-to-the-number">
203+
<source>the JSON node :node should be equal to the number :number</source>
208204
<target></target>
209205
</trans-unit>
210206
<trans-unit id="the-json-node-should-have-n-elements">
@@ -243,6 +239,10 @@
243239
<source>the JSON should be valid according to the schema :filename</source>
244240
<target></target>
245241
</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></target>
245+
</trans-unit>
246246
<trans-unit id="the-json-should-be-eqal-to">
247247
<source>the JSON should be equal to:</source>
248248
<target></target>
@@ -347,6 +347,14 @@
347347
</trans-unit>
348348

349349
<!-- XmlContext.php -->
350+
<trans-unit id="the-xml-should-not-use-the-namespace">
351+
<source>the XML should not use the namespace :namespace</source>
352+
<target></target>
353+
</trans-unit>
354+
<trans-unit id="the-xml-should-use-the-namespace">
355+
<source>the XML should use the namespace :namespace</source>
356+
<target></target>
357+
</trans-unit>
350358
<trans-unit id="the-xml-feed-should-be-valid-accoriding-to-its-dtd">
351359
<source>the XML feed should be valid according to its DTD</source>
352360
<target></target>
@@ -375,6 +383,62 @@
375383
<source>the RSS2 feed should be valid</source>
376384
<target></target>
377385
</trans-unit>
386+
<trans-unit id="print-last-xml-response">
387+
<source>print last XML response</source>
388+
<target></target>
389+
</trans-unit>
390+
<trans-unit id="the-xml-attribute-on-element-should-be-equal-to">
391+
<source>the XML attribute :attribute on element :element should be equal to :text</source>
392+
<target></target>
393+
</trans-unit>
394+
<trans-unit id="the-xml-attribute-on-element-should-not-be-equal-to">
395+
<source>the XML attribute :attribute on element :element should not be equal to :text</source>
396+
<target></target>
397+
</trans-unit>
398+
<trans-unit id="the-xml-attribute-on-element-should-exists">
399+
<source>the XML attribute :attribute on element :element should exist(s)</source>
400+
<target></target>
401+
</trans-unit>
402+
<trans-unit id="the-xml-attribute-on-element-should-not-exists">
403+
<source>the XML attribute :attribute on element :element should not exist(s)</source>
404+
<target></target>
405+
</trans-unit>
406+
<trans-unit id="the-xml-element-should-be-equal-to">
407+
<source>the XML element :element should be equal to :text</source>
408+
<target></target>
409+
</trans-unit>
410+
<trans-unit id="the-xml-element-should-not-be-equal-to">
411+
<source>the XML element :element should not be equal to :text</source>
412+
<target></target>
413+
</trans-unit>
414+
<trans-unit id="the-xml-element-should-contain">
415+
<source>the XML element :element should contain :text</source>
416+
<target></target>
417+
</trans-unit>
418+
<trans-unit id="the-xml-element-should-not-contain">
419+
<source>the XML element :element should not contain :text</source>
420+
<target></target>
421+
</trans-unit>
422+
<trans-unit id="the-xml-element-should-exists">
423+
<source>the XML element :element should exist(s)</source>
424+
<target></target>
425+
</trans-unit>
426+
<trans-unit id="the-xml-element-should-not-exists">
427+
<source>the XML element :element should not exist(s)</source>
428+
<target></target>
429+
</trans-unit>
430+
<trans-unit id="the-xml-element-should-have-elements">
431+
<source>the XML element :element should have :count element(s)</source>
432+
<target></target>
433+
</trans-unit>
434+
<trans-unit id="the-response-should-be-in-xml">
435+
<source>the response should be in XML</source>
436+
<target></target>
437+
</trans-unit>
438+
<trans-unit id="the-response-should-not-be-in-xml">
439+
<source>the response should not be in XML</source>
440+
<target></target>
441+
</trans-unit>
378442
</body>
379443
</file>
380444
</xliff>

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)