Maybe it's "cheating" a bit, but even prosilver has language-specific resources... in the form of images that happen to contain words. Such as the "online" overlay image for the profile, which needs to be able to match the style in how it indicates which users are currently logged on. phpBB provides
for loading the style's /theme/<lang>/stylesheet.css file, and this is already included in overall_header.html; at least for prosilver.
Of course I don't disagree with MrGoldy's actual point, which was that there aren't any text-based language resources inherent to style development, except what the underlying phpBB translation already provides.
Without diverging from that existing approach at all, one option would be to provide an image which contains the "Date & Time" label you want to display. And size it to exactly 1em so that it remains relative to the current text size, etc., to behave "as much like text as possible." You of course have to provide all of those images, for whichever languages you intend for the style to support.
If you did want to pursue text-based, it does make me wonder whether some CSS using the content: property
couldn't be leveraged to provide a small amount of "text-based language support" as part of a style. e.g. Class the element that will display your sidebar's label such that you can use
to insert your own "Date & Time"
text into that label from the style's /theme/<lang>/stylesheet.css file.
Definitely nothing I've done before, and maybe there is some technical pitfall I'm not recognizing there. But seemed like it should be "an option", for what it's worth.
Edit: Well of course I've overlooked the obvious. In absence of having any formal language support expected as part of the style (e.g. a style-defined L_MY_CUSTOM_STRING or similar), you can simply make that decision right in the HTML template itself. Without relying on CSS anything; image or text. i.e. Just put conditional display in the template based on the value the template can see for
, and provide all the language-specific "Date & Time"
translations right there in the HTML template.
CSS might still be the way to "define it in one place, and use it across multiple pages", though. Rather than repeating this "manual" translation in multiple HTML templates, if that was needed for a particular string.