[Mediawiki-i18n] long message names, "ph" for placeholder

Siebrand Mazeland (WMF) smazeland at wikimedia.org
Thu Mar 28 08:11:14 UTC 2013

Hey S.

Thanks for checking.

On Thu, Mar 28, 2013 at 7:19 AM, S Page <spage at wikimedia.org> wrote:

> While adding messages for a restyled login and create account forms I find
> they're getting longer and longer.  E.g. the original field was named
> "yourpassword", and I'm distinguishing the two forms' fields, so
> userlogin-yourpassword. But when it comes to the placeholder text that
> appears in the input field,
>     'userlogin-yourpassword-placeholder'
> feels just too long (34 characters).  I think as we start using HTML5
> features and more fields get placeholders, it makes sense to use an
> abbreviation for that 11 character, so
> 'userlogin-yourpassword-ph'
> I explain this MessagesQqq.php, but how about mentioning abbreviations in
> <http://www.mediawiki.org/wiki/Manual:Coding_conventions#System_messages>
> ?

I see no immediate problem with your proposal. Even though message keys are
indicative of their usage, there needs to be some room to keep them usable
for developers.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/mediawiki-i18n/attachments/20130328/9c75a047/attachment.html>

More information about the Mediawiki-i18n mailing list