Просмотр исходного кода

Merged jpcgt/flatcam/Beta into Beta

Marius Stanciu 6 лет назад
Родитель
Сommit
81c0ee5638
5 измененных файлов с 287 добавлено и 404 удалено
  1. 13 11
      FlatCAMApp.py
  2. 6 6
      flatcamGUI/FlatCAMGUI.py
  3. BIN
      locale/ru/LC_MESSAGES/strings.mo
  4. 264 387
      locale/ru/LC_MESSAGES/strings.po
  5. 4 0
      locale_template/strings.pot

+ 13 - 11
FlatCAMApp.py

@@ -19,7 +19,6 @@ import shutil
 from stat import S_IREAD, S_IRGRP, S_IROTH
 from stat import S_IREAD, S_IRGRP, S_IROTH
 import subprocess
 import subprocess
 import ctypes
 import ctypes
-import winreg
 
 
 import tkinter as tk
 import tkinter as tk
 from PyQt5 import QtPrintSupport
 from PyQt5 import QtPrintSupport
@@ -62,6 +61,9 @@ import gettext
 import FlatCAMTranslation as fcTranslate
 import FlatCAMTranslation as fcTranslate
 import builtins
 import builtins
 
 
+if sys.platform == 'win32':
+    import winreg
+
 fcTranslate.apply_language('strings')
 fcTranslate.apply_language('strings')
 if '_' not in builtins.__dict__:
 if '_' not in builtins.__dict__:
     _ = gettext.gettext
     _ = gettext.gettext
@@ -3878,12 +3880,12 @@ class App(QtCore.QObject):
                     "{title}<BR>"
                     "{title}<BR>"
                     "<BR>"
                     "<BR>"
                     "<BR>"
                     "<BR>"
-                    "<B>{devel}</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
-                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/src/Beta/\">here.</a><BR>"
-                    "<b>{down}</B> area &nbsp;&nbsp;&nbsp;&nbsp;"
-                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/downloads/\">here.</a><BR>"
-                    "<b> {issue}</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
-                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/issues?status=new&status=open/\">here.</a><BR>".
+                    # "<B>{devel}</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
+                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/src/Beta/\"><B>{devel}</B></a><BR>"
+                    # "<b>{down}</B> area &nbsp;&nbsp;&nbsp;&nbsp;"
+                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/downloads/\"><b>{down}</B></a><BR>"
+                    # "<b> {issue}</B> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
+                    "<a href = \"https://bitbucket.org/jpcgt/flatcam/issues?status=new&status=open/\"><B>{issue}</B></a><BR>".
                         format(title=_("2D Computer-Aided Printed Circuit Board Manufacturing"),
                         format(title=_("2D Computer-Aided Printed Circuit Board Manufacturing"),
                                devel=_("Development"), down=_("DOWNLOAD"), issue=_("Issue tracker"))
                                devel=_("Development"), down=_("DOWNLOAD"), issue=_("Issue tracker"))
                 )
                 )
@@ -3912,10 +3914,10 @@ class App(QtCore.QObject):
                         'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n'
                         'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n'
                         'copies of the Software, and to permit persons to whom the Software is\n'
                         'copies of the Software, and to permit persons to whom the Software is\n'
                        ' furnished to do so, subject to the following conditions:\n\n'
                        ' furnished to do so, subject to the following conditions:\n\n'
-                        
+
                         'The above copyright notice and this permission notice shall be included in\n'
                         'The above copyright notice and this permission notice shall be included in\n'
                         'all copies or substantial portions of the Software.\n\n'
                         'all copies or substantial portions of the Software.\n\n'
-                        
+
                         'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n'
                         'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n'
                         'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n'
                         'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n'
                         'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n'
                         'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n'
@@ -10221,11 +10223,11 @@ class App(QtCore.QObject):
             <br />
             <br />
             %s:<br />
             %s:<br />
             <br />
             <br />
-            <strong>%s</strong> -&gt; %s -&gt; %s -&gt;<strong> %s </strong> -&gt; %s -&gt; %s -&gt;<strong> %s 
+            <strong>%s</strong> -&gt; %s -&gt; %s -&gt;<strong> %s </strong> -&gt; %s -&gt; %s -&gt;<strong> %s
             </strong>-&gt; %s <strong>%s)&nbsp;</strong>-&gt; %s</span></li>
             </strong>-&gt; %s <strong>%s)&nbsp;</strong>-&gt; %s</span></li>
         </ol>
         </ol>
 
 
