Skip to content

Commit

Permalink
Mark two new strings for translation.
Browse files Browse the repository at this point in the history
Those strings weren't marked for extraction but we were trying to retrieve
their translation later.

At the same time, change the strings lookup context...
  • Loading branch information
Nicolas Riendeau committed Jul 15, 2013
1 parent 803b021 commit 19d881e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythplugins/mythgallery/mythgallery/imageview.cpp
Expand Up @@ -110,13 +110,13 @@ ImageView::ImageView(const ThumbList &itemList,
if (slideShow > 1)
{
m_slideshow_sequence = new SequenceShuffle(m_itemList.size());
m_slideshow_mode = "Random Slideshow";
m_slideshow_mode = QT_TR_NOOP("Random Slideshow");
m_pos = 0;
}
else
{
m_slideshow_sequence = new SequenceInc(m_itemList.size());
m_slideshow_mode = "Slideshow";
m_slideshow_mode = QT_TR_NOOP("Slideshow");
}

m_pos = m_slideshow_sequence->index(m_pos);
Expand Down Expand Up @@ -175,7 +175,7 @@ void ImageView::UpdateLCD(const ThumbItem *item)
QString ImageView::GetDescriptionStatus(void) const
{
if (m_slideshow_running)
return " [" + QObject::tr(m_slideshow_mode) + "]";
return " [" + tr(m_slideshow_mode) + "]";

return "";
}
Expand Down
2 changes: 2 additions & 0 deletions mythplugins/mythgallery/mythgallery/imageview.h
Expand Up @@ -34,6 +34,8 @@ class ThumbItem;

class ImageView
{
Q_DECLARE_TR_FUNCTIONS(ImageView)

public:
ImageView(const ThumbList &itemList,
int *pos, int slideShow, int sortorder);
Expand Down

0 comments on commit 19d881e

Please sign in to comment.