/[svn]/qsampler/trunk/src/qsampler.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2210 by persson, Mon Jul 18 08:18:36 2011 UTC revision 2282 by capela, Sun Nov 13 20:29:46 2011 UTC
# Line 37  Line 37 
37  #define darker(x)       dark(x)  #define darker(x)       dark(x)
38  #endif  #endif
39    
40    #define CONFIG_QUOTE1(x) #x
41    #define CONFIG_QUOTED(x) CONFIG_QUOTE1(x)
42    
43    #if defined(DATADIR)
44    #define CONFIG_DATADIR CONFIG_QUOTED(DATADIR)
45    #else
46    #define CONFIG_DATADIR CONFIG_PREFIX "/share"
47    #endif
48    
49    #if defined(LOCALEDIR)
50    #define CONFIG_LOCALEDIR CONFIG_QUOTED(LOCALEDIR)
51    #else
52    #define CONFIG_LOCALEDIR CONFIG_DATADIR "/locale"
53    #endif
54    
55  #if WIN32  #if WIN32
56  #define RELATIVE_LOCALE_DIR "/share/locale"  #define RELATIVE_LOCALE_DIR "/share/locale"
57  #elif defined(__APPLE__)  #elif defined(__APPLE__)
# Line 104  public: Line 119  public:
119                  #ifdef RELATIVE_LOCALE_DIR                  #ifdef RELATIVE_LOCALE_DIR
120                                  sLocPath = QApplication::applicationDirPath() + RELATIVE_LOCALE_DIR;                                  sLocPath = QApplication::applicationDirPath() + RELATIVE_LOCALE_DIR;
121                  #else                  #else
122                                  sLocPath = CONFIG_PREFIX "/share/locale";                                  sLocPath = CONFIG_LOCALEDIR;
123                  #endif                  #endif
124                                  if (m_pMyTranslator->load(sLocName, sLocPath)) {                                  if (m_pMyTranslator->load(sLocName, sLocPath)) {
125                                          QApplication::installTranslator(m_pMyTranslator);                                          QApplication::installTranslator(m_pMyTranslator);

Legend:
Removed from v.2210  
changed lines
  Added in v.2282

  ViewVC Help
Powered by ViewVC