Skip to content

Commit d8684ca

Browse files
authored
Merge branch 'master' into user_locales
2 parents 1fa84ce + 40da47a commit d8684ca

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

docs/_docs/guides/013-branching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ or if the source strings are changed:
169169

170170
### Branch dashboard
171171

172-
The branch dashboard is the place where developpers can check the translation status of their pull request and upload
172+
The branch dashboard is the place where developers can check the translation status of their pull request and upload
173173
screenshots for the strings that were created.
174174

175175
#### Search branches

docs/_docs/guides/open-source-contributors.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ The following requirements are needed to develop on {{ site.mojito_green }}:
1212
1. [Git](https://git-scm.com/about)
1313
2. [JDK 17](https://adoptium.net/temurin/releases/?version=17)
1414
3. [Maven](https://maven.apache.org/download.cgi), or use the project Maven wrapper `mvnw` (version `3.8`)
15-
4. Optional but highly recommanded, [MySQL 8](https://dev.mysql.com/downloads/mysql/8.html)
15+
4. Optional but highly recommended, [MySQL 8](https://dev.mysql.com/downloads/mysql/8.html)
1616

17-
Next are instructions to setup the developper environment on Mac OS and Ubuntu. Both have instructions to install
18-
`Mysql 8` that can be skipped but it is highly recommanded to work with a production like environment and persistent
17+
Next are instructions to setup the developer environment on Mac OS and Ubuntu. Both have instructions to install
18+
`Mysql 8` that can be skipped but it is highly recommended to work with a production like environment and persistent
1919
data. Note that `8` is the only version tested at the moment.
2020

2121
Skip to the [build section](#build) if you already have everything setup!
@@ -56,7 +56,7 @@ brew install [email protected]
5656
Note, to install the exact same `maven` version as the wrapper: `brew install [email protected]` (check the instructions since it is key-only) .
5757

5858

59-
### Install on Unbutu 18.4 LTS
59+
### Install on Ubuntu 18.4 LTS
6060

6161
Install `java 17` from `OpenJDK`:
6262

@@ -89,7 +89,7 @@ sudo apt-get install mysql-server
8989
## Create Mysql Databases & configuration files
9090

9191
If you've decided to use `Mysql` the server needs to be configured for better Unicode support. This section also describes
92-
how to create 2 databases along with spring configuraitons to setup 2 envrionments that will make developpment easier.
92+
how to create 2 databases along with spring configurations to setup 2 environments that will make development easier.
9393

9494
Configure the server to use `utf-8` on `4 bytes` by default by appending these configurations to
9595
`/usr/local/etc/my.cnf` file on Mac and to `/etc/mysql/my.cnf` file on Ubuntu:

webapp/src/main/java/com/box/l10n/mojito/FlyWayConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ void tryToMigrateIfMysql8Migration(Flyway flyway, FlywayException fe) {
154154
* since a failure to perform the query will show that the DB is not protected.
155155
*
156156
* <p>This is an extra check added to the settings: spring.flyway.clean-disabled=true (now default
157-
* in Mojito) and l10n.flyway.clean=false (that is usally set manualy, but can be wrongly enabled)
158-
* and shouldn't be soly relied upon.
157+
* in Mojito) and l10n.flyway.clean=false (that is usually set manually, but can be wrongly enabled)
158+
* and shouldn't be solely relied upon.
159159
*
160160
* <p>For now this is enabled manually in the database with: CREATE TABLE
161161
* flyway_clean_protection(enabled boolean default true); INSERT INTO flyway_clean_protection

webapp/src/main/java/com/box/l10n/mojito/quartz/QuartzPollableTaskScheduler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public <I, O> PollableFuture<O> scheduleJobWithCustomTimeout(
8585
* @param expectedSubTaskNumber set on the pollable task
8686
* @param triggerStartDate date at which the job should be started
8787
* @param uniqueId optional id used to generate the job keyname. If not provided the pollable task
88-
* id is used. Pollable id keeps changing, unique id can be used for recuring jobs (eg. update
89-
* stats of repositry xyz)
88+
* id is used. Pollable id keeps changing, unique id can be used for recurring jobs (eg. update
89+
* stats of repository xyz)
9090
* @param inlineInput to inline the input in quartz data or save it in the blobstorage
9191
* @param <I>
9292
* @param <O>

webapp/src/main/java/com/box/l10n/mojito/rest/asset/AssetWS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public Set<Long> getAssetIds(
434434
@RequestParam(value = "virtual", required = false) Boolean virtual,
435435
@RequestParam(value = "branchId", required = false) Long branchId) {
436436

437-
// not the best to fetch the whole asset (espcially for old one that have content, though with
437+
// not the best to fetch the whole asset (especially for old one that have content, though with
438438
// branch that
439439
// will change. Wanted to use spring project but it is not working for some reason. Since soon
440440
// asset won't have

webapp/src/main/java/com/box/l10n/mojito/service/boxsdk/BoxSDKServiceConfigEntityService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void deleteConfig()
211211
* When root folder is not provided, create the following structure inside user's root. <UserRoot>
212212
* |-> Mojito |-> Project Requests
213213
*
214-
* <p>Note: We're creating a Mojito root folder to store everythign related to Mojito because an
214+
* <p>Note: We're creating a Mojito root folder to store everything related to Mojito because an
215215
* App User can be accessible by other API keys
216216
*
217217
* <p>Note: for now, we're only creating the Project Requests (Drops) folder. Maybe later when we

webapp/src/main/java/com/box/l10n/mojito/service/repository/RepositoryService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public Repository createRepository(
159159

160160
/**
161161
* Adds the {@link com.box.l10n.mojito.entity.ScreenshotRun} that will be used to store
162-
* screenshots uploaded by developpers/manually.
162+
* screenshots uploaded by developers/manually.
163163
*
164164
* <p>This run stays with {@link ScreenshotRun#lastSuccessfulRun} set to {@code false}.
165165
*

webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/ThirdPartyService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ void uploadImageWithMappings(String projectId, Screenshot screenshot, Image imag
451451
} else {
452452
logger.debug(
453453
"No text units to be mapped so we don't upload the image (might be late to perform the mapping and/or it"
454-
+ "is not usefull to send the image)");
454+
+ "is not useful to send the image)");
455455
}
456456
}
457457

@@ -460,7 +460,7 @@ void uploadImageWithMappings(String projectId, Screenshot screenshot, Image imag
460460
*
461461
* <p>We want to upload image only if we have mapped text units (if not it is probably because the
462462
* sync is delayed or failed and so there is no point uploading the image) so we need to build
463-
* that list first eventhough the imageId is not available yet. The imageId will be set after the
463+
* that list first even though the imageId is not available yet. The imageId will be set after the
464464
* image has been uploaded
465465
*
466466
* @param screenshot

webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/ThirdPartyTMSInMemory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public List<ThirdPartyTextUnit> getThirdPartyTextUnits(
5555
projectId);
5656

5757
// TODO return empty for now but later the interface will support adding strings and so this can
58-
// retrun them
58+
// return them
5959
return Collections.emptyList();
6060
}
6161

webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/ThirdPartyTMSSmartling.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private SmartlingFile uploadTextUnitsToSmartling(
480480
file.setFileContent(writer.toText());
481481

482482
} catch (ParserConfigurationException | TransformerException e) {
483-
logger.error("An error ocurred when processing a push batch", e);
483+
logger.error("An error occurred when processing a push batch", e);
484484
throw new RuntimeException(e);
485485
}
486486

@@ -770,7 +770,7 @@ private SmartlingFile processTranslationBatch(
770770
file.setFileContent(writer.toText());
771771

772772
} catch (ParserConfigurationException | TransformerException e) {
773-
logger.error("An error ocurred when processing a push_translations batch", e);
773+
logger.error("An error occurred when processing a push_translations batch", e);
774774
throw new RuntimeException(e);
775775
}
776776

webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/smartling/SmartlingResultProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private String processAction(List<SmartlingFile> files, SmartlingOptions options
4747
"{} result for request id {} uploaded to: {}", action, options.getRequestId(), result);
4848
} catch (IOException | SdkClientException e) {
4949
String errorMessage =
50-
String.format("An error ocurred when uploading a %s result zip file", action);
50+
String.format("An error occurred when uploading a %s result zip file", action);
5151
logger.error(errorMessage, e);
5252
throw new RuntimeException(errorMessage, e);
5353
}

webapp/src/main/java/com/box/l10n/mojito/service/thirdparty/smartling/quartz/SmartlingPullLocaleFileJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ && matchesChecksumFromPreviousSync(input, localeTag, fileName, fileContent)) {
108108
try {
109109
textUnits = mapper.mapToTextUnits(AndroidStringDocumentReader.fromText(fileContent));
110110
} catch (ParserConfigurationException | IOException | SAXException e) {
111-
String msg = "An error ocurred when processing a pull batch";
111+
String msg = "An error occurred when processing a pull batch";
112112
logger.error(msg, e);
113113
throw new RuntimeException(msg, e);
114114
}

webapp/src/main/java/com/box/l10n/mojito/smartling/AssetPathAndTextUnitNameKeys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Key parse(String string) {
1717
Preconditions.checkNotNull(string);
1818
String[] split = string.split(DELIMITER, 2);
1919
if (split.length != 2) {
20-
throw new IllegalArgumentException("must contain delimter #@#");
20+
throw new IllegalArgumentException("must contain delimiter #@#");
2121
}
2222

2323
return new Key(split[0], split[1]);

webapp/src/main/java/com/box/l10n/mojito/smartling/SmartlingJsonKeys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Key parse(String string) {
1818
Preconditions.checkNotNull(string);
1919
String[] split = string.split(DELIMITER, 3);
2020
if (split.length != 3) {
21-
throw new IllegalArgumentException("must contain 2 delimters: #@#");
21+
throw new IllegalArgumentException("must contain 2 delimiters: #@#");
2222
}
2323

2424
return new Key(Long.valueOf(split[0]), split[1], split[2]);

webapp/src/main/resources/public/js/components/workbench/TextUnit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ let TextUnit = createReactClass({
827827
},
828828

829829
/**
830-
* render the source. If the source ends with a retrun line remove and
830+
* render the source. If the source ends with a return line remove and
831831
* render a return line symbol so that the user as a clue about the trailing
832832
* return line.
833833
*/

webapp/src/test/java/com/box/l10n/mojito/service/NormalizationUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void NormalizationICUvsJDK() {
2727
stopwatchICU.stop();
2828

2929
Stopwatch stopwatchJDK = Stopwatch.createStarted();
30-
// JDK can get very slow for langauge like hi-IN (ICU: PT0.043746286S , JDK:
30+
// JDK can get very slow for language like hi-IN (ICU: PT0.043746286S , JDK:
3131
// PT27.087855617S) and bn_IN (ICU: PT0.08280765S , JDK: PT3M52.119210107S)
3232
String normalize2 = Normalizer.normalize(content, Normalizer.Form.NFC);
3333
stopwatchJDK.stop();

webapp/src/test/java/com/box/l10n/mojito/service/thirdparty/smartling/SmartlingResultProcessorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void testProcessPushThrowsException() {
9797
SmartlingOptions.parseList(ImmutableList.of("dry-run=true", "request-id=" + requestId));
9898

9999
assertThatThrownBy(() -> processor.processPush(files, smartlingOptions))
100-
.hasMessageContaining("An error ocurred when uploading a push result zip file")
100+
.hasMessageContaining("An error occurred when uploading a push result zip file")
101101
.isInstanceOf(RuntimeException.class);
102102
}
103103

0 commit comments

Comments
 (0)