mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| #ifndef GETTEXTFROMC_H
 | |
| #define GETTEXTFROMC_H
 | |
| 
 | |
| #include <QHash>
 | |
| #include <QCoreApplication>
 | |
| 
 | |
| extern "C" const char *trGettext(const char *text);
 | |
| 
 | |
| class gettextFromC {
 | |
| 	Q_DECLARE_TR_FUNCTIONS(gettextFromC)
 | |
| public:
 | |
| 	static gettextFromC *instance();
 | |
| 	const char *trGettext(const char *text);
 | |
| 	void reset(void);
 | |
| 	QHash<QByteArray, QByteArray> translationCache;
 | |
| };
 | |
| 
 | |
| #endif // GETTEXTFROMC_H
 |