-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add dummy translation function to mark translatable strings #1421
Conversation
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
this is great, thanks! I suspect it needs to be added to the translation readme otherwise nobody will understand how to use it... |
Sure, I'll add it to the documentation too. However, I wanted to see if I get some protests regarding e.g the function name (I suppose it might be better with e.g. |
|
element-hq/element-web#5110 now also includes a commit to document when to use |
lgtm - thanks! |
@pafcu I've reviewed element-hq/element-web#5110 |
Signed-off-by: Stefan Parviainen pafcu@iki.fi
Add a new function
_td()
which is used to mark strings as translatable in contexts where_t()
does not work (i.e. before translations have been initialized). It does not actually do anything with the strings, just returns the input. You still need to call_t()
later to do the actual translation.