Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evcs-demo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ionut Alexandrescu
evcs-demo
Commits
d4de33ce
Commit
d4de33ce
authored
Nov 17, 2017
by
Ionut Alexandrescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the translation files generation
parent
4dc2b966
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
DemoQtWS.pro
DemoQtWS.pro
+19
-19
No files found.
DemoQtWS.pro
View file @
d4de33ce
...
...
@@ -19,11 +19,6 @@ QML_DESIGNER_IMPORT_PATH =
#
deprecated
API
in
order
to
know
how
to
port
your
code
away
from
it
.
DEFINES
+=
QT_DEPRECATED_WARNINGS
TRANSLATIONS
+=
Translation
/
DemoQtWS_en
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_fr
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_de
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_it
.
ts
AZURE_PATH
=
C
:/
Development
/
Azure
-
IOT
-
ARM
/
azure
-
iot
-
sdk
-
c
equals
(
TEMPLATE
,
"vcapp"
)
:
exists
(
$$
AZURE_PATH
)
{
...
...
@@ -60,8 +55,6 @@ equals(TEMPLATE,"vcapp"):exists($$AZURE_PATH) {
DEFINES
+=
DEF_USE_AZURE
}
#
You
can
also
make
your
code
fail
to
compile
if
you
use
deprecated
APIs
.
#
In
order
to
do
so
,
uncomment
the
following
line
.
#
You
can
also
select
to
disable
deprecated
APIs
only
up
to
a
certain
version
of
Qt
.
...
...
@@ -78,15 +71,22 @@ HEADERS += \
TranslationSelect
.
h
\
AzureEvent
.
h
qtPrepareTool
(
LRELEASE
,
lrelease
)
for
(
tsfile
,
TRANSLATIONS
)
{
qmfile
=
$$
shadowed
(
$$
tsfile
)
qmfile
~=
s
,.
ts
$
,.
qm
,
qmdir
=
$$
dirname
(
qmfile
)
!
exists
(
$$
qmdir
)
{
mkpath
(
$$
qmdir
)|
error
(
"Aborting."
)
}
command
=
$$
LRELEASE
-
removeidentical
$$
tsfile
-
qm
$$
qmfile
system
(
$$
command
)|
error
(
"Failed to run: $$command"
)
TRANSLATIONS_FILES
+=
$$
qmfile
}
TRANSLATIONS
+=
Translation
/
DemoQtWS_en
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_fr
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_de
.
ts
TRANSLATIONS
+=
Translation
/
DemoQtWS_it
.
ts
TRANSLATIONS_FILES
=
qtPrepareTool
(
LRELEASE
,
lrelease
)
for
(
tsfile
,
TRANSLATIONS
)
{
qmfile
=
$$
tsfile
qmfile
~=
s
,.
ts
$
,.
qm
,
qmdir
=
$$
dirname
(
qmfile
)
!
exists
(
$$
qmdir
)
{
mkpath
(
$$
qmdir
)|
error
(
"Aborting."
)
}
command
=
$$
LRELEASE
-
removeidentical
$$
tsfile
-
qm
$$
qmfile
system
(
$$
command
)|
error
(
"Failed to run: $$command"
)
TRANSLATIONS_FILES
+=
$$
qmfile
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment