Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wiedemann
MOOC-Workbench
Commits
67fc72d7
Commit
67fc72d7
authored
Jun 20, 2019
by
Jonathan Wiedemann
Browse files
translate some print in english
parent
c6144de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
InitGui.py
View file @
67fc72d7
...
...
@@ -35,7 +35,7 @@ import FreeCAD as app
import
FreeCADGui
as
gui
global
MOOC_VERSION
MOOC_VERSION
=
'V0.1.
1
'
MOOC_VERSION
=
'V0.1.
2
'
moocWBpath
=
os
.
path
.
dirname
(
moocwb_locator
.
__file__
)
moocWBpath_medias
=
os
.
path
.
join
(
moocWBpath
,
'medias'
)
...
...
@@ -83,12 +83,12 @@ class MoocWorkbench ( Workbench ):
mooc_version
=
str
(
line
,
'utf-8'
).
split
(
' = '
)
mooc_version
=
mooc_version
[
1
].
split
(
'
\n
'
)
mooc_version
=
mooc_version
[
0
][
1
:
-
1
]
print
(
u
'MOOC
dernière version
: '
+
str
(
mooc_version
))
print
(
u
'MOOC
version installé
: '
+
str
(
MOOC_VERSION
))
print
(
u
'MOOC
last release
: '
+
str
(
mooc_version
))
print
(
u
'MOOC
current release
: '
+
str
(
MOOC_VERSION
))
if
str
(
mooc_version
)
==
MOOC_VERSION
:
print
(
'Mooc Workbench is up to date !'
)
print
(
u
'Mooc Workbench is up to date !'
)
else
:
print
(
'Please update Mooc Workbench !'
)
print
(
u
'Please update Mooc Workbench !'
)
from
PySide2
import
QtWidgets
reply
=
QtWidgets
.
QMessageBox
.
information
(
None
,
u
'Mise à jour nécessaire...'
,
u
'''Votre version de l'atelier MOOC est obsolète.
\n
Merci de le mettre à jour à l'aide de l'addon manager.'''
)
...
...
Write
Preview
Supports
Markdown
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