From e7ca63c7c5a94279a284bbdcdd14e8c6c5597267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 22 Apr 2014 10:54:03 +0200 Subject: Improve plural handling for code using Qt translation system - Always load "en" translation: This way if a plural string is not translated, we fallback to the correct english plural form. - Generate .ts files with correct plural settings REVIEW: 117629 --- modules/ECMCreateQmFromPoFiles.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMCreateQmFromPoFiles.cmake') diff --git a/modules/ECMCreateQmFromPoFiles.cmake b/modules/ECMCreateQmFromPoFiles.cmake index 3da31940..f331460d 100644 --- a/modules/ECMCreateQmFromPoFiles.cmake +++ b/modules/ECMCreateQmFromPoFiles.cmake @@ -134,7 +134,7 @@ function(_ECM_QM_CREATE_TARGET install_destination catalog_name) # strings. Finally run lrelease to create the .qm files. add_custom_command(OUTPUT ${qmfile} COMMAND ${lconvert_executable} - ARGS -i ${it} -o ${tsfile} + ARGS -i ${it} -o ${tsfile} -target-language ${language} COMMAND Qt5::lrelease ARGS -compress -removeidentical -silent ${tsfile} -qm ${qmfile} DEPENDS ${it} -- cgit v1.2.1