reg: Add initial support for the import operation.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-08-18 09:29:54 +00:00 committed by Alexandre Julliard
parent f2fbbec27d
commit aa386af42a
53 changed files with 466 additions and 70 deletions

View File

@ -12304,7 +12304,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12451,6 +12451,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(القيمة غير مضبوطة)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "ال&سجل"

View File

@ -11882,7 +11882,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12017,6 +12017,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Регистър"

View File

@ -12158,12 +12158,23 @@ msgid "Icons (*.ico)"
msgstr "Icones (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12302,6 +12313,10 @@ msgstr "Teclegeu \"REG %1 /?\" per ajuda.\n"
msgid "(value not set)"
msgstr "(valor no definit)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registre"

View File

@ -11995,7 +11995,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12140,6 +12140,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(hodnota nenastavena)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registr"

View File

@ -12258,7 +12258,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12406,6 +12406,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(værdi ikke sat)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -12058,12 +12058,23 @@ msgid "Icons (*.ico)"
msgstr "Symbole (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12200,6 +12211,10 @@ msgstr "Geben Sie \"REG %1 /?\" ein, um Hilfe zu erhalten.\n"
msgid "(value not set)"
msgstr "(Wert nicht gesetzt)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registrierung"

View File

@ -11658,7 +11658,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11788,6 +11788,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11986,7 +11986,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11996,7 +11996,7 @@ msgstr ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12124,6 +12124,10 @@ msgstr "Type \"REG %1 /?\" for help.\n"
msgid "(value not set)"
msgstr "(value not set)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr "REG IMPORT file.reg\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -11986,7 +11986,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11996,7 +11996,7 @@ msgstr ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12124,6 +12124,10 @@ msgstr "Type \"REG %1 /?\" for help.\n"
msgid "(value not set)"
msgstr "(value not set)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr "REG IMPORT file.reg\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -11591,7 +11591,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11729,6 +11729,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(valoro ne elektita)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registrejo"

View File

@ -12336,7 +12336,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12485,6 +12485,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(valor no definido)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -11647,7 +11647,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11773,6 +11773,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11962,12 +11962,23 @@ msgid "Icons (*.ico)"
msgstr "Kuvakkeet (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12104,6 +12115,10 @@ msgstr "Komento \"REG %1 /?\" näyttää ohjeen.\n"
msgid "(value not set)"
msgstr "(arvoa ei asetettu)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Rekisteri"

View File

@ -12199,12 +12199,23 @@ msgid "Icons (*.ico)"
msgstr "Icônes (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12345,6 +12356,10 @@ msgstr "Tapez « REG %1 /? » pour de l'aide.\n"
msgid "(value not set)"
msgstr "(valeur non définie)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registre"

View File

@ -12048,7 +12048,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12197,6 +12197,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(לא הוגדר ערך)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&רישום המערכת"

View File

@ -11453,7 +11453,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11575,6 +11575,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11810,7 +11810,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11957,6 +11957,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(vrijednost nije postavljena)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registar"

View File

@ -12252,7 +12252,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12400,6 +12400,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(nem beállított)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Fájl"

View File

@ -12337,7 +12337,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12486,6 +12486,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(valore non immesso)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -11975,12 +11975,23 @@ msgid "Icons (*.ico)"
msgstr "アイコン (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12116,6 +12127,10 @@ msgstr "ヘルプは \"REG %1 /?\" と入力してください。\n"
msgid "(value not set)"
msgstr "(値の設定なし)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "レジストリ(&R)"

View File

@ -12330,7 +12330,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12475,6 +12475,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(값이 정해지지 않음)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "레지스트리(&R)"

View File

@ -11988,12 +11988,23 @@ msgid "Icons (*.ico)"
msgstr "Piktogramos (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12127,6 +12138,10 @@ msgstr "Pagalbai įrašykite „REG %1 /?“.\n"
msgid "(value not set)"
msgstr "(reikšmė nenustatyta)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "R&egistras"

View File

@ -11453,7 +11453,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11575,6 +11575,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11975,12 +11975,23 @@ msgid "Icons (*.ico)"
msgstr "Ikoner (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12118,6 +12129,10 @@ msgstr "Skriv \"REG %1 /?\" for hjelp.\n"
msgid "(value not set)"
msgstr "(verdi ikke oppgitt)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -12303,7 +12303,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12452,6 +12452,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(Geen waarde ingesteld)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registerbestand"

