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 


cheat table,ct or ce script descriptions translate tool.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
etioplmld
Cheater
Reputation: 0

Joined: 09 Feb 2021
Posts: 28

PostPosted: Tue Jan 11, 2022 2:18 am    Post subject: cheat table,ct or ce script descriptions translate tool. Reply with quote

Batch edit cheat table descriptions to other languages
a change description lua tool,Batch edit the description .Batch modify the description of the ct,cheat table,ce script.
cheat table Translation only needs ctrl +a ,ctrl +c,ctrl +v.and google translate.
an easy way to change the ct file language to another language.
Hope someone who looking for a ct file translation tool will find this thread.

Code:

[ENABLE]
{$lua}
f = createForm(true)
f.Position=poDesktopCenter
f.Width=256
f.Height=288
f.Caption = 'Modify description '

local b1=createButton(f)
b1.Left=20
b1.Top=10
b1.caption='read'

local b2=createButton(f)
b2.Left=155
b2.Top=10
b2.caption='change'

local m=createMemo(f)
m.Height=180
m.Left=10
m.Top=50
m.Width=240
m.WordWrap=false
m.ScrollBars="ssAutoBoth"


b1.OnClick=function()
 local sr = m.getLines()
  al=getAddressList()
  for n=0, al.Count-1 do
  sr.String[n]=al[n].description
 end
end

b2.OnClick=function()
 local sr = m.getLines()
  al=getAddressList()
  for n=0, sr.Count-1 do
  al[n].description=sr.String[n]
 end
end
[DISABLE]


Last edited by etioplmld on Tue Jan 11, 2022 6:48 am; edited 1 time in total
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater
Reputation: 5

Joined: 02 Sep 2011
Posts: 528
Location: 0x90

PostPosted: Tue Jan 11, 2022 5:36 am    Post subject: Reply with quote

As per the "languages" folder within the Cheat Engine installation directory.

Code:

C:\Program Files\Cheat Engine x.x\languages

// Where x.x denotes your version.


Quote:

create a language folder for your country (appropriate folder names are in the format of: en_US, nl_NL, ru_RU, etc...)
copy the .po files to the appropriate folder and then start editing


Order of picking:
if there is a cheatengine.po it will pick that, else cheatengine-x86_64.po and if that fails cheatengine-i386.po
the 32-bit version can work perfectly fine with the 64-bit po

Same for the tutorial


By default it picks the system language, but you can overide this by adding --LANG langstr or -l langstr to the parameters of Cheat Engine


editing po files.
There are some po editing tools but you can also do it by hand
msgid contains the original string and msgstr contains the translated string.
If msgstr is empty the original string will be shown

Certain strings are not present in the cheatengine.po file, but are present in lclstrconsts.po
The lclstrconsts.po file belongs to the LCL that the Cheat Engine GUI is build upon


Custom name for your translation:
place a name.txt file in your translation folder and name it anything you like instead of the language code

Custom lua script for your translation:
place an init.lua file in the translation folder and the code in there will be executed when CE starts. You can use this to shift objects around or adjust anchors to make space for your text

----
example for Dutch
create the languages\nl_NL folder and move the .po files to there

then translate the .po files
e.g:
before:
#: mainunit.rscheatengine
msgid "Cheat Engine"
msgstr ""

after:
#: mainunit.rscheatengine
msgid "Cheat Engine"
msgstr "Valsspeel motor"


(This is just an example, please don't translate blindly like this...)

to test you would run cheat engine with --LANG nl_NL
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 Extensions 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