Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change locale of objectplater.py from plater.pot to pronterface.pot #1343

Merged
merged 5 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion printrun/objectplater.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.

from .utils import install_locale, iconfile
install_locale('plater')
install_locale('pronterface')

import logging
import os
Expand Down
29 changes: 15 additions & 14 deletions release_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rem ****************************************************************************
rem ********************* ---> New batch file starts here <--- ***********************
rem ** **
rem ** This batch will compile automated via command line an executable **
rem ** Pronterface- and Pronsole file for Windows 10. **
rem ** Pronterface, Pronsole and Plater file for Windows 10. **
rem ** **
rem ** Steps that are automated: **
rem ** **
Expand Down Expand Up @@ -43,7 +43,7 @@ rem ** this directory in your local repository:
rem ** git checkout master **
rem ** git submodule add https://github.com/DivingDuck/PrintrunGTK3 **
rem ** git submodule update --init --recursive **
rem ** In case the directory PrintrunGTK3 exist but is empty: **
rem ** In case the directory PrintrunGTK3 exist but is empty please run: **
rem ** git submodule update --init --recursive **
rem ** You can find a listing of all used DLL's in file VERSION as reference and **
rem ** further informations about the linked submodule here: **
Expand Down Expand Up @@ -79,8 +79,8 @@ if exist v3 (
echo ****** No virtual environment named v3 available ******
echo ****** Will create first a new virtual environment with name v3 ******
echo **********************************************************************
rem Select your Python version below. Remove 'rem' before 'rem py -3.x ...' for
rem your Python version of choice and add 'rem' for all other versions.
rem Select your Python version below. Remove 'rem' before 'rem py -3.x ...'
rem for your Python version of choice and add 'rem' for all other versions.
rem Attention:
rem Minimum version for wxPython is >= 4.2 and with this version only
rem Python x64 versions are supported.
Expand Down Expand Up @@ -125,11 +125,6 @@ echo ****** check for and update outdated modules ******
echo ****************************************************
for /F "skip=2 delims= " %%i in ('pip list --outdated') do py -m pip install --upgrade %%i

rem echo ****************************************************************************
rem echo ****** Bug on wxPython 4.1.x workaround for Python 3.x and Windows 10 ******
rem echo ****************************************************************************
rem wxPython 4.2.0 is available. Snapshot version is not needed now. Hopefully. #2022-08-05
rem pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython

echo *************************************************************************
echo ****** pyglet workaround, needs to be below 2.0 (isn't compatible) ******
rockstorm101 marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -143,13 +138,14 @@ echo ***************************************************************************
echo ****** cairosvg workaround, needs to be below 2.6.0 (isn't compatible) ******
echo *****************************************************************************
rem # 2023-01-30
rem cairosvg 2.6.0 have problems with locale, so we will stay to 2.5.2 as workaround for now
rem cairosvg >=2.6.0 generate a crash problem with locale in module projectlayer.py (Projector),
rem so we will stay to 2.5.2 as workaround for now
pip uninstall cairosvg -y
rockstorm101 marked this conversation as resolved.
Show resolved Hide resolved
pip install cairosvg==2.5.2


echo ******************************************************************
echo ****** Compile G-Code parser gcoder_line.cp37-win_amd64.pyd ******
echo ****** Compile G-Code parser gcoder_line.cp??-win_amd64.pyd ******
echo ******************************************************************
rem For safety reasons delete existing version first to prevent errors
if exist printrun\gcoder_line.cp??-win_amd??.pyd (
Expand Down Expand Up @@ -193,16 +189,21 @@ rem Choose this pyi-makespec in case you want to include the GTK3 Toolkit files

pyi-makespec -F --add-binary PrintrunGTK3/GTK3Windows10-64/*.dll;. --add-data VERSION;cairocffi --add-data VERSION;cairosvg --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py
pyi-makespec -F --add-binary PrintrunGTK3/GTK3Windows10-64/*.dll;. --add-data VERSION;cairocffi --add-data VERSION;cairosvg --add-data images/*;images --add-data *.png;. --add-data *.ico;. -c -i pronsole.ico pronsole.py
pyi-makespec -F --add-binary PrintrunGTK3/GTK3Windows10-64/*.dll;. --add-data VERSION;cairocffi --add-data VERSION;cairosvg --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i plater.ico plater.py

echo ********************************************************
echo ****** Build Pronterface and Pronsole executables ******
echo ********************************************************
echo ***************************************************************
echo ****** Build Pronterface, Pronsole and Plater executables *****
echo ***************************************************************
echo
echo ** Build Pronterface executable **
pyinstaller --clean pronterface.spec -y
echo
echo ** Build Pronsole executable **
pyinstaller --clean pronsole.spec -y
echo
echo ** Build Plater executable **
pyinstaller --clean plater.spec -y


echo ********************************
echo ****** Add language files ******
Expand Down