Skip to content

Commit

Permalink
add appinfo metadata source dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 28, 2018
1 parent f58cc38 commit a6c3b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions i18n/CMakeLists.txt
@@ -1,7 +1,6 @@
FIND_PROGRAM(QT_LRELEASE_EXECUTABLE NAMES lrelease-qt5 lrelease)

MACRO(ADD_TRANSLATION_FILES _sources )

FOREACH (_current_FILE ${ARGN})
GET_FILENAME_COMPONENT(_in ${_current_FILE} ABSOLUTE)
GET_FILENAME_COMPONENT(_basename ${_current_FILE} NAME_WE)
Expand Down Expand Up @@ -33,7 +32,7 @@ IF (CMAKE_SYSTEM_NAME STREQUAL "Linux")
COMMAND ${PYTHON_EXECUTABLE}
ARGS ${CMAKE_SOURCE_DIR}/scripts/ts2appinfo.py "${CMAKE_BINARY_DIR}"
COMMENT "Updating appinfo files..."
DEPENDS ${QM_FILES}
DEPENDS ${QM_FILES} ${CMAKE_SOURCE_DIR}/linux/org.qgis.qgis.desktop.in ${CMAKE_SOURCE_DIR}/linux/org.qgis.qgis.appdata.xml.in
)

SET(MD_FILES ${CMAKE_BINARY_DIR}/org.qgis.qgis.desktop ${CMAKE_BINARY_DIR}/org.qgis.qgis.appdata.xml)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ts2appinfo.py
Expand Up @@ -96,7 +96,7 @@

t = line.strip()[len(prefix) + 1:]
for lang in strings[t]:
f.write("{}[{}]={}\n".format(prefix, lang, strings[t][lang]))
f.write("{}[{}]={}\n".format(prefix, lang, strings[t][lang].decode("utf-8")))

elif line.startswith(prefix + "["):
skip = True
Expand Down

0 comments on commit a6c3b81

Please sign in to comment.