Reputation: 1625
I'm abstracting strings from views and I don't want to name my variables after the strings... what should I name them? I also don't want to number them in case I insert a new string into a view at some point.
I want short names that are easy to reference, not hard to put into my brain's short term memory, and not confusing to my translators.
The current version is in English, the future versions will be in Chinese, Spanish, Vietnamese, and Tagalog, in addition to English.
Upvotes: 0
Views: 224
Reputation: 1625
long descriptive names that are similar to the original string.
Based on this Mozilla article https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices
Thanks to @davejagoda for the advice.
Upvotes: 2