vslavik / poedit

Translations editor for Mac, Windows and Unix
https://poedit.net
MIT License
1.8k stars 279 forks source link

Displaying Directory Path and/or Language of Translation in Window Title Bar #819

Closed ravage84 closed 11 months ago

ravage84 commented 1 year ago

Context: We often have to translate into more than one language. The POT & PO files are named after their translation context. E.g. "Admin" in Admin.po for the translation strings belonging to the admin part of an application. This is a convention given by the CakePHP farmework

Unfortunatley, that means when opening the PO files the window always just shows "Admin.po" in the title bar.

grafik

grafik

Feature Request It would be nice Poedit would display the directory path along with the file name of and/or the language set in the PO file.

grafik

For example in this case, it could display one of the following in the title bar:

  1. Admin.po * PROJECT VERSION - C:\path/to/application/resources/locales/de_CH/- PoEdit
  2. Admin.po * PROJECT VERSION - German (Switzerland) - PoEdit
  3. Admin.po * PROJECT VERSION - German (Switzerland) - C:\path/to/application/resources/locales/de_CH/ - PoEdit

Rationale: Currently, it's quite confusing when working with more than one translation file. Displaying the directory path would also make it unnecessary to display PROJECT VERSION, which we (and likely others) never set.

vslavik commented 1 year ago

Full path is impractical for size reasons. One way would be to at least have a tooltip (which is non-trivial).

Showing the language there, either as full text or code, is definitely a good idea — thanks!

Showing verbatim PROJECT VERSION is definitely bad.

Showing the project when set is solving the inverse problem: when the language is obvious from the filename, but the project ("Admin" in your example) is not, which is historically the typical layout in GNU gettext using makefiles.