Skip to content

Commit 12a8696

Browse files
authored
feat: update search placeholder to surface hotkey (#18294)
1 parent 79691b4 commit 12a8696

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

warehouse/locale/messages.pot

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,10 +1239,8 @@ msgstr ""
12391239
msgid "Search PyPI"
12401240
msgstr ""
12411241

1242-
#: warehouse/templates/base.html:257 warehouse/templates/base.html:289
1243-
#: warehouse/templates/error-base-with-search.html:13
1244-
#: warehouse/templates/index.html:35
1245-
msgid "Search projects"
1242+
#: warehouse/templates/base.html:257 warehouse/templates/index.html:35
1243+
msgid "Type '/' to search projects"
12461244
msgstr ""
12471245

12481246
#: warehouse/templates/base.html:268 warehouse/templates/base.html:297
@@ -1251,6 +1249,11 @@ msgstr ""
12511249
msgid "Search"
12521250
msgstr ""
12531251

1252+
#: warehouse/templates/base.html:289
1253+
#: warehouse/templates/error-base-with-search.html:13
1254+
msgid "Search projects"
1255+
msgstr ""
1256+
12541257
#: warehouse/templates/base.html:315
12551258
msgid "Help navigation"
12561259
msgstr ""

warehouse/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
class="search-form__search"
255255
type="text"
256256
name="q"
257-
placeholder="{% trans %}Search projects{% endtrans %}"
257+
placeholder="{% trans %}Type '/' to search projects{% endtrans %}"
258258
value="{{ term }}"
259259
autocomplete="off"
260260
autocapitalize="off"

warehouse/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="homepage-banner__title">{{ banner }}</h1>
3232
class="search-form__search large-input"
3333
type="text"
3434
name="q"
35-
placeholder="{% trans %}Search projects{% endtrans %}"
35+
placeholder="{% trans %}Type '/' to search projects{% endtrans %}"
3636
autocomplete="off"
3737
autocapitalize="off"
3838
spellcheck="false"

0 commit comments

Comments
 (0)