Skip to content

Commit 5e37146

Browse files
committed
fix I18n
1 parent c636e91 commit 5e37146

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

‎src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIRemoteControl.java‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,31 @@ protected void handleRequest() throws RequestHandlerErrorException, RequestHandl
130130
public String getPermissionMessage() {
131131
final String br = "<br />";
132132
final StringBuilder sb = new StringBuilder();
133-
sb.append(tr("Remote Control has been asked to load data from the API.")).append(" (").append(url).append(')')
134-
.append(br).append(tr("{0} will ", MapWithAIPlugin.NAME));
135-
if (Boolean.FALSE.equals(switchLayer)) {
136-
sb.append(tr("not "));
133+
134+
sb.append(tr("Remote Control has been asked to load data from the API."))
135+
.append(" (").append(url).append(')')
136+
.append(br);
137+
138+
if (Boolean.TRUE.equals(switchLayer)) {
139+
sb.append(tr("{0} will automatically switch layers.", MapWithAIPlugin.NAME));
140+
} else if (Boolean.FALSE.equals(switchLayer)) {
141+
sb.append(tr("{0} will not automatically switch layers.", MapWithAIPlugin.NAME));
137142
}
138-
sb.append(tr("automatically switch layers.")).append(br);
143+
sb.append(br);
144+
139145
if (download != null) {
140-
sb.append(tr("We will download data in ")).append(download.toBBox().toStringCSV(",")).append(br);
146+
sb.append(tr("Data will be downloaded in {0}", download.toBBox().toStringCSV(",")))
147+
.append(br);
141148
}
149+
142150
if (crop != null) {
143-
sb.append(tr("We will crop the data to ")).append(crop.toBBox().toStringCSV(",")).append(br);
151+
sb.append(tr("Data will be cropped to {0}", crop.toBBox().toStringCSV(",")))
152+
.append(br);
144153
}
145-
sb.append(tr("There is a maximum addition of {0} objects at one time", maxObj));
146-
return sb.toString();
147154

155+
sb.append(tr("There is a maximum addition of {0} objects at one time.", maxObj));
156+
157+
return sb.toString();
148158
}
149159

150160
@Override

0 commit comments

Comments
 (0)