Skip to content

Commit 46972d7

Browse files
authored
Merge pull request #110 from ba-st/localization_support
Localization support
2 parents 43141db + e5cc46c commit 46972d7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

source/Sagan-Core/CriteriaBasedConflictCheckingStrategy.class.st

+2-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ Class {
2323
{ #category : 'instance creation' }
2424
CriteriaBasedConflictCheckingStrategy class >> accordingTo: aBlockOrMatchingCriteria [
2525

26-
^ self
27-
accordingTo: aBlockOrMatchingCriteria
28-
explainingConflictWith: [ :objectInMemory |
29-
'Something is in conflict with <1p>' expandMacrosWith:
30-
objectInMemory ]
26+
^ self accordingTo: aBlockOrMatchingCriteria explainingConflictWith: [ :objectInMemory |
27+
'Something is in conflict with {1}' localizedWithAll: { objectInMemory printString } ]
3128
]
3229

3330
{ #category : 'instance creation' }

source/Sagan-Core/RepositoryBehavior.class.st

+7-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ RepositoryBehavior >> assertBoundariesAreValidFrom: aStartingPosition upTo: aMax
4343
{ #category : 'private - preconditions' }
4444
RepositoryBehavior >> assertIncludes: inMemoryObject [
4545

46-
AssertionChecker
47-
enforce: [ ( self countMatching: [ :objectInRepository :criteria | criteria does: objectInRepository equal: inMemoryObject ] ) strictlyPositive ]
48-
because: [ '<1p> was not found.' expandMacrosWith: inMemoryObject ]
49-
raising: ObjectNotFound
46+
AssertionChecker
47+
enforce: [
48+
( self countMatching: [ :objectInRepository :criteria |
49+
criteria does: objectInRepository equal: inMemoryObject ] ) strictlyPositive
50+
]
51+
because: [ '{1} was not found.' localizedWithAll: { inMemoryObject printString } ]
52+
raising: ObjectNotFound
5053
]
5154

5255
{ #category : 'private - preconditions' }

0 commit comments

Comments
 (0)