Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
4e626d44
Commit
4e626d44
authored
Oct 22, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some messages translatable.
parent
609abb2f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
17 deletions
+20
-17
class_drawsegment.cpp
pcbnew/class_drawsegment.cpp
+4
-3
class_mire.cpp
pcbnew/class_mire.cpp
+3
-2
class_pad.cpp
pcbnew/class_pad.cpp
+8
-6
class_pcb_text.cpp
pcbnew/class_pcb_text.cpp
+5
-6
No files found.
pcbnew/class_drawsegment.cpp
View file @
4e626d44
...
...
@@ -565,9 +565,10 @@ wxString DRAWSEGMENT::GetSelectMenuText() const
wxString
text
;
wxString
temp
;
text
<<
_
(
"Pcb Graphic"
)
<<
wxT
(
": "
)
<<
ShowShape
(
(
Track_Shapes
)
m_Shape
)
<<
wxChar
(
' '
)
<<
_
(
"Length:"
)
<<
valeur_param
(
GetLength
(),
temp
)
<<
_
(
" on "
)
<<
GetLayerName
();
text
.
Printf
(
_
(
"Pcb Graphic: %s length: %s on %s"
),
GetChars
(
ShowShape
(
(
Track_Shapes
)
m_Shape
)
),
GetChars
(
valeur_param
(
GetLength
(),
temp
)
),
GetChars
(
GetLayerName
()
)
);
return
text
;
}
...
...
pcbnew/class_mire.cpp
View file @
4e626d44
...
...
@@ -11,6 +11,7 @@
#include "pcbcommon.h"
#include "colors_selection.h"
#include "trigo.h"
#include "macros.h"
#include "protos.h"
#include "richio.h"
...
...
@@ -245,8 +246,8 @@ wxString PCB_TARGET::GetSelectMenuText() const
valeur_param
(
m_Size
,
msg
);
text
<<
_
(
"Target"
)
<<
_
(
" on "
)
<<
GetLayerName
()
<<
wxT
(
" "
)
<<
_
(
"size"
)
<<
wxT
(
" "
)
<<
msg
;
text
.
Printf
(
_
(
"Target on %s size %s"
),
GetChars
(
GetLayerName
()
),
GetChars
(
msg
)
)
;
return
text
;
}
pcbnew/class_pad.cpp
View file @
4e626d44
...
...
@@ -932,20 +932,22 @@ wxString D_PAD::ShowPadAttr() const
wxString
D_PAD
::
GetSelectMenuText
()
const
{
wxString
text
;
wxString
padlayers
;
BOARD
*
board
=
GetBoard
();
text
<<
_
(
"Pad"
)
<<
wxT
(
"
\"
"
)
<<
ReturnStringPadName
()
<<
wxT
(
"
\"
("
);
if
(
(
m_layerMask
&
ALL_CU_LAYERS
)
==
ALL_CU_LAYERS
)
text
<<
_
(
"all copper layers"
);
padlayers
=
_
(
"all copper layers"
);
else
if
(
(
m_layerMask
&
LAYER_BACK
)
==
LAYER_BACK
)
text
<<
board
->
GetLayerName
(
LAYER_N_BACK
);
padlayers
=
board
->
GetLayerName
(
LAYER_N_BACK
);
else
if
(
(
m_layerMask
&
LAYER_FRONT
)
==
LAYER_FRONT
)
text
<<
board
->
GetLayerName
(
LAYER_N_FRONT
);
padlayers
=
board
->
GetLayerName
(
LAYER_N_FRONT
);
else
text
<<
_
(
"???"
);
padlayers
=
_
(
"???"
);
text
<<
_
(
") of "
)
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
text
.
Printf
(
_
(
"Pad [%s] (%s) of %s"
),
GetChars
(
ReturnStringPadName
()
),
GetChars
(
padlayers
),
GetChars
((
(
MODULE
*
)
GetParent
()
)
->
GetReference
()
)
);
return
text
;
}
...
...
pcbnew/class_pcb_text.cpp
View file @
4e626d44
...
...
@@ -328,16 +328,15 @@ void TEXTE_PCB::Flip(const wxPoint& aCentre )
wxString
TEXTE_PCB
::
GetSelectMenuText
()
const
{
wxString
text
;
text
<<
_
(
"Pcb Text"
)
<<
wxT
(
" "
);
wxString
text
,
shorttxt
;
if
(
m_Text
.
Len
()
<
12
)
te
xt
<<
m_Text
;
shortt
xt
<<
m_Text
;
else
te
xt
+=
m_Text
.
Left
(
10
)
+
wxT
(
".."
);
shortt
xt
+=
m_Text
.
Left
(
10
)
+
wxT
(
".."
);
text
<<
_
(
" on "
)
<<
GetLayerName
();
text
.
Printf
(
_
(
"Pcb Text %s on %s"
),
GetChars
(
shorttxt
),
GetChars
(
GetLayerName
()
)
);
return
text
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment