Skip to content

Commit

Permalink
Merging changes from upstream master
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjustice committed Apr 27, 2018
2 parents 59c7b29 + 5d3076c commit 064ef57
Show file tree
Hide file tree
Showing 18 changed files with 2,641 additions and 858 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,7 @@ __pycache__/
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
*.xsd.cs
Makefile.depends
*.exe
tags
4 changes: 2 additions & 2 deletions src/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ $(TARGET) : $(OBJS)
.cpp.o :
g++ -c $(CFLAGS) -I. $< -o $@

res.o : res.rc
res.o : res.rc lang/*.rc lang/*.dlg
windres -I. -i res.rc -o res.o

clean :
rm -f $(OBJS) $(TARGET)

depend:
gcc -E -MM -w *.c >> Makefile.depends
gcc -E -MM -w *.c > Makefile.depends

-include Makefile.depends
5 changes: 5 additions & 0 deletions src/Winfile.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
<ClInclude Include="BagOValues.h" />
<ClInclude Include="mpr.h" />
<ClInclude Include="numfmt.h" />
<ClInclude Include="res.h" />
<ClInclude Include="spinlock.h" />
<ClInclude Include="suggest.h" />
<ClInclude Include="treectl.h" />
Expand Down Expand Up @@ -243,10 +244,13 @@
<ItemGroup>
<None Include="lang\res_en-US.rc"/>
<None Include="lang\res_zh-CN.rc"/>
<None Include="lang\res_ja-JP.rc"/>
<None Include="lang\suggest_en-US.db" />
<None Include="lang\suggest_zh-CN.db" />
<None Include="lang\suggest_ja-JP.db" />
<None Include="lang\winfile_en-US.dlg" />
<None Include="lang\winfile_zh-CN.dlg" />
<None Include="lang\winfile_ja-JP.dlg" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dbg.c" />
Expand Down Expand Up @@ -274,6 +278,7 @@
<ClCompile Include="wfgoto.cpp" />
<ClCompile Include="wfinfo.c" />
<ClCompile Include="wfinit.c" />
<ClCompile Include="wfloc.c" />
<ClCompile Include="wfmem.c" />
<ClCompile Include="wfprint.c" />
<ClCompile Include="wfsearch.c" />
Expand Down
11 changes: 11 additions & 0 deletions src/Winfile.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<ClCompile Include="wfutil.c" />
<ClCompile Include="winfile.c" />
<ClCompile Include="wnetcaps.c" />
<ClCompile Include="wfloc.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="dbg.h" />
Expand All @@ -60,6 +61,7 @@
<ClInclude Include="winexp.h" />
<ClInclude Include="winfile.h" />
<ClInclude Include="wnetcaps.h" />
<ClInclude Include="res.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res.rc" />
Expand All @@ -83,6 +85,15 @@
<None Include="lang\winfile_zh-CN.dlg">
<Filter>lang</Filter>
</None>
<None Include="lang\suggest_ja-JP.db">
<Filter>lang</Filter>
</None>
<None Include="lang\winfile_ja-JP.dlg">
<Filter>lang</Filter>
</None>
<None Include="lang\res_ja-JP.rc">
<Filter>lang</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Filter Include="lang">
Expand Down
3 changes: 3 additions & 0 deletions src/lang/res_en-US.rc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ BEGIN
MENUITEM "&Confirmation...", IDM_CONFIRM
MENUITEM "&Font...", IDM_FONT
MENUITEM "Customize Tool&bar...", IDM_TOOLBARCUST
MENUITEM "Additional &Preferences", IDM_PREF
MENUITEM SEPARATOR
MENUITEM "&Toolbar", IDM_TOOLBAR
MENUITEM "&Drivebar", IDM_DRIVEBAR
Expand Down Expand Up @@ -503,6 +504,8 @@ JAPANEND
IDS_NTLDRCOMPRESSERR "The file %s will not be compressed. Compressing this file may render your system unbootable."
IDS_MULTICOMPRESSERR "File Manager is currently in the process of compressing/uncompressing files.\nYou must wait until this is complete before attempting to compress/uncompress additional files."

IDS_EDITFILTER "Programs (*.exe)\0*.exe\0"

END
#undef SUGGEST

Expand Down
629 changes: 629 additions & 0 deletions src/lang/res_ja-JP.rc

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/lang/res_zh-CN.rc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ BEGIN
MENUITEM "确认(&C)...", IDM_CONFIRM
MENUITEM "字体(&F)...", IDM_FONT
MENUITEM "自定义工具栏(&B)...", IDM_TOOLBARCUST
MENUITEM "Additional &Preferences", IDM_PREF
MENUITEM SEPARATOR
MENUITEM "工具栏(&T)", IDM_TOOLBAR
MENUITEM "驱动器栏(&D)", IDM_DRIVEBAR
Expand Down Expand Up @@ -501,6 +502,8 @@ JAPANEND
IDS_NTLDRCOMPRESSERR "%s 文件将不被压缩。如果压缩这个文件,系统可能无法启动。"
IDS_MULTICOMPRESSERR "文件管理器当前正在压缩或解压缩文件。/n您必须先压缩完所有的文件,才能再压缩其它的文件。"

IDS_EDITFILTER "Programs (*.exe)\0*.exe\0"

END
#undef SUGGEST

Expand Down
90 changes: 90 additions & 0 deletions src/lang/suggest_ja-JP.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
// Suggestion database info
// Used to automate the suggestions compiled into winfile
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Usage: Just add a new entry of the format:

// SUGGEST( resource_number, error-code, flags, "your-reason-string" )
// resource_number = incremental number for string ID
// error-code = error this suggestion corresponds to
// "your-reason-string" string displayed for error
// flags: SUG_IGN_FORMATMESSAGE = prepend system FormatMessage text

// Ok, so it's not perfect: your resource number can't clash
// with any others in winfile.h. Use 1 .. 99 (1101 to 1199)
// resource # 0 is reserved.

// What it does:
// For system errors (defined here in winfile land as < DE_BEGIN (bit 29 off)),
// it puts the "suggestion" below the error text (a blank line is between
// them.
//
// For our errors (>= DE_BEGIN), it places the text below (1 blank line)
// the previous string. There is no longer any corresponding text called
// "IDS_REASONS+DE_MYERROR" or "DE_MYERROR" in the resources.
// Internal error messages and their reasons must be stored here in
// the same string.

#ifndef IDS_SUGGESTBEGIN
#define IDS_SUGGESTBEGIN 1100
#endif

SUGGEST( 1, DE_SAMEFILE, 0L, \
"コピー元とコピー先が同じです。" )
SUGGEST( 2, DE_MANYSRC1DEST, 0L, \
"リネームするファイルを1つだけ選択するか、ワイルドカード(例: *.TXT)を使用して似た名前のファイル名を変更します。" )
SUGGEST( 3, DE_DIFFDIR, 0L, \
"別のディレクトリまたはディスクに名前を変更することはできません。\n'ファイル移動' コマンドを使用して下さい。" )
SUGGEST( 4, DE_ROOTDIR, 0L, \
"ルートディレクトリの名前は変更できません。" )
SUGGEST( 5, DE_DESTSUBTREE, 0L, \
"宛先のディレクトリがサブディレクトリにあります。" )
SUGGEST( 6, DE_WINDOWSFILE, 0L, \
"Windows がファイルを使用しています。" )
SUGGEST( 7, DE_MANYDEST, 0L, \
"[宛先]に指定できるファイルまたはディレクトリは1つだけです。ファイルセットを指定する場合はワイルドカード(例: * .TXT)を使用します。" )
SUGGEST( 8, DE_RENAMREPLACE, 0L, \
"ファイルまたはディレクトリは既に存在します。ディレクトリ内ではファイルまたはディレクトリの名前は一意である必要があります。" )

// This error is returned when selecting a grayed network drive and the rdr is not started
SUGGEST( 9, ERROR_FILE_NOT_FOUND, 0L, \
"正しいパスとファイル名を指定して下さい。" )
SUGGEST(10, ERROR_PATH_NOT_FOUND, 0L, \
"正しいパスを指定して下さい。" )
SUGGEST(11, ERROR_NOT_ENOUGH_MEMORY, 0L, \
"1つまたは複数のアプリケーションを終了してもう一度試して下さい。それでも駄目な場合はコントロールパネルの[システム]オプションで仮想メモリを増やしてください。" )
// 12
SUGGEST(13, ERROR_WRITE_PROTECT, 0L, \
"ディスクの保護を解除するか別のディスクを使用してもう一度試して下さい。" )
SUGGEST(14, ERROR_NETWORK_ACCESS_DENIED, 0L, \
"この操作を実行するた為の正しいネットワーク権限があるか確認して下さい。" )
SUGGEST(15, ERROR_DISK_FULL, 0L, \
"1つまたは複数のファイルを削除しディスク容量を増やしてからもう一度試して下さい。" )
SUGGEST(16, ERROR_NO_DATA_DETECTED, SUG_IGN_FORMATMESSAGE, \
"このメディアはデータが検出されません。" )

SUGGEST(17, DE_MAKEDIREXISTS, 0L, \
"このディレクトリは既に存在します。" )
SUGGEST(18, DE_DIREXISTSASFILE, 0L, \
"指定された名前は既に別のファイルで使用されています。" )
#ifdef ASSOC
SUGGEST(19, DE_DELEXTWRONGMODE, 0L, \
"This can only be deleted when viewing Common File Types and extensions." )
#endif

// Block out errors that require arguments
SUGGEST(50, ERROR_WRONG_DISK, SUG_IGN_FORMATMESSAGE, \
"ドライブ内のディスクが正しくありません。" )
SUGGEST(51, ERROR_CHILD_NOT_COMPLETE, SUG_IGN_FORMATMESSAGE, \
"アプリケーションは Windows NT モードで実行できません。" )
SUGGEST(52, ERROR_INVALID_ORDINAL, SUG_IGN_FORMATMESSAGE, \
"オペレーティングシステムはこのコンポーネントを実行できません。" )
SUGGEST(53, ERROR_INVALID_EXE_SIGNATURE, SUG_IGN_FORMATMESSAGE, \
"コンポーネントは Windows NT モードで実行できません。" )
SUGGEST(54, ERROR_BAD_EXE_FORMAT, SUG_IGN_FORMATMESSAGE, \
"このプログラムは有効な Windows NT アプリケーションではありません。" )
SUGGEST(55, ERROR_MR_MID_NOT_FOUND, SUG_IGN_FORMATMESSAGE, \
"エラーが発生しました。このエラーに関するメッセージはありません。" )

Loading

0 comments on commit 064ef57

Please sign in to comment.