-        <p><span style="font-size:{fsize}px">%s <strong>%s -&gt; %s</strong>&nbsp;%s it&#39;s %s: 
+        <p><span style="font-size:{fsize}px">%s <strong>%s -&gt; %s</strong>&nbsp;%s it&#39;s %s:
         <strong>F3</strong>.</span></p>
         <strong>F3</strong>.</span></p>
         ''' % (
         ''' % (
             _("Selected Tab - Choose an Item from Project Tab"), _("Details"),
             _("Selected Tab - Choose an Item from Project Tab"), _("Details"),

+ 6 - 6
flatcamGUI/FlatCAMGUI.py

@@ -1267,7 +1267,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
                     <tr height="20">
                     <tr height="20">
                         <td height="20"><strong>ALT+F10</strong></td>
                         <td height="20"><strong>ALT+F10</strong></td>
                         <td>&nbsp;%s</td>
                         <td>&nbsp;%s</td>
-                    </tr>                 
+                    </tr>
                     <tr height="20">
                     <tr height="20">
                         <td height="20">&nbsp;</td>
                         <td height="20">&nbsp;</td>
                         <td>&nbsp;</td>
                         <td>&nbsp;</td>
@@ -1275,7 +1275,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
                     <tr height="20">
                     <tr height="20">
                         <td height="20"><strong>CTRL+ALT+X</strong></td>
                         <td height="20"><strong>CTRL+ALT+X</strong></td>
                         <td>&nbsp;%s</td>
                         <td>&nbsp;%s</td>
-                    </tr>                    
+                    </tr>
                     <tr height="20">
                     <tr height="20">
                         <td height="20">&nbsp;</td>
                         <td height="20">&nbsp;</td>
                         <td>&nbsp;</td>
                         <td>&nbsp;</td>
@@ -6438,7 +6438,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
         # hidden for the time being, until implemented
         # hidden for the time being, until implemented
         coords_type_label.hide()
         coords_type_label.hide()
         self.coords_type_radio.hide()
         self.coords_type_radio.hide()
-        
+
         self.layout.addStretch()
         self.layout.addStretch()
 
 
 
 
@@ -7808,7 +7808,7 @@ class FAExcPrefGroupUI(OptionsGroupUI):
 
 
         self.layout.addWidget(self.exc_list_text)
         self.layout.addWidget(self.exc_list_text)
 
 
-        self.exc_list_btn = FCButton("Apply")
+        self.exc_list_btn = FCButton(_("Apply"))
         self.exc_list_btn.setToolTip(_("Apply the file associations between\n"
         self.exc_list_btn.setToolTip(_("Apply the file associations between\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "They will be active after next logon.\n"
                                        "They will be active after next logon.\n"
@@ -7841,7 +7841,7 @@ class FAGcoPrefGroupUI(OptionsGroupUI):
 
 
         self.layout.addWidget(self.gco_list_text)
         self.layout.addWidget(self.gco_list_text)
 
 
-        self.gco_list_btn = FCButton("Apply")
+        self.gco_list_btn = FCButton(_("Apply"))
         self.gco_list_btn.setToolTip(_("Apply the file associations between\n"
         self.gco_list_btn.setToolTip(_("Apply the file associations between\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "They will be active after next logon.\n"
                                        "They will be active after next logon.\n"
@@ -7873,7 +7873,7 @@ class FAGrbPrefGroupUI(OptionsGroupUI):
         font.setPointSize(12)
         font.setPointSize(12)
         self.grb_list_text.setFont(font)
         self.grb_list_text.setFont(font)
 
 
-        self.grb_list_btn = FCButton("Apply")
+        self.grb_list_btn = FCButton(_("Apply"))
         self.grb_list_btn.setToolTip(_("Apply the file associations between\n"
         self.grb_list_btn.setToolTip(_("Apply the file associations between\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "FlatCAM and the files with above extensions.\n"
                                        "They will be active after next logon.\n"
                                        "They will be active after next logon.\n"

BIN
locale/ru/LC_MESSAGES/strings.mo


Разница между файлами не показана из-за своего большого размера
+ 264 - 387
locale/ru/LC_MESSAGES/strings.po


+ 4 - 0
locale_template/strings.pot

@@ -8454,6 +8454,10 @@ msgid ""
 "associated with FlatCAM."
 "associated with FlatCAM."
 msgstr ""
 msgstr ""
 
 
+#: flatcamGUI/FlatCAMGUI.py:7747 flatcamGUI/FlatCAMGUI.py:7780 flatcamGUI/FlatCAMGUI.py:7812
+msgid "Apply"
+msgstr ""
+
 #: flatcamGUI/FlatCAMGUI.py:7748 flatcamGUI/FlatCAMGUI.py:7781
 #: flatcamGUI/FlatCAMGUI.py:7748 flatcamGUI/FlatCAMGUI.py:7781
 #: flatcamGUI/FlatCAMGUI.py:7813
 #: flatcamGUI/FlatCAMGUI.py:7813
 msgid ""
 msgid ""

Некоторые файлы не были показаны из-за большого количества измененных файлов