Skip to content

Commit d415846

Browse files
authored
Merge pull request #350 from IBM-Cloud/dev
Release 1.0.1
2 parents 93c7dd7 + 30cba53 commit d415846

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

bluemix/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package bluemix
33
import "fmt"
44

55
// Version is the SDK version
6-
var Version = VersionType{Major: 1, Minor: 0, Build: 0}
6+
var Version = VersionType{Major: 1, Minor: 0, Build: 1}
77

88
// VersionType describe version info
99
type VersionType struct {

i18n/i18n.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ const (
2020
)
2121

2222
var (
23-
bundle *i18n.Bundle
24-
T TranslateFunc
25-
RESOURCE_PATH = filepath.Join("i18n", "resources")
26-
TRANSLATION_NOT_FOUND = "!!i18N_MESSAGE_NOT_FOUND!!"
23+
bundle *i18n.Bundle
24+
T TranslateFunc
25+
RESOURCE_PATH = filepath.Join("i18n", "resources")
2726
)
2827

2928
func init() {
@@ -83,9 +82,9 @@ func Translate(loc *i18n.Localizer) TranslateFunc {
8382

8483
// If no message is returned we can assume that that
8584
// the translation could not be found in any of the files
86-
// Set the message as !!i18N_MESSAGE_NOT_FOUND!!
85+
// Set the message as the messageID
8786
if msg == "" {
88-
msg = TRANSLATION_NOT_FOUND
87+
msg = messageId
8988
}
9089
return msg
9190

plugin_examples/list_plugin/commands/list_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package commands_test
22

33
import (
44
sdkmodels "github.com/IBM-Cloud/ibm-cloud-cli-sdk/bluemix/models"
5-
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/i18n"
65
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin/pluginfakes"
76
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin_examples/list_plugin/api/fakes"
87
. "github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin_examples/list_plugin/commands"
@@ -46,7 +45,7 @@ var _ = Describe("ListCommand", func() {
4645
It("Should fail", func() {
4746
err = cmd.Run([]string{})
4847
Expect(err).To(HaveOccurred())
49-
Expect(err.Error()).To(Equal(i18n.TRANSLATION_NOT_FOUND))
48+
Expect(err.Error()).To(Equal("No CF API endpoint set. Use '{{.Command}}' to target a CloudFoundry environment."))
5049
})
5150
})
5251
})

0 commit comments

Comments
 (0)