Skip to content

Commit

Permalink
Delete spurious spaces, correct wrong translation string,more transla…
Browse files Browse the repository at this point in the history
…tion, add folder local (translation files) to distribution package, build windows binary files with capital first letter
  • Loading branch information
DivingDuck committed Feb 3, 2024
1 parent f2e4f57 commit 74fa0c2
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 25 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/buildpackage-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ jobs:
- name: Make pyinstaller spec
run: |
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -w -i pronterface.ico pronterface.py
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -c -i pronsole.ico pronsole.py
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --name "Pronterface" --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -w -i pronterface.ico pronterface.py
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --name "Pronsole" --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -c -i pronsole.ico pronsole.py
- name: Make pyinstaller build
run: |
pyinstaller --clean pronterface.spec -y
pyinstaller --clean pronsole.spec -y
pyinstaller --clean Pronterface.spec -y
pyinstaller --clean Pronsole.spec -y
- name: Configuration for releases
if: ${{ github.event_name == 'release' }}
Expand All @@ -81,5 +81,6 @@ jobs:
with:
name: ${{ env.EXE_NAME }}_windows_${{ matrix.architecture }}_py${{ matrix.python-version }}
path: |
dist/pronterface.exe
dist/pronsole.exe
dist/Pronterface.exe
dist/Pronsole.exe
local
16 changes: 10 additions & 6 deletions locale/de/LC_MESSAGES/pronterface.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Pronterface\n"
"POT-Creation-Date: 2024-01-29 21:48+0100\n"
"PO-Revision-Date: 2024-01-30 11:20+0100\n"
"POT-Creation-Date: 2024-02-03 16:23+0100\n"
"PO-Revision-Date: 2024-02-03 16:25+0100\n"
"Last-Translator: DivingDuck\n"
"Language-Team: <>\n"
"Language: de\n"
Expand Down Expand Up @@ -278,6 +278,10 @@ msgstr ""
"(Geben Sie 'help' für einfache\n"
"Hilfefunktionen ein)"

#: printrun\gui\log.py:33
msgid "Command to send"
msgstr "Befehl zum Senden"

#: printrun\gui\log.py:46
msgid "Send"
msgstr "Senden"
Expand Down Expand Up @@ -2134,8 +2138,8 @@ msgid " Open file"
msgstr " Öffne Datei"

#: printrun\pronterface.py:815
msgid "&Open...\tCtrl+O"
msgstr "&Öffnen...\tStrg+O"
msgid "&Open..."
msgstr "&Öffnen..."

#: printrun\pronterface.py:816
msgid " Save file"
Expand All @@ -2154,8 +2158,8 @@ msgid " Clear output console"
msgstr " Ausgabe Konsole leeren"

#: printrun\pronterface.py:826
msgid "Clear console\tCtrl+L"
msgstr "Konsole leeren\tStrg+L"
msgid "Clear console"
msgstr "Konsole leeren"

#: printrun\pronterface.py:827
msgid " Closes the Window"
Expand Down
10 changes: 7 additions & 3 deletions locale/pronterface.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-01-29 21:48+0100\n"
"POT-Creation-Date: 2024-02-03 16:23+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -253,6 +253,10 @@ msgid ""
"help function)"
msgstr ""

#: printrun\gui\log.py:33
msgid "Command to send"
msgstr ""

#: printrun\gui\log.py:46
msgid "Send"
msgstr ""
Expand Down Expand Up @@ -1871,7 +1875,7 @@ msgid " Open file"
msgstr ""

#: printrun\pronterface.py:815
msgid "&Open...\tCtrl+O"
msgid "&Open..."
msgstr ""

#: printrun\pronterface.py:816
Expand All @@ -1891,7 +1895,7 @@ msgid " Clear output console"
msgstr ""

#: printrun\pronterface.py:826
msgid "Clear console\tCtrl+L"
msgid "Clear console"
msgstr ""

#: printrun\pronterface.py:827
Expand Down
2 changes: 1 addition & 1 deletion printrun/gcview.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def set_gcview_params(self, path_width, path_height):
for obj in self.objects[1:]:
if isinstance(obj.model, actors.GcodeModel):
obj.model.set_path_size(self.path_halfwidth, self.path_halfheight)
has_changed = True
has_changed = True
return has_changed

# E selected for Up because is above D
Expand Down
2 changes: 1 addition & 1 deletion printrun/gui/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, root, parentpanel = None):
lbrs = wx.BoxSizer(wx.HORIZONTAL)
root.commandbox = wx.TextCtrl(bottom_panel, style = wx.TE_PROCESS_ENTER)
root.commandbox.SetToolTip(wx.ToolTip(_("Send commands to printer\n(Type 'help' for simple\nhelp function)")))
root.commandbox.Hint = 'Command to [S]end'
root.commandbox.Hint = _("Command to send")
root.commandbox.Bind(wx.EVT_TEXT_ENTER, root.sendline)
root.commandbox.Bind(wx.EVT_CHAR, root.cbkey)
def deselect(ev):
Expand Down
4 changes: 2 additions & 2 deletions printrun/pronterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def create_menu(self):

# File menu
m = wx.Menu()
self.Bind(wx.EVT_MENU, self.loadfile, m.Append(-1, _("&Open...\tCtrl+O"), _(" Open file")))
self.Bind(wx.EVT_MENU, self.loadfile, m.Append(-1, _("&Open...")+"\tCtrl+O", _(" Open file")))
self.savebtn = m.Append(-1, _("&Save..."), _(" Save file"))
self.savebtn.Enable(False)
self.Bind(wx.EVT_MENU, self.savefile, self.savebtn)
Expand All @@ -823,7 +823,7 @@ def create_menu(self):
self.Bind(wx.EVT_MENU_RANGE, self.load_recent_file,
id = wx.ID_FILE1, id2 = wx.ID_FILE9)
m.Append(wx.ID_ANY, _("&Recent Files"), recent)
self.Bind(wx.EVT_MENU, self.clear_log, m.Append(-1, _("Clear console\tCtrl+L"), _(" Clear output console")))
self.Bind(wx.EVT_MENU, self.clear_log, m.Append(-1, _("Clear console")+"\tCtrl+L", _(" Clear output console")))
self.Bind(wx.EVT_MENU, self.on_exit, m.Append(wx.ID_EXIT, _("E&xit"), _(" Closes the Window")))
self.menustrip.Append(m, _("&File"))

Expand Down
12 changes: 6 additions & 6 deletions release_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,24 @@ echo ****************************************
echo ****** Collect all data for build ******
echo ****************************************

pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -c -i pronsole.ico pronsole.py
pyi-makespec -F --name "Pronterface" --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
pyi-makespec -F --name "Pronsole" --add-data images/*;images --add-data *.png;. --add-data *.ico;. -c -i pronsole.ico pronsole.py
rem Plater stand alone application is experimental only (See remark).
pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i plater.ico plater.py
pyi-makespec -F --name "Plater" --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i plater.ico plater.py

echo ***************************************************************
echo ****** Build Pronterface, Pronsole and Plater executables *****
echo ***************************************************************
echo
echo ** Build Pronterface executable **
pyinstaller --clean pronterface.spec -y
pyinstaller --clean Pronterface.spec -y
echo
echo ** Build Pronsole executable **
pyinstaller --clean pronsole.spec -y
pyinstaller --clean Pronsole.spec -y
echo
echo ** Build Plater executable **
rem Plater stand alone application is experimental only (See remark).
pyinstaller --clean plater.spec -y
pyinstaller --clean Plater.spec -y


echo ********************************
Expand Down

0 comments on commit 74fa0c2

Please sign in to comment.