Skip to content

Commit

Permalink
Fix the capitalization of: Current folder (#1697)
Browse files Browse the repository at this point in the history
Co-authored-by: Jumana B <[email protected]>
  • Loading branch information
whabanks and jzbahrai authored Nov 6, 2023
1 parent 24ddc1b commit b693d4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/main/views/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def choose_template(service_id, template_type="all", template_folder_id=None):
allow_adding_copy_of_template=(current_service.all_templates or len(current_user.service_ids) > 1),
)

option_hints = {template_folder_id if template_folder_id is not None else "__NONE__": _l("current folder")}
option_hints = {template_folder_id if template_folder_id is not None else "__NONE__": _l("Current folder")}

if request.method == "POST" and templates_and_folders_form.validate_on_submit():
if not current_user.has_permissions("manage_templates"):
Expand Down
2 changes: 1 addition & 1 deletion app/translations/csv/fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1770,4 +1770,4 @@
"Sent by email","Envoyé par courriel"
"Sent Time","Heure d’envoi"
"Job","Tâche"
"current folder","dossier actuel"
"Current folder","Dossier actuel"
4 changes: 2 additions & 2 deletions tests/app/main/views/test_template_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def test_should_show_radios_and_buttons_for_move_destination_if_correct_permissi
FOLDER_TWO_ID,
]
assert [normalize_spaces(x) for x in radio_div.select("label")] == [
"Templates current folder",
"Templates Current folder",
"folder_one",
"folder_one_one",
"folder_one_two",
Expand Down Expand Up @@ -1159,7 +1159,7 @@ def test_move_folder_form_shows_current_folder_hint_when_in_a_folder(

assert len(move_form_labels) == 3
assert normalize_spaces(move_form_labels[0].text) == "Templates"
assert normalize_spaces(move_form_labels[1].text) == "parent_folder current folder"
assert normalize_spaces(move_form_labels[1].text) == "parent_folder Current folder"
assert normalize_spaces(move_form_labels[2].text) == "child_folder"


Expand Down

0 comments on commit b693d4f

Please sign in to comment.