Skip to content

Commit 54cd157

Browse files
committed
fix(localization): 🐛 general translation
Refers: #5
1 parent b0b94e4 commit 54cd157

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

book/03-localization/sections/01-locale.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ include::{section-java-package}/locale/Locale_Complete.java[tag=code]
3939
- Constants -
4040
en_CA
4141
en_GB
42-
- Construtor -
42+
- Constructor -
4343
pt_BR
4444
pt_PT
4545
ca_ES_VALENCIA

book/03-localization/sections/03-date-time.asc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
=== Date and Time
55

6-
.Objetivo
6+
.Objective
77
--------------------------------------------------
88
Create and manage date- and time-based events by using LocalDate, LocalTime, LocalDateTime, Instant, Period, and Duration, including a combination of date and time in a single object.
99
--------------------------------------------------
@@ -104,7 +104,6 @@ include::{section-java-package}/datetime/localdate/LocalDate_Manipulate.java[tag
104104
+2 weeks: 2019-06-03
105105
+2 months: 2019-07-20
106106
+2 years: 2021-05-20
107-
+2 years: 2021-05-20
108107
+2 decades: 2039-05-20
109108
-2 days: 2019-05-18
110109
-2 weeks: 2019-05-06
@@ -718,11 +717,11 @@ Exception in thread "main" java.time.temporal.UnsupportedTemporalTypeException:
718717
A `Duration` is a time-based amount of time, such as seconds, minutes, or hours. For example: `2 hours, 3 minutes and 4 seconds`.
719718

720719
. The `Duration` is presented in `PTxHxMxS` format, where:
721-
* `PT` represents that it is a` Duration`.
720+
* `PT` represents that it is a `Duration`.
722721
* `xH` represents the number of hours.
723722
* `xM` represents the number of minutes.
724723
* `xS` represents the number of seconds.
725-
. Like a `Period`, when printing a` Duration` only fields with value are displayed. Empty fields are omitted.
724+
. Like a `Period`, when printing a `Duration` only fields with value are displayed. Empty fields are omitted.
726725
. You can create a `Duration` using `static` methods called `of*`.
727726
+
728727
[source,java,indent=0]

book/03-localization/sections/04-formats.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Unparseable number: "R$ 1000,05"
8686
Unparseable number: "R$ 1000,05"
8787
----
8888
+
89-
Note again that the result changes according to `Locale`. Also, it is not possible to convert the representation of the Brazilian currency with a `Locale` `en_US` or `fr_FR`.
89+
Note again that the result changes according to `Locale`. Also, it is not possible to convert the representation of the Brazilian currency with a `en_US` or `fr_FR` `Locale`.
9090

9191
. `NumberFormat` can be used to transform strings into percentages, and vice versa.
9292
+
@@ -427,7 +427,7 @@ include::{section-java-package}/formats/datetimeformatter/DateTimeFormatter_Pars
427427
2019-08-06T11:40
428428
----
429429

430-
. All methods used to `format` and` parse` can also be invoked directly in the `DateTimeFormatter` instance.
430+
. All methods used to `format` and `parse` can also be invoked directly in the `DateTimeFormatter` instance.
431431
+
432432
[source,java,indent=0]
433433
.{java-package}/formats/datetimeformatter/DateTimeFormatter_Inverted.java

src/org/j6toj8/localization/datetime/duration/Duration_BiggerValues.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public class Duration_BiggerValues {
77
public static void main(String[] args) {
88
// tag::code[]
99
System.out.println(Duration.ofMinutes(120)); // 120 minutes
10-
System.out.println(Duration.ofMinutes(121)); // 2 hours e 1 minute
11-
System.out.println(Duration.ofMinutes(119)); // 1 hour e 59 minutes
12-
System.out.println(Duration.ofSeconds(10000)); // 2 hours, 46 minutes e 40 seconds
10+
System.out.println(Duration.ofMinutes(121)); // 2 hours and 1 minute
11+
System.out.println(Duration.ofMinutes(119)); // 1 hour and 59 minutes
12+
System.out.println(Duration.ofSeconds(10000)); // 2 hours, 46 minutes and 40 seconds
1313
// end::code[]
1414
}
1515
}

src/org/j6toj8/localization/datetime/localdate/LocalDate_AdjustDifferentUnit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String[] args) {
99
// tag::code[]
1010
LocalDate localDate = LocalDate.of(2019, Month.NOVEMBER, 30);
1111
System.out.println(localDate);
12-
System.out.println(localDate.plusDays(1)); // + 1 day, turn the month
12+
System.out.println(localDate.plusDays(1)); // + 1 day, turns the month
1313
System.out.println(localDate.plusDays(32)); // + 32 days, turns the year
1414
System.out.println(localDate.plusMonths(2)); // + 2 months, turns the year
1515
// end::code[]

src/org/j6toj8/localization/datetime/localdate/LocalDate_Manipulate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public static void main(String[] args) {
1414
System.out.println("+2 weeks: " + localDate.plusWeeks(2));
1515
System.out.println("+2 months: " + localDate.plusMonths(2));
1616
System.out.println("+2 years: " + localDate.plusYears(2));
17-
System.out.println("+2 years: " + localDate.plusYears(2));
1817
System.out.println("+2 decades: " + localDate.plus(2, ChronoUnit.DECADES));
1918
System.out.println("-2 days: " + localDate.minusDays(2));
2019
System.out.println("-2 weeks: " + localDate.minusWeeks(2));

src/org/j6toj8/localization/formats/numberformat/NumberFormat_Percent2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void main(String[] args) {
1111
NumberFormat percentFormatPtBR = NumberFormat.getPercentInstance(new Locale("pt", "BR"));
1212
NumberFormat percentFormatEnUS = NumberFormat.getPercentInstance(new Locale("en", "US"));
1313

14-
// String para Percent
14+
// String to Percent
1515
String s = "80,2%";
1616

1717
try {

src/org/j6toj8/localization/locale/Locale_Complete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void main(String[] args) throws IOException {
1111
System.out.println(Locale.CANADA);
1212
System.out.println(Locale.UK);
1313

14-
System.out.println(" - Construtor - ");
14+
System.out.println(" - Constructor - ");
1515
System.out.println(new Locale("pt", "BR"));
1616
System.out.println(new Locale("pt", "PT"));
1717
System.out.println(new Locale("ca", "ES", "VALENCIA"));

0 commit comments

Comments
 (0)