Zinn wrote:Should we use camelCase or normal Words with spaces (normal sentence)?
This question arise on all Strings resources and mixed up in a lot of places.
Most entries in strings are messages for the user. So I prefer to use words with spaces. It is also better readable when the Strings file is missing.
Should Strings entries sorted alphabetically or in order by topic (module or forms) of use?
This is also mixed up in both ways.
- Helmut
These are very fundamental questions that cannot be completely resolved within this issue, I think.
Nevertheless, here are some comments from my side:
> Most entries in strings are messages for the user. So I prefer to use words with spaces. It is also better readable when the Strings file is missing.
The key in a Strings file should never be missing. If it is missing, I would consider this a bug.
If keys are distinguishable from values, it is easier to find such bugs.
Single-word keys in camelCase are a means to distinguish keys from values. They are usually also a bit shorter than the values.
I would, however, not go as far as changing all keys now but only consider the keys relevant for this issue.
I would strongly recommend to stick to the rule that all keys should appear in the Strings file because this makes it possible to
localize (translate) the Strings file without inspecting all modules, dialogs, etc.
> Should Strings entries sorted alphabetically or in order by topic (module or forms) of use?
I would prefer a grouping of keys that in some way are logically related, for example the
keys of the StdLinks module in the Std Strings file.
A practical advantage is that a diff is not spread across the whole Strings file, at least this holds for this issue.
The keys are sorted internally anyway, so there is no big speedup to be expected except that the sorting may be slightly faster.
- Josef