Create a standard for naming keys of settings, lexicons, etc #15672
Replies: 6 comments
-
Lexicon keys should be easy to group, sort, filter and describe their purpose. A lexicon named |
Beta Was this translation helpful? Give feedback.
-
About the sorting of the settings was also a thought - #14254
|
Beta Was this translation helpful? Give feedback.
-
To describe a key's purpose I think it would be better to name them like this:
Without context it's more clear for a translator that values for those keys should describe the name/description for something referring to an "site index identifier" setting. |
Beta Was this translation helpful? Give feedback.
-
The problem is not so much in the writing of keys, but in the fact that there are too many variants for keys, for example, the section "Back-end Manager" in the "System Settings":
|
Beta Was this translation helpful? Give feedback.
-
Related with - #12493 |
Beta Was this translation helpful? Give feedback.
-
@JoshuaLuckers @alroniks @Jako @Mark-H @opengeek Guys, we are ready to start this work! But we need your thoughts on how to do it better! One PR will make a replacement in one lexicon file. Each key change in the lexicon file and in the places where they are specified will be a separate commit. We need to prompt again by the rules of naming and we start! Work is important! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
Summary
Lexicons
There is confusion in the keys, for example, there are duplicate lines with different keys (for example, new_tv | tv_new | add_tv), there is also excessive terminology.
I propose to mark the standard of the name of the keys, and bring the current keys to the new standard (many duplicates will be deleted for lexicons).
For example:
It also makes sense to designate the lexicon file in the name, for example:
Settings
Also it makes sense to connect other elements through the key, if they are connected according to logic, for example in the system settings:
The key must clearly indicate its "essence" and "location" of the element, and only then the "action" or "characteristic":
Using the example "mgr_browser_sort_default" key, we see what needs to be written:
There are many discussions, but there is no standard, it is necessary to designate it and always refer to it.
Related issue(s)/PR(s)
#13554
#1188
Beta Was this translation helpful? Give feedback.
All reactions