https://bugs.kde.org/show_bug.cgi?id=402890
Bug ID: 402890 Summary: Menu items ‘Open selected files’/‘Open’ overwrites template files instead of creating translation files Product: lokalize Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: major Priority: NOR Component: project management Assignee: sdepi...@gmail.com Reporter: k...@huftis.org CC: sha...@ukr.net Target Milestone: --- SUMMARY In the project view, when one right-clicks on a folder which contain a completely untranslated catalogue (i.e. one which only exists as a .pot file, not a ‘.po’ file) and selects ‘Open selected files’, the .pot file is opened instead of a .po file being created. The same thing happens when you right-click on a .pot file and selected ‘Open’. When saving the file, the original .pot file is overwritten, making it an invalid .pot file, i.e. one containing translations. STEPS TO REPRODUCE 1. Open a translation project which contain at least one non-translated files (e.g. use the Norwegian Nynorsk project ‘trunk/l10n-support/nn/kde-nynorsk.lokalize’ in the KDE repository). 2. Right-click on a folder which contain non-translated files (.pot files) (e.g. ‘extragear-edu’ for the Norwegian Nynorsk project) and select ‘Open selected files’ 3. Navigate the one of the .pot files, edit a string and save the file. OBSERVED RESULT The .pot file in the template folder is opened and saved. EXPECTED RESULT A corresponding .po file in translation folder should be created/saved. ADDITIONAL INFORMATION Opening a .pot file by double-clicking on it, works fine. That is, a .po file is created in the translation folder when you save the file. And the name of tab is ‘filename.po’, not ‘filename.pot’, to reflect that you’re editing the .po translation file, not the .pot template file. So it is only when opening files using the ‘Open selected files’ menu item in the right-click menu on a folder or the ‘Open’ menu item in the right-click menu on a file that the wrong file is opened/saved. I set the ‘Severity’ to a ‘Major’, as this bug can lead to data-loss (overwriting template files). I observe this bug using the latest Git version of Lokalize (Lokalize 19.03.70 – not possible to choose this version number in Bugzilla). -- You are receiving this mail because: You are watching all bug changes.