OpenPHDGuiding / phd2

PHD2 Guiding
https://openphdguiding.org
BSD 3-Clause "New" or "Revised" License
255 stars 115 forks source link

locals_update.sh seems to be broken in the recent master. #1229

Closed Eyeke2 closed 4 months ago

Eyeke2 commented 4 months ago

Maybe I miss something, but the script stopped working recently, possibly after relocation all source files to 'src' folder.

Eyeke2 commented 4 months ago

@agalasso Suggested fix

diff --git a/cmake_modules/PHD2BuildDoc.cmake b/cmake_modules/PHD2BuildDoc.cmake
index 2af3c603..83424d14 100644
--- a/cmake_modules/PHD2BuildDoc.cmake
+++ b/cmake_modules/PHD2BuildDoc.cmake
@@ -330,7 +330,7 @@ function(generate_single_doc_targets)
               -E make_directory
               "${current_translation_output_folder}"
           COMMAND
-            ${XGETTEXT} *.cpp *.h -C
+            ${XGETTEXT} src/*.cpp src/*.h -C
               --from-code=CP1252
               --keyword="_"
               --keyword="wxPLURAL:1,2"
agalasso commented 4 months ago

@Eyeke2 thanks for tracking that down!