Bladeren bron

- Turkish language strings updated (by Mehmet Kaya)
- both for Excellon and Gerber editor fixed the direction of slots/pads when adding a circular array

Marius Stanciu 5 jaren geleden
bovenliggende
commit
d6b2ed5d40
5 gewijzigde bestanden met toevoegingen van 197 en 194 verwijderingen
  1. 2 0
      CHANGELOG.md
  2. 2 2
      appEditors/AppExcEditor.py
  3. 4 4
      appEditors/AppGerberEditor.py
  4. BIN
      locale/tr/LC_MESSAGES/strings.mo
  5. 189 188
      locale/tr/LC_MESSAGES/strings.po

+ 2 - 0
CHANGELOG.md

@@ -16,6 +16,8 @@ CHANGELOG for FlatCAM beta
 - in Gerber Editor fixed the Add circular array capability
 - in Gerber Editor remade the utility geometry generation for Circular Pad Array to show the array updated in real time and also fixed the adding of array in negative quadrants
 - in Excellon Editor remade the utility geometry generation for Circular Drill/Slot Array to show the array updated in real time and also fixed the adding of array in negative quadrants
+- Turkish language strings updated (by Mehmet Kaya)
+- both for Excellon and Gerber editor fixed the direction of slots/pads when adding a circular array
 
 5.11.2020
 

+ 2 - 2
appEditors/AppExcEditor.py

@@ -1035,7 +1035,7 @@ class SlotArray(FCShapeTool):
                 y = self.origin[1] + radius * math.sin(-angle_radians + angle)
 
                 geo_sol = self.util_shape((x, y))
-                # geo_sol = affinity.rotate(geo_sol, angle=(math.pi - angle_radians), use_radians=True)
+                geo_sol = affinity.rotate(geo_sol, angle=(math.pi - angle_radians + angle), use_radians=True)
 
                 circular_geo.append(DrawToolShape(geo_sol))
         else:
@@ -1045,7 +1045,7 @@ class SlotArray(FCShapeTool):
                 y = self.origin[1] + radius * math.sin(angle_radians + angle)
 
                 geo_sol = self.util_shape((x, y))
-                # geo_sol = affinity.rotate(geo_sol, angle=(angle_radians - math.pi), use_radians=True)
+                geo_sol = affinity.rotate(geo_sol, angle=(angle_radians + angle - math.pi), use_radians=True)
 
                 circular_geo.append(DrawToolShape(geo_sol))
 

+ 4 - 4
appEditors/AppGerberEditor.py

@@ -743,8 +743,8 @@ class PadArrayEditorGrb(ShapeToolEditorGrb):
                 y = self.origin[1] + radius * math.sin(-angle_radians + angle)
 
                 geo = self.util_shape((x, y))
-                geo_sol = affinity.rotate(geo['solid'], angle=(math.pi - angle_radians), use_radians=True)
-                geo_fol = affinity.rotate(geo['follow'], angle=(math.pi - angle_radians), use_radians=True)
+                geo_sol = affinity.rotate(geo['solid'], angle=(math.pi - angle_radians + angle), use_radians=True)
+                geo_fol = affinity.rotate(geo['follow'], angle=(math.pi - angle_radians + angle), use_radians=True)
                 geo_el = {
                     'solid': geo_sol,
                     'follow': geo_fol
@@ -757,8 +757,8 @@ class PadArrayEditorGrb(ShapeToolEditorGrb):
                 y = self.origin[1] + radius * math.sin(angle_radians + angle)
 
                 geo = self.util_shape((x, y))
-                geo_sol = affinity.rotate(geo['solid'], angle=(angle_radians - math.pi), use_radians=True)
-                geo_fol = affinity.rotate(geo['follow'], angle=(angle_radians - math.pi), use_radians=True)
+                geo_sol = affinity.rotate(geo['solid'], angle=(angle_radians + angle - math.pi), use_radians=True)
+                geo_fol = affinity.rotate(geo['follow'], angle=(angle_radians + angle - math.pi), use_radians=True)
                 geo_el = {
                     'solid': geo_sol,
                     'follow': geo_fol

BIN
locale/tr/LC_MESSAGES/strings.mo


File diff suppressed because it is too large
+ 189 - 188
locale/tr/LC_MESSAGES/strings.po


Some files were not shown because too many files changed in this diff