Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/generate_resources.go')
-rw-r--r--cmd/generate_resources.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/cmd/generate_resources.go b/cmd/generate_resources.go
index 1e028a2a..b5ba050c 100644
--- a/cmd/generate_resources.go
+++ b/cmd/generate_resources.go
@@ -94,6 +94,7 @@ type translator struct {
FmtCurrencySuffix string
FmtCurrencyInPrefix bool
FmtCurrencyLeft bool
+ FmtCurrencyNegativeExists bool
FmtCurrencyNegativePrefix string
FmtCurrencyNegativeSuffix string
FmtCurrencyNegativeInPrefix bool
@@ -167,11 +168,6 @@ func main() {
fmt.Println("Writing Data:", trans.Locale)
- if trans.Locale == "en" {
- fmt.Println("\t", trans.CurrencyNumberFormat)
- fmt.Println("\t", trans.NegativeCurrencyNumberFormat)
- }
-
if err = os.MkdirAll(fmt.Sprintf(locDir, trans.Locale), 0777); err != nil {
log.Fatal(err)
}
@@ -585,6 +581,8 @@ func parseCurrencyNumberFormat(trans *translator) {
return
}
+ trans.FmtCurrencyNegativeExists = true
+
for idx = 0; idx < len(trans.NegativeCurrencyNumberFormat); idx++ {
if trans.NegativeCurrencyNumberFormat[idx] == '#' || trans.NegativeCurrencyNumberFormat[idx] == '0' {