I’ve found a string in interface/patient_file/letter.php file that is not translated. string ‘Insert special field:’ that is not translation function. This string is missing in lang_constants table and in translation Google Doc.
How can I add it to the project?
I just committed fix, so that string gets translated:
Note that there is a “pipeline” that we use to collect new constants from the codebase and then rebuild the spreadsheet with the new constants. This is done via perl scripts, which are discussed here:
I used to do this every couple months, but google has made it tougher(manual fixing of about 30 constants needs to be done every time this is done). Because of this, I haven’t done it for about a year. I just did a practice run(this always points out mispellings or near duplicates in the codebase) and just fixed up some issues in the codebase to get prepared for the next spreadsheet update. Plan to do the spreadsheet update sometime over the next 2 weeks(note there will be about 600 more constants added to the spreadsheet).
A nice thing to know about is the ‘dummy’ language. This will convert everything that is in the current spreadsheet to dummy. This gives a good idea of what we are missing (the next run of 600 constants should change them all to ‘dummy’).