Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
56c02894
Commit
56c02894
authored
Jun 18, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate image slice window with locale
parent
cbbd1ca5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
17 deletions
+57
-17
data/en.mse-locale/locale
data/en.mse-locale/locale
+22
-0
src/gui/image_slice_window.cpp
src/gui/image_slice_window.cpp
+16
-16
src/resource/common/expected_locale_keys
src/resource/common/expected_locale_keys
+19
-1
No files found.
data/en.mse-locale/locale
View file @
56c02894
...
@@ -411,6 +411,10 @@ label:
...
@@ -411,6 +411,10 @@ label:
#
Style
tab
#
Style
tab
styling
options
:
Styling
options
styling
options
:
Styling
options
#
Random
pack
panel
pack
selection
:
Pack
selection
pack
totals
:
Totals
#
Open
dialogs
#
Open
dialogs
all
files
All
files
all
files
All
files
...
@@ -468,9 +472,23 @@ label:
...
@@ -468,9 +472,23 @@ label:
original
:
Original
:
original
:
Original
:
result
:
Result
:
result
:
Result
:
size
:
Size
size
:
Size
original
size
:
&
Original
Size
size
to
fit
:
Size
to
&
Fit
force
to
fit
:
F
&
orce
to
Fit
custom
size
:
&
Custom
Size
selection
:
Selection
selection
:
Selection
selection
left
:
&
Left
selection
top
:
&
Top
selection
width
:
&
Width
selection
height
:
&
Height
zoom
:
Zoom
zoom
:
Zoom
fix
aspect
ratio
:
Fix
aspect
ratio
(
width
/
height
)
zoom
amount
:
Zoom
zoom
amount
x
:
Zoom
&
X
zoom
amount
y
:
Zoom
&
Y
zoom
%:
%
filter
:
Filter
filter
:
Filter
sharpen
filter
:
&
Sharpen
filter
#
Auto
replace
#
Auto
replace
auto
match
:
Match
auto
match
:
Match
...
@@ -507,6 +525,9 @@ button:
...
@@ -507,6 +525,9 @@ button:
insert
parameter
:
Insert
Parameter
...
insert
parameter
:
Insert
Parameter
...
refer
parameter
:
Use
Parameter
...
refer
parameter
:
Use
Parameter
...
#
Random
pack
panel
generate
pack
:
&
Generate
Pack
#
Welcome
#
Welcome
new
set
:
New
set
new
set
:
New
set
open
set
:
Open
set
open
set
:
Open
set
...
@@ -772,6 +793,7 @@ type:
...
@@ -772,6 +793,7 @@ type:
set
:
set
set
:
set
stylesheet
:
stylesheet
stylesheet
:
stylesheet
export
template
:
export
template
export
template
:
export
template
symbol
:
symbol
card
:
card
card
:
card
cards
:
cards
cards
:
cards
field
:
field
field
:
field
...
...
src/gui/image_slice_window.cpp
View file @
56c02894
...
@@ -85,10 +85,10 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
...
@@ -85,10 +85,10 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
selector
=
new
ImageSliceSelector
(
this
,
ID_SELECTOR
,
slice
);
selector
=
new
ImageSliceSelector
(
this
,
ID_SELECTOR
,
slice
);
preview
=
new
ImageSlicePreview
(
this
,
ID_PREVIEW
,
slice
,
mask
);
preview
=
new
ImageSlicePreview
(
this
,
ID_PREVIEW
,
slice
,
mask
);
String
sizes
[]
=
{
_
(
"&Original S
ize"
)
String
sizes
[]
=
{
_
LABEL_
(
"original s
ize"
)
,
_
(
"Size to &F
it"
)
,
_
LABEL_
(
"size to f
it"
)
,
_
(
"F&orce to F
it"
)
,
_
LABEL_
(
"force to f
it"
)
,
_
(
"&Custom S
ize"
)
};
,
_
LABEL_
(
"custom s
ize"
)
};
size
=
new
wxRadioBox
(
this
,
ID_SIZE
,
_LABEL_
(
"size"
),
defPos
,
wxDefaultSize
,
4
,
sizes
,
1
);
size
=
new
wxRadioBox
(
this
,
ID_SIZE
,
_LABEL_
(
"size"
),
defPos
,
wxDefaultSize
,
4
,
sizes
,
1
);
left
=
new
wxSpinCtrl
(
this
,
ID_LEFT
,
_
(
""
),
defPos
,
spinSize
);
left
=
new
wxSpinCtrl
(
this
,
ID_LEFT
,
_
(
""
),
defPos
,
spinSize
);
...
@@ -100,7 +100,7 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
...
@@ -100,7 +100,7 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
width
->
SetRange
(
0
,
5000
);
width
->
SetRange
(
0
,
5000
);
height
->
SetRange
(
0
,
5000
);
height
->
SetRange
(
0
,
5000
);
fix_aspect
=
new
wxCheckBox
(
this
,
ID_FIX_ASPECT
,
_
(
"Fix aspect ratio (width/height)
"
));
fix_aspect
=
new
wxCheckBox
(
this
,
ID_FIX_ASPECT
,
_
LABEL_
(
"fix aspect ratio
"
));
zoom_x
=
new
wxSpinCtrl
(
this
,
ID_ZOOM_X
,
_
(
""
),
defPos
,
spinSize
);
zoom_x
=
new
wxSpinCtrl
(
this
,
ID_ZOOM_X
,
_
(
""
),
defPos
,
spinSize
);
zoom_y
=
new
wxSpinCtrl
(
this
,
ID_ZOOM_Y
,
_
(
""
),
defPos
,
spinSize
);
zoom_y
=
new
wxSpinCtrl
(
this
,
ID_ZOOM_Y
,
_
(
""
),
defPos
,
spinSize
);
zoom
=
new
wxSpinCtrl
(
this
,
ID_ZOOM
,
_
(
""
),
defPos
,
spinSize
);
zoom
=
new
wxSpinCtrl
(
this
,
ID_ZOOM
,
_
(
""
),
defPos
,
spinSize
);
...
@@ -108,7 +108,7 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
...
@@ -108,7 +108,7 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
zoom_y
->
SetRange
(
1
,
10000
);
zoom_y
->
SetRange
(
1
,
10000
);
zoom
->
SetRange
(
1
,
10000
);
zoom
->
SetRange
(
1
,
10000
);
sharpen
=
new
wxCheckBox
(
this
,
ID_SHARPEN
,
_
(
"&Sharpen F
ilter"
));
sharpen
=
new
wxCheckBox
(
this
,
ID_SHARPEN
,
_
LABEL_
(
"sharpen f
ilter"
));
sharpen_amount
=
new
wxSlider
(
this
,
ID_SHARPEN_AMOUNT
,
0
,
0
,
100
);
sharpen_amount
=
new
wxSlider
(
this
,
ID_SHARPEN_AMOUNT
,
0
,
0
,
100
);
// allowOutside= new CheckBox(&this, idSliceAllowOutside, _("Allow selection outside source"))
// allowOutside= new CheckBox(&this, idSliceAllowOutside, _("Allow selection outside source"))
// bgColor = new ColorSelector(&this, wxID_ANY)
// bgColor = new ColorSelector(&this, wxID_ANY)
...
@@ -133,13 +133,13 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
...
@@ -133,13 +133,13 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
s5
->
AddStretchSpacer
(
1
);
s5
->
AddStretchSpacer
(
1
);
wxSizer
*
s6
=
new
wxStaticBoxSizer
(
wxVERTICAL
,
this
,
_LABEL_
(
"selection"
));
wxSizer
*
s6
=
new
wxStaticBoxSizer
(
wxVERTICAL
,
this
,
_LABEL_
(
"selection"
));
wxSizer
*
s7
=
new
wxFlexGridSizer
(
0
,
2
,
4
,
5
);
wxSizer
*
s7
=
new
wxFlexGridSizer
(
0
,
2
,
4
,
5
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"&L
eft"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"selection l
eft"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
left
,
0
,
wxEXPAND
);
s7
->
Add
(
left
,
0
,
wxEXPAND
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"&T
op"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"selection t
op"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
top
,
0
,
wxEXPAND
);
s7
->
Add
(
top
,
0
,
wxEXPAND
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"&W
idth"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"selection w
idth"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
width
,
0
,
wxEXPAND
);
s7
->
Add
(
width
,
0
,
wxEXPAND
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"&H
eight"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"selection h
eight"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s7
->
Add
(
height
,
0
,
wxEXPAND
);
s7
->
Add
(
height
,
0
,
wxEXPAND
);
s6
->
Add
(
s7
,
1
,
wxEXPAND
|
wxALL
,
4
);
s6
->
Add
(
s7
,
1
,
wxEXPAND
|
wxALL
,
4
);
s5
->
Add
(
s6
,
0
,
wxEXPAND
|
wxALL
,
4
);
s5
->
Add
(
s6
,
0
,
wxEXPAND
|
wxALL
,
4
);
...
@@ -147,17 +147,17 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
...
@@ -147,17 +147,17 @@ ImageSliceWindow::ImageSliceWindow(Window* parent, const Image& source, const wx
wxSizer
*
s8
=
zoom_sizer
=
new
wxStaticBoxSizer
(
wxVERTICAL
,
this
,
_LABEL_
(
"zoom"
));
wxSizer
*
s8
=
zoom_sizer
=
new
wxStaticBoxSizer
(
wxVERTICAL
,
this
,
_LABEL_
(
"zoom"
));
s8
->
Add
(
fix_aspect
,
0
,
wxEXPAND
|
wxALL
&
~
wxBOTTOM
,
4
);
s8
->
Add
(
fix_aspect
,
0
,
wxEXPAND
|
wxALL
&
~
wxBOTTOM
,
4
);
wxSizer
*
s9
=
zoom_fixed
=
new
wxFlexGridSizer
(
0
,
3
,
4
,
5
);
wxSizer
*
s9
=
zoom_fixed
=
new
wxFlexGridSizer
(
0
,
3
,
4
,
5
);
s9
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"&Zoom
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s9
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom amount
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s9
->
Add
(
zoom
,
0
,
wxEXPAND
);
s9
->
Add
(
zoom
,
0
,
wxEXPAND
);
s9
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"%"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s9
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom %"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s8
->
Add
(
s9
,
0
,
wxEXPAND
|
wxALL
,
4
);
s8
->
Add
(
s9
,
0
,
wxEXPAND
|
wxALL
,
4
);
wxSizer
*
sA
=
zoom_free
=
new
wxFlexGridSizer
(
0
,
3
,
4
,
5
);
wxSizer
*
sA
=
zoom_free
=
new
wxFlexGridSizer
(
0
,
3
,
4
,
5
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Zoom &X
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom amount x
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
zoom_x
,
0
,
wxEXPAND
);
sA
->
Add
(
zoom_x
,
0
,
wxEXPAND
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"%"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom %"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Zoom &Y
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom amount y
"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
zoom_y
,
0
,
wxEXPAND
);
sA
->
Add
(
zoom_y
,
0
,
wxEXPAND
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"%"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
sA
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_
LABEL_
(
"zoom %"
)),
0
,
wxALIGN_CENTER_VERTICAL
);
s8
->
Add
(
sA
,
0
,
wxEXPAND
|
wxALL
,
4
);
s8
->
Add
(
sA
,
0
,
wxEXPAND
|
wxALL
,
4
);
s5
->
Add
(
s8
,
0
,
wxEXPAND
|
wxALL
,
4
);
s5
->
Add
(
s8
,
0
,
wxEXPAND
|
wxALL
,
4
);
s5
->
AddStretchSpacer
(
1
);
s5
->
AddStretchSpacer
(
1
);
...
...
src/resource/common/expected_locale_keys
View file @
56c02894
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
Generated
on
Thu
Jun
5
00
:
45
:
34
2008
#
Generated
on
Wed
Jun
18
16
:
31
:
33
2008
action
:
action
:
add
control
point
:
0
add
control
point
:
0
...
@@ -49,6 +49,7 @@ button:
...
@@ -49,6 +49,7 @@ button:
don
't install package: 0
don
't install package: 0
edit symbol: 0
edit symbol: 0
enabled: 0
enabled: 0
generate pack: 0
hide: 0
hide: 0
high quality: 0
high quality: 0
if internet connection exists: 0
if internet connection exists: 0
...
@@ -264,12 +265,15 @@ label:
...
@@ -264,12 +265,15 @@ label:
check
at
startup
:
0
check
at
startup
:
0
checking
requires
internet
:
0
checking
requires
internet
:
0
columns
:
0
columns
:
0
custom
size
:
0
export
filenames
:
0
export
filenames
:
0
external
programs
:
0
external
programs
:
0
filename
conflicts
:
0
filename
conflicts
:
0
filename
format
:
0
filename
format
:
0
filename
is
ignored
:
0
filename
is
ignored
:
0
filter
:
0
filter
:
0
fix
aspect
ratio
:
0
force
to
fit
:
0
game
type
:
0
game
type
:
0
html
export
options
:
0
html
export
options
:
0
html
template
:
0
html
template
:
0
...
@@ -280,6 +284,9 @@ label:
...
@@ -280,6 +284,9 @@ label:
match
:
0
match
:
0
mode
:
0
mode
:
0
original
:
0
original
:
0
original
size
:
0
pack
selection
:
0
pack
totals
:
0
package
action
:
0
package
action
:
0
package
conflicts
:
0
package
conflicts
:
0
package
installable
:
0
package
installable
:
0
...
@@ -297,9 +304,15 @@ label:
...
@@ -297,9 +304,15 @@ label:
select
cards
print
:
0
select
cards
print
:
0
select
columns
:
0
select
columns
:
0
selection
:
0
selection
:
0
selection
height
:
0
selection
left
:
0
selection
top
:
0
selection
width
:
0
set
code
:
0
set
code
:
0
sharpen
filter
:
0
sides
:
optional
,
0
sides
:
optional
,
0
size
:
0
size
:
0
size
to
fit
:
0
standard
keyword
:
1
standard
keyword
:
1
style
type
:
0
style
type
:
0
stylesheet
not
found
:
1
stylesheet
not
found
:
1
...
@@ -307,6 +320,10 @@ label:
...
@@ -307,6 +320,10 @@ label:
upgrade
package
:
0
upgrade
package
:
0
uses
:
0
uses
:
0
zoom
:
0
zoom
:
0
zoom
%:
0
zoom
amount
:
0
zoom
amount
x
:
0
zoom
amount
y
:
0
menu
:
menu
:
about
:
0
about
:
0
add
card
:
0
add
card
:
0
...
@@ -560,5 +577,6 @@ type:
...
@@ -560,5 +577,6 @@ type:
string
:
0
string
:
0
style
:
0
style
:
0
stylesheet
:
0
stylesheet
:
0
symbol
:
0
triangle
:
0
triangle
:
0
value
:
0
value
:
0
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