Jump to content

Localization in overrides for PDF.php (workaround)


pandeussilvae

Recommended Posts

Hi all,
this post is just to report to you about a bug i found inside override classes localization.
I found that in default classes the localization works running inside the php file and matching the regular espressions regarding the "l" function inside the class.
This is enough to populate the BO form for translation.
Great!

But it is not enough if we add ovverride classes where we add different label.
In fact we cannot find that the new labels we add inside the override classes when we try to localize them.
The workaround, at the moment, is to insert the label call inside the default class, even if it is not used.
We can even put it commented in the following way:

// self::l('Label we want to translate:')



That's it
have fun!!!
Paolo Nugnes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...