QTfrontend/CMakeLists.txt
changeset 14434 e64b9ea24cd8
parent 14433 fbe5e49462aa
child 14467 4c743ef80b1b
--- a/QTfrontend/CMakeLists.txt	Thu Dec 13 20:24:50 2018 +0100
+++ b/QTfrontend/CMakeLists.txt	Thu Dec 13 21:19:17 2018 +0100
@@ -50,9 +50,9 @@
 file(GLOB CreditsCSV ${CMAKE_SOURCE_DIR}/QTfrontend/res/credits.csv)
 foreach(csvfile ${CreditsCSV})
     file(READ ${csvfile} csv)
-    string(REGEX MATCHALL "\n(\"[^\n\"]+\")" locs ${csv})
+    string(REGEX MATCHALL "\n(E|S|U),\"[^\n\"]+\"" locs ${csv})
     foreach(str ${locs})
-        string(REGEX REPLACE "\"([^\n\"]+)\"" "QT_TRANSLATE_NOOP(\"credits\", \"\\1\")" s ${str})
+        string(REGEX REPLACE "(E|S|U),\"([^\n\"]+)\"" "QT_TRANSLATE_NOOP(\"credits\", \"\\2\")" s ${str})
         list(APPEND csvlocs ${s})
     endforeach(str)
 endforeach(csvfile)