Unfortunately not. I added it as a feature request to our issue
tracker, but cannot make any promises about whether or when it will be
implemented:
http://code.google.com/p/simplesamlphp/issues/detail?id=440
Regards,
Olav Morken
UNINETT / Feide
It's not? I'm pretty sure it is as I've done this in the past?
$ fgrep -l user_pass_text simplesamlphp/modules/MYMODULE/dictionaries/login.*
simplesamlphp/modules/MYMODULE/dictionaries/login.definition.json
simplesamlphp/modules/MYMODULE/dictionaries/login.translation.json
I'm probably not understanding either the question or the answer.
-peter
I assume that this dictionary is used from "MYMODULE"? I believe the
question was about overriding dictionary entries for existing modules
(along the same lines as one would override existing templates by
implementing a custom theme).
I'm sorry I still don't get it. I override the text for
login:user_pass_text this way (at leat I think I do, it's been a while
I set this up), so I would have thought that the anwser for the OP is:
"Yes, you'll need to setup your own module and you can override other
dictionaries there"?
Maybe there's some other hackery necessary for this to work, that I
forgot about.
-peter
That's what I'm doing,
-peter
Ah, I remember now. You'd also need to override the template itself
(from your module) and point it to your dictionary definitions.
So you'd copy simplesamlphp/modules/core/templates/loginuserpass.php
to simplesamlphp/modules/MYMODULE/themes/MYTHEME/core/loginuserpass.php
and change things like $this->t('{login:user_pass_text}')
to $this->t('{MYMODULE:login:user_pass_text}').
It'll then pick up your copy of the dictionary (from the path I sent
before) with your changes. Does not modify any upstream code.
-peter
Well, I suppose so. You could chose to minimize the diff to upsteam by
regularly merging changes from upstream (e.g. once every new release,
as you'll want to keep up to date anyway), or only have those
definitions and translations your module that actually differ from the
upstream ones (making it small and easy to adapt). Whatever suits you.
-peter