← Back to team overview

kicad-developers team mailing list archive

[PATCH 1/4 (master)] Pcbnew: make "Swap Layers" title translatable.

 

---
 pcbnew/dialogs/dialog_swap_layers_base.fbp | 2 +-
 pcbnew/dialogs/dialog_swap_layers_base.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pcbnew/dialogs/dialog_swap_layers_base.fbp b/pcbnew/dialogs/dialog_swap_layers_base.fbp
index d09937aa2..f1c20d88d 100644
--- a/pcbnew/dialogs/dialog_swap_layers_base.fbp
+++ b/pcbnew/dialogs/dialog_swap_layers_base.fbp
@@ -14,7 +14,7 @@
         <property name="file">dialog_swap_layers_base</property>
         <property name="first_id">1000</property>
         <property name="help_provider">none</property>
-        <property name="internationalize">0</property>
+        <property name="internationalize">1</property>
         <property name="name">swap_layers</property>
         <property name="namespace"></property>
         <property name="path">.</property>
diff --git a/pcbnew/dialogs/dialog_swap_layers_base.h b/pcbnew/dialogs/dialog_swap_layers_base.h
index 430e6003a..c4676c2c6 100644
--- a/pcbnew/dialogs/dialog_swap_layers_base.h
+++ b/pcbnew/dialogs/dialog_swap_layers_base.h
@@ -45,7 +45,7 @@ class DIALOG_SWAP_LAYERS_BASE : public DIALOG_SHIM
 	
 	public:
 		
-		DIALOG_SWAP_LAYERS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Swap Layers"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
+		DIALOG_SWAP_LAYERS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Swap Layers"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); 
 		~DIALOG_SWAP_LAYERS_BASE();
 	
 };
-- 
2.19.0



Follow ups