Translation Advice

GregTomkins

Active Member
We have a Progress app that has been translated (over many years and at great cost) using standard Progress utilities.

Now, we are JavaScriptifying our front end, and we have a strong desire that it reuse all the existing translations. We will be maintaining both 4GL and JavaScript for the foreseeable future.

Our approach to this problem is:

  1. Our JavaScript says eg. $('#acct').html(getTranslation('Account'));
  2. A utility parses the JS for 'getTranslation' and creates a .p containing the words that we care about.
  3. We run this .p through the compiler and to produce a mapping file (eg. 'Account=Compte').
  4. The 'getTranslation' function uses this mapping file to look up the correct word.
This works, but to make it 'production ready' is going to require a ton more work. Before we start down that road ... just wondering if anyone has a different take or brighter idea?
 
Top