View File

@ -11453,7 +11453,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11575,6 +11575,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11453,7 +11453,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11575,6 +11575,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -12033,12 +12033,23 @@ msgid "Icons (*.ico)"
msgstr "Ikony (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12175,6 +12186,10 @@ msgstr "Wprowadź \"REG %1 /?\" aby uzyskać pomoc.\n"
msgid "(value not set)"
msgstr "(wartość nie ustalona)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Rejestr"

View File

@ -12119,12 +12119,23 @@ msgid "Icons (*.ico)"
msgstr "Ícones (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12263,6 +12274,10 @@ msgstr "Digite \"REG %1 /?\" para ajuda.\n"
msgid "(value not set)"
msgstr "(valor não dado)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -12128,7 +12128,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12277,6 +12277,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(valor não dado)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registo"

View File

@ -11537,7 +11537,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11659,6 +11659,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -12082,7 +12082,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12211,6 +12211,10 @@ msgstr "Tastați \"REG %1 /?\" pentru ajutor.\n"
msgid "(value not set)"
msgstr "(valoare nestabilită)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registru"

View File

@ -11983,12 +11983,23 @@ msgid "Icons (*.ico)"
msgstr "Значки (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12124,6 +12135,10 @@ msgstr "Для справки введите «REG %1 /?».\n"
msgid "(value not set)"
msgstr "(значение не задано)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Реестр"

View File

@ -11748,7 +11748,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11892,6 +11892,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -12282,7 +12282,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12429,6 +12429,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(vrednost ni nastavljena)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -12137,7 +12137,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12276,6 +12276,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -12291,7 +12291,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12434,6 +12434,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11972,7 +11972,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12101,6 +12101,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(värde ej angivet)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -11453,7 +11453,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11575,6 +11575,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11697,7 +11697,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11819,6 +11819,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11998,12 +11998,23 @@ msgid "Icons (*.ico)"
msgstr "Simgeler (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12142,6 +12153,10 @@ msgstr "Yardım için \"REG %1 /?\" yazın.\n"
msgid "(value not set)"
msgstr "(değer belirlenmemiş)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Kayıt Defteri"

View File

@ -12076,12 +12076,23 @@ msgid "Icons (*.ico)"
msgstr "Значки (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12219,6 +12230,10 @@ msgstr "Введіть \"REG %1 /?\" для довідки.\n"
msgid "(value not set)"
msgstr "(значення не задане)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Реєстр"

View File

@ -11601,7 +11601,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11723,6 +11723,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11380,7 +11380,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11502,6 +11502,10 @@ msgstr ""
msgid "(value not set)"
msgstr ""
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11774,12 +11774,23 @@ msgid "Icons (*.ico)"
msgstr "图标 (*.ico)"
#: reg.rc:35
#, fuzzy
#| msgid ""
#| "Usage:\n"
#| " REG [operation] [parameters]\n"
#| "\n"
#| "Supported operations:\n"
#| " ADD | DELETE | QUERY\n"
#| "\n"
#| "For help on a specific operation, type:\n"
#| " REG [operation] /?\n"
#| "\n"
msgid ""
"Usage:\n"
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -11910,6 +11921,10 @@ msgstr "输入“REG %1 /?”以获取帮助。\n"
msgid "(value not set)"
msgstr "(没有设值)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "注册表(&R)"

View File

@ -12214,7 +12214,7 @@ msgid ""
" REG [operation] [parameters]\n"
"\n"
"Supported operations:\n"
" ADD | DELETE | QUERY\n"
" ADD | DELETE | IMPORT | QUERY\n"
"\n"
"For help on a specific operation, type:\n"
" REG [operation] /?\n"
@ -12360,6 +12360,10 @@ msgstr ""
msgid "(value not set)"
msgstr "(沒有設值)"
#: reg.rc:66
msgid "REG IMPORT file.reg\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "註冊表(&R)"

View File

@ -3,6 +3,8 @@ APPMODE = -mconsole -municode -mno-cygwin
IMPORTS = advapi32
DELAYIMPORTS = user32
C_SRCS = reg.c
C_SRCS = \
import.c \
reg.c
RC_SRCS = reg.rc

30
programs/reg/import.c Normal file
View File

