1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-25 09:10:49 +01:00

Add a damn header to the .pot file

This commit is contained in:
David Sansome 2010-04-06 21:52:29 +00:00
parent 6de9b8e9d7
commit ac887cf468
3 changed files with 24 additions and 2 deletions

View File

@ -237,8 +237,9 @@ add_custom_target(pot ALL
COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE}
${XGETTEXT_OPTIONS} -C --omit-header
--directory=${CMAKE_CURRENT_SOURCE_DIR}
--output=${CLEMENTINE-POT}
--output=${CMAKE_CURRENT_BINARY_DIR}/translations.pot
${FILES_TO_TRANSLATE_REL}
COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/translations/header ${CMAKE_CURRENT_BINARY_DIR}/translations.pot > ${CLEMENTINE-POT}
DEPENDS ${FILES_TO_TRANSLATE})
# Merge the .pot into .po files
@ -246,7 +247,8 @@ foreach (_lang ${CLEMENTINE-LANGUAGES})
set(_po ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_lang}.po)
add_custom_target("po_${_lang}" ALL
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet -U ${_po} ${CLEMENTINE-POT}
DEPENDS ${_po} ${CLEMENTINE-POT})
DEPENDS ${_po})
add_dependencies("po_${_lang}" pot)
endforeach (_lang)
# Convert the .po files to .qm files

10
src/translations/header Normal file
View File

@ -0,0 +1,10 @@
# Clementine.
# Copyright (C) 2010 David Sansome
# This file is distributed under the same license as the Clementine package.
# David Sansome <me@davidsansome.com>, 2010.
#
#, fuzzy
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"

View File

@ -1,3 +1,13 @@
# Clementine.
# Copyright (C) 2010 David Sansome
# This file is distributed under the same license as the Clementine package.
# David Sansome <me@davidsansome.com>, 2010.
#
#, fuzzy
msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
#: mainwindow.cpp:274
msgid "Configure library..."
msgstr ""