← Back to team overview

kicad-developers team mailing list archive

[PATCH] i18n pcbnew gal popup menu entries

 

Patch
=== modified file 'pcbnew/tools/common_actions.cpp'
--- pcbnew/tools/common_actions.cpp	2015-05-01 09:31:23 +0000
+++ pcbnew/tools/common_actions.cpp	2015-05-03 06:42:35 +0000
@@ -183,11 +183,11 @@
 // View Controls
 TOOL_ACTION COMMON_ACTIONS::zoomIn( "common.Control.zoomIn",
         AS_GLOBAL, WXK_F1,
-        "Zoom In", "", zoom_in_xpm );
+        _( "Zoom In" ), "", zoom_in_xpm );
 
 TOOL_ACTION COMMON_ACTIONS::zoomOut( "common.Control.zoomOut",
         AS_GLOBAL, WXK_F2,
-        "Zoom Out", "", zoom_out_xpm );
+        _( "Zoom Out" ), "", zoom_out_xpm );
 
 TOOL_ACTION COMMON_ACTIONS::zoomInCenter( "common.Control.zoomInCenter",
         AS_GLOBAL, 0,
@@ -199,11 +199,11 @@
 
 TOOL_ACTION COMMON_ACTIONS::zoomCenter( "common.Control.zoomCenter",
         AS_GLOBAL, WXK_F4,
-        "Center", "", zoom_center_on_screen_xpm );
+        _( "Center" ), "", zoom_center_on_screen_xpm );
 
 TOOL_ACTION COMMON_ACTIONS::zoomFitScreen( "common.Control.zoomFitScreen",
         AS_GLOBAL, WXK_HOME,
-        "Zoom Auto", "", zoom_fit_in_page_xpm );
+        _( "Zoom Auto" ), "", zoom_fit_in_page_xpm );
 
 TOOL_ACTION COMMON_ACTIONS::zoomPreset( "common.Control.zoomPreset",
         AS_GLOBAL, 0,

=== modified file 'pcbnew/tools/selection_tool.cpp'
--- pcbnew/tools/selection_tool.cpp	2015-05-03 06:31:14 +0000
+++ pcbnew/tools/selection_tool.cpp	2015-05-03 06:49:47 +0000
@@ -98,9 +98,9 @@
     m_menu.AddItem( COMMON_ACTIONS::zoomOut , SELECTION_CONDITIONS::ShowAlways, 1000 );
     m_menu.AddItem( COMMON_ACTIONS::zoomFitScreen , SELECTION_CONDITIONS::ShowAlways, 1000 );
 
-    m_menu.AddMenu( new ZOOM_MENU( getEditFrame<PCB_BASE_FRAME>() ), "Zoom",
+    m_menu.AddMenu( new ZOOM_MENU( getEditFrame<PCB_BASE_FRAME>() ), _( "Zoom" ),
             false, SELECTION_CONDITIONS::ShowAlways, 1000 );
-    m_menu.AddMenu( new GRID_MENU( getEditFrame<PCB_BASE_FRAME>() ), "Grid",
+    m_menu.AddMenu( new GRID_MENU( getEditFrame<PCB_BASE_FRAME>() ), _( "Grid" ),
             false, SELECTION_CONDITIONS::ShowAlways, 1000 );
 
     return true;



Follow ups