Merge pull request #136 from kra-mo/fix-invalid-location-text
Changed invalid location texts
This commit is contained in:
@@ -345,14 +345,17 @@ class PreferencesWindow(Adw.PreferencesWindow):
|
|||||||
|
|
||||||
# Bad picked location, inform user
|
# Bad picked location, inform user
|
||||||
else:
|
else:
|
||||||
if location_name == "cache":
|
title = _("Invalid Directory")
|
||||||
title = _("Invalid Directory")
|
match location_name:
|
||||||
# The variable is the name of the source
|
case "cache":
|
||||||
subtitle_format = _("Select the {} cache directory.")
|
# The variable is the name of the source
|
||||||
else:
|
subtitle_format = _("Select the {} cache directory.")
|
||||||
title = _("Invalid Directory")
|
case "config":
|
||||||
# The variable is the name of the source
|
# The variable is the name of the source
|
||||||
subtitle_format = _("Select the {} installation directory.")
|
subtitle_format = _("Select the {} configuration directory.")
|
||||||
|
case "data":
|
||||||
|
# The variable is the name of the source
|
||||||
|
subtitle_format = _("Select the {} data directory.")
|
||||||
dialog = create_dialog(
|
dialog = create_dialog(
|
||||||
self,
|
self,
|
||||||
title,
|
title,
|
||||||
|
|||||||
Reference in New Issue
Block a user