Hi,
I have written a small Powershell script which takes your hard-coded texts from quests and converts them to an entry in your translate.lua file.
The new translate.lua lines will be appended to the existing translate.lua.
In this early version the following features are available:
- Own translate.lua namespace configuration
- Inline parameter like "..pc.GetName().." get converted to a string parameter (%s)
- The quests automatically get updated with the corresponding translate.lua entry
How are the translate.lua entries build?
For titles (say_title)
<namespace>.<Quest directory>.<Questname>_title_<title_count>
For normal say (say)
<namespace>.<Quest directory>.<Questname>_line_<line_count>
For rewards (say_reward)
<namespace>.<Quest directory>.<Questname>_reward_<reward_count>
Some examples:
Bitte melden Sie sich an, um diesen Link zu sehen.
Planned Updates
- Update the value of translate.lua when the key is already existing
- Full mutlilanguage support (currently experimantal on my private repo)
- Fundamentals are already included, but I recommend to ignore the parameters right now
Possible problems when executing the Script:
- "File cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details"
- Run the first line of the main script (set-executionpolicy remotesigned) as local Admin user. Select the line and hit F8 in PwerShell ISE. For more information check this Bitte melden Sie sich an, um diesen Link zu sehen.
Find the source on my Bitte melden Sie sich an, um diesen Link zu sehen.!