Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Doroszewski opened this issue Apr 3, 2024 · 0 comments
Open

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

Doroszewski opened this issue Apr 3, 2024 · 0 comments

Comments

@Doroszewski
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant