Hi,
I want to add a new field to the setup script, how do I add associated message strings so that it is not lost in transition to gettext? Or is setup/lib/messages.inc.php a final solution?
Piotr Przybylski a écrit :
Hi,
I want to add a new field to the setup script, how do I add associated message strings so that it is not lost in transition to gettext? Or is setup/lib/messages.inc.php a final solution?
Hi Piotr, please use the new gettext format. setup/lib/messages.inc.php is temporary. All messages that can be removed from it will eventually be removed.
2010/5/30 Marc Delisle marc@infomarc.info:
Piotr Przybylski a écrit :
Hi,
I want to add a new field to the setup script, how do I add associated message strings so that it is not lost in transition to gettext? Or is setup/lib/messages.inc.php a final solution?
Hi Piotr, please use the new gettext format. setup/lib/messages.inc.php is temporary. All messages that can be removed from it will eventually be removed.
I can't simply add __('My new message string') because what I want to do is to add a new config option, let's say "MyNewOption", meaning that in runtime setup script will look for $strSetupMyNewOption_name, and optionally for $strSetupMyNewOption_desc. How do I do that?
Piotr Przybylski a écrit :
2010/5/30 Marc Delisle marc@infomarc.info:
Piotr Przybylski a écrit :
Hi,
I want to add a new field to the setup script, how do I add associated message strings so that it is not lost in transition to gettext? Or is setup/lib/messages.inc.php a final solution?
Hi Piotr, please use the new gettext format. setup/lib/messages.inc.php is temporary. All messages that can be removed from it will eventually be removed.
I can't simply add __('My new message string') because what I want to do is to add a new config option, let's say "MyNewOption", meaning that in runtime setup script will look for $strSetupMyNewOption_name, and optionally for $strSetupMyNewOption_desc. How do I do that?
Ah, in this case, continue with the current mechanism.