languages

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

Wrap Languages

Adds support for multiple languages to Wrap.

For more information see the wiki or if there is a bug you would like to report or an idea to suggest you can do that here.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = English

Default language is English

View Source
var DutchTranslation = Translation{
	Language: Dutch,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.",
		"bin ", "bui ", "bin./bui ", "open ", "bin/bui ", "bi/bu ",
		"bin.", "bui.", "bin./bui.", "open.", "bin/bui.", "bi/bu.",
	},

	StageplaySceneTags: []string{
		"scene ", "scène ",
	},

	TransitionTags: []string{
		" TO:", " NAAR:",
	},

	BeginActTags: []string{
		"BEDRIJF ",
	},

	EndActTags: []string{
		"EINDE BEDRIJF ", "EINDE VAN BEDRIJF ",
	},

	More: "(MEER)",

	Contd: "(VERDER)",
}

DutchTranslation is the Dutch translation of Wrap

View Source
var EnglishTranslation = Translation{
	Language: English,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.",
	},

	StageplaySceneTags: []string{
		"scene ",
	},

	TransitionTags: []string{
		" TO:",
	},

	BeginActTags: []string{
		"ACT ",
	},

	EndActTags: []string{
		"END OF ACT ",
	},

	More: "(MORE)",

	Contd: "(CONT'D)",
}

EnglishTranslation is the English translation of Wrap

View Source
var FrenchTranslation = Translation{
	Language: French,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.",
	},

	StageplaySceneTags: []string{
		"scene ", "scène ",
	},

	TransitionTags: []string{
		" TO:", " A:", " À:",
	},

	BeginActTags: []string{
		"ACTE ",
	},

	EndActTags: []string{
		"FIN D'ACTE ", "FIN D' ACTE ",
	},

	More: "(PLUS)",

	Contd: "(SUITE)",
}

FrenchTranslation is the French translation of Wrap

View Source
var GermanTranslation = Translation{
	Language: German,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.",
		"etabl ",
		"etabl.",
	},

	StageplaySceneTags: []string{
		"szene ",
	},

	TransitionTags: []string{
		" TO:", " ZU:",
	},

	BeginActTags: []string{
		"AKT ",
	},

	EndActTags: []string{
		"ENDE DES AKTS ", "ENDE DES AKTES ",
	},

	More: "(MEHR)",

	Contd: "(FORTGES.)",
}

GermanTranslation is the German translation of Wrap

View Source
var ItalianTranslation = Translation{
	Language: Italian,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.", "i./e.",
		"d'amb ", "amb ", "int./est ", "int/est ",
		"d'amb.", "amb.", "int./est.", "int/est.",
	},

	StageplaySceneTags: []string{
		"scene ", "scena ",
	},

	TransitionTags: []string{
		" TO:", " A:",
	},

	BeginActTags: []string{
		"ATTO ",
	},

	EndActTags: []string{
		"FINE ATTO ",
	},

	More: "(SEGUE)",

	Contd: "(CONTINUA)",
}
View Source
var SpanishTranslation = Translation{
	Language: Spanish,

	SceneTags: []string{
		"int ", "ext ", "est ", "int./ext ", "int/ext ", "i/e ", "i./e ",
		"int.", "ext.", "est.", "int./ext.", "int/ext.", "i/e.", "i./e.",
	},

	StageplaySceneTags: []string{
		"scene ", "escena ",
	},

	TransitionTags: []string{
		" TO:", " A:",
	},

	BeginActTags: []string{
		"ACTO ",
	},

	EndActTags: []string{
		"FIN DE ACTO ",
	},

	More: "(MÁS)",

	Contd: "(CONTINÚA)",
}

SpanishTranslation is the Spanish translation of Wrap

Functions

This section is empty.

Types

type Language

type Language byte

Language represents a supported language

const (
	English Language = iota
	Dutch
	French
	German
	Italian
	Spanish
)

All available languages

func GetLanguage

func GetLanguage(alias string) Language

GetLanguage allows to convert aliases to a Language defaults to Default

func (Language) String

func (lang Language) String() string

String allows us to convert a Language to it's standard name, panics when language unknown

func (Language) Translation

func (lang Language) Translation() Translation

Translation gives the translation for the language, panics when no translation available

type Translation

type Translation struct {
	Language Language

	SceneTags          []string
	StageplaySceneTags []string
	TransitionTags     []string
	BeginActTags       []string
	EndActTags         []string

	More  string
	Contd string
}

Translation represents a specific transaltion of Wrap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL