Skip to content

Commit 9467f42

Browse files
committed
organize imports in Ru test and fixed Slavic Russian spelling
1 parent 2a1bf03 commit 9467f42

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

‎core/src/main/java/org/ocpsoft/prettytime/i18n/Resources_ru.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public String decorateUnrounded(Duration duration, String time) {
145145
} else if (t instanceof Hour) {
146146
return new TimeFormatAided("час", "часа", "часов");
147147
} else if (t instanceof Millennium) {
148-
return new TimeFormatAided("тысячелетие", "тысячелетия", "тысячилетий");
148+
return new TimeFormatAided("тысячелетие", "тысячелетия", "тысячелетий");
149149
} else if (t instanceof Millisecond) {
150-
return new TimeFormatAided("миллисекунду", "миллисекунды", "миллесекунд");
150+
return new TimeFormatAided("миллисекунду", "миллисекунды", "миллисекунд");
151151
} else if (t instanceof Minute) {
152152
return new TimeFormatAided("минуту", "минуты", "минут");
153153
} else if (t instanceof Month) {

‎core/src/test/java/org/ocpsoft/prettytime/PrettyTimeI18n_RU_Test.java‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
package org.ocpsoft.prettytime;
22

3-
import org.junit.After;
4-
import org.junit.Before;
5-
import org.junit.Test;
6-
import org.ocpsoft.prettytime.impl.ResourcesTimeFormat;
7-
import org.ocpsoft.prettytime.impl.ResourcesTimeUnit;
8-
import org.ocpsoft.prettytime.units.*;
3+
import static org.junit.Assert.assertEquals;
94

105
import java.text.SimpleDateFormat;
116
import java.util.Date;
127
import java.util.Locale;
138

14-
import static org.junit.Assert.assertEquals;
15-
import static org.junit.Assert.fail;
9+
import org.junit.After;
10+
import org.junit.Before;
11+
import org.junit.Test;
1612

1713
/**
1814
* Created with IntelliJ IDEA.

0 commit comments

Comments
 (0)