CMakeL10n: Avoid option --use-first for calls msguniq and msgcat #76
Merged
SlavekB
merged 1 commits from feat/CMakeL10n-avoid-gettext-use-first
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feat/CMakeL10n-avoid-gettext-use-first'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Using the
--use-first
option causes that comments and location information is used only from the first occurrence and all others are discarded instead of merging this information together.When the information are merged, the gettext inserts an ugly comment that referring to the POT file from which the information comes from. These in our case are commonly temporary files and therefore such information is not only ugly, but at the same time unnecessary. That's why I added the removal of this ugly comment.
CMakeL10n: Avoid option --use-first for calls msguniq and msgcatto WIP: CMakeL10n: Avoid option --use-first for calls msguniq and msgcat 3 years agoIt seems that it is good for use with
msguniq
with POT for desktop files, but it is not possible to use withmsgcat
when connecting other POT files. I have to do more tests.81bf77f130
to3ec8bd7bf6
3 years agoThe problem for joining the POT files represents POT header. I adjusted the code so that instead of using
msgcat
call, files are joined in CMake code and then are removed all repeats of the POT header. As a result, I did simplify the code so that a singlemsguniq
call is now used.Note: Because call of
msguniq
is now always performed as part of the POT file finalization and at the time when the working extension of the file names is cleaned in references to source files, this can lead to changes of the line breaks in POT files. If you do tests of this PR, you can observe such changes in POT files.WIP: CMakeL10n: Avoid option --use-first for calls msguniq and msgcatto CMakeL10n: Avoid option --use-first for calls msguniq and msgcat 3 years ago3ec8bd7bf6
tob37ccb9671
3 years agob37ccb9671
to7eac0a0f68
3 years ago7eac0a0f68
into master 3 years ago7eac0a0f68
.