]> git.saurik.com Git - apt.git/commitdiff
CMake: Translations: Pass --previous to msgmerge
authorJulian Andres Klode <jak@debian.org>
Fri, 19 Aug 2016 14:31:55 +0000 (16:31 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 19 Aug 2016 14:31:55 +0000 (16:31 +0200)
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.

CMake/Translations.cmake

index d7e992b3e83f24b1e204d7151410699342cfea82..c2d3901fd6699ba61a559f26af61593f6a8bbfc5 100644 (file)
@@ -149,7 +149,7 @@ function(apt_add_update_po)
                 continue()
             endif()
             add_custom_target(update-po-${langcode}
                 continue()
             endif()
             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}
             )
             add_dependencies(update-po update-po-${langcode})
                 DEPENDS nls-${master_name}
             )
             add_dependencies(update-po update-po-${langcode})