summaryrefslogtreecommitdiff
path: root/docs/_locale/_pot/routing.pot
blob: 73c4931577c059bfc38d09b872b09ed5ac89c33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2009-2015, Marcel Hellkamp
# This file is distributed under the same license as the Bottle package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Bottle 0.13-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-22 16:45-0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../routing.rst:3
# 947e5bcaff794f2cb8eea9913f7bb48e
msgid "Request Routing"
msgstr ""

#: ../../routing.rst:5
# ff0d4148065c40fb99f9f70c0b6d4bd8
msgid "Bottle uses a powerful routing engine to find the right callback for each request. The :ref:`tutorial <tutorial-routing>` shows you the basics. This document covers advanced techniques and rule mechanics in detail."
msgstr ""

#: ../../routing.rst:8
# 8e84d86f1f314a18bcad6041ea2bfee3
msgid "Rule Syntax"
msgstr ""

#: ../../routing.rst:10
# ea073c3cc19544a7aad8d539584320bf
msgid "The :class:`Router` distinguishes between two basic types of routes: **static routes** (e.g. ``/contact``) and **dynamic routes** (e.g. ``/hello/<name>``). A route that contains one or more *wildcards* it is considered dynamic. All other routes are static."
msgstr ""

#: ../../routing.rst:14
# df980c1ca3c44792b9419454610f9fff
msgid "The simplest form of a wildcard consists of a name enclosed in angle brackets (e.g. ``<name>``). The name should be unique for a given route and form a valid python identifier (alphanumeric, starting with a letter). This is because wildcards are used as keyword arguments for the request callback later."
msgstr ""

#: ../../routing.rst:16
# 827ee55a8cf844f2a870edd4ceef3fd9
msgid "Each wildcard matches one or more characters, but stops at the first slash (``/``). This equals a regular expression of ``[^/]+`` and ensures that only one path segment is matched and routes with more than one wildcard stay unambiguous."
msgstr ""

#: ../../routing.rst:18
# 97db942e0a614a428ea76dad9adbf814
msgid "The rule ``/<action>/<item>`` matches as follows:"
msgstr ""

#: ../../routing.rst:21
# 92f3296dbf444e59b4dd678a6ef1eca8
msgid "Path"
msgstr ""

#: ../../routing.rst:21
# b2b90f53658547fc97ace78a82d486bb
msgid "Result"
msgstr ""

#: ../../routing.rst:23
# b9075ae91346426f95a35a4571ac68df
msgid "/save/123"
msgstr ""

#: ../../routing.rst:23
# ed768322a1c14faa9e48ab8776d86e69
msgid "``{'action': 'save', 'item': '123'}``"
msgstr ""

#: ../../routing.rst:24
# 7449f8e375214d1abc73474d77468f1d
msgid "/save/123/"
msgstr ""

#: ../../routing.rst:24
#: ../../routing.rst:25
#: ../../routing.rst:26
# 78f9c453ab714f989543908a4131f60b
# 584b0ea8c06e4ac7b58399e2e41aa976
# ed38019c27634f618a3da11c2ad5c5ce
msgid "`No Match`"
msgstr ""

#: ../../routing.rst:25
# 69b026e714eb4cfcaa47555b70ef5978
msgid "/save/"
msgstr ""

#: ../../routing.rst:26
# 796993a4ecdb457d86998c53214ee7ab
msgid "//123"
msgstr ""

#: ../../routing.rst:29
# f1afc9cbf8b342edbe02c974ed3e4097
msgid "You can change the exact behaviour in many ways using filters. This is described in the next section."
msgstr ""

#: ../../routing.rst:32
# c4ff5cf44f36458aa0e2d491542c1ad6
msgid "Wildcard Filters"
msgstr ""

#: ../../routing.rst:36
# 2062188b17174a76903f8b88893999b7
msgid "Filters are used to define more specific wildcards, and/or transform the matched part of the URL before it is passed to the callback. A filtered wildcard is declared as ``<name:filter>`` or ``<name:filter:config>``. The syntax for the optional config part depends on the filter used."
msgstr ""

