main.cpp   main.cpp 
skipping to change at line 47 skipping to change at line 47
#include <windows.h> #include <windows.h>
#endif //Q_OS_WIN #endif //Q_OS_WIN
//! @class GettextStelTranslator //! @class GettextStelTranslator
//! Provides i18n support through gettext. //! Provides i18n support through gettext.
class GettextStelTranslator : public QTranslator class GettextStelTranslator : public QTranslator
{ {
public: public:
virtual bool isEmpty() const { return false; } virtual bool isEmpty() const { return false; }
//! Overrides QTranslator::translate().
//! Calls StelTranslator::qtranslate().
//! Can handle the Qt disambiguation strings of translatable
//! widgets from compiled .ui files - they are interpreted as
//! gettext context strings. See http://www.gnu.org/software/gettext
/manual/gettext.html#Contexts
//! @param context Qt context string - IGNORED.
//! @param sourceText the source message.
//! @param comment optional parameter, Qt disambiguation
//! comment string is interpreted as a gettext context.
//! (msgctxt) string.
virtual QString translate(const char* context, const char* sourceTex t, const char* comment=0) const virtual QString translate(const char* context, const char* sourceTex t, const char* comment=0) const
{ {
Q_UNUSED(context); Q_UNUSED(context);
Q_UNUSED(comment); if (comment)
return q_(sourceText); return StelTranslator::globalTranslator.qtranslate(s
ourceText, comment);
else
return q_(sourceText);
} }
}; };
//! Copies the default configuration file. //! Copies the default configuration file.
//! This function copies the default_config.ini file to config.ini (or othe r //! This function copies the default_config.ini file to config.ini (or othe r
//! name specified on the command line located in the user data directory. //! name specified on the command line located in the user data directory.
void copyDefaultConfigFile(const QString& newPath) void copyDefaultConfigFile(const QString& newPath)
{ {
QString defaultConfigFilePath; QString defaultConfigFilePath;
try try
 End of changes. 2 change blocks. 
2 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/