Тёмный

Localize your game in Godot 4 - SUPER EASY! 

Whiskeybarrel Studios
Подписаться 11 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@Smaxx
@Smaxx Год назад
Also noteworthy: Godot's UI system has translation support built-in directly (and its enabled by default), so you shouldn't even have to call `tr()` manually. In your example, you set the text of Label1 to "HELLO" and leave it like that. Godot will automatically pull the English/French/German/Whatever string with the ID "HELLO" and place it in there as soon as you select a language/locale. Same applies to the buttons, too. Only if your string handling is in code (e.g. to use placeholders), you'll have to call `tr()`.
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
Great advice, maestro ! I'll test that out!
@nathanbanks2354
@nathanbanks2354 Год назад
@@whiskeybarrelstudios This works. I had to rewrite one of the labels for it to refresh. Reloading the scene with reload_current_scene() failed, but rewriting one label $MyLabel.text = $MyLabel.text was enough to cause *_everything_* in the scene to change language. The act of setting the label to the same value (ie. the ID like "HELLO") forced Godot to reload its translation system. I guess we only need this sort of thing on the page where the language can be chosen. I'll probably make my labels a capitalized version of the English text so it looks the same size in the editor but it's easy to see if something hasn't been translated by testing the game. It's nice to see people using Godot 4. Thanks for the video & comment!
@choppingslime
@choppingslime 13 дней назад
Wow this is such a great video! You explained everything simply and with great detail😊
@whiskeybarrelstudios
@whiskeybarrelstudios 13 дней назад
Hey , I'm glad it was helpful! Good luck in localising your game.
@doommetalgames666
@doommetalgames666 5 месяцев назад
Great timely video for me - was working on a game that I thought was 'feature' complete - just need to work on content and realized I had forgotten localization! Fortunately since much of the content is not churned out at this point it was fairly easy to implement - great video thanks.
@whiskeybarrelstudios
@whiskeybarrelstudios 5 месяцев назад
Glad it was helpful! Localisation in Godot is one of those things that can sound intimidating but if you set it up early, can be really easy !
@antonlytvynenko
@antonlytvynenko Год назад
Thank you Oliver, as always. Education is always welcome. Seen a tiny bit of your project in Godot in one of the recent dev logs, seems tidy and more organized than some of your flash ones lol Would be useful to know how you go about it, stuff like signals manager, what overall structure you try to stick with, etc. Thank you and good luck with Gorgon Shield!
@contentatogames
@contentatogames 23 дня назад
Great straightforward tutorial. Thanks! :D
@DaniDanieRay
@DaniDanieRay Год назад
This is exactly what I was looking for. Thanks!
@xcoder2205
@xcoder2205 Год назад
That was very helpful, I will reprint your video to help more people, thank you
@hawkgamedev
@hawkgamedev Год назад
this is amazing thank you!
@pewweper8059
@pewweper8059 Год назад
Finally I got it working, thank you.
@troyootipep5
@troyootipep5 Год назад
Super nice! I'd like to see how you do online feature or even multiplayer in Godot soon
@mrdarmac
@mrdarmac Год назад
That was very helpful, thanks!
@Smaxx
@Smaxx Год назад
For a tool: Make the spreadsheet readable by anyone (you've still got the URL itself as a kind of secret), then copy that link from the Download menu and create a small batch file or shell script calling something as trivial as `curl yoururl > targetfile` and you only have to double-click to download. I'm typing this from memory, but I think that's all it takes! (You can obviously do the same with authentication, but that does take more work.) [ *Edit:* Anyone wanting to try this, check Nathan's reply.]
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
OH wow - fantastic, I will definitely look into this, would make things even easier being able to automate that.
@nathanbanks2354
@nathanbanks2354 Год назад
I couldn't right-click or alt-click the download CSV button, but I found you can replace the "/edit" at the end of the URL with "/gviz/tq?tq=select%20*&tqx=out:csv" which selects all rows and converts it to a CSV.
@Smaxx
@Smaxx Год назад
@@nathanbanks2354 Yeah, that might actually have been the right approach now. Haven't done it for ages! :)
@mrussogamedev
@mrussogamedev 5 месяцев назад
Thanks man!
@peterhamsterhotdog613
@peterhamsterhotdog613 6 месяцев назад
Ey i just started using Godot awesome!
@whiskeybarrelstudios
@whiskeybarrelstudios 5 месяцев назад
It's an awesome engine! Best of luck with your game dev in it.
@Asilhan
@Asilhan 7 месяцев назад
Isn't that fat wizard boy from sword and sandals series?
@whiskeybarrelstudios
@whiskeybarrelstudios 7 месяцев назад
You have keen eyes! It is indeed the LFK!
@DestusG
@DestusG 8 месяцев назад
Thanks for this really greatful
@whiskeybarrelstudios
@whiskeybarrelstudios 8 месяцев назад
Hey, I'm glad it was useful - one of things that once you know how to do, can really help your game
@DestusG
@DestusG 8 месяцев назад
@@whiskeybarrelstudios yeah. I'm really grateful for seeing this video so I can start implementing it early
@asyc4187
@asyc4187 8 месяцев назад
Hi. I stopped making games after 2014 because Flash lose its popularity but i wanna come back after ten years. Do u suggest godot for a old flash developer? Thx
@whiskeybarrelstudios
@whiskeybarrelstudios 8 месяцев назад
For sure - I honestly highly recommend it. I tried Unity for a few years but Godot just felt like a really natural successor to Flash. The Node system feels a lot like using MovieClips and there's just a general 'lightweight' approach to everything you do with it. I love it ! Good luck with your return to game dev.
@MazinBander-lm7lq
@MazinBander-lm7lq Год назад
Is the sword and sandals 3 remake a redux version like your own remakes?(also new year is a few months away so get to working soon!)
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
It would be based on the Immortals engine but to be honest I don't think there will be a new S&S game for quite some time
@tientrin
@tientrin Год назад
Why S&S Pirate don't have Campaign mode like S&S Crusader ?
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
In the end I just ran out of time on the game and had to move onto other projects.
@ConradProteus
@ConradProteus Год назад
GJ !
@Polish_Guy77
@Polish_Guy77 11 месяцев назад
Hi, I have one question can you add sword and sandals Classic on ps 4 and ps 5?
@whiskeybarrelstudios
@whiskeybarrelstudios 11 месяцев назад
I wish I could've done that! Unfortunately the tech the games were made in don't allow me to port to consoles.
@MazinBander-lm7lq
@MazinBander-lm7lq Год назад
Interesting. So you made some of the games in godot?
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
Swords and Sandals Immortals, released earlier this year, was made in Godot. Also my latest game , Gorgon Shield - done in Godot 4 , due out in roughly April .
@jsgb405
@jsgb405 Год назад
¿What about spanish or portugueses?
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
Just about any language is possible - you just need the corresponding language code. es for spanish, pt for portuguese. (If you google 'country language code' you can find the one you're after).
@jsgb405
@jsgb405 Год назад
@@whiskeybarrelstudios only problem is with translation because some worlds of that languange (when translated) in a wrong way without knowing the context of that world.
@Smaxx
@Smaxx Год назад
The system always loads the closest matching language it can find. For example, you can translate everything for the language code "pt" to cover Portuguese. But if there's a string that should be different for Brazilian Portuguese, you can also define "pt-BR" that will only include the differences compared to European Portuguese. Now when you actually play in Brazilian Portuguese, it will look up all translations in "pt-BR" and if it can't find something, it will look in "pt" (and if that's missing, too, it will look in "en"). There's no artifical limitation. You can use/define any language code you want as far as I know.
@jsgb405
@jsgb405 Год назад
@@Smaxx and what about,¿spanish from south america?.
@Smaxx
@Smaxx Год назад
@@jsgb405 There's no real difference. You could just put localized differences into "es-GT", "es-HN", "es-MX", etc. and it would pick the right one, if the developers provide the necessary language selection (let's say you pick Honduran(?) Spanish, the game would load stuff from "es-HN" and everything else from "es", followd by "en"). There's no limitation to this.
@Baelfyr
@Baelfyr Год назад
While the tutorial of how to add languages into a game is great, simple translation using google is often not correct and conversational language can be different than strictly translating word for word. It might be helpful to have everything you want to translate in a spreadsheet, and hire a translator or see if any volunteers can then add in their language based on the english version.
@whiskeybarrelstudios
@whiskeybarrelstudios Год назад
Yeah I agree , I'm definitely not endorsing using Google Translate or similar to do your translations - you can pass translators the link to your spreadsheet and have them enter the text based on your original language text.
@rohithreddy75
@rohithreddy75 2 месяца назад
0:02 please avoid these unnecessary sounds
@whiskeybarrelstudios
@whiskeybarrelstudios 2 месяца назад
Never !
Далее
SECURE saving with Encryption in Godot 4!
18:11
Просмотров 20 тыс.
HTML and CSS-only Form Validation
25:02
Просмотров 52
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
Godot 4 - Tiled Dungeon Environment From Scratch
26:24
Просмотров 432 тыс.
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 404 тыс.
Localization in Godot 4 with POT - gettext
13:43
Просмотров 1,7 тыс.
Godot Ocean Waves
6:40
Просмотров 10 тыс.
Using Composition to Make More Scalable Games in Godot
10:13
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 660 тыс.
Tierlisting the BEST (and worst) GAME ENGINES
33:51
Просмотров 234 тыс.
Do THIS Before You Publish Your Godot Game
3:33
Просмотров 180 тыс.
C# is BETTER than GDScript but...
5:13
Просмотров 29 тыс.
Translation & Localization for your Game
12:45
Просмотров 2,6 тыс.