Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds improvements to localization system #58

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ We particularly welcome contributions in these areas:

## Localization

To localize GM2Godot into other languages, create a copy of the Template.json file found in the Languages folder in GM2Godot's root directory. Rename the file to the chosen language's ISO-639 (Set 1) code (for example, en for English). Refer to https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for a list of languages and their corresponding ISO-639 codes.
More information regarding localization can be found in the README section of the Template.json file.
To localize GM2Godot into other languages, create a copy of the Template.json file found in the Languages folder in GM2Godot's root directory. Rename the file to the chosen language's ISO-639 (Set 3) code (for example, eng for English). Refer to [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-3_codes) for a list of languages and their corresponding ISO-639 codes.
More information regarding localization can be found in the README section of the Template.json file ([GitHub copy](https://raw.githubusercontent.com/Infiland/GM2Godot/refs/heads/main/Languages/template.json))

## Questions or Issues?

Expand Down
2 changes: 1 addition & 1 deletion Current Language
Original file line number Diff line number Diff line change
@@ -1 +1 @@
en
eng
14 changes: 6 additions & 8 deletions Languages/en.json → Languages/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],

"Language" : "English",
"Language_Code" : "en",
"Language_Code" : "eng",
"Author" : "written by Infiland, structured by HalfofBilly",
"Version" : "1.0.0",
"Version" : "0.0.14",

"About_Title" : "About GM2Godot",
"About_Description" : "GM2Godot is a tool designed to help developers migrate their GameMaker projects to the Godot Engine.\nIt automates the conversion of various project assets and settings, making the transition smoother.",
Expand Down Expand Up @@ -47,10 +47,8 @@

"Console_Convertor_Settings" : "Updating project settings...",
"Console_Convertor_Settings_Error_yypNotFound" : "No .yyp file found in the GameMaker project folder.",
"Console_Convertor_Settings_Error_GM_FileNotFound" : "{file_path} file not found.",
"Console_Convertor_Settings_Error_yypNameNotRead" : "Error reading project name from .yyp file: {error}",
"Console_Convertor_Settings_Error_yypGeneric" : "Error reading {option_name} from {os.path.basename(file_path)}: {error}",
"Console_Convertor_Settings_Error_GD_NotFound" : "project.godot file not found in the Godot project directory.",
"Console_Convertor_Settings_Error_yypGeneric" : "Error reading {option_name} from {file_path}: {error}",
"Console_Convertor_Settings_UpdatedName" : "Updated project name to: {gm_project_name}",
"Console_Convertor_Settings_Error_Name_GM" : "Could not update project name: GameMaker project name not found.",
"Console_Convertor_Settings_Error_NameGeneric" : "Error updating project name: {error)}.",
Expand All @@ -77,22 +75,22 @@

"Console_Convertor_Tilesets" : "Converting tilesets...",
"Console_Convertor_Tilesets_Complete" : "Tileset conversion completed.",
"Console_Convertor_Tilesets_Error_NotFound" : "Tileset folder not found in {self.gm_project_path}",
"Console_Convertor_Tilesets_Error_NotFound" : "Tileset folder not found in {gm_project_path}",

"Console_Convertor_Sounds" : "Converting sounds...",
"Console_Convertor_Sounds_Converted" : "Converted: {path} -> sounds/{path}",
"Console_Convertor_Sounds_Error_NotFound" : "No sound files found in the GameMaker project.",
"Console_Convertor_Sounds_Complete" : "Sound conversion completed.",
"Console_Convertor_Sounds_Stopped" : "Sound conversion stopped.",

"Console_Convertor_Shaders_Converted" : "Converted {filename} to {output_path}",
"Console_Convertor_Shaders_Converted" : "Converted {filename} -> {output_path}",

"Console_Convertor_Notes" : "Converting notes...",
"Console_Convertor_Notes_Copied" : "Copied note: {note_name}",
"Console_Convertor_Notes_Stopped" : "Note conversion stopped.",
"Console_Convertor_Notes_Error_NotFound" : "No notes folder found in GameMaker project.",

"Icon_Error_Photoimage" : "Failed to set icon using PhotoImage: {error}",
"Icon_Error_PhotoImage" : "Failed to set icon using PhotoImage: {error}",
"Icon_Error_Linux" : "Failed to set icon on Linux: {error}",
"Icon_Error_Path" : "Failed to load icon from {icon_path}. The icon will not be displayed.",
"Icon_Error" : "Failed to load icon from {full_path}: {error}",
Expand Down
10 changes: 4 additions & 6 deletions Languages/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@

"Console_Convertor_Settings" : "Updating project settings...",
"Console_Convertor_Settings_Error_yypNotFound" : "No .yyp file found in the GameMaker project folder.",
"Console_Convertor_Settings_Error_GM_FileNotFound" : "{file_path} file not found.",
"Console_Convertor_Settings_Error_yypNameNotRead" : "Error reading project name from .yyp file: {error}",
"Console_Convertor_Settings_Error_yypGeneric" : "Error reading {option_name} from {os.path.basename(file_path)}: {error}",
"Console_Convertor_Settings_Error_GD_NotFound" : "project.godot file not found in the Godot project directory.",
"Console_Convertor_Settings_Error_yypGeneric" : "Error reading {option_name} from {file_path}: {error}",
"Console_Convertor_Settings_UpdatedName" : "Updated project name to: {gm_project_name}",
"Console_Convertor_Settings_Error_Name_GM" : "Could not update project name: GameMaker project name not found.",
"Console_Convertor_Settings_Error_NameGeneric" : "Error updating project name: {error)}.",
Expand All @@ -77,22 +75,22 @@

"Console_Convertor_Tilesets" : "Converting tilesets...",
"Console_Convertor_Tilesets_Complete" : "Tileset conversion completed.",
"Console_Convertor_Tilesets_Error_NotFound" : "Tileset folder not found in {self.gm_project_path}",
"Console_Convertor_Tilesets_Error_NotFound" : "Tileset folder not found in {gm_project_path}",

"Console_Convertor_Sounds" : "Converting sounds...",
"Console_Convertor_Sounds_Converted" : "Converted: {path} -> sounds/{path}",
"Console_Convertor_Sounds_Error_NotFound" : "No sound files found in the GameMaker project.",
"Console_Convertor_Sounds_Complete" : "Sound conversion completed.",
"Console_Convertor_Sounds_Stopped" : "Sound conversion stopped.",

"Console_Convertor_Shaders_Converted" : "Converted {filename} to {output_path}",
"Console_Convertor_Shaders_Converted" : "Converted {filename} -> {output_path}",

"Console_Convertor_Notes" : "Converting notes...",
"Console_Convertor_Notes_Copied" : "Copied note: {note_name}",
"Console_Convertor_Notes_Stopped" : "Note conversion stopped.",
"Console_Convertor_Notes_Error_NotFound" : "No notes folder found in GameMaker project.",

"Icon_Error_Photoimage" : "Failed to set icon using PhotoImage: {error}",
"Icon_Error_PhotoImage" : "Failed to set icon using PhotoImage: {error}",
"Icon_Error_Linux" : "Failed to set icon on Linux: {error}",
"Icon_Error_Path" : "Failed to load icon from {icon_path}. The icon will not be displayed.",
"Icon_Error" : "Failed to load icon from {full_path}: {error}",
Expand Down
Loading