1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-04 15:04:31 +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

@ -372,8 +372,7 @@ s32 Collider_SetJntSphToActor(GlobalContext* globalCtx, ColliderJntSph* dest, Co
if (dest->elements == NULL) {
dest->count = 0;
osSyncPrintf(VT_FGCOL(RED));
// Can not.
osSyncPrintf("ClObjJntSph_set():zelda_malloc()出来ません。\n");
osSyncPrintf("ClObjJntSph_set():zelda_malloc()出来ません。\n"); // "Can not."
osSyncPrintf(VT_RST);
return 0;
}
@ -402,8 +401,7 @@ s32 Collider_SetJntSphAllocType1(GlobalContext* globalCtx, ColliderJntSph* dest,
if (dest->elements == NULL) {
dest->count = 0;
osSyncPrintf(VT_FGCOL(RED));
// Can not.
osSyncPrintf("ClObjJntSph_set3():zelda_malloc_出来ません。\n");
osSyncPrintf("ClObjJntSph_set3():zelda_malloc_出来ません。\n"); // "Can not."
osSyncPrintf(VT_RST);
return 0;
}
@ -431,8 +429,7 @@ s32 Collider_SetJntSphAlloc(GlobalContext* globalCtx, ColliderJntSph* dest, Acto
if (dest->elements == NULL) {
dest->count = 0;
osSyncPrintf(VT_FGCOL(RED));
// Can not.
osSyncPrintf("ClObjJntSph_set5():zelda_malloc出来ません\n");
osSyncPrintf("ClObjJntSph_set5():zelda_malloc出来ません\n"); // "Can not."
osSyncPrintf(VT_RST);
return 0;
}
@ -741,8 +738,7 @@ s32 Collider_SetTrisAllocType1(GlobalContext* globalCtx, ColliderTris* dest, Act
if (dest->elements == NULL) {
dest->count = 0;
osSyncPrintf(VT_FGCOL(RED));
// Can not.
osSyncPrintf("ClObjTris_set3():zelda_malloc()出来ません\n");
osSyncPrintf("ClObjTris_set3():zelda_malloc()出来ません\n"); // "Can not."
osSyncPrintf(VT_RST);
return 0;
}
@ -768,8 +764,7 @@ s32 Collider_SetTrisAlloc(GlobalContext* globalCtx, ColliderTris* dest, Actor* a
if (dest->elements == NULL) {
osSyncPrintf(VT_FGCOL(RED));
// Can not.
osSyncPrintf("ClObjTris_set5():zelda_malloc出来ません\n");
osSyncPrintf("ClObjTris_set5():zelda_malloc出来ません\n"); // "Can not."
osSyncPrintf(VT_RST);
dest->count = 0;
return 0;
@ -1191,7 +1186,7 @@ s32 CollisionCheck_SetAT(GlobalContext* globalCtx, CollisionCheckContext* colChk
return -1;
}
if (colChkCtx->colATCount >= COLLISION_CHECK_AT_MAX) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setAT():インデックスがオーバーして追加不能\n");
return -1;
}
@ -1220,14 +1215,14 @@ s32 CollisionCheck_SetAT_SAC(GlobalContext* globalCtx, CollisionCheckContext* co
}
if (colChkCtx->sacFlags & 1) {
if (!(index < colChkCtx->colATCount)) {
// You are trying to register a location that is larger than the total number of data.
// "You are trying to register a location that is larger than the total number of data."
osSyncPrintf("CollisionCheck_setAT_SAC():全データ数より大きいところに登録しようとしている。\n");
return -1;
}
colChkCtx->colAT[index] = collider;
} else {
if (!(colChkCtx->colATCount < COLLISION_CHECK_AT_MAX)) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setAT():インデックスがオーバーして追加不能\n");
return -1;
}
@ -1260,7 +1255,7 @@ s32 CollisionCheck_SetAC(GlobalContext* globalCtx, CollisionCheckContext* colChk
return -1;
}
if (colChkCtx->colACCount >= COLLISION_CHECK_AC_MAX) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setAC():インデックスがオーバして追加不能\n");
return -1;
}
@ -1289,14 +1284,14 @@ s32 CollisionCheck_SetAC_SAC(GlobalContext* globalCtx, CollisionCheckContext* co
}
if (colChkCtx->sacFlags & 1) {
if (!(index < colChkCtx->colACCount)) {
// You are trying to register a location that is larger than the total number of data.
// "You are trying to register a location that is larger than the total number of data."
osSyncPrintf("CollisionCheck_setAC_SAC():全データ数より大きいところに登録しようとしている。\n");
return -1;
}
colChkCtx->colAC[index] = collider;
} else {
if (!(colChkCtx->colACCount < COLLISION_CHECK_AC_MAX)) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setAC():インデックスがオーバして追加不能\n");
return -1;
}
@ -1331,7 +1326,7 @@ s32 CollisionCheck_SetOC(GlobalContext* globalCtx, CollisionCheckContext* colChk
return -1;
}
if (colChkCtx->colOCCount >= COLLISION_CHECK_OC_MAX) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setOC():インデックスがオーバして追加不能\n");
return -1;
}
@ -1360,7 +1355,7 @@ s32 CollisionCheck_SetOC_SAC(GlobalContext* globalCtx, CollisionCheckContext* co
}
if (colChkCtx->sacFlags & 1) {
if (!(index < colChkCtx->colOCCount)) {
// You are trying to register a location that is larger than the total number of data.
// "You are trying to register a location that is larger than the total number of data."
osSyncPrintf("CollisionCheck_setOC_SAC():全データ数より大きいところに登録しようとしている。\n");
return -1;
}
@ -1368,7 +1363,7 @@ s32 CollisionCheck_SetOC_SAC(GlobalContext* globalCtx, CollisionCheckContext* co
colChkCtx->colAT[index] = collider;
} else {
if (!(colChkCtx->colOCCount < COLLISION_CHECK_OC_MAX)) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setOC():インデックスがオーバして追加不能\n");
return -1;
}
@ -1390,7 +1385,7 @@ s32 CollisionCheck_SetOCLine(GlobalContext* globalCtx, CollisionCheckContext* co
}
Collider_ResetLineOC(globalCtx, collider);
if (!(colChkCtx->colLineCount < COLLISION_CHECK_OC_LINE_MAX)) {
// Index exceeded and cannot add more
// "Index exceeded and cannot add more"
osSyncPrintf("CollisionCheck_setOCLine():インデックスがオーバして追加不能\n");
return -1;
}
@ -2904,7 +2899,7 @@ void CollisionCheck_OC(GlobalContext* globalCtx, CollisionCheckContext* colChkCt
}
vsFunc = sOCVsFuncs[(*left)->shape][(*right)->shape];
if (vsFunc == NULL) {
// Not compatible
// "Not compatible"
osSyncPrintf("CollisionCheck_OC():未対応 %d, %d\n", (*left)->shape, (*right)->shape);
continue;
}
@ -3163,7 +3158,7 @@ s32 CollisionCheck_LineOC(GlobalContext* globalCtx, CollisionCheckContext* colCh
}
lineCheck = sOCLineCheckFuncs[(*col)->shape];
if (lineCheck == NULL) {
// type %d not supported
// "type %d not supported"
osSyncPrintf("CollisionCheck_generalLineOcCheck():未対応 %dタイプ\n", (*col)->shape);
} else {
result = lineCheck(globalCtx, colChkCtx, (*col), a, b);