Configured Plugins: LocalizationEditor, gdLinter
This commit is contained in:
parent
e67d9fad3c
commit
353a455243
9 changed files with 75 additions and 20 deletions
28
localization/LocalizationKeys.gd
Normal file
28
localization/LocalizationKeys.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Keys for LocalizationManger to use in source code: MIT License
|
||||
# @author Vladimir Petrenko
|
||||
@tool
|
||||
class_name LocalizationKeys
|
||||
|
||||
const PLAY = "PLAY"
|
||||
const MONEY = "MONEY"
|
||||
const RESULT = "RESULT"
|
||||
const UNDERSTOOD = "UNDERSTOOD"
|
||||
const SUCCES = "SUCCES"
|
||||
const FAILURE = "FAILURE"
|
||||
const STORMWARNING = "STORMWARNING"
|
||||
const INTRODUCTION = "INTRODUCTION"
|
||||
const WARNING = "WARNING"
|
||||
const HELP = "HELP"
|
||||
|
||||
const KEYS = [
|
||||
"PLAY",
|
||||
"MONEY",
|
||||
"RESULT",
|
||||
"UNDERSTOOD",
|
||||
"SUCCES",
|
||||
"FAILURE",
|
||||
"STORMWARNING",
|
||||
"INTRODUCTION",
|
||||
"WARNING",
|
||||
"HELP"
|
||||
]
|
||||
9
localization/LocalizationPlaceholders.gd
Normal file
9
localization/LocalizationPlaceholders.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Placeholders for LocalizationManger to use in source code: MIT License
|
||||
# @author Vladimir Petrenko
|
||||
@tool
|
||||
class_name LocalizationPlaceholders
|
||||
|
||||
|
||||
const PLACEHOLDERS = [
|
||||
|
||||
]
|
||||
6
localization/LocalizationRemaps.gd
Normal file
6
localization/LocalizationRemaps.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Remapkeys for LocalizationManger to use in source code: MIT License
|
||||
# @author Vladimir Petrenko
|
||||
@tool
|
||||
class_name LocalizationRemaps
|
||||
|
||||
const DOLLAR_PNG = "DOLLAR_PNG"
|
||||
7
localization/Placeholders.tres
Normal file
7
localization/Placeholders.tres
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_resource type="Resource" script_class="LocalizationPlaceholdersData" load_steps=2 format=3 uid="uid://c8imk4d1wyrw4"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/localization_editor/model/LocalizationPlaceholdersData.gd" id="1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
placeholders = {}
|
||||
11
localization/localizations.csv
Normal file
11
localization/localizations.csv
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
keys,de,en
|
||||
PLAY,Spielen,Play
|
||||
MONEY,Geld,Money
|
||||
RESULT,Ergebnis,Result
|
||||
UNDERSTOOD,Verstanden,Understood
|
||||
SUCCES,Erfolgreich extrahiert,Succesfully extracted
|
||||
FAILURE,Leider nicht geschafft,Lost in the Storm
|
||||
STORMWARNING,Sturm Warnung! Schnell zum Portal!,Storm Warning! Back to the Portal. NOW!
|
||||
INTRODUCTION,"Jedes Objekt was du uns zum Portal bringst, bringt dir Geld",For every Object that you bring us we wil pay you handsomely
|
||||
WARNING,"Noch ein Hinweis, es wude ein Sturm vorrausgesagt. Wir werden dich aber warnen wenn er kommt, sei dann aber schnell!","Just for Protocol, the Weather Report said there was a Storm coming. We will warn you if it is close, but be fast!"
|
||||
HELP,Hilfe,Help
|
||||
|
17
localization/localizations.csv.import
Normal file
17
localization/localizations.csv.import
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[remap]
|
||||
|
||||
importer="csv_translation"
|
||||
type="Translation"
|
||||
uid="uid://cn1jc4oehudym"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://localization/localizations.de.translation", "res://localization/localizations.en.translation"]
|
||||
|
||||
source_file="res://localization/localizations.csv"
|
||||
dest_files=["res://localization/localizations.de.translation", "res://localization/localizations.en.translation"]
|
||||
|
||||
[params]
|
||||
|
||||
compress=true
|
||||
delimiter=0
|
||||
Loading…
Add table
Add a link
Reference in a new issue