IronOS
IronOS copied to clipboard
help with TranslationEditor needed
-
I would like to know if there is a way to change the
TranslationEditor
to generate this:"SolderingMenu": { "text2": ["Soldering", "settings"], "desc": "Soldering settings" },
instead of this:
"SolderingMenu": { "text2": [ "Soldering", "settings" ], "desc": "Soldering settings" },
-
I rearranged some of the menu entries in
translation_EN.json
, editedtranslations_def.js
&Translation.h
accordingly and wanted to useTranslationEditor
to change all the other languages as well, so I would not have to do it by hand.translation_EN.json
was used as Reference Language. And although the html view was matching the new order, the saved file and view, unfortunately maintained the old order!
@discip its would be better to put this into its own issue than bumping a really old thread. I cant see any difference between the two you have posted other than formatting, so you might need to clarify what the difference is that you are looking for as well
Originally posted by @Ralim in https://github.com/Ralim/IronOS/pull/249#issuecomment-1244938277
-
other than formatting
Yes, that's exactly it! Only the format. The actual one takes up much space (scrolling wise). Some languages were formatted like that (narrower) before I updated them to match the output of
TranslationEditor
. -
Sorry, I don't know how to make a visual comparison between the two. 😅
actual one: https://github.com/Ralim/IronOS/blob/dev/Translations/translation_EN.json vs reordered one: https://github.com/discip/IronOS/blob/test/Translations/translation_EN.json
@Ralim Have you had time to check if this is somehow achievable? 😊
I dont know to be honest; this is going to come down to how javascript is serialising it out. As its just a formatting change, I dont see the big issue though?
@Ralim Is your answer meant to cover both topics?
It would really help if I could use TranslationEditor
to make editing all the language files easier. (2)