-
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.
Add test to avoid empty drop creation
Given a repository in which only some (but not all) locales are fully translated, when drop export is triggered specifying only locales which are fully translated, drop should not be created (because it would be empty). This is a test for fix 88f3b06.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
.../DropExportCommandTest/exportSelectFullyTranslatedLocales/input/source/source-xliff.xliff
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0"> | ||
<file original="" source-language="en" datatype="x-undefined"> | ||
<body> | ||
<trans-unit id="" resname="100_character_description_" datatype="php"> | ||
<source>100 character description:</source> | ||
</trans-unit> | ||
<trans-unit id="" resname="15_min_duration" datatype="x-javascript+php"> | ||
<source>15 min</source> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_day_duration" datatype="x-javascript+php"> | ||
<source>1 day</source> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_hour_duration" datatype="x-javascript+php"> | ||
<source>1 hour</source> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_month_duration" datatype="x-javascript+php"> | ||
<source>1 month</source> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
31 changes: 31 additions & 0 deletions
31
...ommandTest/exportSelectFullyTranslatedLocales/input/translations/source-xliff_fr-FR.xliff
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0"> | ||
<file original="" source-language="en" target-language="fr-FR" datatype="x-undefined"> | ||
<body> | ||
<trans-unit id="" resname="100_character_description_" datatype="php"> | ||
<source>100 character description:</source> | ||
<target>Description de 100 caractères :</target> | ||
</trans-unit> | ||
<trans-unit id="" resname="15_min_duration" datatype="x-javascript+php"> | ||
<source>15 min</source> | ||
<target>15 min</target> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_day_duration" datatype="x-javascript+php"> | ||
<source>1 day</source> | ||
<target>1 jour</target> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_hour_duration" datatype="x-javascript+php"> | ||
<source>1 hour</source> | ||
<target>1 heure</target> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
<trans-unit id="" resname="1_month_duration" datatype="x-javascript+php"> | ||
<source>1 month</source> | ||
<target>1 mois</target> | ||
<note>File lock dialog duration</note> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |