Skip to content

Some strings in tooltips are hard-coded to be in English #467

Open
@Doroszewski

Description

@Doroszewski
Expected Behavior

Everything should be possible to translate.

Current Behavior

A few strings are not:

(R =Running, S =Sleeping, T =sTopped, Z=Zombie)
(TS =Time Sharing)
(sorted backwards)
(sorted)

Possible Solution

Add tr() in QString Pstable::tipText()?

qps/src/pstable.cpp

Lines 179 to 197 in 9f8283f

QString Pstable::tipText(int col)
{
Category *cat = procview->cats[col];
QString s(cat->help);
// trick
if (cat->index == F_STAT)
s.append("\n(R =Running, S =Sleeping, T =sTopped, Z=Zombie)");
if (cat->index == F_PLCY)
s.append("\n(TS =Time Sharing)");
// if(cat->index == F_RSS);
// s.append("\nRSS = CODE + DATA + SHARE\n"
// "RSS = TRS + DRS + SHARE\n");
/// s.append("\n(RSS = TRS + DRS)");
if (cat == procview->sortcat)
s.append(procview->reversed ? "\n(sorted backwards)" : "\n(sorted)");
// printf("size=%d\n",s.capacity());
return s;
}

Steps to Reproduce (for bugs)
  1. Run qps in a non-English environment.
  2. Hover the mouse over the header of the state column.
  3. Hover the mouse over the header of the column used to sort the table.
Context

None.

System Information

Does not apply.

Other

Thank you for providing users a simple and lightweight Qt process manager (after KSysGuard become unmaintained and was replaced).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions