From e6dbf8e081385e02eabb0573ef3f9dab4b4d09f6 Mon Sep 17 00:00:00 2001 From: Georges Khaznadar Date: Sun, 21 Jan 2024 11:27:13 +0100 Subject: [PATCH 1/2] update to comply with Python3 novelties --- pyqode/core/api/code_edit.py | 6 - pyqode/core/api/folding.py | 1 - pyqode/core/cache.py | 7 - pyqode/core/managers/file.py | 5 - pyqode/core/panels/folding.py | 14 +- pyqode/core/panels/global_checker.py | 6 +- pyqode/python/backend/workers.py | 2 +- pyqode/qt/__init__.py | 5 +- requirements.txt | 1 - src/algo/worker.py | 2 +- src/forms/mainwindow.py | 11 +- src/lang/de.ts | 226 ++++++++--------- src/lang/es.ts | 220 ++++++++-------- src/lang/fr.ts | 366 +++++++++++++-------------- src/lang/it.ts | 230 ++++++++--------- src/lang/translator.py | 5 +- src/lang/zh-CN.ts | 226 ++++++++--------- 17 files changed, 655 insertions(+), 678 deletions(-) diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py index 36a2e5d..5036e2c 100644 --- a/pyqode/core/api/code_edit.py +++ b/pyqode/core/api/code_edit.py @@ -1,14 +1,8 @@ """ This module contains the base code editor widget. """ -from __future__ import print_function import os import sys -try: - from future.builtins import str, super -except: - # not availabe on python 3.2 (but not needed) - pass import logging import platform from pyqode.core import icons diff --git a/pyqode/core/api/folding.py b/pyqode/core/api/folding.py index 19342a9..ea9a15f 100644 --- a/pyqode/core/api/folding.py +++ b/pyqode/core/api/folding.py @@ -2,7 +2,6 @@ This module contains the code folding API. """ -from __future__ import print_function import logging import sys from pyqode.core.api.utils import TextBlockHelper diff --git a/pyqode/core/cache.py b/pyqode/core/cache.py index 4bb9e2b..70fbd41 100644 --- a/pyqode/core/cache.py +++ b/pyqode/core/cache.py @@ -22,13 +22,6 @@ import logging from pyqode.qt import QtCore -try: - from future.builtins import open - from future.builtins import str -except: - pass # python 3.2 not supported - - class Cache(object): """ Provides an easy acces to the cache by exposing some wrapper properties diff --git a/pyqode/core/managers/file.py b/pyqode/core/managers/file.py index 26972d1..144ca89 100644 --- a/pyqode/core/managers/file.py +++ b/pyqode/core/managers/file.py @@ -2,11 +2,6 @@ This module contains the file helper implementation """ -try: - from future.builtins import open - from future.builtins import str -except: - pass # python 3.2 not supported import locale import logging import mimetypes diff --git a/pyqode/core/panels/folding.py b/pyqode/core/panels/folding.py index cc43cd2..8e8128c 100644 --- a/pyqode/core/panels/folding.py +++ b/pyqode/core/panels/folding.py @@ -211,7 +211,7 @@ def on_install(self, editor): def sizeHint(self): """ Returns the widget size hint (based on the editor font size) """ fm = QtGui.QFontMetricsF(self.editor.font()) - size_hint = QtCore.QSize(fm.height(), fm.height()) + size_hint = QtCore.QSize(int(fm.height()), int(fm.height())) if size_hint.width() > 16: size_hint.setWidth(16) return size_hint @@ -332,12 +332,12 @@ def merged_colors(colorA, colorB, factor): colorA = QtGui.QColor(colorA) colorB = QtGui.QColor(colorB) tmp = colorA - tmp.setRed((tmp.red() * factor) / maxFactor + - (colorB.red() * (maxFactor - factor)) / maxFactor) - tmp.setGreen((tmp.green() * factor) / maxFactor + - (colorB.green() * (maxFactor - factor)) / maxFactor) - tmp.setBlue((tmp.blue() * factor) / maxFactor + - (colorB.blue() * (maxFactor - factor)) / maxFactor) + tmp.setRed(int((tmp.red() * factor) / maxFactor + + (colorB.red() * (maxFactor - factor)) / maxFactor)) + tmp.setGreen(int((tmp.green() * factor) / maxFactor + + (colorB.green() * (maxFactor - factor)) / maxFactor)) + tmp.setBlue(int((tmp.blue() * factor) / maxFactor + + (colorB.blue() * (maxFactor - factor)) / maxFactor)) return tmp pal = QtWidgets.QApplication.instance().palette() diff --git a/pyqode/core/panels/global_checker.py b/pyqode/core/panels/global_checker.py index ad5a86e..e0cd0d8 100644 --- a/pyqode/core/panels/global_checker.py +++ b/pyqode/core/panels/global_checker.py @@ -53,9 +53,9 @@ def _draw_visible_area(self, painter): end = self.editor.visible_blocks[-1][-1] rect = QtCore.QRect() rect.setX(0) - rect.setY(start.blockNumber() * self.get_marker_height()) - rect.setWidth(self.sizeHint().width()) - rect.setBottom(end.blockNumber() * self.get_marker_height()) + rect.setY(int(start.blockNumber() * self.get_marker_height())) + rect.setWidth(int(self.sizeHint().width())) + rect.setBottom(int(end.blockNumber() * self.get_marker_height())) if self.editor.background.lightness() < 128: c = self.editor.background.darker(150) else: diff --git a/pyqode/python/backend/workers.py b/pyqode/python/backend/workers.py index b1adbc7..f3504d0 100644 --- a/pyqode/python/backend/workers.py +++ b/pyqode/python/backend/workers.py @@ -176,7 +176,7 @@ def run_pep8(request_data): PYFLAKES_ERROR_MESSAGES = [ messages.DoctestSyntaxError, - messages.ReturnWithArgsInsideGenerator, + messages.ReturnOutsideFunction, messages.UndefinedExport, messages.UndefinedName, messages.UndefinedLocal diff --git a/pyqode/qt/__init__.py b/pyqode/qt/__init__.py index 086ff6c..650f1ff 100644 --- a/pyqode/qt/__init__.py +++ b/pyqode/qt/__init__.py @@ -84,7 +84,10 @@ def setup_apiv2(): if sys.version_info[0] == 2: logging.getLogger(__name__).debug( 'setting up SIP API to version 2') - import sip + try: + from PyQt5 import sip + except: + import sip try: sip.setapi("QString", 2) sip.setapi("QVariant", 2) diff --git a/requirements.txt b/requirements.txt index 981f42d..8a281c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ altgraph==0.15 autopep8==1.3.5 cycler==0.10.0 docutils==0.14 -future==0.16.0 jedi==0.11.1 kiwisolver==1.0.1 macholib==1.9 diff --git a/src/algo/worker.py b/src/algo/worker.py index 3c6e985..b0b8710 100644 --- a/src/algo/worker.py +++ b/src/algo/worker.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import time import typing -from collections import Iterable +from collections.abc import Iterable from typing import * from algo.stmts import * diff --git a/src/forms/mainwindow.py b/src/forms/mainwindow.py index a255ed6..2816941 100644 --- a/src/forms/mainwindow.py +++ b/src/forms/mainwindow.py @@ -622,7 +622,7 @@ def python_input(prompt="", globals=None, locals=None, unsafe=False): def python_print_error(msg, end="\n"): ExecState.current_output += util.html.color_span(msg, "red") + end - if not AppState.mode_python: + if not AppState.mode_python and ExecState.worker is not None: set_current_line(ExecState.worker.last, True) update_output() @@ -840,7 +840,7 @@ def handler_Step(): show_error() finally: plot_update() - if ExecState.worker.finished: + if ExecState.worker is not None and ExecState.worker.finished: GuiState.ui.actionRun.setDisabled(False) if not ExecState.stop_flag: end_output() @@ -849,9 +849,10 @@ def handler_Step(): ExecState.running = False GuiState.ui.actionDebug.setDisabled(False) GuiState.ui.actionStep.setDisabled(False) - GuiState.ui.actionNew.setDisabled(not ExecState.worker.finished) - GuiState.ui.actionOpen.setDisabled(not ExecState.worker.finished) - GuiState.ui.actionStop.setEnabled(not ExecState.worker.finished) + if ExecState.worker is not None: + GuiState.ui.actionNew.setDisabled(not ExecState.worker.finished) + GuiState.ui.actionOpen.setDisabled(not ExecState.worker.finished) + GuiState.ui.actionStop.setEnabled(not ExecState.worker.finished) def handler_Debug(): diff --git a/src/lang/de.ts b/src/lang/de.ts index 9f1206d..fc47ede 100644 --- a/src/lang/de.ts +++ b/src/lang/de.ts @@ -31,7 +31,7 @@ p, li { white-space: pre-wrap; } <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Windows icons under CC-BY 3.0 license - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">(c) Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Special thanks :</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, physics and computer science teacher, whose lessons and modesty were a big help during the development</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">plz give us a good grade</p></body></html> @@ -229,22 +229,22 @@ p, li { white-space: pre-wrap; } AlgoCallStmt - + Call function Funktion aufrufen - + <html><head/><body><p>Calls the function with the specified arguments.</p><p>The argument list must consist of a comma-separated list of arguments.</p></body></html> - + Function: Funktion: - + Arguments: Parameter: @@ -252,17 +252,17 @@ p, li { white-space: pre-wrap; } AlgoCommentStmt - + Comment Kommentar - + <html><head/><body><p>A comment has no effect whatsoever on the execution of the program.</p><p>It can contain anything.</p></body></html> - + Comment: Kommentar: @@ -270,22 +270,22 @@ p, li { white-space: pre-wrap; } AlgoDefineStmt - + Define variable Variable definieren - + <html><head/><body><p>Assigns the specified value to the variable.</p><p>If the variable does not exist in the current scope or in any parent scope, it will be created in the current scope.</p></body></html> - + Value: - + Variable: Variable: @@ -293,22 +293,22 @@ p, li { white-space: pre-wrap; } AlgoDisplayStmt - + Display value Wert anzeigen - + <html><head/><body><p>Displays a value in the output window. </p><p>The value can be of any type, it will be automatically converted to a textual representation.</p></body></html> - + Value: - + Followed by a line break Einen Zeilenumbruch einfügen @@ -316,37 +316,37 @@ p, li { white-space: pre-wrap; } AlgoForStmt - + FOR loop FÜR Schleife - + <html><head/><body><p>Executes the instructions for all values of the variable in the specified range.</p><p>At each iteration, the variable will be incremented by the step which is defaulted to 1. </p><p>The bounds are inclusive.</p></body></html> - + From: Von: - + To: Bis: - + Step: Schrittweite: - + Variable: Variable: - + Custom step Benutzerdefiniert Schrittweite @@ -354,22 +354,22 @@ p, li { white-space: pre-wrap; } AlgoFuncStmt - + Define function Funktion definieren - + <html><head/><body><p>Creates a custom function. The parameters must be a comma-separated list of identifiers.</p><p>A function may or may not return a value, it can very well only &quot;do&quot; things without ever giving a result. Such a function can be called using the CALL statement.</p></body></html> - + Function: Funktion: - + Parameters: Parameter: @@ -377,42 +377,42 @@ p, li { white-space: pre-wrap; } AlgoGFuncStmt - + Plot function Plotten einer Funktion - + <html><head/><body><p>Draws the curve of the function on the specified interval.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Start: - + Step: Schrittweite: - + Function: Funktion: - + Variable: Variable: - + Color: Farbe: - + End: @@ -420,37 +420,37 @@ p, li { white-space: pre-wrap; } AlgoGLineStmt - + Plot line Plotten einer Linie - + <html><head/><body><p>Draws a line with the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + End Y: - + End X: - + Start X: - + Start Y: - + Color: Farbe: @@ -458,27 +458,27 @@ p, li { white-space: pre-wrap; } AlgoGPointStmt - + Plot point Plotten eines Punktes - + <html><head/><body><p>Draws a point at the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Color: Farbe: - + X: X: - + Y: Y: @@ -486,42 +486,42 @@ p, li { white-space: pre-wrap; } AlgoGWindowStmt - + Set window Einstellen des Grafikfensters - + Max Y: Max Y: - + Min Y: Min Y: - + Min X: Min X: - + Max X: Max X: - + Grad X: - + Grad Y: - + <html><head/><body><p>Changes the size of the plot window canvas. For Grad, 0 means automatic.</p></body></html> @@ -529,17 +529,17 @@ p, li { white-space: pre-wrap; } AlgoIfStmt - + IF block - + <html><head/><body><p>Checks if the specified condition is true.</p><p>The block will only be executed if the condition is true, otherwise the program will continue with the instruction following the block.</p></body></html> - + Condition: @@ -547,32 +547,32 @@ p, li { white-space: pre-wrap; } AlgoInputStmt - + Read user input Benutzereingaben lesen - + <html><head/><body><p>Asks the user for a value and assigns it to the specified variable.</p><p>Optionally, a message can be displayed. <span style=" font-weight:600;">Warning</span>: the message is an expression, thus if you want to display text you need to enclose everything inside quotes.</p></body></html> - + Display a message Eine Nachricht anzeigen - + Message: - + Variable: Variable: - + Text @@ -580,22 +580,22 @@ p, li { white-space: pre-wrap; } AlgoReturnStmt - + Return Zurückgeben - + <html><head/><body><p>Exits the current function and optionally passes a value to the caller.</p></body></html> - + Value: - + Return a value @@ -603,17 +603,17 @@ p, li { white-space: pre-wrap; } AlgoSleepStmt - + Wait Warten - + <html><head/><body><p>Waits for the specified amount of time (in <span style=" font-weight:600;">seconds</span>).</p></body></html> - + Duration: @@ -621,22 +621,22 @@ p, li { white-space: pre-wrap; } AlgoStopStmt - + Breakpoint Haltepunkt - + <html><head/><body><p>Pauses the program until &quot;Run&quot; or &quot;Debug&quot; is pressed.</p></body></html> - + Message: - + Display a message Eine Nachricht anzeigen @@ -644,17 +644,17 @@ p, li { white-space: pre-wrap; } AlgoWhileStmt - + WHILE loop SOLANGE Schleife - + <html><head/><body><p>Executes the instructions while the condition is true.</p><p>As soon as the condition is false, the program continues with the instruction following the block.</p></body></html> - + Condition: @@ -664,18 +664,18 @@ p, li { white-space: pre-wrap; } Unknown color: {color} - Unbekannte Farbe: {color} + Unbekannte Farbe: {color} Unknown variable type: {type} - Unbekannter Variablentyp: {type} + Unbekannter Variablentyp: {type} CalcWindow - + Calculator Rechner @@ -688,131 +688,131 @@ p, li { white-space: pre-wrap; } ChangeThemeWindow - + Edit theme - + Block: - + Comment: Kommentar: - + Keyword: - + Literal: - + Window: - + Shadow: - + Button: - + Button Text: - + Disabled Button Text: - + Bright Text: - + Disabled Highlight: - + Highlight: - + Highlighted Text: - + Link: - + Disabled Highlighted Text: - + Alternate Base: - + Base: - + Window Text: - + Dark: - + Disabled Text: - + Tool Tip Text: - + Text: - + Tool Tip Base: - + Disabled Window Text : @@ -1556,12 +1556,12 @@ Window Text : Type mismatch for argument #{idx} '{arg}' (expected {exp}) - Typenkonflikt für Parameter #{idx} '{arg}' (erwartet {exp}) + Typenkonflikt für Parameter #{idx} '{arg}' (erwartet {exp}) Invalid unary operator '{op}' - Ungültiger unärer Operator '{op}' + Ungültiger unärer Operator '{op}' @@ -1611,13 +1611,13 @@ Window Text : Invalid binary operator '{op}' for '{left}' and '{right}' - Ungültiger binärer Operator '{op}' für '{left}' und '{right}' + Ungültiger binärer Operator '{op}' für '{left}' und '{right}' HelpWindow - + Help Contents Hilfethemen @@ -1650,7 +1650,7 @@ Window Text : InlineCodeDialog - + Expression editor Ausdrucks-Editor @@ -2340,7 +2340,7 @@ please choose another file path. Expected token ({type}) '{val}' - Token erwartet ({type}) '{val}' + Token erwartet ({type}) '{val}' @@ -2355,7 +2355,7 @@ please choose another file path. Unexpected token ({type}) '{val}' - Unerwarteter Token ({type}) '{val}' + Unerwarteter Token ({type}) '{val}' diff --git a/src/lang/es.ts b/src/lang/es.ts index bb4800f..55792fc 100644 --- a/src/lang/es.ts +++ b/src/lang/es.ts @@ -31,7 +31,7 @@ p, li { white-space: pre-wrap; } <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Windows icons under CC-BY 3.0 license - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">(c) Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Special thanks :</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, physics and computer science teacher, whose lessons and modesty were a big help during the development</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">plz give us a good grade</p></body></html> @@ -229,22 +229,22 @@ p, li { white-space: pre-wrap; } AlgoCallStmt - + Call function Llamada a una función - + <html><head/><body><p>Calls the function with the specified arguments.</p><p>The argument list must consist of a comma-separated list of arguments.</p></body></html> - + Function: - + Arguments: @@ -252,17 +252,17 @@ p, li { white-space: pre-wrap; } AlgoCommentStmt - + Comment Comentario - + <html><head/><body><p>A comment has no effect whatsoever on the execution of the program.</p><p>It can contain anything.</p></body></html> - + Comment: @@ -270,22 +270,22 @@ p, li { white-space: pre-wrap; } AlgoDefineStmt - + Define variable Definir variable - + <html><head/><body><p>Assigns the specified value to the variable.</p><p>If the variable does not exist in the current scope or in any parent scope, it will be created in the current scope.</p></body></html> - + Value: - + Variable: @@ -293,22 +293,22 @@ p, li { white-space: pre-wrap; } AlgoDisplayStmt - + Display value Visualizar valor - + <html><head/><body><p>Displays a value in the output window. </p><p>The value can be of any type, it will be automatically converted to a textual representation.</p></body></html> - + Value: - + Followed by a line break Añadir un salto de línea @@ -316,37 +316,37 @@ p, li { white-space: pre-wrap; } AlgoForStmt - + FOR loop Bucle PARA - + <html><head/><body><p>Executes the instructions for all values of the variable in the specified range.</p><p>At each iteration, the variable will be incremented by the step which is defaulted to 1. </p><p>The bounds are inclusive.</p></body></html> - + From: De: - + To: A: - + Step: - + Variable: - + Custom step @@ -354,22 +354,22 @@ p, li { white-space: pre-wrap; } AlgoFuncStmt - + Define function Definir una función - + <html><head/><body><p>Creates a custom function. The parameters must be a comma-separated list of identifiers.</p><p>A function may or may not return a value, it can very well only &quot;do&quot; things without ever giving a result. Such a function can be called using the CALL statement.</p></body></html> - + Function: - + Parameters: @@ -377,42 +377,42 @@ p, li { white-space: pre-wrap; } AlgoGFuncStmt - + Plot function Trazar una función - + <html><head/><body><p>Draws the curve of the function on the specified interval.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Start: - + Step: - + Function: - + Variable: - + Color: Color: - + End: @@ -420,37 +420,37 @@ p, li { white-space: pre-wrap; } AlgoGLineStmt - + Plot line Trazar una línea - + <html><head/><body><p>Draws a line with the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + End Y: - + End X: - + Start X: - + Start Y: - + Color: Color: @@ -458,27 +458,27 @@ p, li { white-space: pre-wrap; } AlgoGPointStmt - + Plot point Trazar un punto - + <html><head/><body><p>Draws a point at the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Color: Color: - + X: X: - + Y: Y: @@ -486,42 +486,42 @@ p, li { white-space: pre-wrap; } AlgoGWindowStmt - + Set window Configurar la ventana del gráfico - + Max Y: Máx Y: - + Min Y: Mín Y: - + Min X: Mín X: - + Max X: Máx X: - + Grad X: - + Grad Y: - + <html><head/><body><p>Changes the size of the plot window canvas. For Grad, 0 means automatic.</p></body></html> @@ -529,17 +529,17 @@ p, li { white-space: pre-wrap; } AlgoIfStmt - + IF block - + <html><head/><body><p>Checks if the specified condition is true.</p><p>The block will only be executed if the condition is true, otherwise the program will continue with the instruction following the block.</p></body></html> - + Condition: @@ -547,32 +547,32 @@ p, li { white-space: pre-wrap; } AlgoInputStmt - + Read user input Leer la entrada del usuario - + <html><head/><body><p>Asks the user for a value and assigns it to the specified variable.</p><p>Optionally, a message can be displayed. <span style=" font-weight:600;">Warning</span>: the message is an expression, thus if you want to display text you need to enclose everything inside quotes.</p></body></html> - + Display a message Mostrar un mensaje - + Message: - + Variable: - + Text @@ -580,22 +580,22 @@ p, li { white-space: pre-wrap; } AlgoReturnStmt - + Return - + <html><head/><body><p>Exits the current function and optionally passes a value to the caller.</p></body></html> - + Value: - + Return a value @@ -603,17 +603,17 @@ p, li { white-space: pre-wrap; } AlgoSleepStmt - + Wait - + <html><head/><body><p>Waits for the specified amount of time (in <span style=" font-weight:600;">seconds</span>).</p></body></html> - + Duration: @@ -621,22 +621,22 @@ p, li { white-space: pre-wrap; } AlgoStopStmt - + Breakpoint Punto de ruptura - + <html><head/><body><p>Pauses the program until &quot;Run&quot; or &quot;Debug&quot; is pressed.</p></body></html> - + Message: - + Display a message Mostrar un mensaje @@ -644,17 +644,17 @@ p, li { white-space: pre-wrap; } AlgoWhileStmt - + WHILE loop - + <html><head/><body><p>Executes the instructions while the condition is true.</p><p>As soon as the condition is false, the program continues with the instruction following the block.</p></body></html> - + Condition: @@ -664,18 +664,18 @@ p, li { white-space: pre-wrap; } Unknown color: {color} - Color desconocido: {color} + Color desconocido: {color} Unknown variable type: {type} - Tipo de variable desconocido: {type} + Tipo de variable desconocido: {type} CalcWindow - + Calculator Calculadora @@ -688,131 +688,131 @@ p, li { white-space: pre-wrap; } ChangeThemeWindow - + Edit theme - + Block: - + Comment: - + Keyword: - + Literal: - + Window: - + Shadow: - + Button: - + Button Text: - + Disabled Button Text: - + Bright Text: - + Disabled Highlight: - + Highlight: - + Highlighted Text: - + Link: - + Disabled Highlighted Text: - + Alternate Base: - + Base: - + Window Text: - + Dark: - + Disabled Text: - + Tool Tip Text: - + Text: - + Tool Tip Base: - + Disabled Window Text : @@ -1617,7 +1617,7 @@ Window Text : HelpWindow - + Help Contents Contenido de la Ayuda @@ -1650,7 +1650,7 @@ Window Text : InlineCodeDialog - + Expression editor Editor de expresiones @@ -2339,7 +2339,7 @@ please choose another file path. Expected token ({type}) '{val}' - Token esperado ({type}) '{val}' + Token esperado ({type}) '{val}' @@ -2354,7 +2354,7 @@ please choose another file path. Unexpected token ({type}) '{val}' - Token inesperado ({type}) '{val}' + Token inesperado ({type}) '{val}' diff --git a/src/lang/fr.ts b/src/lang/fr.ts index 1fb2f71..360dcb2 100644 --- a/src/lang/fr.ts +++ b/src/lang/fr.ts @@ -31,20 +31,20 @@ p, li { white-space: pre-wrap; } <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Windows icons under CC-BY 3.0 license - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">(c) Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Special thanks :</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, physics and computer science teacher, whose lessons and modesty were a big help during the development</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">plz give us a good grade</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:xx-large; font-weight:600;">Turing {version}</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Canal de développement : </span>{channel} <br /><br />Logiciel libre et multi-plateforme d'aide à l'apprentissage de l'algorithmique et de la programmation informatique. <br /><br /><span style=" font-weight:600;">Copyright &copy; 2018 l'équipe Turing (Léo Joly, Tom Niget)</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Canal de développement : </span>{channel} <br /><br />Logiciel libre et multi-plateforme d'aide à l'apprentissage de l'algorithmique et de la programmation informatique. <br /><br /><span style=" font-weight:600;">Copyright &copy; 2018 l'équipe Turing (Léo Joly, Tom Niget)</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ce logiciel est distribué sous la licence MIT et utilise le framework <a href="https://www.qt.io/"><span style=" text-decoration: underline; color:#0000ff;">Qt</span></a> / <a href="https://riverbankcomputing.com/software/pyqt/"><span style=" text-decoration: underline; color:#0000ff;">pyQt</span></a>.</li> <li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Spé ISN &gt; Spé maths</li> <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Icônes Windows sous licence CC-BY 3.0 - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">&copy; Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Remerciements :</span></p> -<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, professeur de physique et d'informatique, dont les cours et la modestie ont été d'une aide incontournable pendant le développement</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, sans qui ce projet n'existerait pas</li></ul> +<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, professeur de physique et d'informatique, dont les cours et la modestie ont été d'une aide incontournable pendant le développement</li> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, sans qui ce projet n'existerait pas</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">svp mettez nous pas une mauvaise note</p></body></html> @@ -150,7 +150,7 @@ p, li { white-space: pre-wrap; } The following errors occured while parsing the expression: - Les erreurs suivantes sont survenues lors de l'analyse de l'expression : + Les erreurs suivantes sont survenues lors de l'analyse de l'expression : @@ -243,22 +243,22 @@ p, li { white-space: pre-wrap; } AlgoCallStmt - + <html><head/><body><p>Calls the function with the specified arguments.</p><p>The argument list must consist of a comma-separated list of arguments.</p></body></html> <html><head/><body><p>Appelle la fonction avec les arguments spécifiés.</p><p>Les arguments doivent être séparés par des virgules.</p></body></html> - + Function: Fonction : - + Arguments: Arguments : - + Call function Appeler fonction @@ -266,17 +266,17 @@ p, li { white-space: pre-wrap; } AlgoCommentStmt - + Comment Commentaire - + <html><head/><body><p>A comment has no effect whatsoever on the execution of the program.</p><p>It can contain anything.</p></body></html> - <html><head/><body><p>Un commentaire n'a absolument aucun effet sur l'exécution du programme.</p><p>Il peut contenir n'importe quoi.</p></body></html> + <html><head/><body><p>Un commentaire n'a absolument aucun effet sur l'exécution du programme.</p><p>Il peut contenir n'importe quoi.</p></body></html> - + Comment: Commentaire : @@ -284,22 +284,22 @@ p, li { white-space: pre-wrap; } AlgoDefineStmt - + <html><head/><body><p>Assigns the specified value to the variable.</p><p>If the variable does not exist in the current scope or in any parent scope, it will be created in the current scope.</p></body></html> - <html><head/><body><p>Assigne la valeur spécifiée à la variable.</p><p>Si la variable n'existe pas dans le champ actuel ou dans un quelconque champ parent, elle sera créée dans le champ actuel.</p></body></html> + <html><head/><body><p>Assigne la valeur spécifiée à la variable.</p><p>Si la variable n'existe pas dans le champ actuel ou dans un quelconque champ parent, elle sera créée dans le champ actuel.</p></body></html> - + Value: Valeur : - + Variable: Variable : - + Define variable Définir variable @@ -307,22 +307,22 @@ p, li { white-space: pre-wrap; } AlgoDisplayStmt - + Display value Afficher valeur - + <html><head/><body><p>Displays a value in the output window. </p><p>The value can be of any type, it will be automatically converted to a textual representation.</p></body></html> - <html><head/><body><p>Affiche une valeur dans ̊la fenêtre de sortie. </p><p>La valeur peut être de n'importe quel type, elle sera de toute façon convertie en une représentation textuelle appropriée.</p></body></html> + <html><head/><body><p>Affiche une valeur dans ̊la fenêtre de sortie. </p><p>La valeur peut être de n'importe quel type, elle sera de toute façon convertie en une représentation textuelle appropriée.</p></body></html> - + Value: Valeur : - + Followed by a line break Ajouter un retour à la ligne @@ -330,37 +330,37 @@ p, li { white-space: pre-wrap; } AlgoForStmt - + <html><head/><body><p>Executes the instructions for all values of the variable in the specified range.</p><p>At each iteration, the variable will be incremented by the step which is defaulted to 1. </p><p>The bounds are inclusive.</p></body></html> - <html><head/><body><p>Exécute une instruction pour toutes les valeurs de la variable dans l'intervalle spécifié.</p><p>À chaque itération, la variable est incrémentée du pas spécifié (1 par défaut). </p><p>Les bornes sont inclusives.</p></body></html> + <html><head/><body><p>Exécute une instruction pour toutes les valeurs de la variable dans l'intervalle spécifié.</p><p>À chaque itération, la variable est incrémentée du pas spécifié (1 par défaut). </p><p>Les bornes sont inclusives.</p></body></html> - + From: De : - + To: À : - + Step: Pas : - + Variable: Variable : - + Custom step Pas personnalisé - + FOR loop Boucle POUR @@ -368,22 +368,22 @@ p, li { white-space: pre-wrap; } AlgoFuncStmt - + <html><head/><body><p>Creates a custom function. The parameters must be a comma-separated list of identifiers.</p><p>A function may or may not return a value, it can very well only &quot;do&quot; things without ever giving a result. Such a function can be called using the CALL statement.</p></body></html> <html><head/><body><p>Définit une fonction personnalisée. Les paramètres doivent être séparés par des virgules.</p><p>Une fonction peut renvoyer ou non une valeur, elle peut très bien simplement exécuter des instructions sans donner de résultat. Une telle fonction peut être appelée en utilisant une instruction APPELER.</p></body></html> - + Function: Fonction : - + Parameters: Paramètres : - + Define function Définir fonction @@ -391,42 +391,42 @@ p, li { white-space: pre-wrap; } AlgoGFuncStmt - + Plot function Tracer une fonction - + <html><head/><body><p>Draws the curve of the function on the specified interval.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - <html><head/><body><p>Dessine la courbe représentative de la fonction sur l'intervalle spécifié.</p><p>La couleur doit être une chaîne de caractères contenant le nom de la couleur ou la valeur RGB hexadécimale.</p></body></html> + <html><head/><body><p>Dessine la courbe représentative de la fonction sur l'intervalle spécifié.</p><p>La couleur doit être une chaîne de caractères contenant le nom de la couleur ou la valeur RGB hexadécimale.</p></body></html> - + Start: Début : - + Step: Pas : - + Function: Fonction : - + Variable: Variable : - + Color: Couleur : - + End: Fin : @@ -434,37 +434,37 @@ p, li { white-space: pre-wrap; } AlgoGLineStmt - + Plot line Dessiner une ligne - + <html><head/><body><p>Draws a line with the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> <html><head/><body><p>Dessine une ligne avec les coordonnées spécifiées.</p><p>La couleur doit être une chaîne de caractères contenant le nom de la couleur ou la valeur RGB hexadécimale.</p></body></html> - + End Y: Y arrivée : - + End X: X arrivée : - + Start X: X début : - + Start Y: Y début : - + Color: Couleur : @@ -472,27 +472,27 @@ p, li { white-space: pre-wrap; } AlgoGPointStmt - + Plot point Dessiner un point - + <html><head/><body><p>Draws a point at the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> <html><head/><body><p>Dessine un point aux coordonnées spécifiées.</p><p>La couleur doit être une chaîne de caractères contenant le nom de la couleur ou la valeur RGB hexadécimale.</p></body></html> - + Color: Couleur : - + X: X : - + Y: Y : @@ -500,42 +500,42 @@ p, li { white-space: pre-wrap; } AlgoGWindowStmt - + Max Y: Y max : - + Min Y: Y min : - + Min X: X min : - + Max X: X max : - + Grad X: X grad : - + Grad Y: Y grad : - + Set window Définir le repère - + <html><head/><body><p>Changes the size of the plot window canvas. For Grad, 0 means automatic.</p></body></html> <html><head/><body><p>Définit la taille du repère et de la fenêtre du graphique. Pour Grad, 0 signifie automatique.</p></body></html> @@ -543,17 +543,17 @@ p, li { white-space: pre-wrap; } AlgoIfStmt - + Condition: Condition : - + <html><head/><body><p>Checks if the specified condition is true.</p><p>The block will only be executed if the condition is true, otherwise the program will continue with the instruction following the block.</p></body></html> - <html><head/><body><p>Vérifie si la condition spécifiée est vraie.</p><p>Le bloc sera exécuté uniquement si la condition est vraie, le cas échéant l'exécution du programme continuera à l'instruction suivant le bloc.</p></body></html> + <html><head/><body><p>Vérifie si la condition spécifiée est vraie.</p><p>Le bloc sera exécuté uniquement si la condition est vraie, le cas échéant l'exécution du programme continuera à l'instruction suivant le bloc.</p></body></html> - + IF block Bloc SI @@ -561,32 +561,32 @@ p, li { white-space: pre-wrap; } AlgoInputStmt - + Display a message Afficher un message - + Message: Message : - + Variable: Variable : - + <html><head/><body><p>Asks the user for a value and assigns it to the specified variable.</p><p>Optionally, a message can be displayed. <span style=" font-weight:600;">Warning</span>: the message is an expression, thus if you want to display text you need to enclose everything inside quotes.</p></body></html> - <html><head/><body><p>Demande à l'utilisateur de saisir une variable, puis assigne cette valeur à la variable spécifiée.</p><p>Optionnellement, un message peut être affiché. <span style=" font-weight:600;">Attention</span> : le message est une expression, ainsi si vous souhaitez afficher du texte il faut mettre le tout entre guillemets.</p></body></html> + <html><head/><body><p>Demande à l'utilisateur de saisir une variable, puis assigne cette valeur à la variable spécifiée.</p><p>Optionnellement, un message peut être affiché. <span style=" font-weight:600;">Attention</span> : le message est une expression, ainsi si vous souhaitez afficher du texte il faut mettre le tout entre guillemets.</p></body></html> - + Read user input Saisir entrée utilisateur - + Text Texte @@ -594,22 +594,22 @@ p, li { white-space: pre-wrap; } AlgoReturnStmt - + <html><head/><body><p>Exits the current function and optionally passes a value to the caller.</p></body></html> <html><head/><body><p>Sort de la fonction actuelle et renvoie optionnellement une valeur au code appelant.</p></body></html> - + Value: Valeur : - + Return a value Renvoyer une valeur - + Return Renvoyer @@ -617,17 +617,17 @@ p, li { white-space: pre-wrap; } AlgoSleepStmt - + Wait Attendre - + <html><head/><body><p>Waits for the specified amount of time (in <span style=" font-weight:600;">seconds</span>).</p></body></html> - <html><head/><body><p>Suspend l'exécution du programme pendant la durée spécifiée (en <span style=" font-weight:600;">secondes</span>).</p></body></html> + <html><head/><body><p>Suspend l'exécution du programme pendant la durée spécifiée (en <span style=" font-weight:600;">secondes</span>).</p></body></html> - + Duration: Durée : @@ -635,22 +635,22 @@ p, li { white-space: pre-wrap; } AlgoStopStmt - + Breakpoint - Point d'arrêt + Point d'arrêt - + <html><head/><body><p>Pauses the program until &quot;Run&quot; or &quot;Debug&quot; is pressed.</p></body></html> - <html><head/><body><p>Suspend l'exécution du programme jusqu'à ce que l'utilisateur clique sur &quot;Exécuter&quot; or &quot;Déboguer&quot;.</p></body></html> + <html><head/><body><p>Suspend l'exécution du programme jusqu'à ce que l'utilisateur clique sur &quot;Exécuter&quot; or &quot;Déboguer&quot;.</p></body></html> - + Message: Message : - + Display a message Afficher un message @@ -658,17 +658,17 @@ p, li { white-space: pre-wrap; } AlgoWhileStmt - + <html><head/><body><p>Executes the instructions while the condition is true.</p><p>As soon as the condition is false, the program continues with the instruction following the block.</p></body></html> - <html><head/><body><p>Exécute les instructions tant que la condition est vraie.</p><p>Aussitôt que la condition est fausse, l'exécution du programme continue avec l'instruction suivant le bloc.</p></body></html> + <html><head/><body><p>Exécute les instructions tant que la condition est vraie.</p><p>Aussitôt que la condition est fausse, l'exécution du programme continue avec l'instruction suivant le bloc.</p></body></html> - + Condition: Condition : - + WHILE loop Boucle TANT QUE @@ -678,18 +678,18 @@ p, li { white-space: pre-wrap; } Unknown variable type: {type} - Type de variable inconnu : {type} + Type de variable inconnu : {type} Unknown color: {color} - Couleur inconnue : {color} + Couleur inconnue : {color} CalcWindow - + Calculator Calculatrice @@ -702,134 +702,134 @@ p, li { white-space: pre-wrap; } ChangeThemeWindow - + Edit theme Modifier le thème - + Block: Bloc : - + Comment: Commentaire : - + Keyword: Mot-clé : - + Literal: Valeur : - + Window: Fenêtre : - + Shadow: Ombre : - + Button: Bouton : - + Button Text: Texte de bouton : - + Disabled Button Text: Texte de bouton désactivé : - + Bright Text: Texte clair : - + Disabled Highlight: Surligné désactivé : - + Highlight: Surligné : - + Highlighted Text: Texte surligné : - + Link: Lien : - + Disabled Highlighted Text: Texte surligné désactivé : - + Alternate Base: Base alternative : - + Base: Base : - + Window Text: Texte de fenêtre : - + Dark: Sombre : - + Disabled Text: Texte désactivé : - + Tool Tip Text: - Texte d'infobulle : + Texte d'infobulle : - + Text: Texte : - + Tool Tip Base: - Base d'infobulle : + Base d'infobulle : - + Disabled Window Text : Texte de fenêtre @@ -841,7 +841,7 @@ désactivé : Rounds {{num}} to the nearest integer / (if specified) to {{prec}} decimals. - Arrondit {{num}} à l'entier le plus proche / (si spécifié) à {{prec}} décimales. + Arrondit {{num}} à l'entier le plus proche / (si spécifié) à {{prec}} décimales. @@ -911,12 +911,12 @@ désactivé : Returns the argument (or phase) of {{x}}. - Calcule l'argument (ou phase) de {{x}}. + Calcule l'argument (ou phase) de {{x}}. Returns a list containing the polar coordinates of {{x}}, respectively the modulus (radius) and argument (angle). - Renvoie une liste contenant les coordonnées polaires de {{x}}, respectivement le module (rayon) et l'argument (angle). + Renvoie une liste contenant les coordonnées polaires de {{x}}, respectivement le module (rayon) et l'argument (angle). @@ -951,52 +951,52 @@ désactivé : Returns the area of the triangle with the specified side lengths. - Calcule l'aire du triangle ayant les longueurs de côtés spécifiées. + Calcule l'aire du triangle ayant les longueurs de côtés spécifiées. Returns the area of the triangle with the specified base and height. - Calcule l'aire du triangle ayant une base de longueur {{base}} et une hauteur de longueur {{height}}. + Calcule l'aire du triangle ayant une base de longueur {{base}} et une hauteur de longueur {{height}}. Returns the area of the square with the specified {{side}} length. - Calcule l'aire du carré de côté {{side}}. + Calcule l'aire du carré de côté {{side}}. Returns the area of the rectangle with side lengths {{s1}} and {{s2}}. - Calcule l'aire du rectangle de côtés {{s1}} et {{s2}}. + Calcule l'aire du rectangle de côtés {{s1}} et {{s2}}. Returns the area of the trapezoid with sides {{a}} and {{b}} and height {{height}}. - Calcule l'aire du trapèze de côtés {{a}} et {{b}} et de longueur {{height}}. + Calcule l'aire du trapèze de côtés {{a}} et {{b}} et de longueur {{height}}. Returns the area of the circle with the specified {{radius}}. - Calcule l'aire du disque de rayon {{radius}}. + Calcule l'aire du disque de rayon {{radius}}. Returns the area of the ellipse with radii {{r1}} and {{r2}}. - Calcule l'aire de l'ellipse ayant pour rayons {{r1}} et {{r2}}. + Calcule l'aire de l'ellipse ayant pour rayons {{r1}} et {{r2}}. Returns the area of the parallelogram with the specified {{base}} and {{height}}. - Calcule l'aire du parallélogramme ayant une base de longueur {{base}} et une hauteur de longueur {{height}}. + Calcule l'aire du parallélogramme ayant une base de longueur {{base}} et une hauteur de longueur {{height}}. Returns the area of the circle sector with the specified {{radius}} and {{angle}}. - Calcule l'aire du secteur de disque de rayon {{radius}} et d'angle {{angle}}. + Calcule l'aire du secteur de disque de rayon {{radius}} et d'angle {{angle}}. Returns the area of the regular polygon with the specified number of {{sides}} and side {{length}}. - Calcule l'aire du polygone régulier à {{sides}} côtés de longueur individuelle {{length}}. + Calcule l'aire du polygone régulier à {{sides}} côtés de longueur individuelle {{length}}. @@ -1081,12 +1081,12 @@ désactivé : Returns the error function at {{x}}. - Calcule la fonction d'erreur à {{x}}. + Calcule la fonction d'erreur à {{x}}. Returns the complementary error function at {{x}}. - Calcule la fonction d'erreur complémentaire à {{x}}. + Calcule la fonction d'erreur complémentaire à {{x}}. @@ -1101,12 +1101,12 @@ désactivé : Returns a slice of the specified list, from index {{start}} (inclusive) to either index {{end}} (exclusive) or the end of the list. - Renvoie une tranche de {{lst}} de l'indice {{start}} (inclus), à l'indice {{end}} (exclus) si spécifié ou à la fin de la liste. + Renvoie une tranche de {{lst}} de l'indice {{start}} (inclus), à l'indice {{end}} (exclus) si spécifié ou à la fin de la liste. Returns the population standard deviation of {{lst}}. - Calcule l'écart-type de {{lst}}. + Calcule l'écart-type de {{lst}}. @@ -1116,12 +1116,12 @@ désactivé : Returns the sample standard deviation of {{lst}}. - Calcule l'écart-type de l'échantillon {{lst}}. + Calcule l'écart-type de l'échantillon {{lst}}. Returns the sample variance of {{lst}}. - Calcule la variance de l'échantillon {{lst}}. + Calcule la variance de l'échantillon {{lst}}. @@ -1131,47 +1131,47 @@ désactivé : Converts angle {{x}} from radians to degrees. - Convertit l'angle {{x}} des radians vers les degrés. + Convertit l'angle {{x}} des radians vers les degrés. Converts angle {{x}} from degrees to radians. - Convertit l'angle {{x}} des degrés vers les radians. + Convertit l'angle {{x}} des degrés vers les radians. Returns the arc sine of {{x}}. - Calcule l'arc sinus de {{x}}. + Calcule l'arc sinus de {{x}}. Returns the arc cosine of {{x}}. - Calcule l'arc cosinus de {{x}}. + Calcule l'arc cosinus de {{x}}. Returns the arc tangent of {{x}}. - Calcule l'arc tangente de {{x}}. + Calcule l'arc tangente de {{x}}. Returns the arc tangent of {{y}} / {{x}}. - Calcule l'arc tangente de {{y}} / {{x}}. + Calcule l'arc tangente de {{y}} / {{x}}. Returns the inverse hyperbolic sine of {{x}}. - Calcule l'arc sinus hyperbolique de {{x}}. + Calcule l'arc sinus hyperbolique de {{x}}. Returns the inverse hyperbolic cosine of {{x}}. - Calcule l'arc cosinus hyperbolique de {{x}}. + Calcule l'arc cosinus hyperbolique de {{x}}. Returns the inverse hyperbolic tangent of {{x}}. - Calcule l'arc tangente hyperbolique de {{x}}. + Calcule l'arc tangente hyperbolique de {{x}}. @@ -1221,12 +1221,12 @@ désactivé : Returns the exsecant of {{x}}. - Calcule l'exsécante de {{x}}. + Calcule l'exsécante de {{x}}. Returns the excosecant of {{x}}. - Calcule l'excosécante de {{x}}. + Calcule l'excosécante de {{x}}. @@ -1251,32 +1251,32 @@ désactivé : Returns the inverse secant of {{x}}. - Calcule l'arc sécante de {{x}}. + Calcule l'arc sécante de {{x}}. Returns the inverse cosecant of {{x}}. - Calcule l'arc cosécante de {{x}}. + Calcule l'arc cosécante de {{x}}. Returns the inverse cotangent of {{x}}. - Calcule l'arc tangente de {{x}}. + Calcule l'arc tangente de {{x}}. Returns the inverse hyperbolic secant of {{x}}. - Calcule l'arc sécante hyperbolique de {{x}}. + Calcule l'arc sécante hyperbolique de {{x}}. Returns the inverse hyperbolic cosecant of {{x}}. - Calcule l'arc cosécante hyperbolique de {{x}}. + Calcule l'arc cosécante hyperbolique de {{x}}. Returns the inverse hyperbolic cotangent of {{x}}. - Calcule l'arc cotangente hyperbolique de {{x}}. + Calcule l'arc cotangente hyperbolique de {{x}}. @@ -1306,27 +1306,27 @@ désactivé : Returns the haversed sine of {{x}}. - Calcule l'haversine de {{x}}. + Calcule l'haversine de {{x}}. Returns the haversed cosine of {{x}}. - Calcule l'havercosine de {{x}}. + Calcule l'havercosine de {{x}}. Returns the hacoversed sine of {{x}}. - Calcule l'hacoversine de {{x}}. + Calcule l'hacoversine de {{x}}. Returns the hacoversed cosine of {{x}}. - Calcule l'hacovercosine de {{x}}. + Calcule l'hacovercosine de {{x}}. Returns the hypotenuse / Euclidean norm of the vector ({{x}}, {{y}}). - Calcule l'hypoténuse / la norme euclidienne du vecteur ({{x}}, {{y}}). + Calcule l'hypoténuse / la norme euclidienne du vecteur ({{x}}, {{y}}). @@ -1401,7 +1401,7 @@ désactivé : Returns the integral of {{func}} from {{a}} to {{b}} (optional number of steps: {{steps}}). - Calcule l'intégrale de {{a}} à {{b}} de {{func}} (facultatif : nombre d'étapes {{steps}}). + Calcule l'intégrale de {{a}} à {{b}} de {{func}} (facultatif : nombre d'étapes {{steps}}). @@ -1411,7 +1411,7 @@ désactivé : Returns the {{n}}-th Euler number. - Calcule le {{n}}-ième nombre d'Euler. + Calcule le {{n}}-ième nombre d'Euler. @@ -1446,7 +1446,7 @@ désactivé : Returns the number of elements in {{T}}. - Renvoie le nombre d'élements de {{T}}. + Renvoie le nombre d'élements de {{T}}. @@ -1466,12 +1466,12 @@ désactivé : Returns the inverse of the error function at {{y}}. - Calcule la fonction d'erreur inverse à {{y}}. + Calcule la fonction d'erreur inverse à {{y}}. Returns the inverse of the complementary error function at {{y}}. - Calcule la fonction d'erreur complémentaire inverse à {{y}}. + Calcule la fonction d'erreur complémentaire inverse à {{y}}. @@ -1539,7 +1539,7 @@ désactivé : Argument count mismatch (expected {exp}, got {act}) - Nombre d'arguments invalides (attendu : {exp}, reçu : {act}) + Nombre d'arguments invalides (attendu : {exp}, reçu : {act}) @@ -1559,7 +1559,7 @@ désactivé : Index '{idx}' too big for array - Indice '{idx}' trop grand pour la liste + Indice '{idx}' trop grand pour la liste @@ -1569,7 +1569,7 @@ désactivé : Invalid unary operator '{op}' - Opérateur unaire invalide '{op}' + Opérateur unaire invalide '{op}' @@ -1584,7 +1584,7 @@ désactivé : Invalid value type for {val} and operator '{op}' - Type de valeur invalide pour {val} et l'opérateur '{op}' + Type de valeur invalide pour {val} et l'opérateur '{op}' @@ -1594,7 +1594,7 @@ désactivé : Operator '{op}' not allowed for value type {type} - Opérateur '{op}' non autorisé pour le type de valeur {type} + Opérateur '{op}' non autorisé pour le type de valeur {type} @@ -1604,7 +1604,7 @@ désactivé : Invalid binary operator '{op}' for '{left}' and '{right}' - Opérateur binaire '{op}' invalide pour '{left}' et '{right}' + Opérateur binaire '{op}' invalide pour '{left}' et '{right}' @@ -1619,23 +1619,23 @@ désactivé : Trying to multiply List by non-integer ({val}) - Tentative de multiplication d'une List par un non-entier ({val}) + Tentative de multiplication d'une List par un non-entier ({val}) Type mismatch for argument #{idx} '{arg}' (expected {exp}) - Type incorrect pour l'argument #{idx} '{arg}' (attendu : {exp}) + Type incorrect pour l'argument #{idx} '{arg}' (attendu : {exp}) Array access target must be of array type - La cible d'un accès de liste doit être une liste + La cible d'un accès de liste doit être une liste HelpWindow - + Help Contents Bibliothèque @@ -2349,7 +2349,7 @@ veuillez choisir un chemin vers un autre fichier. Expected token ({type}) '{val}' - Jeton attendu ({type}) '{val}' + Jeton attendu ({type}) '{val}' @@ -2359,7 +2359,7 @@ veuillez choisir un chemin vers un autre fichier. Unexpected token ({type}) '{val}' - Jeton ({type}) '{val}' inattendu + Jeton ({type}) '{val}' inattendu @@ -2379,7 +2379,7 @@ veuillez choisir un chemin vers un autre fichier. Unexpected token ({type}) '{val}' after end of expression - Jeton ({type}) '{val}' inattendu après la fin de l'expression + Jeton ({type}) '{val}' inattendu après la fin de l'expression diff --git a/src/lang/it.ts b/src/lang/it.ts index 10e162a..e9046d6 100644 --- a/src/lang/it.ts +++ b/src/lang/it.ts @@ -31,7 +31,7 @@ p, li { white-space: pre-wrap; } <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Windows icons under CC-BY 3.0 license - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">(c) Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Special thanks :</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, physics and computer science teacher, whose lessons and modesty were a big help during the development</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">plz give us a good grade</p></body></html> @@ -229,22 +229,22 @@ p, li { white-space: pre-wrap; } AlgoCallStmt - + Call function Chiamare una funzione - + <html><head/><body><p>Calls the function with the specified arguments.</p><p>The argument list must consist of a comma-separated list of arguments.</p></body></html> - + Function: - + Arguments: @@ -252,17 +252,17 @@ p, li { white-space: pre-wrap; } AlgoCommentStmt - + Comment Commenta - + <html><head/><body><p>A comment has no effect whatsoever on the execution of the program.</p><p>It can contain anything.</p></body></html> - + Comment: @@ -270,22 +270,22 @@ p, li { white-space: pre-wrap; } AlgoDefineStmt - + Define variable Definire la variabile - + <html><head/><body><p>Assigns the specified value to the variable.</p><p>If the variable does not exist in the current scope or in any parent scope, it will be created in the current scope.</p></body></html> - + Value: - + Variable: @@ -293,60 +293,60 @@ p, li { white-space: pre-wrap; } AlgoDisplayStmt - + Display value Visualizzazione valore - + <html><head/><body><p>Displays a value in the output window. </p><p>The value can be of any type, it will be automatically converted to a textual representation.</p></body></html> - + Value: - + Followed by a line break - Aggiungere un'interruzione di linea + Aggiungere un'interruzione di linea AlgoForStmt - + FOR loop - + <html><head/><body><p>Executes the instructions for all values of the variable in the specified range.</p><p>At each iteration, the variable will be incremented by the step which is defaulted to 1. </p><p>The bounds are inclusive.</p></body></html> - + From: - + To: - + Step: - + Variable: - + Custom step @@ -354,22 +354,22 @@ p, li { white-space: pre-wrap; } AlgoFuncStmt - + Define function Definire una funzione - + <html><head/><body><p>Creates a custom function. The parameters must be a comma-separated list of identifiers.</p><p>A function may or may not return a value, it can very well only &quot;do&quot; things without ever giving a result. Such a function can be called using the CALL statement.</p></body></html> - + Function: - + Parameters: @@ -377,42 +377,42 @@ p, li { white-space: pre-wrap; } AlgoGFuncStmt - + Plot function Tracciare una funzione - + <html><head/><body><p>Draws the curve of the function on the specified interval.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Start: - + Step: - + Function: - + Variable: - + Color: Colore: - + End: @@ -420,37 +420,37 @@ p, li { white-space: pre-wrap; } AlgoGLineStmt - + Plot line Tracciare una linea - + <html><head/><body><p>Draws a line with the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + End Y: - + End X: - + Start X: - + Start Y: - + Color: Colore: @@ -458,27 +458,27 @@ p, li { white-space: pre-wrap; } AlgoGPointStmt - + Plot point Tracciare un punto - + <html><head/><body><p>Draws a point at the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Color: Colore: - + X: Y: - + Y: Y: @@ -486,42 +486,42 @@ p, li { white-space: pre-wrap; } AlgoGWindowStmt - + Set window Impostare la finestra del grafico - + Max Y: Max Y: - + Min Y: Min Y: - + Min X: Min Y: - + Max X: Max X: - + Grad X: - + Grad Y: - + <html><head/><body><p>Changes the size of the plot window canvas. For Grad, 0 means automatic.</p></body></html> @@ -529,17 +529,17 @@ p, li { white-space: pre-wrap; } AlgoIfStmt - + IF block - + <html><head/><body><p>Checks if the specified condition is true.</p><p>The block will only be executed if the condition is true, otherwise the program will continue with the instruction following the block.</p></body></html> - + Condition: @@ -547,32 +547,32 @@ p, li { white-space: pre-wrap; } AlgoInputStmt - + Read user input - Lettura dei dati immessi dall'utente + Lettura dei dati immessi dall'utente - + <html><head/><body><p>Asks the user for a value and assigns it to the specified variable.</p><p>Optionally, a message can be displayed. <span style=" font-weight:600;">Warning</span>: the message is an expression, thus if you want to display text you need to enclose everything inside quotes.</p></body></html> - + Display a message Visualizzare un messaggio - + Message: - + Variable: - + Text @@ -580,22 +580,22 @@ p, li { white-space: pre-wrap; } AlgoReturnStmt - + Return - + <html><head/><body><p>Exits the current function and optionally passes a value to the caller.</p></body></html> - + Value: - + Return a value @@ -603,17 +603,17 @@ p, li { white-space: pre-wrap; } AlgoSleepStmt - + Wait - + <html><head/><body><p>Waits for the specified amount of time (in <span style=" font-weight:600;">seconds</span>).</p></body></html> - + Duration: @@ -621,22 +621,22 @@ p, li { white-space: pre-wrap; } AlgoStopStmt - + Breakpoint Punto di interruzione - + <html><head/><body><p>Pauses the program until &quot;Run&quot; or &quot;Debug&quot; is pressed.</p></body></html> - + Message: - + Display a message Visualizzare un messaggio @@ -644,17 +644,17 @@ p, li { white-space: pre-wrap; } AlgoWhileStmt - + WHILE loop - + <html><head/><body><p>Executes the instructions while the condition is true.</p><p>As soon as the condition is false, the program continues with the instruction following the block.</p></body></html> - + Condition: @@ -664,18 +664,18 @@ p, li { white-space: pre-wrap; } Unknown color: {color} - Colore sconosciuto: {color} + Colore sconosciuto: {color} Unknown variable type: {type} - Tipo di variabile sconosciuto: {type} + Tipo di variabile sconosciuto: {type} CalcWindow - + Calculator Calcolatrice @@ -688,131 +688,131 @@ p, li { white-space: pre-wrap; } ChangeThemeWindow - + Edit theme - + Block: - + Comment: - + Keyword: - + Literal: - + Window: - + Shadow: - + Button: - + Button Text: - + Disabled Button Text: - + Bright Text: - + Disabled Highlight: - + Highlight: - + Highlighted Text: - + Link: - + Disabled Highlighted Text: - + Alternate Base: - + Base: - + Window Text: - + Dark: - + Disabled Text: - + Tool Tip Text: - + Text: - + Tool Tip Base: - + Disabled Window Text : @@ -878,12 +878,12 @@ Window Text : Returns the largest integer less than or equal to {{num}}. - Riporta l'intero più grande meno grande o uguale a {{num}}. + Riporta l'intero più grande meno grande o uguale a {{num}}. Returns the smallest integer greater than or equal to {{num}}. - Riporta l'intero più piccolo maggiore o uguale a {{num}}. + Riporta l'intero più piccolo maggiore o uguale a {{num}}. @@ -903,7 +903,7 @@ Window Text : Returns the argument (or phase) of {{x}}. - Riporta l'argomento di {{x}}. + Riporta l'argomento di {{x}}. @@ -1617,7 +1617,7 @@ Window Text : HelpWindow - + Help Contents Sommario Guida @@ -1650,7 +1650,7 @@ Window Text : InlineCodeDialog - + Expression editor Editor espressioni @@ -2339,7 +2339,7 @@ please choose another file path. Expected token ({type}) '{val}' - Token previsto ({type}) '{val}' + Token previsto ({type}) '{val}' @@ -2354,7 +2354,7 @@ please choose another file path. Unexpected token ({type}) '{val}' - Token imprevisto ({type}) '{val}' + Token imprevisto ({type}) '{val}' diff --git a/src/lang/translator.py b/src/lang/translator.py index cba6c95..00909e6 100644 --- a/src/lang/translator.py +++ b/src/lang/translator.py @@ -2,7 +2,10 @@ import importlib import os -import sip +try: + from PyQt5 import sip +except: + import sip import sys import types from typing import List, Tuple diff --git a/src/lang/zh-CN.ts b/src/lang/zh-CN.ts index b8d2bdd..c5e543b 100644 --- a/src/lang/zh-CN.ts +++ b/src/lang/zh-CN.ts @@ -31,7 +31,7 @@ p, li { white-space: pre-wrap; } <li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Windows icons under CC-BY 3.0 license - <a href="http://www.fatcow.com/free-icons"><span style=" text-decoration: underline; color:#0000ff;">(c) Fatcow Web Hosting</span></a></li></ul> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Special thanks :</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://twitter.com/davR74130"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">David Roche</span></a>, physics and computer science teacher, whose lessons and modesty were a big help during the development</li> -<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> +<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Alan Turing</span>, without whom the computer you're looking at wouldn't be a thing</li></ul> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">plz give us a good grade</p></body></html> @@ -229,22 +229,22 @@ p, li { white-space: pre-wrap; } AlgoCallStmt - + Call function - + <html><head/><body><p>Calls the function with the specified arguments.</p><p>The argument list must consist of a comma-separated list of arguments.</p></body></html> - + Function: - + Arguments: @@ -252,17 +252,17 @@ p, li { white-space: pre-wrap; } AlgoCommentStmt - + Comment 注释/取消注释 - + <html><head/><body><p>A comment has no effect whatsoever on the execution of the program.</p><p>It can contain anything.</p></body></html> - + Comment: @@ -270,22 +270,22 @@ p, li { white-space: pre-wrap; } AlgoDefineStmt - + Define variable - + <html><head/><body><p>Assigns the specified value to the variable.</p><p>If the variable does not exist in the current scope or in any parent scope, it will be created in the current scope.</p></body></html> - + Value: - + Variable: @@ -293,22 +293,22 @@ p, li { white-space: pre-wrap; } AlgoDisplayStmt - + Display value - + <html><head/><body><p>Displays a value in the output window. </p><p>The value can be of any type, it will be automatically converted to a textual representation.</p></body></html> - + Value: - + Followed by a line break @@ -316,37 +316,37 @@ p, li { white-space: pre-wrap; } AlgoForStmt - + FOR loop - + <html><head/><body><p>Executes the instructions for all values of the variable in the specified range.</p><p>At each iteration, the variable will be incremented by the step which is defaulted to 1. </p><p>The bounds are inclusive.</p></body></html> - + From: - + To: - + Step: - + Variable: - + Custom step @@ -354,22 +354,22 @@ p, li { white-space: pre-wrap; } AlgoFuncStmt - + Define function - + <html><head/><body><p>Creates a custom function. The parameters must be a comma-separated list of identifiers.</p><p>A function may or may not return a value, it can very well only &quot;do&quot; things without ever giving a result. Such a function can be called using the CALL statement.</p></body></html> - + Function: - + Parameters: @@ -377,42 +377,42 @@ p, li { white-space: pre-wrap; } AlgoGFuncStmt - + Plot function - + <html><head/><body><p>Draws the curve of the function on the specified interval.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Start: - + Step: - + Function: - + Variable: - + Color: - + End: @@ -420,37 +420,37 @@ p, li { white-space: pre-wrap; } AlgoGLineStmt - + Plot line - + <html><head/><body><p>Draws a line with the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + End Y: - + End X: - + Start X: - + Start Y: - + Color: @@ -458,27 +458,27 @@ p, li { white-space: pre-wrap; } AlgoGPointStmt - + Plot point - + <html><head/><body><p>Draws a point at the specified coordinates.</p><p>The color must be a string containing the color name or RGB hex string.</p></body></html> - + Color: - + X: - + Y: @@ -486,42 +486,42 @@ p, li { white-space: pre-wrap; } AlgoGWindowStmt - + Set window - + Max Y: - + Min Y: - + Min X: - + Max X: - + Grad X: - + Grad Y: - + <html><head/><body><p>Changes the size of the plot window canvas. For Grad, 0 means automatic.</p></body></html> @@ -529,17 +529,17 @@ p, li { white-space: pre-wrap; } AlgoIfStmt - + IF block - + <html><head/><body><p>Checks if the specified condition is true.</p><p>The block will only be executed if the condition is true, otherwise the program will continue with the instruction following the block.</p></body></html> - + Condition: @@ -547,32 +547,32 @@ p, li { white-space: pre-wrap; } AlgoInputStmt - + Read user input - + <html><head/><body><p>Asks the user for a value and assigns it to the specified variable.</p><p>Optionally, a message can be displayed. <span style=" font-weight:600;">Warning</span>: the message is an expression, thus if you want to display text you need to enclose everything inside quotes.</p></body></html> - + Display a message - + Message: - + Variable: - + Text @@ -580,22 +580,22 @@ p, li { white-space: pre-wrap; } AlgoReturnStmt - + Return - + <html><head/><body><p>Exits the current function and optionally passes a value to the caller.</p></body></html> - + Value: - + Return a value @@ -603,17 +603,17 @@ p, li { white-space: pre-wrap; } AlgoSleepStmt - + Wait - + <html><head/><body><p>Waits for the specified amount of time (in <span style=" font-weight:600;">seconds</span>).</p></body></html> - + Duration: @@ -621,22 +621,22 @@ p, li { white-space: pre-wrap; } AlgoStopStmt - + Breakpoint - + <html><head/><body><p>Pauses the program until &quot;Run&quot; or &quot;Debug&quot; is pressed.</p></body></html> - + Message: - + Display a message @@ -644,38 +644,28 @@ p, li { white-space: pre-wrap; } AlgoWhileStmt - + WHILE loop - + <html><head/><body><p>Executes the instructions while the condition is true.</p><p>As soon as the condition is false, the program continues with the instruction following the block.</p></body></html> - + Condition: Algobox - - - Unknown color: {color} - - - - - Unknown variable type: {type} - - CalcWindow - + Calculator 计算器 @@ -688,131 +678,131 @@ p, li { white-space: pre-wrap; } ChangeThemeWindow - + Edit theme - + Block: - + Comment: - + Keyword: - + Literal: - + Window: - + Shadow: - + Button: - + Button Text: - + Disabled Button Text: - + Bright Text: - + Disabled Highlight: - + Highlight: - + Highlighted Text: - + Link: - + Disabled Highlighted Text: - + Alternate Base: - + Base: - + Window Text: - + Dark: - + Disabled Text: - + Tool Tip Text: - + Text: - + Tool Tip Base: - + Disabled Window Text : @@ -1617,7 +1607,7 @@ Window Text : HelpWindow - + Help Contents 帮助目录 @@ -1650,7 +1640,7 @@ Window Text : InlineCodeDialog - + Expression editor 表达式编辑器 @@ -2339,7 +2329,7 @@ please choose another file path. Expected token ({type}) '{val}' - 需要的符号({type}) '{val}' + 需要的符号({type}) '{val}' @@ -2354,7 +2344,7 @@ please choose another file path. Unexpected token ({type}) '{val}' - 意外的令牌({type}) '{val}' + 意外的令牌({type}) '{val}' From 7ff4ea25cab3a3e7f6afc638dffa77d884508cf4 Mon Sep 17 00:00:00 2001 From: Georges Khaznadar Date: Sun, 7 Dec 2025 17:19:10 +0100 Subject: [PATCH 2/2] removed the dependency on pytz (fix debian bug #1122120) --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8a281c5..3de4354 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,5 @@ pyqode.python==2.10.0 pyqode.qt==2.10.0 PyQt5==5.10.1 python-dateutil==2.7.2 -pytz==2018.3 sip==4.19.8 six==1.11.0