Answer the question
In order to leave comments, you need to log in
Merging two files?
The situation is this:
I have 2 translation files from the add-on of an older and a newer version. Russian language in the old version and English in the new one
The file is just an array of the form
'short_name' => 'Краткое название',
'new' => 'Новое',
'manual' => 'Руководство',
'from' => 'из',
'to' => 'в',
'advanced' => 'Дополнительно',
Answer the question
In order to leave comments, you need to log in
Upload the old untranslated version, commit. From here you make 2 branches (translate, source) - put the old translation (translate) in the first one, commit. In the second, a new untranslated file (source) and merge. There will most likely be conflicts.
For manual comparison:
Any IDE in principle can compare. In general, try meld, a very handy utility for comparison. And in the git, always keep the latest version of the translation and the original.
For automatic comparison:
Read about console diff. Personally, I would write a script for such a task using diff and grep. On an output would receive new lines which did not exist yet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question