Hello Everyone,

I hope that this question reaches correct people. Am working on big mason
project / website where recently we got a request to translate it to
different languages. There are many phrases that need to be translated and
I chose option of using single shared sub to translate particular strings
within the application. Sub lives in the shared block defined in the
session component which is called by default every time page is requested
by autohandler. I assumed that everything that is in the shared block will
be shared between all subcomponents of that component so they all can use
translation method. Everything works fine most of the time but sometimes
mason just throws error that this sub that component is trying to call was
not defined even that it still is in session shared block. Any suggestions
why this is happening? Sub is defined as follows >

<%shared>

sub __ {
 my $string = shift;
 # .... proceed with translation
}

</%shared>

Mason used is version 1 and its running on Apache server.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to