mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
use i18n resource item to replace ambiguous configuration item
This commit is contained in:
@@ -6,12 +6,18 @@ import (
|
||||
|
||||
// LocaleTextItems represents all text items need to be translated
|
||||
type LocaleTextItems struct {
|
||||
GlobalTextItems *GlobalTextItems
|
||||
DefaultTypes *DefaultTypes
|
||||
DataConverterTextItems *DataConverterTextItems
|
||||
VerifyEmailTextItems *VerifyEmailTextItems
|
||||
ForgetPasswordMailTextItems *ForgetPasswordMailTextItems
|
||||
}
|
||||
|
||||
// GlobalTextItems represents global text items need to be translated
|
||||
type GlobalTextItems struct {
|
||||
AppName string
|
||||
}
|
||||
|
||||
// DefaultTypes represents default types for the language
|
||||
type DefaultTypes struct {
|
||||
DecimalSeparator core.DecimalSeparator
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var de = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var en = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var es = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var fr = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_SPACE,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var it = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var ja = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var kn = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var ko = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var nl = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var ptBR = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_SPACE,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var ru = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_SPACE,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var th = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var tr = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var uk = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_SPACE,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var vi = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_COMMA,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_DOT,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var zhHans = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
var zhHant = &LocaleTextItems{
|
||||
GlobalTextItems: &GlobalTextItems{
|
||||
AppName: "ezBookkeeping",
|
||||
},
|
||||
DefaultTypes: &DefaultTypes{
|
||||
DecimalSeparator: core.DECIMAL_SEPARATOR_DOT,
|
||||
DigitGroupingSymbol: core.DIGIT_GROUPING_SYMBOL_COMMA,
|
||||
|
||||
Reference in New Issue
Block a user