fixed bug found on Discord

This commit is contained in:
Nicolò Santilio 2020-11-01 18:29:00 +01:00 committed by GitHub
parent 7e4e14eb0a
commit cb08651f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 7 deletions

View 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"""
1 keys en it da de ja es
2 HELLO "Hello!" "Ciao!" "Hej!" "Hallo!" "こんにちは!" "¡Hola!"
3 BYE "Bye bye!" "Ciao ciao!" "Hej hej!" "Tschüss!" "バイバイ!" "¡Adiós!"
4 GOODMORNING "Gooedmorning!" "Buongiorno!" "Gooedmorning!" "Guten Morgen!" "グーエドモーニング!" "¡Buen día!"
5 CONFIRM "Confirm this action" "Conferma questa azione" "Bekræft denne handling" "Bestätigen Sie diese Aktion" "このアクションを確認します" "Confirma esta acción"
6 CANCEL "Cancel this action" "Annulla questa azione" "Annuller denne handling" "Brechen Sie diese Aktion ab" "このアクションをキャンセルします" "Cancelar esta acción"
7 YES "Yes, please" "Sì grazie" "Ja tak" "Ja bitte" "はい、お願いします" "Sí por favor"
8 NO "No, thanks" "No grazie" "Nej tak" "Nein Danke" "結構です" "No, gracias"

View File

@ -0,0 +1,10 @@
[remap]
importer="csv"
type="TextFile"
[deps]
source_file="res://addons/file-editor/file.samples/translation.csv"
[params]

View File

@ -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"

View File

@ -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

View File

@ -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")

View File

@ -1,3 +1,4 @@
tool
extends HTTPRequest
class_name GoogleTranslateAPI

View File

@ -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)