Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
b19bcc03
Commit
b19bcc03
authored
Jun 12, 2017
by
Evan W. Patton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make extension strings internationalized
Fixes #888 Change-Id: Ib394778a30729c54cfdc787107e542b85cfd3a1a
parent
0909eb27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
...engine/src/com/google/appinventor/client/OdeMessages.java
+6
-2
appinventor/appengine/src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
...editor/youngandroid/palette/YoungAndroidPalettePanel.java
+10
-3
No files found.
appinventor/appengine/src/com/google/appinventor/client/OdeMessages.java
View file @
b19bcc03
...
...
@@ -516,6 +516,10 @@ public interface OdeMessages extends Messages {
@Description
(
"Name of Import component menuitem"
)
String
importComponentMenuItem
();
@DefaultMessage
(
"Import extension"
)
@Description
(
"String shown in the palette to import an extension"
)
String
importExtensionMenuItem
();
@DefaultMessage
(
"Build component"
)
@Description
(
"Name of Build component menuitem"
)
String
buildComponentMenuItem
();
...
...
@@ -2241,9 +2245,9 @@ public interface OdeMessages extends Messages {
@Description
(
""
)
String
legoMindstormsComponentPallette
();
@DefaultMessage
(
"Exte
rnal
"
)
@DefaultMessage
(
"Exte
nsion
"
)
@Description
(
""
)
String
exte
rnal
ComponentPallette
();
String
exte
nsion
ComponentPallette
();
@DefaultMessage
(
"External Components"
)
@Description
(
""
)
...
...
appinventor/appengine/src/com/google/appinventor/client/editor/youngandroid/palette/YoungAndroidPalettePanel.java
View file @
b19bcc03
...
...
@@ -32,6 +32,8 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
static
com
.
google
.
appinventor
.
client
.
Ode
.
MESSAGES
;
/**
* Panel showing Simple components which can be dropped onto the Young Android
* visual designer panel.
...
...
@@ -78,8 +80,13 @@ public class YoungAndroidPalettePanel extends Composite implements SimplePalette
VerticalPanel
categoryPanel
=
new
VerticalPanel
();
categoryPanel
.
setWidth
(
"100%"
);
categoryPanels
.
put
(
category
,
categoryPanel
);
stackPalette
.
add
(
categoryPanel
,
ComponentsTranslation
.
getCategoryName
(
category
.
getName
()));
// The production version will not include a mapping for Extension because
// only compile-time categories are included. This allows us to i18n the
// Extension title for the palette.
String
title
=
ComponentCategory
.
EXTENSION
.
equals
(
category
)
?
MESSAGES
.
extensionComponentPallette
()
:
ComponentsTranslation
.
getCategoryName
(
category
.
getName
());
stackPalette
.
add
(
categoryPanel
,
title
);
}
}
...
...
@@ -186,7 +193,7 @@ public class YoungAndroidPalettePanel extends Composite implements SimplePalette
}
private
void
initExtensionPanel
()
{
Anchor
addComponentAnchor
=
new
Anchor
(
"Import extension"
);
Anchor
addComponentAnchor
=
new
Anchor
(
MESSAGES
.
importExtensionMenuItem
()
);
addComponentAnchor
.
setStylePrimaryName
(
"ode-ExtensionAnchor"
);
addComponentAnchor
.
addClickHandler
(
new
ClickHandler
()
{
@Override
...
...
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