-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/german-support
- Loading branch information
Showing
18 changed files
with
253 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sun May 31 09:50:25 CEST 2015 | ||
#Sat Sep 05 13:58:48 CEST 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
src/main/java/pl/allegro/finance/tradukisto/internal/languages/russian/RussianValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package pl.allegro.finance.tradukisto.internal.languages.russian; | ||
|
||
import pl.allegro.finance.tradukisto.internal.BaseValues; | ||
import pl.allegro.finance.tradukisto.internal.languages.GenderForms; | ||
import pl.allegro.finance.tradukisto.internal.languages.GenderType; | ||
import pl.allegro.finance.tradukisto.internal.languages.PluralForms; | ||
import pl.allegro.finance.tradukisto.internal.languages.SlavonicPluralForms; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static pl.allegro.finance.tradukisto.internal.languages.GenderForms.genderForms; | ||
import static pl.allegro.finance.tradukisto.internal.support.BaseNumbersBuilder.baseNumbersBuilder; | ||
|
||
public class RussianValues implements BaseValues { | ||
|
||
@Override | ||
public Map<Integer, GenderForms> baseNumbers() { | ||
return baseNumbersBuilder() | ||
.put(0, "ноль") | ||
.put(1, genderForms("один", "одна", "один")) | ||
.put(2, genderForms("два", "две", "два")) | ||
.put(3, "три") | ||
.put(4, "четыре") | ||
.put(5, "пять") | ||
.put(6, "шесть") | ||
.put(7, "семь") | ||
.put(8, "восемь") | ||
.put(9, "девять") | ||
.put(10, "десять") | ||
.put(11, "одиннадцать") | ||
.put(12, "двенадцать") | ||
.put(13, "тринадцать") | ||
.put(14, "четырнадцать") | ||
.put(15, "пятнадцать") | ||
.put(16, "шестнадцать") | ||
.put(17, "семнадцать") | ||
.put(18, "восемнадцать") | ||
.put(19, "девятнадцать") | ||
.put(20, "двадцать") | ||
.put(30, "тридцать") | ||
.put(40, "сорок") | ||
.put(50, "пятьдесят") | ||
.put(60, "шестьдесят") | ||
.put(70, "семьдесят") | ||
.put(80, "восемьдесят") | ||
.put(90, "девяносто") | ||
.put(100, "сто") | ||
.put(200, "двести") | ||
.put(300, "триста") | ||
.put(400, "четыреста") | ||
.put(500, "пятьсот") | ||
.put(600, "шестьсот") | ||
.put(700, "семьсот") | ||
.put(800, "восемьсот") | ||
.put(900, "девятьсот") | ||
.build(); | ||
} | ||
|
||
@Override | ||
public List<PluralForms> pluralForms() { | ||
return Arrays.<PluralForms>asList( | ||
new SlavonicPluralForms("", "", "", GenderType.MASCULINE), | ||
new SlavonicPluralForms("тысяча", "тысячи", "тысяч", GenderType.FEMININE), | ||
new SlavonicPluralForms("миллион", "миллиона", "миллионов", GenderType.MASCULINE), | ||
new SlavonicPluralForms("миллиард", "миллиарда", "миллиардов", GenderType.MASCULINE)); | ||
} | ||
|
||
@Override | ||
public String currency() { | ||
return "руб."; | ||
} | ||
|
||
@Override | ||
public char twoDigitsNumberSeparator() { | ||
return ' '; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...uages/polish/PolishPluralFormsTest.groovy → .../languages/SlavonicPluralFormsTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...st/groovy/pl/allegro/finance/tradukisto/internal/languages/polish/PolishValuesTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.