Skip to content

Commit

Permalink
Merge pull request #26 from EthanGrahn/feat/base-lang
Browse files Browse the repository at this point in the history
Fix issues with base language
  • Loading branch information
EthanGrahn authored Feb 21, 2024
2 parents c01c485 + 809198f commit 284a11f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/localization_editor_plugin_g3/Dock.gd
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func _on_EditMenu_id_pressed(id:int) -> void:
func _on_HelpMenu_id_pressed(id:int) -> void:
match id:
1:
OS.shell_open("https://ko-fi.com/Post/How-to-use-Localization-Editor-V7V7GF7GH")
OS.shell_open("https://github.com/EthanGrahn/godot-localization-editor?tab=readme-ov-file#usage-guide")
2:
# credits
get_node("%WindowDialogCredits").popup_centered()
Expand Down
2 changes: 1 addition & 1 deletion addons/localization_editor_plugin_g3/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Godot Localization Editor"
description="Tool for managing Godot localization files."
author="Ethan Grahn"
version="1.0"
version="1.1"
script="plugin.gd"
5 changes: 3 additions & 2 deletions addons/localization_editor_plugin_g3/preference_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ func _save_and_close() -> void:
preferences.append(_make_preference("f_cell", _first_cell.text))
preferences.append(_make_preference("delimiter", _delimiter.text))
# end TODO
preferences.append(_make_preference("user_ref_lang", _ref_lang.get_item_text(_ref_lang.get_selected_id())))
var ref_lang: String = _ref_lang.get_item_text(_ref_lang.get_selected_id()).split(", ")[1]
preferences.append(_make_preference("user_ref_lang", ref_lang))
preferences.append(_make_preference("reopen_last_file", _reopen_file.button_pressed))

preferences_updated.emit(preferences)
Expand All @@ -31,6 +32,6 @@ func _save_and_close() -> void:
func set_defaults(config: ConfigFile) -> void:
var ref_lang: String = config.get_value("main", "user_ref_lang", "en")
for i in range(0, _ref_lang.item_count):
if _ref_lang.get_item_text(i).split(', ')[1] == ref_lang:
if _ref_lang.get_item_text(i).split(", ")[1] == ref_lang:
_ref_lang.select(i)
break

0 comments on commit 284a11f

Please sign in to comment.