Răsfoiți Sursa

fixup: s/functionality/function/

Thomas Waldmann 4 ani în urmă
părinte
comite
d068f35fb4
2 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 2 2
      docs/internals/frontends.rst
  2. 4 4
      src/borg/archiver.py

+ 2 - 2
docs/internals/frontends.rst

@@ -574,8 +574,8 @@ Prompts
     BORG_RELOCATED_REPO_ACCESS_IS_OK
     BORG_RELOCATED_REPO_ACCESS_IS_OK
         For "Warning: The repository at location ... was previously located at ..."
         For "Warning: The repository at location ... was previously located at ..."
     BORG_CHECK_I_KNOW_WHAT_I_AM_DOING
     BORG_CHECK_I_KNOW_WHAT_I_AM_DOING
-        For "This is a potentially dangerous functionality..." (check --repair)
+        For "This is a potentially dangerous function..." (check --repair)
     BORG_DELETE_I_KNOW_WHAT_I_AM_DOING
     BORG_DELETE_I_KNOW_WHAT_I_AM_DOING
         For "You requested to completely DELETE the repository *including* all archives it contains:"
         For "You requested to completely DELETE the repository *including* all archives it contains:"
     BORG_RECREATE_I_KNOW_WHAT_I_AM_DOING
     BORG_RECREATE_I_KNOW_WHAT_I_AM_DOING
-        For "This is a potentially dangerous functionality..." (recreate)
+        For "This is a potentially dangerous function..." (recreate)

+ 4 - 4
src/borg/archiver.py

@@ -323,7 +323,7 @@ class Archiver:
     def do_check(self, args, repository):
     def do_check(self, args, repository):
         """Check repository consistency"""
         """Check repository consistency"""
         if args.repair:
         if args.repair:
-            msg = ("This is a potentially dangerous functionality.\n"
+            msg = ("This is a potentially dangerous function.\n"
                    "check --repair might lead to data loss (in case of bugs or for kinds of\n"
                    "check --repair might lead to data loss (in case of bugs or for kinds of\n"
                    "corruption it is not capable of dealing with).\n"
                    "corruption it is not capable of dealing with).\n"
                    "BE VERY CAREFUL!\n"
                    "BE VERY CAREFUL!\n"
@@ -1711,7 +1711,7 @@ class Archiver:
     @with_repository(cache=True, exclusive=True, compatibility=(Manifest.Operation.CHECK,))
     @with_repository(cache=True, exclusive=True, compatibility=(Manifest.Operation.CHECK,))
     def do_recreate(self, args, repository, manifest, key, cache):
     def do_recreate(self, args, repository, manifest, key, cache):
         """Re-create archives"""
         """Re-create archives"""
-        msg = ("This is a potentially dangerous functionality.\n"
+        msg = ("This is a potentially dangerous function.\n"
                "recreate might lead to data loss (if used wrongly or in case of bugs).\n"
                "recreate might lead to data loss (if used wrongly or in case of bugs).\n"
                "BE VERY CAREFUL!\n"
                "BE VERY CAREFUL!\n"
                "\n"
                "\n"
@@ -3053,7 +3053,7 @@ class Archiver:
         check_epilog = process_epilog("""
         check_epilog = process_epilog("""
         The check command verifies the consistency of a repository and the corresponding archives.
         The check command verifies the consistency of a repository and the corresponding archives.
 
 
-        check --repair is a potentially dangerous functionality and might lead to data loss
+        check --repair is a potentially dangerous function and might lead to data loss
         (in case of bugs or for kinds of corruption it is not capable of dealing with).
         (in case of bugs or for kinds of corruption it is not capable of dealing with).
         BE VERY CAREFUL!
         BE VERY CAREFUL!
 
 
@@ -3959,7 +3959,7 @@ class Archiver:
         recreate_epilog = process_epilog("""
         recreate_epilog = process_epilog("""
         Recreate the contents of existing archives.
         Recreate the contents of existing archives.
 
 
-        recreate is a potentially dangerous functionality and might lead to data loss
+        recreate is a potentially dangerous function and might lead to data loss
         (if used wrongly or in case of bugs).
         (if used wrongly or in case of bugs).
         BE VERY CAREFUL!
         BE VERY CAREFUL!