Skip to content

Commit

Permalink
Auto-updating translations, are they even installed? not confortable …
Browse files Browse the repository at this point in the history
…to delete the .qm's yet . .
  • Loading branch information
annejan committed Nov 3, 2015
1 parent a51b2d6 commit 741c4b7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
Empty file modified localization/localization_de_DE.qm
100755 → 100644
Empty file.
40 changes: 28 additions & 12 deletions qtpass.pro
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
#-------------------------------------------------
#
# QtPass is a GUI for pass,
# the standard unix password manager.
#
# Project created by QtCreator 2014-07-30T21:56:15
#
#-------------------------------------------------
#----------------------------------------------------------
# #
# QtPass is a GUI for pass, #
# the standard unix password manager. #
# #
# Project started by Anne Jan Brouwer 2014-07-30T21:56:15 #
# #
#----------------------------------------------------------

VERSION = 1.0.4
TEMPLATE = app
QT += core gui

isEmpty(QMAKE_LRELEASE) {
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
unix {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
} else {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
}
}

updateqm.input = TRANSLATIONS
updateqm.output = localization/${QMAKE_FILE_BASE}.qm
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm localization/${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += updateqm

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

macx {
Expand All @@ -29,7 +45,7 @@ SOURCES += main.cpp\
keygendialog.cpp \
progressindicator.cpp \
trayicon.cpp \
passworddialog.cpp
passworddialog.cpp

HEADERS += mainwindow.h \
configdialog.h \
Expand All @@ -39,13 +55,13 @@ HEADERS += mainwindow.h \
keygendialog.h \
progressindicator.h \
trayicon.h \
passworddialog.h
passworddialog.h

FORMS += mainwindow.ui \
configdialog.ui \
usersdialog.ui \
keygendialog.ui \
passworddialog.ui
passworddialog.ui

QMAKE_CXXFLAGS_WARN_ON += -Wno-unknown-pragmas

Expand Down Expand Up @@ -101,6 +117,6 @@ isEmpty(PREFIX) {
}
target.path = $$PREFIX/

INSTALLS += target
INSTALLS += target

DEFINES += "VERSION=\"\\\"$$VERSION\\\"\""
8 changes: 4 additions & 4 deletions resources.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<RCC>
<qresource prefix="/">
<file>artwork/icon.icns</file>
<file>artwork/icon.ico</file>
<file>artwork/icon.png</file>
<file>artwork/icon.svg</file>
<file>localization/localization_ar_MA.qm</file>
<file>localization/localization_ar_MA.ts</file>
<file>localization/localization_de_DE.qm</file>
Expand All @@ -18,10 +22,6 @@
<file>localization/localization_pl_PL.ts</file>
<file>localization/localization_ru_RU.qm</file>
<file>localization/localization_ru_RU.ts</file>
<file>artwork/icon.icns</file>
<file>artwork/icon.ico</file>
<file>artwork/icon.png</file>
<file>artwork/icon.svg</file>
<file>localization/localization_zh_CN.qm</file>
<file>localization/localization_zh_CN.ts</file>
<file>localization/localization_he_IL.ts</file>
Expand Down

0 comments on commit 741c4b7

Please sign in to comment.