User tests: Successful: Unsuccessful:
Labels |
Added:
?
|
done @infograf768
so this shoud work now :)
It works for 3rd party extensions as long as they have the language string in their files. I've commented in code to show a solution in case the string isn't present. Maybe someone knows an even better one.
Also to consider: I would use a language key which is consistent with the other keys in the file. So something like strtoupper('PLG_FINDER_' . $type->element . '_TYPE_' . str_replace(' ', '_', $type->type_title)')
which would hopefully result in PLG_FINDER_CONTENT_TYPE_ARTICLE
strtoupper('PLG_FINDER_' . $type->element . 'TYPE' . str_replace(' ', '', $type->typetitle)')
or
strtoupper('PLG_FINDER_' . $type->element . 'TYPE' . str_replace(' ', '', $type->typetitle))
or
strtoupper('PLG_FINDER_' . $type->element . 'TYPE' . str_replace(' ', '', $type->typetitle)'')
what is better? The first looks not right (not closed) or i'm wrong?
EDIT:
@Bakual
I've commented in code to show a solution in case the string isn't present.
merged
Aye, my line was wrong. The '
at the end slipped in due to copy-pasting.strtoupper('PLG_FINDER_' . $type->element . '_TYPE_' . str_replace(' ', '_', $type->type_title))
should be better (didn't test it).
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-02-17 04:22:05 |
done