Project Zomboid

Project Zomboid

Metal Scrap From Jewelry(to Nails)
Bryan 20 Mar, 2023 @ 7:05pm
Translation for the mod (Tutorial)
Topic about the translations

Hello, how are you ?!
I saw your mod and wanted to translate it into Brazilian Portuguese, but then I realized that I didn't have a translation system. So, I decided to implement one myself.

In this folder will be the files already changed with some comments in the codes explaining how it works, and I noticed that it has some bugs, which I will explain better in the topic 'Bugs': Here![www.dropbox.com]

I translated Chinese using Translate. If there are any spelling mistakes, I'm sorry.

Here are all the things I did to implement the system:
  • New folders: 'shared' and 'Translate' in the MetalScrapToNails mod;
  • Changed 'Recipe_XX.txt' files for better reading;
  • New file for the dialogs in the MetalScrapFromJewely and MetalScrapToNails mod;
  • Changed the files, both in the 'scripts' folder, for a better reading of the codes;
  • Added two new languages for both mods;
  • Changed both files in the 'client' folder of the mods and added comments in the code;
If you have any questions about the mod and how to fix the bugs, let me know, and I'll be happy to help.


I did this "translations" topic for your mod for people can send you translations. Like this, it will be more easily update the files.

Well, I did a translation for Brazilian Portuguese.
If you need help with more translations in PT-BR, I'd be glad to help you.

For those that want to translate to your language, just do replace the files according to your language and codification specific:

File with the translations in English:Here![pastebin.com]

Important: For the PT-BR language, code in ANSI so that the accent is correct!

Recipe_PTBR .txt - MetalScrapFromJewely
Recipe_PTBR = { Recipe_Get_Metal_Scrap = "Desmontar acessorios (Sucesso baseado no nível de habilidades)", Recipe_Get_Nails = "Fazer pregos (Sucesso baseado no nível de habilidades)", Recipe_Get_Paperclips = "Fazer clips de papel", }

UI_PTBR .txt
UI_PTBR = { UI_MSFJ_No_Scrap = "Não consegui nenhuma sucata de metal :/", UI_MSFJ_Got_Scrap = "Excelente! Eu consegui mais sucatas de metal :D", }

UI_PTBR .txt - MetalScrapToNails
UI_PTBR = { UI_MSFN_No_Nails = "Droga, Não consegui fazer nenhum prego :/", UI_MSFN_Got_Nails = "Excelente! Consegui fazer mais pregos :D", UI_MSFN_No_Paperclip = "Droga, Não consegui fazer nenhum clip de papel :/", UI_MSFN_Got_Paperclip = "Excelente! Consegui fazer mais clips de papel :D", }
< >
Showing 1-10 of 10 comments
AceCat  [developer] 20 Mar, 2023 @ 10:56pm 
thx bro
that's cool:steamthumbsup:
i didn't even realize:steamfacepalm:
AceCat  [developer] 21 Mar, 2023 @ 12:18am 
PTBR "Não consegui nenhuma sucata de metal :/" will lost some word when i try to save as ANSI code:lunar2019crylaughingpig:
AceCat  [developer] 21 Mar, 2023 @ 12:19am 
"N?o consegui nenhuma sucata de metal :/" :lunar2019crylaughingpig:
AceCat  [developer] 21 Mar, 2023 @ 1:20am 
if i use UTF-8 code will get "Nãfo consegui nenhuma sucata de metal :/":lunar2019crylaughingpig:
AceCat  [developer] 22 Mar, 2023 @ 2:56pm 
I add two lines of text to UI_EN.txt
The mod will now tell the player when they get the regular amount of "Nails"
(MetalScrapToNails/media/lua/shared/Translate)
UI_EN = { UI_MSFN_No_Nails = "Didn't get any Nails :/", UI_MSFN_Got_Nails = "Yeah, I got some Nails", UI_MSFN_Got_More_Nails = "Excellent! I got more Nails :D", UI_MSFN_No_Paperclip = "Didn't get any Paperclip :/", UI_MSFN_Got_Paperclip = "Yeah, I got some Paperclips", UI_MSFN_Got_More_Paperclip = "Excellent! I got more Paperclips :D", }
and i copy the word from PTBR and use translator program to create a new UI_PTBR.txt
(MetalScrapToNails/media/lua/shared/Translate)
UI_PTBR = { UI_MSFN_No_Nails = "Droga, Não consegui fazer nenhum prego :/", UI_MSFN_Got_Nails = "Consegui fazer alguns pregos", UI_MSFN_Got_More_Nails = "Excelente! Consegui fazer mais pregos :D", UI_MSFN_No_Paperclip = "Droga, Não consegui fazer nenhum clip de papel :/", UI_MSFN_Got_Paperclip = "Consegui fazer alguns clips de papel", UI_MSFN_Got_More_Paperclip = "Excelente! Consegui fazer mais clips de papel :D", }
:lunar2019crylaughingpig:i hope it will be right:lunar2019piginablanket:
Bryan 23 Mar, 2023 @ 10:49am 
Originally posted by AceCat:
I add two lines of text to UI_EN.txt
The mod will now tell the player when they get the regular amount of "Nails"
(MetalScrapToNails/media/lua/shared/Translate)
UI_EN = { UI_MSFN_No_Nails = "Didn't get any Nails :/", UI_MSFN_Got_Nails = "Yeah, I got some Nails", UI_MSFN_Got_More_Nails = "Excellent! I got more Nails :D", UI_MSFN_No_Paperclip = "Didn't get any Paperclip :/", UI_MSFN_Got_Paperclip = "Yeah, I got some Paperclips", UI_MSFN_Got_More_Paperclip = "Excellent! I got more Paperclips :D", }
and i copy the word from PTBR and use translator program to create a new UI_PTBR.txt
(MetalScrapToNails/media/lua/shared/Translate)
UI_PTBR = { UI_MSFN_No_Nails = "Droga, Não consegui fazer nenhum prego :/", UI_MSFN_Got_Nails = "Consegui fazer alguns pregos", UI_MSFN_Got_More_Nails = "Excelente! Consegui fazer mais pregos :D", UI_MSFN_No_Paperclip = "Droga, Não consegui fazer nenhum clip de papel :/", UI_MSFN_Got_Paperclip = "Consegui fazer alguns clips de papel", UI_MSFN_Got_More_Paperclip = "Excelente! Consegui fazer mais clips de papel :D", }
:lunar2019crylaughingpig:i hope it will be right:lunar2019piginablanket:
Yep, the translations are perfectly correct! :D
And I'm sorry I didn't respond to your comments above, I was trying to make some mods for the PZ, and I didn't have time to check the notifications...
AceCat  [developer] 24 Mar, 2023 @ 4:00am 
It's fine :D
I try to learn the code logic from official code
i think i have some issue in this mod, and try to fix it:lunar2019piginablanket:
Last edited by AceCat; 24 Mar, 2023 @ 4:02am
Texaliuz 17 Oct, 2023 @ 6:50am 
This would be a complete translation of the mod into Spanish, I hope you take it into account