#: ../../routing.rst:38
# 13c4dde0508148e2aff1e06b840587a3
msgid "The following standard filters are implemented:"
msgstr ""

#: ../../routing.rst:40
# 3edaa6da891b4ae5889edf18e2e2964b
msgid "**:int** matches (signed) digits and converts the value to integer."
msgstr ""

#: ../../routing.rst:41
# 7383bdbbc9e347cc9c7c427fef9c3dc8
msgid "**:float** similar to :int but for decimal numbers."
msgstr ""

#: ../../routing.rst:42
# 9fbf66cd7c344594bc1670e597d6c29a
msgid "**:path** matches all characters including the slash character in a non-greedy way and may be used to match more than one path segment."
msgstr ""

#: ../../routing.rst:43
# aae42b37183c4569aad53d5a327b4355
msgid "**:re[:exp]** allows you to specify a custom regular expression in the config field. The matched value is not modified."
msgstr ""

#: ../../routing.rst:45
# 3c2029b7595b48f6b236d85575c35f6c
msgid "You can add your own filters to the router. All you need is a function that returns three elements: A regular expression string, a callable to convert the URL fragment to a python value, and a callable that does the opposite. The filter function is called with the configuration string as the only parameter and may parse it as needed::"
msgstr ""

#: ../../routing.rst:71
# 1910ec9ae553427eb68682bc4f1adb79
msgid "Legacy Syntax"
msgstr ""

#: ../../routing.rst:75
# a53374188849429f875c3d83f976139e
msgid "The new rule syntax was introduce in **Bottle 0.10** to simplify some common use cases, but the old syntax still works and you can find lot code examples still using it. The differences are best described by example:"
msgstr ""

#: ../../routing.rst:78
# 4b05d35659594d039b9095a1c0edcb3a
msgid "Old Syntax"
msgstr ""

#: ../../routing.rst:78
# 3f3535af8cff41f18b6a5f9c1efd4770
msgid "New Syntax"
msgstr ""

#: ../../routing.rst:80
# e17c2d410f9a4034ad1395a3dc59e297
msgid "``:name``"
msgstr ""

#: ../../routing.rst:80
# 55d03e3b7f264ba8835959573fdea5f8
msgid "``<name>``"
msgstr ""

#: ../../routing.rst:81
# 81d801b1278e41c08d9d80fe23ad87f9
msgid "``:name#regexp#``"
msgstr ""

#: ../../routing.rst:81
# a5aabb65592147c3866d6b862ad95b33
msgid "``<name:re:regexp>``"
msgstr ""

#: ../../routing.rst:82
# 6e8bd5bdb727473e95c87d72b776b407
msgid "``:#regexp#``"
msgstr ""

#: ../../routing.rst:82
# ba33f5b4231044ea84180cd68368ec7d
msgid "``<:re:regexp>``"
msgstr ""

#: ../../routing.rst:83
# 92e0fe829c514e7e9268e991e7bdd8a2
msgid "``:##``"
msgstr ""

#: ../../routing.rst:83
# e4ff281981d543ee8507f78835748c7d
msgid "``<:re>``"
msgstr ""

#: ../../routing.rst:86
# 4d44ae09e6fc44ce9d81e8ae6b4f297d
msgid "Try to avoid the old syntax in future projects if you can. It is not currently deprecated, but will be eventually."
msgstr ""

#: ../../routing.rst:91
# 781a03f253834a4ea70e589820ed6fcb
msgid "Explicit routing configuration"
msgstr ""

#: ../../routing.rst:93
# 8bd7c04b74ba436098d5825c1487fceb
msgid "Route decorator can also be directly called as method. This way provides flexibility in complex setups, allowing you to directly control, when and how routing configuration done."
msgstr ""

#: ../../routing.rst:95
# 5d31646155bd44049560ec23ac4ca1a3
msgid "Here is a basic example of explicit routing configuration for default bottle application::"
msgstr ""

#: ../../routing.rst:101
# 300cc65d0cad44a9b8d06227ff431489
msgid "In fact, any :class:`Bottle` instance routing can be configured same way::"
msgstr ""