Hi Nathan,
have a look at etemplate/inc/class.soetemplate.inc.php method
writeLangFile() at line 981:
It uses it’s own method getToTranslateApp($app) to fetch new
translations from etemplate and then adds them to the English langfile.
Ralf
Nathan Gray schrieb:
How can I programmatically add phrases to the translation files?
I have some that I’d like to be added to the file, and some that are
just local to the instance.
I tried:
ExecMethod(‘developer_tools.bolangfile.load_app’, $appname);
ExecMethod(‘developer_tools.bolangfile.addphrase’, array(‘content’ =>
$report_name, ‘target’ => $report_name, ‘appname’ => $appname));
ExecMethod2(‘developer_tools.bolangfile.write_file’, ‘source’,
$appname, ‘en’);
but that clears the file as well as adding in the report name.
Nathan Gray
nathan at goarctic dot com
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Gudrun Müller,
Nigel Vickers und Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers