This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Huang
committed
Feb 11, 2014
1 parent
77b9898
commit c4b2596
Showing
4 changed files
with
52 additions
and
44 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
18 changes: 18 additions & 0 deletions
18
functional-test/src/main/java/org/zanata/page/webtrans/Plurals.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,18 @@ | ||
package org.zanata.page.webtrans; | ||
|
||
public enum Plurals { | ||
// source plural forms | ||
SourceSingular(0), SourcePlural(1), | ||
// target plural forms | ||
TargetSingular(0), TargetPluralOne(1), TargetPluralTwo(2), | ||
TargetPluralThree(3), TargetPluralFour(4), TargetPluralFive(5); | ||
private final int index; | ||
|
||
Plurals(int index) { | ||
this.index = index; | ||
} | ||
|
||
int index() { | ||
return index; | ||
} | ||
} |
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