• Pricing
  • Features
    • InterWorx
    • Clustering
    • Developers
    • Roadmap
  • Support
    • Overview
    • Latest News and Blog
    • Documentation
    • InterWorx Forums
    • Version History
    • Help Desk
    • FAQ’s
    • Feedback and Feature Requests
  • Company
    • End User License Agreement
    • Privacy Policy
    • Bug Bounty
    • InterWorx Partners
    • Our Brand
    • Website Accessibility Statement
    • Contact Us
  • My Account
How to: Import Interworx Hosting Accounts
November 15, 2012
How to: Setup a SSL Certificate
November 15, 2012

How to: Make a New Interworx Language Translation

Published by InterWorx on November 15, 2012

Translations of InterWorx are accomplished through the ".lng" files.  These are text files with key ⇒ value pairs.

Making a New Translation

Because InterWorx is developed in English, the English language file will always be complete. The first step to translating is downloading the English language file.

Download the English Language File

  1. Click the NodeWorx menu item if it is not already open.
  2. Click the Languages menu item.
  3. Click the 'Download' link for the English Language File.

The language file will look something like this:

LG_HEADERHELP=Help
LG_HEADERLOGOUT=Logout
LG_HIDEDETAILS=Hide Details
LG_HIGH_LOAD=The server load average is currently above the threshold of %1$01.2f. The current load average is %2$s.
LG_HISTORY=History
LG_HOME=Home
LG_HOME_DIRECTORY=Home Directory
LG_HOST=Host
LG_HOSTING_FEATURES=Hosting Features
LG_HOSTNAME=Hostname

The "LG_*" parts are the keys, and the rest is the translation.

Most translations are simple replacements - simply replace the English value with the correct translation.

Keyword Substitution

Because of variations in syntax in non-english languages, we added keyword substitution in InterWorx 4.5. In the LG_HIGH_LOAD translation above, there are two variables - %1$01.2f and %2$s. InterWorx uses sprintf() to handle the variable substitution.

The variables are numbered so you can re-order them as needed.

Upload Your New Language

When your translation is complete, follow the instructions to add it as a new language.

InterWorx has an open bounty for new translations. We offer a free one-time license for complete translations that can be added to InterWorx. If you've taken the time to create a new language file, please contact us at [email protected]

Share
2

Related posts

July 3, 2020

How to Install and Use the CloudLinux Plugin for InterWorx


Read more
April 10, 2020

How to Install and Use the Acronis Plugin for InterWorx


Read more
December 11, 2019

Non-prefixed MySQL Database Names and MySQL User Names, DB mapping


Read more
  • Liquid Web Family of Brands
  • Liquid Web
  • Visit Nexcess
  • Visit iThemes
  • Visit Interworx
© 2019 InterWorx, LLC. All Rights Reserved.
      We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.