Currently the warning message displayed when your password is expired is not translatable.
It would be nice to have it translatable for multilingual sites.
Currently the warning message displayed when your password is expired is not translatable.
It would be nice to have it translatable for multilingual sites.
Comments
Comment #2
paulvandenburg commentedThis makes the message translatable.
Comment #3
ruudvanoijen commentedPatch looks good.
Comment #4
aohrvetpv commentedI don't think we need to mention that the message is translatable. There are many other strings that are translatable in this module and in Drupal, and it is not mentioned, so this seems consistent. (Or maybe there is precedent for mentioning a string is translatable?)
So this patch removes "This message is translatable." I will commit if this is OK. Thanks.
Comment #5
paulvandenburg commentedYes that looks good to me.
I mostly added the message since not everything was/is translatable, although it is easy enough to find out if such a setting is translatable.
Comment #7
aohrvetpv commentedThanks. Are there other strings that need to be made translatable?
Comment #9
paulvandenburg commentedNot for my use case at the moment. I'll open another issue if such a case does turn up.
Comment #10
aohrvetpv commentedThe committed change seems to violate coding standards:
FILE: ...1/web/vendor/drupal/pareviewsh/pareview_temp/plugins/item/expire.inc -------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------- 285 | WARNING | Only string literals should be passed to t() where | | possible --------------------------------------------------------------------------Planning to revert.
Comment #11
aohrvetpv commentedWould it work to instead pass the string literal on expire.inc:15 to
t()?Comment #13
aohrvetpv commentedNot immediately sure how to test that this works. Maybe someone else on this issue could review/test.
Comment #14
paulvandenburg commentedI've not test it yet, but the patch looks good. I think that is a fine solution to the problem.
Comment #16
aohrvetpv commentedPresumed fixed. Please reopen if not.