Bug 367712 - Selecting a .pot file in the project windows, in the editor window Save as... does not fill in the .po file name
Summary: Selecting a .pot file in the project windows, in the editor window Save as......
Status: RESOLVED NOT A BUG
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-23 11:01 UTC by Freek de Kruijf
Modified: 2016-11-13 13:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2016-08-23 11:01:54 UTC
This is lokalize 16.04.3.
Selecting a .pot file in the project window, because the .po file does not exist, opens the editor window with the .po file name as the title of the tab. Using File->Save as... opens a popup file window. However the text field for the file name is empty. This used to contain the name of the .po file, which is very convenient. Entering the file name is a nuisance and not necessary as previous versions of lokalize showed.

Reproducible: Always




Fill in the .po file name.
Comment 1 Karl Ove Hufthammer 2016-11-13 00:13:22 UTC
The ‘Save As‘ menu option is specifically for saving the file with a *new* file name, and having no name by default seems like correct behaviour. If you want to save the file with the default name (which is what you want ~100% of the time), just use ‘Save’ instead of ‘Save As’. This will use the original name and folder of the .pot file, but with the .po extension instead of the .pot extension and the translation folder corresponding to the template folder, e.g. if the template is

  templates/kdeutils/application.pot

and the current language set for the project is ‘xx’, the file will be stored as

  xx/kdeutils/application.po
Comment 2 Freek de Kruijf 2016-11-13 13:10:16 UTC
(In reply to Karl Ove Hufthammer from comment #1)
> The ‘Save As‘ menu option is specifically for saving the file with a *new*
> file name, and having no name by default seems like correct behaviour. If
> you want to save the file with the default name (which is what you want
> ~100% of the time), just use ‘Save’ instead of ‘Save As’. This will use the
> original name and folder of the .pot file, but with the .po extension
> instead of the .pot extension and the translation folder corresponding to
> the template folder, e.g. if the template is
> 
>   templates/kdeutils/application.pot
> 
> and the current language set for the project is ‘xx’, the file will be
> stored as
> 
>   xx/kdeutils/application.po

Thanks.