Skip to content

Commit 8f56881

Browse files
Make cleanup-po great again! (#2909)
Resolves #2908 Co-authored-by: Patience Daur <[email protected]>
1 parent 99486aa commit 8f56881

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,23 @@ add_custom_target(update-pot
240240
COMMENT "Update translation sources"
241241
)
242242

243-
add_custom_target(update-po
243+
add_custom_target(update-po-raw
244244
COMMAND "${SPHINX_INTL_EXECUTABLE}"
245245
update
246246
-p "${CMAKE_CURRENT_SOURCE_DIR}/locale/en/"
247247
-d "${CMAKE_CURRENT_SOURCE_DIR}/locale/"
248248
-l "ru"
249-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
249+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/locale
250250
COMMENT "Regenerate localization files from templates"
251251
DEPENDS update-pot
252252
)
253253

254+
add_custom_target(update-po
255+
COMMAND make
256+
update-po-raw
257+
cleanup-po
258+
)
259+
254260
add_custom_target(cleanup-po
255261
COMMAND "${PYTHON3_EXECUTABLE}"
256262
cleanup.py

0 commit comments

Comments
 (0)