You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment when saving, the keys are saved in alphabetical order.
This can introduce unwanted changes to the file. For example when doing a diff to see the changed translations. Unchanged translations might show up as well because of the new order.
Thus, I suggest to make the saving in alphabetical order configurable.
If I open a file with the following content
foo.bar=foo
bla=bla
hello=hello
And change the translation of foo.bar, then I want this change to be the only thing that differs in the newly saved file. This includes also that no newlines are added (which is the case at the moment)
After editing it should be:
foo.bar=fooBAR
bla=bla
hello=hello
At the moment it becomes:
bla=bla
foo.bar=fooBAR
hello=hello
So instead of a single translation, all lines have been changed, which makes diffs impossible. Furthermore, the newlines are annoying when editing files manually because it adds useless space. The newlines are also problematic when doing block editing (i.e. editing certain columns of multiple adjacent lines)
The text was updated successfully, but these errors were encountered:
@achimmihca this is a common usage of this plugin - when you have multiple languages it is easier to have keys sorted so that you can compare values in plain text file. Is there a reason why you cannot reformat your files and keep the keys in alphabetical order?
We also sort our properties files. However I consider it independent from the task of this plugin (can be done with other plugin that can sort selected lines).
Altgough, sorting lines using a different plugin is not possible in combination with this because of the empty lines...
Anyway, we do not use Eclipse anymore. So from my point of view this issue can be closed.
At the moment when saving, the keys are saved in alphabetical order.
This can introduce unwanted changes to the file. For example when doing a diff to see the changed translations. Unchanged translations might show up as well because of the new order.
Thus, I suggest to make the saving in alphabetical order configurable.
If I open a file with the following content
And change the translation of
foo.bar
, then I want this change to be the only thing that differs in the newly saved file. This includes also that no newlines are added (which is the case at the moment)After editing it should be:
At the moment it becomes:
So instead of a single translation, all lines have been changed, which makes diffs impossible. Furthermore, the newlines are annoying when editing files manually because it adds useless space. The newlines are also problematic when doing block editing (i.e. editing certain columns of multiple adjacent lines)
The text was updated successfully, but these errors were encountered: