Add missing tr() implementations
One specific string did not translate. First, Dirk and I (via IRC) suspected a leading space was the issue (see commit eccac1321f512d8). However, I found out that the problem was still there. A non translated string "%1 shown", when applying a filter on the divelist, and looking at a trip line. It shows always untranslated "%1 shown". Extracting to-be-translated strings from the code, I found 2 errors: Class <classname> lacks Q_OBJECT macro. This patch adds a missing tr() definition and implementation to 2 structs. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f682ea0085
commit
604971ca0c
@ -5,6 +5,8 @@
|
||||
#include "dive.h"
|
||||
|
||||
struct DiveItem : public TreeItem {
|
||||
Q_DECLARE_TR_FUNCTIONS(TripItem)
|
||||
public:
|
||||
enum Column {
|
||||
NR,
|
||||
DATE,
|
||||
@ -38,6 +40,8 @@ struct DiveItem : public TreeItem {
|
||||
};
|
||||
|
||||
struct TripItem : public TreeItem {
|
||||
Q_DECLARE_TR_FUNCTIONS(TripItem)
|
||||
public:
|
||||
virtual QVariant data(int column, int role) const;
|
||||
dive_trip_t *trip;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user