-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Plural Strings with the Same Name but Different Content Acros…
…s Branches Warning: this is modifying the text unit searcher to add the "branchId" to the TextUnitDTO, this will basically impact everything. Under normal circumstances, there can only be one active text unit for a given name. However, with multiple branches, it's possible to have multiple text units with the same name. While this isn't an issue for singular strings, it becomes problematic for plural strings, as we group by name when building the AndroidStringDocument. This can lead to too many or duplicated entries for one or more plural forms. To resolve this, we now include the branch ID in the group by logic. This ensures that plural strings are properly grouped, allowing for correct document generation. With the Phrase connector, each group will be clearly identified since the ID of each text unit is included in the key. For other connectors that don't use IDs, results may vary.
- Loading branch information
Showing
8 changed files
with
218 additions
and
9 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
7 changes: 7 additions & 0 deletions
7
...Test_IO/importAndroidStringsPluralWithThirdPartySync/input/source2/res/values/strings.xml
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<plurals name="plural_collaborators_other"> | ||
<item formatted="false" quantity="one">%1$,d collaborator in branch</item> | ||
<item formatted="false" quantity="other">%1$,d collaborators in branch</item> | ||
</plurals> | ||
</resources> |
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