Kerbas_ad_astra

Automatic internationalization script?

Recommended Posts

When I internationalized XT Landertrons, I crawled through the config files and internationalized everything by hand.  No big deal, since there's just five parts and a handful of notification strings.

I'd like to internationalize HGR, though, which has dozens of parts, so I'm a lot more interested in an automated solution.  I'm envisioning a script that operates on a folder and goes through each part and pulls out the title, manufacturer, description, and tags into an en-us.cfg file.  Meanwhile, each autoloc tag gets generated automatically, in a format like "#autoLOC_[short_name_or_abbr_for_mod]_[partname]_title" (and "_desc", "_mfg", and "_tags").

If nobody's made a script like this, I'll make one in Python and submit it to @taniwha's cfgnode library, but I figured I'd ask around first.  (@linuxgurugamer, have you made something like this?)

Share this post


Link to post
Share on other sites
43 minutes ago, Kerbas_ad_astra said:

When I internationalized XT Landertrons, I crawled through the config files and internationalized everything by hand.  No big deal, since there's just five parts and a handful of notification strings.

I'd like to internationalize HGR, though, which has dozens of parts, so I'm a lot more interested in an automated solution.  I'm envisioning a script that operates on a folder and goes through each part and pulls out the title, manufacturer, description, and tags into an en-us.cfg file.  Meanwhile, each autoloc tag gets generated automatically, in a format like "#autoLOC_[short_name_or_abbr_for_mod]_[partname]_title" (and "_desc", "_mfg", and "_tags").

If nobody's made a script like this, I'll make one in Python and submit it to @taniwha's cfgnode library, but I figured I'd ask around first.  (@linuxgurugamer, have you made something like this?)

Nope.

And I'd be interested in it as well.

But, before you do, do a few searches to see if there is something out there already

Share this post


Link to post
Share on other sites

Thanks for the heads-up!  I might still make the python script to have an 'offline' option that doesn't require opening KSP, but I won't block HGR's release on it.

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.