What do you mean the string was included in a maketext?   As far as I
understand it you can only put string literals into maketext (with a
limited markup for variables/pluarility
http://perldoc.perl.org/Locale/Maketext.html ).  In particular if you have
a string you want to print several times, the string has to be put into
maketext each time you define it, otherwise it won't get translated when
someone changes locales.


On Sat, May 3, 2014 at 6:41 PM, cmhughes <notifications@github.com> wrote:

> In lib/WeBWorK/ContentGenerator/Problem.pm:
>
> > @@ -1463,7 +1666,39 @@ sub output_summary{
> >  			# don't show correct answers
> >  			# don't show attempt results (correctness)
> >  			# show attempt previews
> > -	}
> > +    } elsif ($showMeAnother and $showMeAnotherIsPossible){
> > +        # the feedback varies a little bit if Check Answers is available or not
> > +        my $checkAnswersAvailable = ('SMAcheckAnswers' ~~ @{$ce->{pg}->{options}->{showMeAnother}}) ?
>
> @goehle <https://github.com/goehle> just to clarify, do you mean that I
> should use maketext for things like:
>
>   my $solutionShown = ('SMAshowSolutions' ~~ @{$showMeAnother{configOptions}}) ? ", complete with solution" : "";
>
> The reason I didn't was that this string was included in a maketext later
> on....
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openwebwork/webwork2/pull/342/files#r12258459>
> .
>