-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The key to making this work is to override the `_compile` method of `Locale::Maketext` and remove the `use strict` usage inside of its code eval call. That is the only essential difference between the override method added here and the orignal method in `Locale::Maketext`. With this you can now use maketext interpolation in PG. For example, you can call `maketext('[quant,_1,dog] ate my homework', $num_dogs)`. This is an important part of removing the attempts table, and moving the code the provides feedback to PG. The WeBWorK::Localize module is also cleaned up considerably.
- Loading branch information
Showing
2 changed files
with
248 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters