mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:43:51 +00:00
Okokok, I dont know why someone should feel the urge to translate MB, KB, and GB (Except specific languages...), but here they are.
svn path=/trunk/; revision=32427
This commit is contained in:
parent
2b750b9312
commit
71719dc6bd
16 changed files with 100 additions and 19 deletions
|
@ -1612,7 +1612,7 @@ CreatePartitionPage (PINPUT_RECORD Ir)
|
||||||
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
||||||
{
|
{
|
||||||
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -1622,7 +1622,7 @@ CreatePartitionPage (PINPUT_RECORD Ir)
|
||||||
if (DiskSize == 0)
|
if (DiskSize == 0)
|
||||||
DiskSize = 1;
|
DiskSize = 1;
|
||||||
|
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DiskEntry->DriverName.Length > 0)
|
if (DiskEntry->DriverName.Length > 0)
|
||||||
|
@ -1780,19 +1780,19 @@ DeletePartitionPage (PINPUT_RECORD Ir)
|
||||||
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
||||||
{
|
{
|
||||||
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0xA00000LL) /* 10 MB */
|
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0xA00000LL) /* 10 MB */
|
||||||
{
|
{
|
||||||
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 9)) >> 10;
|
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 9)) >> 10;
|
||||||
Unit = "KB";
|
Unit = MUIGetString(STRING_KB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PartType == NULL)
|
if (PartType == NULL)
|
||||||
|
@ -1820,7 +1820,7 @@ DeletePartitionPage (PINPUT_RECORD Ir)
|
||||||
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
||||||
{
|
{
|
||||||
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -1830,7 +1830,7 @@ DeletePartitionPage (PINPUT_RECORD Ir)
|
||||||
if (DiskSize == 0)
|
if (DiskSize == 0)
|
||||||
DiskSize = 1;
|
DiskSize = 1;
|
||||||
|
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DiskEntry->DriverName.Length > 0)
|
if (DiskEntry->DriverName.Length > 0)
|
||||||
|
@ -1913,24 +1913,24 @@ SelectFileSystemPage (PINPUT_RECORD Ir)
|
||||||
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
||||||
{
|
{
|
||||||
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
DiskSize = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
||||||
DiskUnit = "GB";
|
DiskUnit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DiskSize = (DiskEntry->DiskSize + (1 << 19)) >> 20;
|
DiskSize = (DiskEntry->DiskSize + (1 << 19)) >> 20;
|
||||||
DiskUnit = "MB";
|
DiskUnit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* adjust partition size */
|
/* adjust partition size */
|
||||||
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
||||||
{
|
{
|
||||||
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
||||||
PartUnit = "GB";
|
PartUnit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
PartSize = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
||||||
PartUnit = "MB";
|
PartUnit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* adjust partition type */
|
/* adjust partition type */
|
||||||
|
|
|
@ -1683,6 +1683,12 @@ MUI_STRING bgBGStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1680,6 +1680,12 @@ MUI_STRING deDEStrings[] =
|
||||||
"Ungenutzt"},
|
"Ungenutzt"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unbekannt"},
|
"Unbekannt"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1674,6 +1674,12 @@ MUI_STRING elGRStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1674,6 +1674,12 @@ MUI_STRING enUSStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1673,6 +1673,12 @@ MUI_STRING esESStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1686,6 +1686,12 @@ MUI_STRING frFRStrings[] =
|
||||||
"Non utilis‚"},
|
"Non utilis‚"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Inconnu"},
|
"Inconnu"},
|
||||||
|
{STRING_KB,
|
||||||
|
"Ko"},
|
||||||
|
{STRING_MB,
|
||||||
|
"Mo"},
|
||||||
|
{STRING_GB,
|
||||||
|
"Go"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1674,6 +1674,12 @@ MUI_STRING itITStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1683,6 +1683,12 @@ MUI_STRING ltLTStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1682,6 +1682,12 @@ MUI_STRING plPLStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1674,6 +1674,12 @@ MUI_STRING ruRUStrings[] =
|
||||||
"<EFBFBD>¥ ¨á¯®«ì§®¢ ®"},
|
"<EFBFBD>¥ ¨á¯®«ì§®¢ ®"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"<EFBFBD>¥¨§¢¥áâë©"},
|
"<EFBFBD>¥¨§¢¥áâë©"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1679,6 +1679,12 @@ MUI_STRING skSKStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1673,6 +1673,12 @@ MUI_STRING svSEStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1674,6 +1674,12 @@ MUI_STRING ukUAStrings[] =
|
||||||
"Unused"},
|
"Unused"},
|
||||||
{STRING_FORMATUNKNOWN,
|
{STRING_FORMATUNKNOWN,
|
||||||
"Unknown"},
|
"Unknown"},
|
||||||
|
{STRING_KB,
|
||||||
|
"KB"},
|
||||||
|
{STRING_MB,
|
||||||
|
"MB"},
|
||||||
|
{STRING_GB,
|
||||||
|
"GB"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -121,4 +121,7 @@ MUIGetString(ULONG Number);
|
||||||
#define STRING_UNFORMATTED 50
|
#define STRING_UNFORMATTED 50
|
||||||
#define STRING_FORMATUNUSED 51
|
#define STRING_FORMATUNUSED 51
|
||||||
#define STRING_FORMATUNKNOWN 52
|
#define STRING_FORMATUNKNOWN 52
|
||||||
|
#define STRING_KB 53
|
||||||
|
#define STRING_MB 54
|
||||||
|
#define STRING_GB 55
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1120,19 +1120,19 @@ PrintPartitionData (PPARTLIST List,
|
||||||
if (PartEntry->UnpartitionledLength >= 0x280000000ULL) /* 10 GB */
|
if (PartEntry->UnpartitionledLength >= 0x280000000ULL) /* 10 GB */
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 29)) >> 30;
|
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (PartEntry->UnpartitionedLength >= 0xA00000ULL) /* 10 MB */
|
if (PartEntry->UnpartitionedLength >= 0xA00000ULL) /* 10 MB */
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 19)) >> 20;
|
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 19)) >> 20;
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 9)) >> 10;
|
PartSize.QuadPart = (PartEntry->UnpartitionedLength + (1 << 9)) >> 10;
|
||||||
Unit = "KB";
|
Unit = MUIGetString(STRING_KB);
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf (LineBuffer,
|
sprintf (LineBuffer,
|
||||||
|
@ -1176,19 +1176,19 @@ PrintPartitionData (PPARTLIST List,
|
||||||
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0x280000000LL) /* 10 GB */
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0xA00000LL) /* 10 MB */
|
if (PartEntry->PartInfo[0].PartitionLength.QuadPart >= 0xA00000LL) /* 10 MB */
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 19)) >> 20;
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 9)) >> 10;
|
PartSize.QuadPart = (PartEntry->PartInfo[0].PartitionLength.QuadPart + (1 << 9)) >> 10;
|
||||||
Unit = "KB";
|
Unit = MUIGetString(STRING_KB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PartType == NULL)
|
if (PartType == NULL)
|
||||||
|
@ -1274,7 +1274,7 @@ PrintDiskData (PPARTLIST List,
|
||||||
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
if (DiskEntry->DiskSize >= 0x280000000ULL) /* 10 GB */
|
||||||
{
|
{
|
||||||
DiskSize.QuadPart = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
DiskSize.QuadPart = (DiskEntry->DiskSize + (1 << 29)) >> 30;
|
||||||
Unit = "GB";
|
Unit = MUIGetString(STRING_GB);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -1282,7 +1282,7 @@ PrintDiskData (PPARTLIST List,
|
||||||
DiskSize.QuadPart = (DiskEntry->DiskSize + (1 << 19)) >> 20;
|
DiskSize.QuadPart = (DiskEntry->DiskSize + (1 << 19)) >> 20;
|
||||||
if (DiskSize.QuadPart == 0)
|
if (DiskSize.QuadPart == 0)
|
||||||
DiskSize.QuadPart = 1;
|
DiskSize.QuadPart = 1;
|
||||||
Unit = "MB";
|
Unit = MUIGetString(STRING_MB);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DiskEntry->DriverName.Length > 0)
|
if (DiskEntry->DriverName.Length > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue