reg.rc 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /*
  2. * REG.EXE - Wine-compatible reg program.
  3. *
  4. * Copyright 2008 Andrew Riedi
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. */
  20. #include "resource.h"
  21. #pragma makedep po
  22. LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
  23. STRINGTABLE
  24. {
  25. STRING_USAGE, "Usage:\n\
  26. \ REG [operation] [parameters]\n\n\
  27. \Supported operations:\n\
  28. \ ADD | COPY | DELETE | EXPORT | IMPORT | QUERY\n\n\
  29. \For help on a specific operation, type:\n\
  30. \ REG [operation] /?\n\n"
  31. STRING_ADD_USAGE, "REG ADD <key> [/v value_name | /ve] [/t type] [/s separator] [/d data] [/f]\n\n\
  32. \ Adds a key to the registry or adds a new value to a given registry key.\n\n\
  33. \ <key>\n\
  34. \ The registry key to add or, if either [/v] or [/ve] is specified,\n\
  35. \ the key in which to add the new registry data.\n\n\
  36. \ Format: ROOT\\Subkey\n\n\
  37. \ ROOT: A predefined registry key. This must be one of the following:\n\n\
  38. \ HKEY_LOCAL_MACHINE | HKLM\n\
  39. \ HKEY_CURRENT_USER | HKCU\n\
  40. \ HKEY_CLASSES_ROOT | HKCR\n\
  41. \ HKEY_USERS | HKU\n\
  42. \ HKEY_CURRENT_CONFIG | HKCC\n\n\
  43. \ Subkey: The full path to a registry key under a given ROOT key.\n\n\
  44. \ /v <value_name>\n\
  45. \ The name of the registry value to add.\n\n\
  46. \ /ve\n\
  47. \ Add an unnamed registry value. This option modifies the (Default)\n\
  48. \ registry value.\n\n\
  49. \ /t <type>\n\
  50. \ The type of data to add to the registry. If [/t] is specified,\n\
  51. \ <type> must be one of the following:\n\n\
  52. \ REG_SZ | REG_MULTI_SZ | REG_EXPAND_SZ\n\
  53. \ REG_DWORD | REG_BINARY | REG_NONE\n\n\
  54. \ If [/t] is not specified, the default data type is REG_SZ.\n\n\
  55. \ /s <separator>\n\
  56. \ The character used to separate strings in REG_MULTI_SZ data.\n\
  57. \ If [/s] is not specified, the default separator is \\0.\n\n\
  58. \ /d <data>\n\
  59. \ The data to add to the new registry value.\n\n\
  60. \ /f\n\
  61. \ Modify the registry without prompting for confirmation.\n\n"
  62. STRING_DELETE_USAGE, "REG DELETE <key> [/v value_name | /ve | /va] [/f]\n\n\
  63. \ Deletes a registry key (including all subkeys and values), or deletes\n\
  64. \ one or more values from a given registry key.\n\n\
  65. \ <key>\n\
  66. \ The registry key to delete or, if one of [/v], [/ve] or [/va] is\n\
  67. \ specified, the registry key in which to delete one or more values.\n\n\
  68. \ Format: ROOT\\Subkey\n\n\
  69. \ ROOT: A predefined registry key. This must be one of the following:\n\n\
  70. \ HKEY_LOCAL_MACHINE | HKLM\n\
  71. \ HKEY_CURRENT_USER | HKCU\n\
  72. \ HKEY_CLASSES_ROOT | HKCR\n\
  73. \ HKEY_USERS | HKU\n\
  74. \ HKEY_CURRENT_CONFIG | HKCC\n\n\
  75. \ Subkey: The full path to a registry key under a given ROOT key.\n\n\
  76. \ /v <value_name>\n\
  77. \ The name of the registry value to delete.\n\n\
  78. \ /ve\n\
  79. \ Delete an unnamed registry value. This option deletes the (Default)\n\
  80. \ registry value.\n\n\
  81. \ /va\n\
  82. \ Delete all values from a registry key.\n\n\
  83. \ /f\n\
  84. \ Delete a registry key (including all subkeys and values) without\n\
  85. \ prompting for confirmation.\n\n"
  86. STRING_QUERY_USAGE, "REG QUERY <key> [/v value_name | /ve] [/s]\n\n\
  87. \ Queries a specified registry key and lists all immediate subkeys, values\n\
  88. \ and data within that key. Use [/s] to recursively query each subkey.\n\n\
  89. \ <key>\n\
  90. \ The registry key to query.\n\n\
  91. \ Format: ROOT\\Subkey\n\n\
  92. \ ROOT: A predefined registry key. This must be one of the following:\n\n\
  93. \ HKEY_LOCAL_MACHINE | HKLM\n\
  94. \ HKEY_CURRENT_USER | HKCU\n\
  95. \ HKEY_CLASSES_ROOT | HKCR\n\
  96. \ HKEY_USERS | HKU\n\
  97. \ HKEY_CURRENT_CONFIG | HKCC\n\n\
  98. \ Subkey: The full path to a registry key under a given ROOT key.\n\n\
  99. \ /v <value_name>\n\
  100. \ The name of the registry value to query. If neither [/v] nor [/ve] is\n\
  101. \ specified, all values under <key> are listed.\n\n\
  102. \ /ve\n\
  103. \ Query an unnamed registry value. This option queries the (Default)\n\
  104. \ registry value.\n\n\
  105. \ /s\n\
  106. \ List all registry entries under <key> and its subkeys.\n\n"
  107. STRING_SUCCESS, "reg: The operation completed successfully\n"
  108. STRING_INVALID_KEY, "reg: Invalid registry key\n"
  109. STRING_INVALID_CMDLINE, "reg: Invalid command line parameters\n"
  110. STRING_NO_REMOTE, "reg: Unable to access remote machine\n"
  111. STRING_VALUE_NONEXIST, "reg: Unable to find the specified registry value\n"
  112. STRING_UNSUPPORTED_TYPE, "reg: Unsupported registry data type [%1]\n"
  113. STRING_MISSING_NUMBER, "reg: The option [/d] must be followed by a valid numeric value\n"
  114. STRING_MISSING_HEXDATA, "reg: The option [/d] must be followed by a valid hexadecimal value\n"
  115. STRING_UNHANDLED_TYPE, "reg: Unhandled registry data type [/t 0x%1!x!, /d %2]\n"
  116. STRING_OVERWRITE_VALUE, "The registry value '%1' already exists. Do you want to overwrite it?"
  117. STRING_YES, "#msgctxt#Yes key#Y"
  118. STRING_NO, "#msgctxt#No key#N"
  119. STRING_ALL, "#msgctxt#All key#A"
  120. STRING_YESNO, " (Yes|No)"
  121. STRING_YESNOALL, " (Yes|No|All)"
  122. STRING_CANCELLED, "reg: The registry operation was cancelled\n"
  123. STRING_DEFAULT_VALUE, "(Default)"
  124. STRING_DELETE_VALUE, "Are you sure you want to delete the registry value '%1'?"
  125. STRING_DELETE_VALUEALL, "Are you sure you want to delete all registry values in '%1'?"
  126. STRING_DELETE_SUBKEY, "Are you sure you want to delete the registry key '%1'?"
  127. STRING_INVALID_STRING, "reg: The option [/d] must be followed by a valid string\n"
  128. STRING_VALUEALL_FAILED, "reg: Unable to delete all registry values in '%1'\n"
  129. STRING_MATCHES_FOUND, "Search complete. Number of matches found: %1!d!\n"
  130. STRING_INVALID_SYNTAX, "reg: Invalid syntax. "
  131. STRING_INVALID_OPTION, "reg: Invalid option [%1]. "
  132. STRING_REG_HELP, "Type \"REG /?\" for help.\n"
  133. STRING_FUNC_HELP, "Type \"REG %1 /?\" for help.\n"
  134. STRING_VALUE_NOT_SET, "(value not set)"
  135. STRING_IMPORT_USAGE, "REG IMPORT <file>\n\n\
  136. \ Imports keys, values and data from a given file into the registry.\n\n\
  137. \ <file>\n\
  138. \ The name and path of the registry file to import.\n\n"
  139. STRING_FILE_NOT_FOUND, "reg: The file '%1' was not found.\n"
  140. STRING_ESCAPE_SEQUENCE, "reg: Unrecognized escape sequence [\\%1!c!]\n"
  141. STRING_EXPORT_USAGE, "REG EXPORT <key> <file> [/y]\n\n\
  142. \ Exports a specified registry key (including all subkeys and values)\n\
  143. \ to a file.\n\n\
  144. \ <key>\n\
  145. \ The registry key to export.\n\n\
  146. \ Format: ROOT\\Subkey\n\n\
  147. \ ROOT: A predefined registry key. This must be one of the following:\n\n\
  148. \ HKEY_LOCAL_MACHINE | HKLM\n\
  149. \ HKEY_CURRENT_USER | HKCU\n\
  150. \ HKEY_CLASSES_ROOT | HKCR\n\
  151. \ HKEY_USERS | HKU\n\
  152. \ HKEY_CURRENT_CONFIG | HKCC\n\n\
  153. \ Subkey: The full path to a registry key under a given ROOT key.\n\n\
  154. \ <file>\n\
  155. \ The name and path of the registry file that will be created.\n\
  156. \ This file must have a .reg extension.\n\n\
  157. \ /y\n\
  158. \ Overwrite <file> without prompting for confirmation.\n\n"
  159. STRING_INVALID_SYSTEM_KEY, "reg: Invalid system key\n"
  160. STRING_OVERWRITE_FILE, "The file '%1' already exists. Do you want to overwrite it?"
  161. STRING_KEY_NONEXIST, "reg: Unable to find the specified registry key\n"
  162. STRING_KEY_IMPORT_FAILED, "reg: Unable to import the registry key '%1'\n"
  163. STRING_REG_VIEW_USAGE, " /reg:32\n\
  164. \ Access the registry using the 32-bit view.\n\n\
  165. \ /reg:64\n\
  166. \ Access the registry using the 64-bit view.\n\n"
  167. STRING_ACCESS_DENIED, "reg: Unable to access or create the specified registry key\n"
  168. STRING_COPY_USAGE, "REG COPY <key1> <key2> [/s] [/f]\n\n\
  169. \ Copies the contents of a specified registry key to another location.\n\
  170. \ By default, this operation only copies registry values. Use [/s] to\n\
  171. \ recursively copy all subkeys and values.\n\n\
  172. \ <key1>, <key2>\n\
  173. \ Registry keys specifying the source (<key1>) and destination (<key2>)\n\
  174. \ of the data. If <key2> does not exist, it is created.\n\n\
  175. \ Format: ROOT\\Subkey\n\n\
  176. \ ROOT: A predefined registry key. This must be one of the following:\n\n\
  177. \ HKEY_LOCAL_MACHINE | HKLM\n\
  178. \ HKEY_CURRENT_USER | HKCU\n\
  179. \ HKEY_CLASSES_ROOT | HKCR\n\
  180. \ HKEY_USERS | HKU\n\
  181. \ HKEY_CURRENT_CONFIG | HKCC\n\n\
  182. \ Subkey: The full path to a registry key under a given ROOT key.\n\n\
  183. \ /s\n\
  184. \ Copy all subkeys and values from <key1> to <key2>.\n\n\
  185. \ /f\n\
  186. \ Overwrite all registry data in <key2> without prompting for confirmation.\n\
  187. \ This option does not modify subkeys and values that only exist in <key2>.\n\n"
  188. STRING_COPY_SRC_DEST_SAME, "reg: The source and destination keys cannot be the same\n"
  189. STRING_COPY_CONFIRM, "The value '%1\\%2' already exists in the destination key. Do you want to overwrite it?"
  190. }