* Improved ambiguous commands in Icon-O-Matic. A direction like left/right

when rotating indices doesn't always make sense. Think of an "8" shape.
   Reordered these items to give the correct shortcut order Alt+R - Shift+Alt+R.
 * More localizing of strings in ActivityMonitor and Expander.
 * TextSearch had problems with the search button being to small if one of the
   translated strings for Search/Cancel get's bigger than the other. Now resizes
   after toggling.
 * FileTypes missed a file for the catalog in the Jamfile.
   


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40441 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Joachim Seemer
2011-02-11 19:20:11 +00:00
parent e44c723193
commit 0ea362ab50
6 changed files with 27 additions and 13 deletions
+10 -8
View File
@@ -290,7 +290,7 @@ void
MemoryDataSource::Print(BString& text, int64 value) const
{
char buffer[32];
snprintf(buffer, sizeof(buffer), "%.1f MB", value / 1048576.0);
snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f MB"), value / 1048576.0);
text = buffer;
}
@@ -299,7 +299,7 @@ MemoryDataSource::Print(BString& text, int64 value) const
const char*
MemoryDataSource::Unit() const
{
return "MB";
return B_TRANSLATE("MB");
}
@@ -872,12 +872,12 @@ void
CPUUsageDataSource::_SetCPU(int32 cpu)
{
fCPU = cpu;
fLabel = "CPU";
fLabel = B_TRANSLATE("CPU");
if (SystemInfo().CPUCount() > 1)
fLabel << " " << cpu + 1;
fShortLabel = fLabel;
fLabel << " usage";
fLabel << " " << B_TRANSLATE("usage");
const rgb_color kColors[B_MAX_CPU_COUNT] = {
// TODO: find some better defaults...
@@ -1045,7 +1045,8 @@ void
PageFaultsDataSource::Print(BString& text, int64 value) const
{
char buffer[32];
snprintf(buffer, sizeof(buffer), "%.1f faults/s", value / 1024.0);
snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f faults/s"),
value / 1024.0);
text = buffer;
}
@@ -1146,7 +1147,7 @@ void
NetworkUsageDataSource::Print(BString& text, int64 value) const
{
char buffer[32];
snprintf(buffer, sizeof(buffer), "%.1f KB/s", value / 1024.0);
snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f KB/s"), value / 1024.0);
text = buffer;
}
@@ -1177,7 +1178,8 @@ NetworkUsageDataSource::Label() const
const char*
NetworkUsageDataSource::ShortLabel() const
{
return fIn ? B_TRANSLATE("RX") : B_TRANSLATE("TX");
return fIn ? B_TRANSLATE_COMMENT("RX", "Shorter version for Receiving.") :
B_TRANSLATE_COMMENT("TX", "Shorter version for Sending");
}