All files must be encoded in "ANSI" yes or yes because otherwise the game will not read it correctly

The following files go in a folder within "Shared" called "Translate" and in another called "ES", it would look like "\shared\Translate\ES"

-------------------------------------------------------------------------------------------

MetalScrapFromJewely

Recipes_ES.txt

Recipe_ES = {
Recipe_Get_Metal_Scrap = "Desmontar joyas (Éxito basado en el nivel de habilidades)",
Recipe_Get_UnusableMetal = "Desmontar joyas (Chatarra)",
}

UI_ES.txt

UI_ES = { UI_MSFJ_No_Scrap = "¡Maldita sea! No recibí ningún fragmento :/", UI_MSFJ_Got_Scrap = "¡Sí, tengo algunas piezas de chatarra! :D", UI_MSFJ_No_UnusableMetal = "¡Maldición! No conseguí chatarra :/", UI_MSFJ_Got_UnusableMetal= "¡Sí, tengo algunas piezas de chatarra! :D", }

MetalScrapToNails

Recipe_ES.txt

Recipe_ES = { Recipe_Get_Nails = "Fabricar clavos (Éxito basado en el nivel de habilidades)", Recipe_Get_Paperclips = "Fabricar 3 clips de papel", }

UI_ES.txt

UI_ES = { UI_MSFN_No_Nails = "No conseguí ningún clavo :/", UI_MSFN_Got_Nails = "Sí, conseguí algunos clavos", UI_MSFN_Got_More_Nails = "¡Excelente! Conseguí más clavos :D", UI_MSFN_No_Paperclip = "No conseguí ningún clip :/", UI_MSFN_Got_Paperclip = "Sí, conseguí algunos clips", UI_MSFN_Got_More_Paperclip = "¡Excelente! Conseguí más clips :D", }
Last edited by Texaliuz; 21 Oct, 2023 @ 10:03am
Texaliuz 21 Oct, 2023 @ 9:48am 
Sorry, I learned to do translations a week ago, this was the first one and I forgot to clarify some things, I already edited the original comment with the corrections, sorry for the inconvenience
AceCat  [developer] 24 Oct, 2023 @ 6:38am 
fine, don't be guilty
i will edit it next day:lunar2019smilingpig:

Originally posted by Texaliuz:
Sorry, I learned to do translations a week ago, this was the first one and I forgot to clarify some things, I already edited the original comment with the corrections, sorry for the inconvenience
< >
Showing 1-10 of 10 comments
Per page: 1530 50