Commit de105680 authored by Alexandre Julliard's avatar Alexandre Julliard

regedit: Build the file filter by hand instead of hardcoding it in resource strings.

parent bfd56391
......@@ -308,7 +308,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importer registeringsdatabasefil"
IDS_FILEDIALOG_EXPORT_TITLE "Eksporter registeringsdatabasefil"
IDS_FILEDIALOG_FILTER "Registeringsdatabasefiler\0*.reg\0Win9x-/NT4-registerfiler (REGEDIT4)\0*.reg\0Alle filer (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registeringsdatabasefiler (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x-/NT4-registerfiler (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Alle filer (*.*)"
END
STRINGTABLE
......
......@@ -314,7 +314,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Registry-Datei importieren"
IDS_FILEDIALOG_EXPORT_TITLE "Registry-Datei exportieren"
IDS_FILEDIALOG_FILTER "Registry-Dateien\0*.reg\0Win9x/NT4 Registry-Dateien (REGEDIT4)\0*.reg\0Alle Dateien (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registry-Dateien (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 Registry-Dateien (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Alle Dateien (*.*)"
END
STRINGTABLE
......
......@@ -407,7 +407,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Import Registry File"
IDS_FILEDIALOG_EXPORT_TITLE "Export Registry File"
IDS_FILEDIALOG_FILTER "Registry Files\0*.reg\0Win9x/NT4 Registry Files (REGEDIT4)\0*.reg\0All Files (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registry Files (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 Registry Files (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "All Files (*.*)"
END
STRINGTABLE
......
......@@ -308,7 +308,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importar archivo de registro"
IDS_FILEDIALOG_EXPORT_TITLE "Exportar archivo de registro"
IDS_FILEDIALOG_FILTER "Archivos de registro\0*.reg\0Archivos de registro de Win9x/NT4 (REGEDIT4)\0*.reg\0Todos los archivos (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Archivos de registro (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Archivos de registro de Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Todos los archivos (*.*)"
END
STRINGTABLE
......
......@@ -310,7 +310,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importer un fichier de registre"
IDS_FILEDIALOG_EXPORT_TITLE "Exporter un fichier de registre"
IDS_FILEDIALOG_FILTER "Fichiers de registres\0*.reg\0Fichiers de registres Win9x/NT4 (REGEDIT4)\0*.reg\0Tous les fichiers (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Fichiers de registres (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Fichiers de registres Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Tous les fichiers (*.*)"
END
STRINGTABLE
......
......@@ -318,7 +318,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "יבוא קובץ רישום מערכת"
IDS_FILEDIALOG_EXPORT_TITLE "יצוא קובץ רישום מערכת"
IDS_FILEDIALOG_FILTER "קובצי רישום מערכת\0*.reg\0קובצי רישום מערכת שלWin9x/NT4 (REGEDIT4)\0*.reg\0כל הקבצים (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "קובצי רישום מערכת (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "קובצי רישום מערכת שלWin9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "כל הקבצים (*.*)"
END
STRINGTABLE
......
......@@ -310,7 +310,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importa file di registro"
IDS_FILEDIALOG_EXPORT_TITLE "Esporta file di registro"
IDS_FILEDIALOG_FILTER "File di registro\0*.reg\0File di registro Win9x/NT4 (REGEDIT4)\0*.reg\0Tutti i file (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "File di registro (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "File di registro Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Tutti i file (*.*)"
END
STRINGTABLE
......
......@@ -308,7 +308,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "レジストリ ファイルのインポート"
IDS_FILEDIALOG_EXPORT_TITLE "レジストリ ファイルのエクスポート"
IDS_FILEDIALOG_FILTER "登録ファイル\0*.reg\0Win9x/NT4 登録ファイル (REGEDIT4)\0*.reg\0すべてのファイル (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "登録ファイル (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 登録ファイル (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "すべてのファイル (*.*)"
END
STRINGTABLE
......
......@@ -312,7 +312,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "레이지스트 파일 불러오기"
IDS_FILEDIALOG_EXPORT_TITLE "레지스트리 파일 내보내기"
IDS_FILEDIALOG_FILTER "레지스트리 파일\0*.reg\0Win9x/NT4 레지스트리 파일 (REGEDIT4)\0*.reg\0모든 파일 (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "레지스트리 파일 (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 레지스트리 파일 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "모든 파일 (*.*)"
END
STRINGTABLE
......
......@@ -307,7 +307,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importuoti registro failą"
IDS_FILEDIALOG_EXPORT_TITLE "Eksportuoti registro failą"
IDS_FILEDIALOG_FILTER "Registro failai\0*.reg\0Win9x/NT4 registro failai (REGEDIT4)\0*.reg\0Visi failai (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registro failai (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 registro failai (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Visi failai (*.*)"
END
STRINGTABLE
......
......@@ -307,7 +307,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Registerbestand importeren"
IDS_FILEDIALOG_EXPORT_TITLE "Registerbestand exporteren"
IDS_FILEDIALOG_FILTER "Register Bestanden\0*.reg\0Win9x/NT4 Register Bestanden (REGEDIT4)\0*.reg\0Alle Bestanden (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Register Bestanden (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 Register Bestanden (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Alle Bestanden (*.*)"
END
STRINGTABLE
......
......@@ -307,7 +307,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importer registerfil"
IDS_FILEDIALOG_EXPORT_TITLE "Eksporter registerfil"
IDS_FILEDIALOG_FILTER "Registerfiler\0*.reg\0Win9x-/NT4-registerfiler (REGEDIT4)\0*.reg\0Alle filer (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registerfiler (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x-/NT4-registerfiler (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Alle filer (*.*)"
END
STRINGTABLE
......
......@@ -306,7 +306,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importuj plik rejestrw"
IDS_FILEDIALOG_EXPORT_TITLE "Eksportuj plik rejestrw"
IDS_FILEDIALOG_FILTER "Pliki rejestrw\0*.reg\0Pliki rejestrw Win9x/NT4 (REGEDIT4)\0*.reg\0Wszystkie pliki (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Pliki rejestrw (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Pliki rejestrw Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Wszystkie pliki (*.*)"
END
STRINGTABLE
......
......@@ -483,7 +483,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importar Arquivo de Registro"
IDS_FILEDIALOG_EXPORT_TITLE "Exportar Arquivo de Registro"
IDS_FILEDIALOG_FILTER "Arquivos de Registro\0*.reg\0Arquivos de Registro Win9x/NT4 (REGEDIT4)\0*.reg\0Todos os Arquivos (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Arquivos de Registro (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Arquivos de Registro Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Todos os Arquivos (*.*)"
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
......@@ -492,7 +494,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importar Ficheiro de Registo"
IDS_FILEDIALOG_EXPORT_TITLE "Exportar Ficheiro de Registo"
IDS_FILEDIALOG_FILTER "Ficheiros de Registo\0*.reg\0Ficheiros de Registo Win9x/NT4 (REGEDIT4)\0*.reg\0Todos os Ficheiros (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Ficheiros de Registo (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Ficheiros de Registo Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Todos os Ficheiros (*.*)"
END
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
......
......@@ -309,7 +309,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importă fișierul registru"
IDS_FILEDIALOG_EXPORT_TITLE "Exportă fișierul registru"
IDS_FILEDIALOG_FILTER "Fișiere registru\\0*.reg\\0Win9x/NT4 Fișiere registru (REGEDIT4)\\0*.reg\\0Toate fișierele (*.*)\\0*.*\\0\\0"
IDS_FILEDIALOG_FILTER_REG "Fișiere registru (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 Fișiere registru (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Toate fișierele (*.*)"
END
STRINGTABLE
......
......@@ -308,7 +308,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Импорт файла реестра"
IDS_FILEDIALOG_EXPORT_TITLE "Экспорт файла реестра"
IDS_FILEDIALOG_FILTER "Все файлы реестра\0*.reg\0Файлы реестра для Win9x/NT4 (REGEDIT4)\0*.reg\0Все файлы (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Все файлы реестра (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Файлы реестра для Win9x/NT4 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Все файлы (*.*)"
END
STRINGTABLE
......
......@@ -307,7 +307,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Uvozi registrsko datoteko"
IDS_FILEDIALOG_EXPORT_TITLE "Izvozi registrsko datoteko"
IDS_FILEDIALOG_FILTER "Registrske datoteke\0*.reg\0Win9x/NT4 registrske datoteke (REGEDIT4)\0*.reg\0Vse datoteke (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registrske datoteke (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 registrske datoteke (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Vse datoteke (*.*)"
END
STRINGTABLE
......
......@@ -305,7 +305,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Importera registerfil"
IDS_FILEDIALOG_EXPORT_TITLE "Exportera registerfil"
IDS_FILEDIALOG_FILTER "Registerfiler\0*.reg\0Win9x-/NT4-registerfiler (REGEDIT4)\0*.reg\0Alla filer (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Registerfiler (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x-/NT4-registerfiler (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Alla filer (*.*)"
END
STRINGTABLE
......
......@@ -311,7 +311,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "Імпортувати файл реєстру"
IDS_FILEDIALOG_EXPORT_TITLE "Експортувати файл реєстру"
IDS_FILEDIALOG_FILTER "Файли реєстру\0*.reg\0Win9x/NT4 Файли реєстру (REGEDIT4)\0*.reg\0Всі Файли (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "Файли реєстру (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 Файли реєстру (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "Всі Файли (*.*)"
END
STRINGTABLE
......
......@@ -302,7 +302,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "导入注册表文件"
IDS_FILEDIALOG_EXPORT_TITLE "导出注册表文件"
IDS_FILEDIALOG_FILTER "注册表文件\0*.reg\0Win9x/NT4 注册表文件 (REGEDIT4)\0*.reg\0所有文件 (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "注册表文件 (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 注册表文件 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "所有文件 (*.*)"
END
STRINGTABLE
......@@ -609,7 +611,9 @@ STRINGTABLE
BEGIN
IDS_FILEDIALOG_IMPORT_TITLE "導入註冊表檔案"
IDS_FILEDIALOG_EXPORT_TITLE "導出註冊表檔案"
IDS_FILEDIALOG_FILTER "註冊表檔案\0*.reg\0Win9x/NT4 註冊表檔案 (REGEDIT4)\0*.reg\0所有檔案 (*.*)\0*.*\0\0"
IDS_FILEDIALOG_FILTER_REG "註冊表檔案 (*.reg)"
IDS_FILEDIALOG_FILTER_REG4 "Win9x/NT4 註冊表檔案 (REGEDIT4)"
IDS_FILEDIALOG_FILTER_ALL "所有檔案 (*.*)"
END
STRINGTABLE
......
......@@ -307,7 +307,15 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAMEW *pofn)
pofn->hInstance = hInst;
if (FilterBuffer[0] == 0)
LoadStringW(hInst, IDS_FILEDIALOG_FILTER, FilterBuffer, _MAX_PATH);
{
static const WCHAR filterW[] = {'%','s','%','c','*','.','r','e','g','%','c','%','s','%','c','*','.','r','e','g','%','c','%','s','%','c','*','.','*','%','c',0};
WCHAR filter_reg[MAX_PATH], filter_reg4[MAX_PATH], filter_all[MAX_PATH];
LoadStringW(hInst, IDS_FILEDIALOG_FILTER_REG, filter_reg, MAX_PATH);
LoadStringW(hInst, IDS_FILEDIALOG_FILTER_REG4, filter_reg4, MAX_PATH);
LoadStringW(hInst, IDS_FILEDIALOG_FILTER_ALL, filter_all, MAX_PATH);
snprintfW( FilterBuffer, MAX_PATH, filterW, filter_reg, 0, 0, filter_reg4, 0, 0, filter_all, 0, 0 );
}
pofn->lpstrFilter = FilterBuffer;
pofn->nFilterIndex = 2;
pofn->lpstrFile = FileNameBuffer;
......
......@@ -50,7 +50,9 @@
#define IDR_POPUP_MENUS 137
#define IDS_FILEDIALOG_IMPORT_TITLE 144
#define IDS_FILEDIALOG_EXPORT_TITLE 145
#define IDS_FILEDIALOG_FILTER 146
#define IDS_FILEDIALOG_FILTER_REG 146
#define IDS_FILEDIALOG_FILTER_REG4 147
#define IDS_FILEDIALOG_FILTER_ALL 148
#define IDS_REGISTRY_ROOT_NAME 160
#define IDS_REGISTRY_DEFAULT_VALUE 161
#define IDS_REGISTRY_VALUE_NOT_SET 162
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment