Sfoglia il codice sorgente

CMake: Translations: Pass --previous to msgmerge

When updating our .po files, pass --previous to msgmerge
to make it easier for translators to translate fuzzy
strings.

Thanks: Guillem Jover for the suggestion.
Julian Andres Klode 10 anni fa
parent
commit
0eaa491c63
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      CMake/Translations.cmake

+ 1 - 1
CMake/Translations.cmake

@@ -149,7 +149,7 @@ function(apt_add_update_po)
                 continue()
                 continue()
             endif()
             endif()
             add_custom_target(update-po-${langcode}
             add_custom_target(update-po-${langcode}
-                COMMAND msgmerge -q --update --backup=none ${translation} ${output}
+                COMMAND msgmerge -q --previous --update --backup=none ${translation} ${output}
                 DEPENDS nls-${master_name}
                 DEPENDS nls-${master_name}
             )
             )
             add_dependencies(update-po update-po-${langcode})
             add_dependencies(update-po update-po-${langcode})