Skip to content

Commit

Permalink
Merge pull request #693 from olekscode/master
Browse files Browse the repository at this point in the history
Fixing the bug with translator
  • Loading branch information
olekscode committed Aug 4, 2023
2 parents b844242 + 1ceab7a commit b2322ce
Show file tree
Hide file tree
Showing 15 changed files with 4,685 additions and 138 deletions.
9 changes: 9 additions & 0 deletions repository/Cormas-Core/CMAbstractTranslator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Class {
#category : #'Cormas-Core-Project'
}

{ #category : #'as yet unclassified' }
CMAbstractTranslator class >> languageName [

| className |
className := self name.

^ className copyFrom: 3 to: (className size - 10).
]

{ #category : #translations }
CMAbstractTranslator >> tAbout [

Expand Down
39 changes: 8 additions & 31 deletions repository/Cormas-Core/CMApplicationProject.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ Class {
#category : #'Cormas-Core-Project'
}

{ #category : #accessing }
CMApplicationProject class >> applicationExtension [
" See comment in #applicationExtension "

^ 'zip'
]

{ #category : #accessing }
CMApplicationProject class >> applicationName [
" Answer a <String> with receiver's name "
Expand All @@ -46,13 +39,6 @@ CMApplicationProject class >> applicationVersion [
^ GRVersion major: 0 minor: 1 revision: 0
]

{ #category : #accessing }
CMApplicationProject class >> baseDirectory [
" Answer a <FileReference> with the directory of CORMAS where projects and settings are located "

^ (FileLocator home / 'CORMAS') asFileReference
]

{ #category : #about }
CMApplicationProject class >> contributors [

Expand All @@ -63,22 +49,13 @@ CMApplicationProject class >> contributors [
<< self developerNames ]
]

{ #category : #callbacks }
CMApplicationProject class >> cormasRepository [
" Answer the receiver's CORMAS Iceberg repository "

^ IceLibgitRepository registry
detect: [ : repo | repo name asLowercase = 'cormas' ]
ifNone: [ nil ]
]

{ #category : #accessing }
CMApplicationProject class >> createUserDirectories [
" Create directories for storing CORMAS files in this system "

self baseDirectory ensureCreateDirectory.
CMGitBridge baseDirectory ensureCreateDirectory.
#(#demosPath #userProjectsPath #preferencesPath)
do: [ : pathSym | (CMGitBridge perform: pathSym) ensureCreateDirectory ]
do: [ :pathSym | (CMGitBridge perform: pathSym) ensureCreateDirectory ]
]

{ #category : #about }
Expand Down Expand Up @@ -116,7 +93,7 @@ CMApplicationProject class >> downloadString [
CMApplicationProject class >> hasUserProjects [
" Answer <true> if this system already has a directory where CORMAS projects and preferences were created "

^ self baseDirectory exists and: [
^ CMGitBridge baseDirectory exists and: [
CMGitBridge demosPath exists and: [
CMGitBridge demosPath hasFiles and: [
CMGitBridge demosPath children anySatisfy: #isZipFile ] ] ]
Expand Down Expand Up @@ -156,19 +133,19 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
{ #category : #accessing }
CMApplicationProject class >> removeUserDirectories [

self baseDirectory exists
CMGitBridge baseDirectory exists
ifFalse: [ ^ self ].
(self confirm: 'Warning: You are about to remove all directories and files under ' , self baseDirectory fullName)
ifTrue: [ self baseDirectory deleteAll ].
(self confirm: 'Warning: You are about to remove all directories and files under ' , CMGitBridge baseDirectory fullName)
ifTrue: [ CMGitBridge baseDirectory deleteAll ].

]

{ #category : #accessing }
CMApplicationProject class >> removeUserDirectoriesNoConfirmation [

self baseDirectory
CMGitBridge baseDirectory
ifFalse: [ ^ self ].
self baseDirectory deleteAll.
CMGitBridge baseDirectory deleteAll.

]

Expand Down
Loading

0 comments on commit b2322ce

Please sign in to comment.