mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +00:00 
			
		
		
		
	Updating translation, disabling locations and line numbers in .ts files
This commit is contained in:
		
							parent
							
								
									ca3586420e
								
							
						
					
					
						commit
						0ab89060e9
					
				
					 4 changed files with 21 additions and 141 deletions
				
			
		|  | @ -10,6 +10,7 @@ | |||
| #include <boost/asio.hpp> | ||||
| #include <spdlog/spdlog.h> | ||||
| #include <QApplication> | ||||
| #include <QTranslator> | ||||
| 
 | ||||
| static const std::string logPrefix_ = "scwx::main"; | ||||
| static const auto        logger_    = scwx::util::Logger::Create(logPrefix_); | ||||
|  | @ -20,8 +21,17 @@ int main(int argc, char* argv[]) | |||
|    scwx::util::Logger::Initialize(); | ||||
|    spdlog::set_level(spdlog::level::debug); | ||||
| 
 | ||||
|    QApplication a(argc, argv); | ||||
| 
 | ||||
|    QCoreApplication::setApplicationName("Supercell Wx"); | ||||
| 
 | ||||
|    // Enable internationalization support
 | ||||
|    QTranslator translator; | ||||
|    if (translator.load(QLocale(), "scwx", "_", ":/i18n")) | ||||
|    { | ||||
|       QCoreApplication::installTranslator(&translator); | ||||
|    } | ||||
| 
 | ||||
|    // Start the io_context main loop
 | ||||
|    boost::asio::io_context& ioContext = scwx::util::io_context(); | ||||
|    auto                     work      = boost::asio::make_work_guard(ioContext); | ||||
|  | @ -56,7 +66,6 @@ int main(int argc, char* argv[]) | |||
|    // Run Qt main loop
 | ||||
|    int result; | ||||
|    { | ||||
|       QApplication               a(argc, argv); | ||||
|       scwx::qt::main::MainWindow w; | ||||
|       w.show(); | ||||
|       result = a.exec(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat