Skip to content

Commit

Permalink
i18n: Mark unknown tags as translatable
Browse files Browse the repository at this point in the history
Mark two the unknown tags as translatable
  • Loading branch information
yakushabb committed Apr 27, 2024
1 parent 9c83594 commit b96844a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cozy/media/tag_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def _get_author(self):
if len(authors) > 0 and authors[0]:
return "; ".join(authors)
else:
return "Unknown"
return _("Unknown")

def _get_reader(self):
readers = self._get_string_list(Gst.TAG_ARTIST)

if len(readers) > 0 and readers[0]:
return "; ".join(readers)
else:
return "Unknown"
return _("Unknown")

def _get_disk(self):
success, value = self.tags.get_uint_index(Gst.TAG_ALBUM_VOLUME_NUMBER, 0)
Expand Down
1 change: 1 addition & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cozy/control/mpris.py
cozy/control/offline_cache.py
cozy/media/files.py
cozy/media/importer.py
cozy/media/tag_reader.py
cozy/model/track.py
cozy/tools.py
cozy/ui/about_window.py
Expand Down

0 comments on commit b96844a

Please sign in to comment.