-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translated versinfo.cpp, toolbar8, allochan.cpp #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some lower/upper case inconsistency, in some cases GPT-4 translation is better, some broken comment format. Overall, it looks very usable.
|
||
typedef void(__cdecl* _PVFV)(void); | ||
|
||
#pragma section(".i_alc$a", read) | ||
__declspec(allocate(".i_alc$a")) const _PVFV i_allochan = (_PVFV)1; // na zacatek sekce .i_alc si dame promennou i_allochan | ||
__declspec(allocate(".i_alc$a")) const _PVFV i_allochan = (_PVFV)1; // at the beginning of the section, we will use the variable i_allochan for .i_alc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// at the beginning of the .i_alc section, we put the variable i_allochan
see GPT-4 translation: https://chat.openai.com/share/020f2fca-fdef-4557-9218-5ef96f998d32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"we put" vs "we use" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean GPT-3.5 "at the beginning of the section ... for .i_alc" vs GPT-4 "at the beginning of the .i_alc section ..."
@@ -112,7 +113,7 @@ int C__AllocHandlerInit::AltapNewHandler(size_t size) | |||
if (res == 0) | |||
{ | |||
TRACE_ET(_T("AltapNewHandler: unable to open message-box!")); | |||
Sleep(1000); // nechame masinu oddechnout a zkusime ukazat msgbox znovu | |||
Sleep(1000); // Let the machine rest and try to show the msgbox again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let -> let?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
considering that the old comment is gone and new English one is in, is it not more correct to capitalize first character?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to ensure this consistently, across multi-line comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each "//" is translated on its own. I can attempt to write some logic to maintain capitalization or try to change my GPT prompt and see if it respects that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see first how much this is wasting our time or how really important that is, before I re-do that efforts.
@@ -58,8 +59,7 @@ BOOL CPluginsBar::CreatePluginButtons() | |||
SetHotImageList(HPluginsIcons); | |||
|
|||
Plugins.InitPluginsBar(this); | |||
/* | |||
TLBI_ITEM_INFO2 tii; | |||
/* TLBI_ITEM_INFO2 tii; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep original comment format.
InsertItem2(0xFFFFFFFF, TRUE, &tii); | ||
} | ||
*/ | ||
}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep original comment format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will keep an eye as I do my review next time for new files.
|
||
return TRUE; | ||
} | ||
|
||
int CPluginsBar::GetNeededHeight() | ||
{ | ||
CALL_STACK_MESSAGE_NONE | ||
// i v pripade, ze nedrzime zadnou ikonu budeem vracet spravnou vysku | ||
// and in case we don't hold any icon, we will return the correct height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and -> even
GPT-4 translation: https://chat.openai.com/share/7e2a3c00-cee9-411d-ad86-024a2406e9cb
@@ -186,7 +187,7 @@ CVersionInfo::LoadBlock(const BYTE*& ptr, CVersionBlock* parent) | |||
{ | |||
int valSize = info->wValueLength; | |||
|
|||
if (block->Type == vbtVersionInfo) // udelame par kontrol konzistence dat | |||
if (block->Type == vbtVersionInfo) // Let's perform some consistency checks on the data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's -> let's
Let me propose this workflow:
Like this, we both get commit credits (open source spirit), and also, it will be faster since you know the language. We are dealing with 15k comments and it is more efficient if you directly start editing instead of commenting. How does that sound? |
I should probably start by reviewing and closing the existing pull requests. This is a manual translation, using GPT-4 combined with DeepL. Unfortunately, I am not able to focus on this this week and next week, because I need to finish work for Fine. |
Manual GPT-4 is not going to be sustainable, not for anyone and not in any reasonable amount of time. I think it is fast to start off with the stuff I did, and just review / edit on the fly. It should take you (as a native speaker) no more than 10 minutes per file and we have around 170. So that's reasonable. What is DeepL? Please edit this PR at least per the workflow I suggested. They are 3 tiny files. I need to start focusing on Unicode/UTF-16 support. |
Please @janrysavy , let's get this moving fast.