-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move plural conversions from loctool to ilib-tools-common (#51)
* Copied ResourceConvert functions from loctool so that they could be shared if necessary * Remove the ResourceConvert code from the loctool - left the wrapper there to convert from tools-common style of resources to loctool and vice-versa, but the contents of the code is moved to the library now - also left the tests to ensure that it is still working properly - fixed a bug in the resource conversion where it had left out the resource flavor before * Added support for nested and sequential plurals - convert nested and sequential plurals into nested plurals at the top level of the tree - support multi-key ResourcePlural instances that allow for 2 (or more!) keys for a resource
- Loading branch information
1 parent
32ac524
commit 4965315
Showing
15 changed files
with
1,767 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"ilib-tools-common": minor | ||
--- | ||
|
||
Added functions convertPluralResToICU and convertICUToPluralRes to convert | ||
ICU-style plural strings encoded in ResourceString instances into ResourcePlural | ||
instances and vice-versa |
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,6 @@ | ||
--- | ||
"loctool": patch | ||
--- | ||
|
||
Now uses ICU<->Plural conversion code from the ilib-tools-common library instead of its | ||
own implementation. This way, the code can be shared between tools. |
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
Oops, something went wrong.