Skip to content

Commit

Permalink
Merge branch 'rc6'
Browse files Browse the repository at this point in the history
  • Loading branch information
plastboks committed May 19, 2015
2 parents 2e7966d + bbaf070 commit bf3b4e0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions languages/lang.eng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<string name="vehicle_registration_error">Invalid date.</string>
<string name="vehicle_horse_power">Horse power</string>
<string name="vehicle_horse_power_error">Must contain only numbers</string>
<string name="owner_error">Owner contain between 2 and 8 characters</string>
<string name="view_customer">View customer</string>

<!-- insurance -->
Expand Down
1 change: 1 addition & 0 deletions languages/lang.it.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<string name="vehicle_registration_error">Data non valida</string>
<string name="vehicle_horse_power">Cavalli di potenza</string>
<string name="vehicle_horse_power_error">Cavalli di potenza deve contere solo cifre</string>
<string name="owner_error">Proprietario deve contenere tra i 2 e gli 20 caratteri</string>
<string name="view_customer">Mostra cliente</string>

<!-- insurance -->
Expand Down
1 change: 1 addition & 0 deletions languages/lang.nor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<string name="vehicle_registration_error">Ugyldig dato</string>
<string name="vehicle_horse_power">Hestekrefter</string>
<string name="vehicle_horse_power_error">Hestekrefter kan bare inneholde tall</string>
<string name="owner_error">Eier må innehold mellom 2 og 20 tegn</string>
<string name="view_customer">Vis kunde</string>

<!-- insurance -->
Expand Down
2 changes: 2 additions & 0 deletions src/main/controller/adapter/insurance/CarAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ private void initNodes()
owner = new FormValueNode.Builder(Loc.c("owner"))
.value(getEditMode() ? getInsurance().getOwner() : "")
.regex(StringMatcher.getBaseString())
.error(Loc.c("owner_error"))
.required(false)
.build();

registration = new FormDateNode.Builder(Loc.c("vehicle_registration"),
Expand Down

0 comments on commit bf3b4e0

Please sign in to comment.