File tree 3 files changed +7
-9
lines changed
plugin_examples/list_plugin/commands
3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package bluemix
3
3
import "fmt"
4
4
5
5
// 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 }
7
7
8
8
// VersionType describe version info
9
9
type VersionType struct {
Original file line number Diff line number Diff line change @@ -20,10 +20,9 @@ const (
20
20
)
21
21
22
22
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" )
27
26
)
28
27
29
28
func init () {
@@ -83,9 +82,9 @@ func Translate(loc *i18n.Localizer) TranslateFunc {
83
82
84
83
// If no message is returned we can assume that that
85
84
// 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
87
86
if msg == "" {
88
- msg = TRANSLATION_NOT_FOUND
87
+ msg = messageId
89
88
}
90
89
return msg
91
90
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package commands_test
2
2
3
3
import (
4
4
sdkmodels "github.com/IBM-Cloud/ibm-cloud-cli-sdk/bluemix/models"
5
- "github.com/IBM-Cloud/ibm-cloud-cli-sdk/i18n"
6
5
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin/pluginfakes"
7
6
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin_examples/list_plugin/api/fakes"
8
7
. "github.com/IBM-Cloud/ibm-cloud-cli-sdk/plugin_examples/list_plugin/commands"
@@ -46,7 +45,7 @@ var _ = Describe("ListCommand", func() {
46
45
It ("Should fail" , func () {
47
46
err = cmd .Run ([]string {})
48
47
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." ))
50
49
})
51
50
})
52
51
})
You can’t perform that action at this time.
0 commit comments