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 = {}
|
||||
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
|
||||
|
|
@ -22,6 +22,7 @@ config/icon="res://icon.png"
|
|||
|
||||
G="*res://scenes/GLOBAL.gd"
|
||||
DebugMenu="*res://addons/debug_menu/debug_menu.tscn"
|
||||
LocalizationManager="*res://addons/localization_editor/LocalizationManager.gd"
|
||||
|
||||
[display]
|
||||
|
||||
|
|
@ -38,7 +39,7 @@ version_control/autoload_on_startup=true
|
|||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PackedStringArray("res://addons/debug_menu/plugin.cfg")
|
||||
enabled=PackedStringArray("res://addons/debug_menu/plugin.cfg", "res://addons/gdLinter/plugin.cfg", "res://addons/localization_editor/plugin.cfg")
|
||||
|
||||
[global_group]
|
||||
|
||||
|
|
@ -119,7 +120,7 @@ fullscreen={
|
|||
locale/translation_remaps={
|
||||
"res://Assets/Icons/Dollar.png": PackedStringArray("res://Assets/Icons/Dollar.png:en", "res://Assets/Icons/Euro.png:de_DE")
|
||||
}
|
||||
locale/translations=PackedStringArray("res://translations/translations.de.translation", "res://translations/translations.en.translation")
|
||||
locale/translations=PackedStringArray("res://localization/localizations.de.translation", "res://localization/localizations.en.translation")
|
||||
|
||||
[layer_names]
|
||||
|
||||
|
|
@ -172,6 +173,11 @@ avoidance/layer_10="Entity"
|
|||
avoidance/layer_11="Player"
|
||||
avoidance/layer_12="Enemy"
|
||||
|
||||
[localization_editor]
|
||||
|
||||
locales_path_to_file="res://localization/localizations.csv"
|
||||
translations_save_auth=false
|
||||
|
||||
[physics]
|
||||
|
||||
common/physics_jitter_fix=1.0
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
,exobyt,exobyt-endeavour,15.09.2024 02:07,file:///home/exobyt/.config/libreoffice/4;
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="csv_translation"
|
||||
type="Translation"
|
||||
uid="uid://bmg2efydag08g"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://translations/translations.de.translation", "res://translations/translations.en.translation"]
|
||||
|
||||
source_file="res://translations/translations.csv"
|
||||
dest_files=["res://translations/translations.de.translation", "res://translations/translations.en.translation"]
|
||||
|
||||
[params]
|
||||
|
||||
compress=true
|
||||
delimiter=0
|
||||
Loading…
Add table
Add a link
Reference in a new issue