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%3E ?
-- =S Page software engineer on Editor Engagement Experiments team
Hey S.
Thanks for checking.
On Thu, Mar 28, 2013 at 7:19 AM, S Page spage@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.
Cheers!
Siebrand
On Thu, Mar 28, 2013 at 1:11 AM, Siebrand Mazeland (WMF) < smazeland@wikimedia.org> wrote:
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.
OK, I added a section < http://www.mediawiki.org/wiki/Manual:Coding_conventions#Abbreviations_in_mes... , so far it mentions "ph", "tip", and "tog" abbreviations.
Wouldn't it be better to abbreviate the first part of the message, since it's usually used in many places? E.g. ulyp-placeholder.
torsdag 28. mars 2013 skrev S Page spage@wikimedia.org følgende:
On Thu, Mar 28, 2013 at 1:11 AM, Siebrand Mazeland (WMF) <
smazeland@wikimedia.org> wrote:
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.
OK, I added a section <
http://www.mediawiki.org/wiki/Manual:Coding_conventions#Abbreviations_in_mes... , so far it mentions "ph", "tip", and "tog" abbreviations.
mediawiki-i18n@lists.wikimedia.org