mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
Bumps [github.com/leonelquinteros/gotext](https://github.com/leonelquinteros/gotext) from 1.5.3-0.20230317130943-71a59c05b2c1 to 1.6.0. - [Release notes](https://github.com/leonelquinteros/gotext/releases) - [Commits](https://github.com/leonelquinteros/gotext/commits/v1.6.0) --- updated-dependencies: - dependency-name: github.com/leonelquinteros/gotext dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package gotext
|
|
|
|
// IsTranslatedIntrospector is able to determine whether a given string is translated.
|
|
// Examples of this introspector are Po and Mo, which are specific to their domain.
|
|
// Locale holds multiple domains and also implements IsTranslatedDomainIntrospector.
|
|
type IsTranslatedIntrospector interface {
|
|
IsTranslated(str string) bool
|
|
IsTranslatedN(str string, n int) bool
|
|
IsTranslatedC(str, ctx string) bool
|
|
IsTranslatedNC(str string, n int, ctx string) bool
|
|
}
|
|
|
|
// IsTranslatedDomainIntrospector is able to determine whether a given string is translated.
|
|
// Example of this introspector is Locale, which holds multiple domains.
|
|
// Simpler objects that are domain-specific, like Po or Mo, implement IsTranslatedIntrospector.
|
|
type IsTranslatedDomainIntrospector interface {
|
|
IsTranslated(str string) bool
|
|
IsTranslatedN(str string, n int) bool
|
|
IsTranslatedD(dom, str string) bool
|
|
IsTranslatedND(dom, str string, n int) bool
|
|
IsTranslatedC(str, ctx string) bool
|
|
IsTranslatedNC(str string, n int, ctx string) bool
|
|
IsTranslatedDC(dom, str, ctx string) bool
|
|
IsTranslatedNDC(dom, str string, n int, ctx string) bool
|
|
}
|