diff options
| author | Alessandro Portale <[email protected]> | 2022-10-06 14:05:43 +0200 |
|---|---|---|
| committer | hjk <[email protected]> | 2022-10-06 12:32:58 +0000 |
| commit | 928a7d2087406abef2b076705ba4aa51b8ef3c92 (patch) | |
| tree | dcceff7a811fde4771966d874b14764e611ba7a0 /src/plugins/git/commitdata.cpp | |
| parent | b8efc2f14de4859409fef57f58e2b813e72bc510 (diff) | |
Git: Convert to Tr::tr
Change-Id: I7fb1753109a9263c70c01713f5f4895db6b73662
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/git/commitdata.cpp')
| -rw-r--r-- | src/plugins/git/commitdata.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/plugins/git/commitdata.cpp b/src/plugins/git/commitdata.cpp index 9c6b948ac15..78e70a5ee48 100644 --- a/src/plugins/git/commitdata.cpp +++ b/src/plugins/git/commitdata.cpp @@ -3,13 +3,12 @@ #include "commitdata.h" +#include "gittr.h" + #include <utils/algorithm.h> #include <utils/qtcassert.h> -#include <QCoreApplication> - -namespace Git { -namespace Internal { +namespace Git::Internal { void GitSubmitEditorPanelInfo::clear() { @@ -175,32 +174,31 @@ QString CommitData::stateDisplayName(const FileStates &state) { QString resultState; if (state == UntrackedFile) - return tr("untracked"); + return Tr::tr("untracked"); if (state & StagedFile) - resultState = tr("staged + "); + resultState = Tr::tr("staged + "); if (state & ModifiedFile) - resultState.append(tr("modified")); + resultState.append(Tr::tr("modified")); else if (state & AddedFile) - resultState.append(tr("added")); + resultState.append(Tr::tr("added")); else if (state & DeletedFile) - resultState.append(tr("deleted")); + resultState.append(Tr::tr("deleted")); else if (state & RenamedFile) - resultState.append(tr("renamed")); + resultState.append(Tr::tr("renamed")); else if (state & CopiedFile) - resultState.append(tr("copied")); + resultState.append(Tr::tr("copied")); else if (state & TypeChangedFile) - resultState.append(tr("typechange")); + resultState.append(Tr::tr("typechange")); if (state & UnmergedUs) { if (state & UnmergedThem) - resultState.append(tr(" by both")); + resultState.append(Tr::tr(" by both")); else - resultState.append(tr(" by us")); + resultState.append(Tr::tr(" by us")); } else if (state & UnmergedThem) { - resultState.append(tr(" by them")); + resultState.append(Tr::tr(" by them")); } return resultState; } -} // namespace Internal -} // namespace Git +} // Git::Internal |
