Skip to content

Commit 866ff85

Browse files
author
Zachary Scott
committed
Apply sinatra#1025 for translations [ci skip]
1 parent c4c6e2a commit 866ff85

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

README.de.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ end
220220
Routen-Muster können auch mit optionalen Parametern ausgestattet werden:
221221

222222
```ruby
223-
get '/posts.?:format?' do
224-
# passt auf "GET /posts" sowie jegliche Erweiterung
225-
# wie "GET /posts.json", "GET /posts.xml" etc.
223+
get '/posts/:format?' do
224+
# passt auf "GET /posts/" sowie jegliche Erweiterung
225+
# wie "GET /posts/json", "GET /posts/xml" etc.
226226
end
227227
```
228228

README.es.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ end
133133
Los patrones de ruta pueden contener parámetros opcionales:
134134

135135
```ruby
136-
get '/posts.?:formato?' do
137-
# coincide con "GET /posts" y además admite cualquier extensión, por
138-
# ejemplo, "GET /posts.json", "GET /posts.xml", etc.
136+
get '/posts/:formato?' do
137+
# coincide con "GET /posts/" y además admite cualquier extensión, por
138+
# ejemplo, "GET /posts/json", "GET /posts/xml", etc.
139139
end
140140
```
141141

README.fr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ end
226226
Les routes peuvent aussi comporter des paramètres optionnels :
227227

228228
```ruby
229-
get '/articles.?:format?' do
230-
# répond à "GET /articles" ou avec une extension "GET /articles.json", "GET /articles.xml" etc...
229+
get '/articles/:format?' do
230+
# répond à "GET /articles/" ou avec une extension "GET /articles/json", "GET /articles/xml" etc...
231231
end
232232
```
233233

README.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ end
224224
ルーティングパターンは、オプショナルパラメータを取ることもできます。
225225

226226
```ruby
227-
get '/posts.?:format?' do
228-
# "GET /posts" と "GET /posts.json", "GET /posts.xml" の拡張子などにマッチ
227+
get '/posts/:format?' do
228+
# "GET /posts/" と "GET /posts/json", "GET /posts/xml" の拡張子などにマッチ
229229
end
230230
```
231231

README.ko.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ end
224224
라우터 패턴에는 선택적인(optional) 매개변수도 올 수 있습니다.
225225

226226
```ruby
227-
get '/posts.?:format?' do
228-
# "GET /posts" 는 물론 "GET /posts.json", "GET /posts.xml" 와 같은 어떤 확장자와도 매칭
227+
get '/posts/:format?' do
228+
# "GET /posts/" 는 물론 "GET /posts/json", "GET /posts/xml" 와 같은 어떤 확장자와도 매칭
229229
end
230230
```
231231

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ end
225225
Route patterns may have optional parameters:
226226

227227
```ruby
228-
get '/post/:format?' do
229-
# matches "GET /post/" and any extension "GET /posts/json", "GET /posts/xml" etc
228+
get '/posts/:format?' do
229+
# matches "GET /posts/" and any extension "GET /posts/json", "GET /posts/xml" etc
230230
end
231231
```
232232

README.pt-br.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ end
197197
Padrões de rota podem contar com parâmetros opcionais:
198198

199199
```ruby
200-
get '/posts.?:formato?' do
201-
# corresponde a "GET /posts" e qualquer extensão "GET /posts.json", "GET /posts.xml", etc.
200+
get '/posts/:formato?' do
201+
# corresponde a "GET /posts/" e qualquer extensão "GET /posts/json", "GET /posts/xml", etc.
202202
end
203203
```
204204

README.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ end
225225
Шаблоны маршрутов могут иметь необязательные параметры:
226226

227227
```ruby
228-
get '/posts.?:format?' do
229-
# соответствует "GET /posts", "GET /posts.json", "GET /posts.xml" и т.д.
228+
get '/posts/:format?' do
229+
# соответствует "GET /posts/", "GET /posts/json", "GET /posts/xml" и т.д.
230230
end
231231
```
232232

README.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ end
222222
路由范式可以包含可选参数:
223223

224224
```ruby
225-
get '/posts.?:format?' do
226-
# 匹配 "GET /posts" 和任意扩展 "GET /posts.json"、"GET /posts.xml" 等
225+
get '/posts/:format?' do
226+
# 匹配 "GET /posts/" 和任意扩展 "GET /posts/json"、"GET /posts/xml" 等
227227
end
228228
```
229229

0 commit comments

Comments
 (0)