@ -0,0 +1,30 @@
/*
* Copyright 2017 Hugh McMaster
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <windows.h>
#include <wine/debug.h>
#include "reg.h"
WINE_DEFAULT_DEBUG_CHANNEL(reg);
int reg_import(const WCHAR *filename)
{
FIXME(": operation not yet implemented\n");
return 1;
}

View File

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <wine/unicode.h>
#include <wine/debug.h>
#include "resource.h"
#include "reg.h"
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*A))
@ -909,32 +909,38 @@ static BOOL is_help_switch(const WCHAR *s)
enum operations {
REG_ADD,
REG_DELETE,
REG_IMPORT,
REG_QUERY,
REG_INVALID
};
static const WCHAR addW[] = {'a','d','d',0};
static const WCHAR deleteW[] = {'d','e','l','e','t','e',0};
static const WCHAR queryW[] = {'q','u','e','r','y',0};
static enum operations get_operation(const WCHAR *str, int *op_help)
{
if (!lstrcmpiW(str, addW))
{
*op_help = STRING_ADD_USAGE;
return REG_ADD;
}
struct op_info { const WCHAR *op; int id; int help_id; };
if (!lstrcmpiW(str, deleteW))
{
*op_help = STRING_DELETE_USAGE;
return REG_DELETE;
}
static const WCHAR add[] = {'a','d','d',0};
static const WCHAR delete[] = {'d','e','l','e','t','e',0};
static const WCHAR import[] = {'i','m','p','o','r','t',0};
static const WCHAR query[] = {'q','u','e','r','y',0};
if (!lstrcmpiW(str, queryW))
static const struct op_info op_array[] =
{
*op_help = STRING_QUERY_USAGE;
return REG_QUERY;
{ add, REG_ADD, STRING_ADD_USAGE },
{ delete, REG_DELETE, STRING_DELETE_USAGE },
{ import, REG_IMPORT, STRING_IMPORT_USAGE },
{ query, REG_QUERY, STRING_QUERY_USAGE },
{ NULL, -1, 0 }
};
const struct op_info *ptr;
for (ptr = op_array; ptr->op; ptr++)
{
if (!lstrcmpiW(str, ptr->op))
{
*op_help = ptr->help_id;
return ptr->id;
}
}
return REG_INVALID;
@ -975,7 +981,7 @@ int wmain(int argc, WCHAR *argvW[])
if (argc > 2)
show_op_help = is_help_switch(argvW[2]);
if (argc == 2 || (show_op_help && argc > 3))
if (argc == 2 || ((show_op_help || op == REG_IMPORT) && argc > 3))
{
output_message(STRING_INVALID_SYNTAX);
output_message(STRING_FUNC_HELP, struprW(argvW[1]));
@ -987,6 +993,9 @@ int wmain(int argc, WCHAR *argvW[])
return 0;
}
if (op == REG_IMPORT)
return reg_import(argvW[2]);
if (!parse_registry_key(argvW[2], &root, &path, &key_name))
return 1;

26
programs/reg/reg.h Normal file
View File

@ -0,0 +1,26 @@
/*
* Copyright 2017 Hugh McMaster
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __REG_H__
#define __REG_H__
#include "resource.h"
int reg_import(const WCHAR *filename);
#endif /* __REG_H__ */

View File

@ -29,7 +29,7 @@ STRINGTABLE
STRING_USAGE, "Usage:\n\
\ REG [operation] [parameters]\n\n\
\Supported operations:\n\
\ ADD | DELETE | QUERY\n\n\
\ ADD | DELETE | IMPORT | QUERY\n\n\
\For help on a specific operation, type:\n\
\ REG [operation] /?\n\n"
STRING_ADD_USAGE, "REG ADD key_name [/v value_name | /ve] [/t type] [/s separator] [/d data] [/f]\n"
@ -62,4 +62,5 @@ STRINGTABLE
STRING_REG_HELP, "Type \"REG /?\" for help.\n"
STRING_FUNC_HELP, "Type \"REG %1 /?\" for help.\n"
STRING_VALUE_NOT_SET, "(value not set)"
STRING_IMPORT_USAGE, "REG IMPORT file.reg\n"
}

View File

@ -52,3 +52,4 @@
#define STRING_REG_HELP 129
#define STRING_FUNC_HELP 130
#define STRING_VALUE_NOT_SET 131
#define STRING_IMPORT_USAGE 132

View File

@ -801,7 +801,7 @@ static void test_import(void)
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
run_reg_exe("reg import /?", &r);
todo_wine ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
run_reg_exe("reg import missing.reg", &r);
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);