preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Mar 29, 2024, 02:14:04 am
 Dwarf Fortress File Depot » Utilities » Python language extraction and injection script
      
Registration is not required to download. However, it will allow you to vote, comment, and upload. Forgot your password?
File Listing: Python language extraction and injection script
Last Updated: Jan 04, 2014, 06:58:19 am
File version: 1
For DF version: N/A
Downloads: 62 Size: 693 bytes
Views: 665 Type: ZIP
Rating (0 votes): Unrated
Description
This simple script will extract words from language files and put them a word per line, for easy automatic translation or treatment. It can also read that list and put the translated words back in their place.

Always backup your work! I take no responsibility for anything this script may do to you, your computer, your pets or your dwarves.

This is how it works. It has two modes "extraction" and "injection".

df_langex.py e langfile wordlist
This extracts the words from langfile and creates (or overwrites) wordlist. You can now work with wordlist.

df_langex.py i wordlist langfile
When you are happy with your words, give it wordlist and it will overwrite langfile replacing the words in it with those in the list. Note that the same langfile should be used for extraction and injection, otherwise the word count won't match and things will get messed up.
Raw Data: JSON / Text
Checksum / Hash
SHA-256: cd29e5768ee93430c114ad059a3722b65214a5805d7538eed84cffb374dc206a
IP: logged
Commands
More From This Author
Comments
No comments have been posted for this file yet.
HomeSearchRankingsStatisticsAboutContact

Website by Brett Flannigan. The core site script is PHCDownload (© 2005-2024).
Hosted by Linode.