mirror of
https://github.com/Relintai/godot-engine.file-editor.git
synced 2024-11-12 22:27:22 +01:00
fixed bug found on Discord
This commit is contained in:
parent
7e4e14eb0a
commit
cb08651f2f
8
addons/file-editor/file.samples/translation.csv
Normal file
8
addons/file-editor/file.samples/translation.csv
Normal file
@ -0,0 +1,8 @@
|
||||
keys;en;it;da;de;ja;es
|
||||
HELLO;"""Hello!""";"""Ciao!""";"""Hej!""";"""Hallo!""";"""こんにちは!""";"""¡Hola!"""
|
||||
BYE;"""Bye bye!""";"""Ciao ciao!""";"""Hej hej!""";"""Tschüss!""";"""バイバイ!""";"""¡Adiós!"""
|
||||
GOODMORNING;"""Gooedmorning!""";"""Buongiorno!""";"""Gooedmorning!""";"""Guten Morgen!""";"""グーエドモーニング!""";"""¡Buen día!"""
|
||||
CONFIRM;"""Confirm this action""";"""Conferma questa azione""";"""Bekræft denne handling""";"""Bestätigen Sie diese Aktion""";"""このアクションを確認します""";"""Confirma esta acción"""
|
||||
CANCEL;"""Cancel this action""";"""Annulla questa azione""";"""Annuller denne handling""";"""Brechen Sie diese Aktion ab""";"""このアクションをキャンセルします""";"""Cancelar esta acción"""
|
||||
YES;"""Yes, please""";"""Sì grazie""";"""Ja tak""";"""Ja bitte""";"""はい、お願いします""";"""Sí por favor"""
|
||||
NO;"""No, thanks""";"""No grazie""";"""Nej tak""";"""Nein Danke""";"""結構です""";"""No, gracias"""
|
|
10
addons/file-editor/file.samples/translation.csv.import
Normal file
10
addons/file-editor/file.samples/translation.csv.import
Normal file
@ -0,0 +1,10 @@
|
||||
[remap]
|
||||
|
||||
importer="csv"
|
||||
type="TextFile"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/file-editor/file.samples/translation.csv"
|
||||
[params]
|
||||
|
@ -6,4 +6,4 @@ sample.html="res://addons/file-editor/file.samples/sample.html"
|
||||
sample.ini="res://addons/file-editor/file.samples/sample.ini"
|
||||
sample.md="res://addons/file-editor/file.samples/sample.md"
|
||||
sample.txt="res://addons/file-editor/file.samples/sample.txt"
|
||||
translation_example2.csv="res://translation_example2.csv"
|
||||
translation.csv="res://addons/file-editor/file.samples/translation.csv"
|
||||
|
@ -432,7 +432,6 @@ custom_icons/checked = SubResource( 28 )
|
||||
custom_icons/unchecked = SubResource( 30 )
|
||||
|
||||
[node name="EditDialog" type="AcceptDialog" parent="."]
|
||||
visible = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
|
@ -2,6 +2,8 @@ tool
|
||||
extends Control
|
||||
class_name CSVEditor
|
||||
|
||||
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
|
||||
|
||||
onready var Columns : HBoxContainer = $Container/Scroll/Columns
|
||||
onready var _column_head : VBoxContainer = Columns.get_node("_COLUMN_HEAD")
|
||||
onready var _row_label : Label = _column_head.get_node("1")
|
||||
|
@ -1,3 +1,4 @@
|
||||
tool
|
||||
extends HTTPRequest
|
||||
class_name GoogleTranslateAPI
|
||||
|
||||
|
@ -1,22 +1,17 @@
|
||||
tool
|
||||
extends EditorPlugin
|
||||
|
||||
#var doc = preload("../scenes/FileEditor.tscn")
|
||||
|
||||
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
|
||||
|
||||
var FileEditor
|
||||
|
||||
func _enter_tree():
|
||||
add_autoload_singleton("IconLoader","res://addons/file-editor/scripts/IconLoader.gd")
|
||||
add_autoload_singleton("LastOpenedFiles","res://addons/file-editor/scripts/LastOpenedFiles.gd")
|
||||
FileEditor = preload("../scenes/FileEditor.tscn").instance()
|
||||
get_editor_interface().get_editor_viewport().add_child(FileEditor)
|
||||
FileEditor.hide()
|
||||
|
||||
func _exit_tree():
|
||||
# FileEditor.clean_editor()
|
||||
remove_autoload_singleton("IconLoader")
|
||||
remove_autoload_singleton("LastOpenedFiles")
|
||||
get_editor_interface().get_editor_viewport().remove_child(FileEditor)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user