1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-06 16:04:35 +00:00

Cleanup translation comments (#924)

* `// Translates to:` -> `//`

* `// Translation: ([^"].*)` -> `// "$1"`

* Manual cleanup

* Manual cleanup in `src/code/`

* Use more lowercase for some all caps translations

* Move translations to end of lines where it fits under 100 bytes

* Move one translation to end of line manually

* Run formatter

* Cleanup in EnHeishi1 as suggested by Roman

* Update src/code/z_play.c

Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>

Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
This commit is contained in:
Dragorn421 2021-09-04 15:33:19 +02:00 committed by GitHub
parent 9b840ad842
commit 81830a6e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 348 additions and 440 deletions

View file

@ -220,8 +220,7 @@ void Jpeg_ParseMarkers(u8* ptr, JpegContext* ctx) {
break;
}
default: {
// Unknown marker
osSyncPrintf("マーカー不明 %02x\n", ptr[-1]);
osSyncPrintf("マーカー不明 %02x\n", ptr[-1]); // "Unknown marker"
ptr += Jpeg_GetUnalignedU16(ptr);
break;
}
@ -257,7 +256,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
curTime = osGetTime();
diff = curTime - time;
time = curTime;
// Wait for synchronization of fifo buffer
// "Wait for synchronization of fifo buffer"
osSyncPrintf("*** fifoバッファの同期待ち time = %6.3f ms ***\n", OS_CYCLES_TO_USEC(diff) / 1000.0f);
ctx.workBuf = workBuff;
@ -266,7 +265,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
curTime = osGetTime();
diff = curTime - time;
time = curTime;
// Check markers for each segment
// "Check markers for each segment"
osSyncPrintf("*** 各セグメントのマーカーのチェック time = %6.3f ms ***\n", OS_CYCLES_TO_USEC(diff) / 1000.0f);
switch (ctx.dqtCount) {
@ -290,7 +289,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
curTime = osGetTime();
diff = curTime - time;
time = curTime;
// Create quantization table
// "Create quantization table"
osSyncPrintf("*** 量子化テーブル作成 time = %6.3f ms ***\n", OS_CYCLES_TO_USEC(diff) / 1000.0f);
switch (ctx.dhtCount) {
@ -320,7 +319,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
curTime = osGetTime();
diff = curTime - time;
time = curTime;
// Huffman table creation
// "Huffman table creation"
osSyncPrintf("*** ハフマンテーブル作成 time = %6.3f ms ***\n", OS_CYCLES_TO_USEC(diff) / 1000.0f);
decoder.imageData = ctx.imageData;
@ -357,7 +356,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
curTime = osGetTime();
diff = curTime - time;
time = curTime;
// Unfold & draw
// "Unfold & draw"
osSyncPrintf("*** 展開 & 描画 time = %6.3f ms ***\n", OS_CYCLES_TO_USEC(diff) / 1000.0f);
return 0;