Skip to content

Commit 89c7c9c

Browse files
committed
Release 1.0.15
1 parent 8ae6af2 commit 89c7c9c

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.0.15
2+
- added support for empty plural values
3+
- dependencies versions bump
4+
15
### 1.0.14
26
- fixed `IF_TAGS_ABSENT` tag escaping strategy
37

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Generation has to be invoked as additional gradle task. Java 1.8 is required.
2424
In whichever `build.gradle` file.
2525
```groovy
2626
plugins {
27-
id 'pl.droidsonroids.localization' version '1.0.14'
27+
id 'pl.droidsonroids.localization' version '1.0.15'
2828
}
2929
```
3030
Note: exact version number must be specified, `+` cannot be used as wildcard.
@@ -40,7 +40,7 @@ Note: exact version number must be specified, `+` cannot be used as wildcard.
4040
}
4141
dependencies {
4242
classpath 'com.android.tools.build:gradle:3.2.1'
43-
classpath 'pl.droidsonroids.gradle.localization:android-gradle-localization-plugin:1.0.14'
43+
classpath 'pl.droidsonroids.gradle.localization:android-gradle-localization-plugin:1.0.15'
4444
}
4545
}
4646
```

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repositories {
2323

2424
dependencies {
2525
implementation gradleApi()
26-
implementation 'org.codehaus.groovy:groovy:2.5.4'
26+
implementation 'org.codehaus.groovy:groovy:2.5.5'
2727
implementation 'org.marketcetera.fork:commons-csv:3.0.12'
2828
implementation 'org.apache.poi:poi-ooxml-schemas:4.0.1'
2929
implementation 'org.apache.poi:poi-ooxml:4.0.1'

gradle/wrapper/gradle-wrapper.jar

-551 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/groovy/pl/droidsonroids/gradle/localization/ParserEngine.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class ParserEngine {
146146
continue
147147
if (mConfig.handleEmptyTranslationsAsDefault && builder.mQualifier != mConfig.defaultColumnName)
148148
continue
149-
if (!mConfig.allowEmptyTranslations)
149+
if (!mConfig.allowEmptyTranslations && resourceType != PLURAL)
150150
throw new IllegalArgumentException("$name is not translated to locale $builder.mQualifier, row #${i + 1}")
151151
} else {
152152
if (!translatable && !mConfig.allowNonTranslatableTranslation && builder.mQualifier != mConfig.defaultColumnName)

src/test/resources/pl/droidsonroids/gradle/localization/valid.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ app ,Application, ,,false
33
cow[one] ,cow ,krowa
44
file ,File ,"Plik" ,file label ,
55
days[],monday,,,false
6-
cow[other],cows ,krowy,comment
6+
cow[few],,krowy,comment
7+
cow[other],cows,krów,comment
78
days[],tuesday,,,
89
days[],wednesday,,,
910

0 commit comments

Comments
 (0)