1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Use American English spelling for "Center Canvas" to make it more consistent with the rest of the application

This commit is contained in:
Emmanouil Papadeas 2024-10-17 13:46:18 +03:00
parent c83680183b
commit 120bd9a7df
4 changed files with 10 additions and 6 deletions

View file

@ -220,6 +220,10 @@ msgstr ""
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#. An option in the View menu. When selected, the canvas is being placed on the center of the screen.
msgid "Center Canvas"
msgstr ""
msgid "Tile Mode" msgid "Tile Mode"
msgstr "" msgstr ""

View file

@ -903,7 +903,7 @@ previous_project={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194306,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":true,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194306,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
] ]
} }
centre_canvas={ center_canvas={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":67,"physical_keycode":0,"key_label":0,"unicode":67,"location":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":true,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":67,"physical_keycode":0,"key_label":0,"unicode":67,"location":0,"echo":false,"script":null)
] ]

View file

@ -27,7 +27,7 @@ enum FileMenu { NEW, OPEN, OPEN_LAST_PROJECT, RECENT, SAVE, SAVE_AS, EXPORT, EXP
enum EditMenu { UNDO, REDO, COPY, CUT, PASTE, PASTE_IN_PLACE, DELETE, NEW_BRUSH, PREFERENCES } enum EditMenu { UNDO, REDO, COPY, CUT, PASTE, PASTE_IN_PLACE, DELETE, NEW_BRUSH, PREFERENCES }
## Enumeration of items present in the View Menu. ## Enumeration of items present in the View Menu.
enum ViewMenu { enum ViewMenu {
CENTRE_CANVAS, CENTER_CANVAS,
TILE_MODE, TILE_MODE,
TILE_MODE_OFFSETS, TILE_MODE_OFFSETS,
GREYSCALE_VIEW, GREYSCALE_VIEW,
@ -751,7 +751,7 @@ func _initialize_keychain() -> void:
&"palettize": Keychain.InputAction.new("", "Effects menu", true), &"palettize": Keychain.InputAction.new("", "Effects menu", true),
&"pixelize": Keychain.InputAction.new("", "Effects menu", true), &"pixelize": Keychain.InputAction.new("", "Effects menu", true),
&"posterize": Keychain.InputAction.new("", "Effects menu", true), &"posterize": Keychain.InputAction.new("", "Effects menu", true),
&"centre_canvas": Keychain.InputAction.new("", "View menu", true), &"center_canvas": Keychain.InputAction.new("", "View menu", true),
&"mirror_view": Keychain.InputAction.new("", "View menu", true), &"mirror_view": Keychain.InputAction.new("", "View menu", true),
&"show_grid": Keychain.InputAction.new("", "View menu", true), &"show_grid": Keychain.InputAction.new("", "View menu", true),
&"show_pixel_grid": Keychain.InputAction.new("", "View menu", true), &"show_pixel_grid": Keychain.InputAction.new("", "View menu", true),

View file

@ -206,7 +206,7 @@ func _setup_edit_menu() -> void:
func _setup_view_menu() -> void: func _setup_view_menu() -> void:
# Order as in Global.ViewMenu enum # Order as in Global.ViewMenu enum
var view_menu_items := { var view_menu_items := {
"Centre Canvas": "centre_canvas", "Center Canvas": "center_canvas",
"Tile Mode": "", "Tile Mode": "",
"Tile Mode Offsets": "", "Tile Mode Offsets": "",
"Grayscale View": "", "Grayscale View": "",
@ -227,7 +227,7 @@ func _setup_view_menu() -> void:
_setup_snap_to_submenu(item) _setup_snap_to_submenu(item)
elif item == "Tile Mode Offsets": elif item == "Tile Mode Offsets":
view_menu.add_item(item, i) view_menu.add_item(item, i)
elif item == "Centre Canvas": elif item == "Center Canvas":
_set_menu_shortcut(view_menu_items[item], view_menu, i, item) _set_menu_shortcut(view_menu_items[item], view_menu, i, item)
else: else:
_set_menu_shortcut(view_menu_items[item], view_menu, i, item, true) _set_menu_shortcut(view_menu_items[item], view_menu, i, item, true)
@ -602,7 +602,7 @@ func edit_menu_id_pressed(id: int) -> void:
func view_menu_id_pressed(id: int) -> void: func view_menu_id_pressed(id: int) -> void:
match id: match id:
Global.ViewMenu.CENTRE_CANVAS: Global.ViewMenu.CENTER_CANVAS:
Global.camera.offset = Global.current_project.size / 2 Global.camera.offset = Global.current_project.size / 2
Global.ViewMenu.TILE_MODE_OFFSETS: Global.ViewMenu.TILE_MODE_OFFSETS:
_popup_dialog(get_tree().current_scene.tile_mode_offsets_dialog) _popup_dialog(get_tree().current_scene.tile_mode_offsets_dialog)