1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Apply #1025 for translations [ci skip]

This commit is contained in:
Zachary Scott 2016-01-24 20:51:18 +09:00
parent c4c6e2a73d
commit 866ff85179
9 changed files with 20 additions and 20 deletions

View file

@ -220,9 +220,9 @@ end
Routen-Muster können auch mit optionalen Parametern ausgestattet werden:
```ruby
get '/posts.?:format?' do
# passt auf "GET /posts" sowie jegliche Erweiterung
# wie "GET /posts.json", "GET /posts.xml" etc.
get '/posts/:format?' do
# passt auf "GET /posts/" sowie jegliche Erweiterung
# wie "GET /posts/json", "GET /posts/xml" etc.
end
```

View file

@ -133,9 +133,9 @@ end
Los patrones de ruta pueden contener parámetros opcionales:
```ruby
get '/posts.?:formato?' do
# coincide con "GET /posts" y además admite cualquier extensión, por
# ejemplo, "GET /posts.json", "GET /posts.xml", etc.
get '/posts/:formato?' do
# coincide con "GET /posts/" y además admite cualquier extensión, por
# ejemplo, "GET /posts/json", "GET /posts/xml", etc.
end
```

View file

@ -226,8 +226,8 @@ end
Les routes peuvent aussi comporter des paramètres optionnels :
```ruby
get '/articles.?:format?' do
# répond à "GET /articles" ou avec une extension "GET /articles.json", "GET /articles.xml" etc...
get '/articles/:format?' do
# répond à "GET /articles/" ou avec une extension "GET /articles/json", "GET /articles/xml" etc...
end
```

View file

@ -224,8 +224,8 @@ end
ルーティングパターンは、オプショナルパラメータを取ることもできます。
```ruby
get '/posts.?:format?' do
# "GET /posts" と "GET /posts.json", "GET /posts.xml" の拡張子などにマッチ
get '/posts/:format?' do
# "GET /posts/" と "GET /posts/json", "GET /posts/xml" の拡張子などにマッチ
end
```

View file

@ -224,8 +224,8 @@ end
라우터 패턴에는 선택적인(optional) 매개변수도 올 수 있습니다.
```ruby
get '/posts.?:format?' do
# "GET /posts" 는 물론 "GET /posts.json", "GET /posts.xml" 와 같은 어떤 확장자와도 매칭
get '/posts/:format?' do
# "GET /posts/" 는 물론 "GET /posts/json", "GET /posts/xml" 와 같은 어떤 확장자와도 매칭
end
```

View file

@ -225,8 +225,8 @@ end
Route patterns may have optional parameters:
```ruby
get '/post/:format?' do
# matches "GET /post/" and any extension "GET /posts/json", "GET /posts/xml" etc
get '/posts/:format?' do
# matches "GET /posts/" and any extension "GET /posts/json", "GET /posts/xml" etc
end
```

View file

@ -197,8 +197,8 @@ end
Padrões de rota podem contar com parâmetros opcionais:
```ruby
get '/posts.?:formato?' do
# corresponde a "GET /posts" e qualquer extensão "GET /posts.json", "GET /posts.xml", etc.
get '/posts/:formato?' do
# corresponde a "GET /posts/" e qualquer extensão "GET /posts/json", "GET /posts/xml", etc.
end
```

View file

@ -225,8 +225,8 @@ end
Шаблоны маршрутов могут иметь необязательные параметры:
```ruby
get '/posts.?:format?' do
# соответствует "GET /posts", "GET /posts.json", "GET /posts.xml" и т.д.
get '/posts/:format?' do
# соответствует "GET /posts/", "GET /posts/json", "GET /posts/xml" и т.д.
end
```

View file

@ -222,8 +222,8 @@ end
路由范式可以包含可选参数:
```ruby
get '/posts.?:format?' do
# 匹配 "GET /posts" 和任意扩展 "GET /posts.json"、"GET /posts.xml" 等
get '/posts/:format?' do
# 匹配 "GET /posts/" 和任意扩展 "GET /posts/json"、"GET /posts/xml" 等
end
```