Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


help [How to Make a Speech Trainer]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MateeJr Gaming
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 50

PostPosted: Mon May 07, 2018 6:48 am    Post subject: help [How to Make a Speech Trainer] Reply with quote

How to make A trainer that can speak text i put
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 625

PostPosted: Mon May 07, 2018 7:14 am    Post subject: Reply with quote

check :
https://wiki.cheatengine.org/index.php?title=Lua:speak

sample :

Code:
speak("I am from Indonesia")

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
MateeJr Gaming
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 50

PostPosted: Mon May 07, 2018 7:18 am    Post subject: Reply with quote

How translate it to Indonesian?
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 15

Joined: 24 Feb 2017
Posts: 445
Location: 'Merica

PostPosted: Mon May 07, 2018 2:57 pm    Post subject: Reply with quote

https://wiki.cheatengine.org/index.php?title=Lua#Translation
https://wiki.cheatengine.org/index.php?title=Lua:translate
Code:
local t = translate
speak(t('I have the power!))


But I think you may need to look into what ever "PO" files are and use "loadPOFile" to load your translation files.

_________________
Back to top
View user's profile Send private message
MateeJr Gaming
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 50

PostPosted: Mon May 07, 2018 5:18 pm    Post subject: Reply with quote

TheyCallMeTim13 wrote:
https://wiki.cheatengine.org/index.php?title=Lua#Translation
https://wiki.cheatengine.org/index.php?title=Lua:translate
Code:
local t = translate
speak(t('I have the power!))


But I think you may need to look into what ever "PO" files are and use "loadPOFile" to load your translation files.


How to get The PO files
Thx Corroder and Wiki

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 15

Joined: 24 Feb 2017
Posts: 445
Location: 'Merica

PostPosted: Mon May 07, 2018 7:13 pm    Post subject: Reply with quote

https://en.wikipedia.org/wiki/Gettext

Example:
https://gist.github.com/bosskovic/6760785

_________________
Back to top
View user's profile Send private message
MateeJr Gaming
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 50

PostPosted: Sat May 12, 2018 7:19 pm    Post subject: Reply with quote

Thanks you very very Much Corroder and TheyCallMeTim13
You are The Best Helper

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites