Skip to content

Commit

Permalink
add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanilov committed Dec 10, 2023
1 parent 090ff39 commit 9c48e75
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ void Status::updateToolTip(int /*value*/)
switch (checkState())
{
case Qt::CheckState::Unchecked:
setToolTip("paused");
setToolTip(tr("paused"));
break;
case Qt::CheckState::Checked:
setToolTip("playing");
setToolTip(tr("playing"));
break;
}
}
2 changes: 2 additions & 0 deletions src/Status.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class Status : public QCheckBox
{
Q_OBJECT

public:
explicit Status(QWidget* parent = nullptr);
void setPlayingStyle();
Expand Down
6 changes: 3 additions & 3 deletions src/TransitionIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ void TransitionIcon::updateToolTip(int /*value*/)
switch (transition)
{
case Transition::FadeOutIn:
setToolTip("loop with fade-out/in");
setToolTip(tr("loop with fade-out/in"));
break;
case Transition::CrossFade:
setToolTip("loop with cross-fade");
setToolTip(tr("loop with cross-fade"));
break;
case Transition::FadeOutGapIn:
setToolTip("loop with gap");
setToolTip(tr("loop with gap"));
break;
}
}
2 changes: 2 additions & 0 deletions src/TransitionIcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class TransitionIcon : public QCheckBox
{
Q_OBJECT

public:
explicit TransitionIcon(QWidget* parent = nullptr);

Expand Down
31 changes: 31 additions & 0 deletions src/translations/soundscape_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,19 @@ to access application menu</source>
<translation>%1 s</translation>
</message>
</context>
<context>
<name>Status</name>
<message>
<location filename="../Status.cpp" line="45"/>
<source>paused</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Status.cpp" line="48"/>
<source>playing</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TrackControls</name>
<message>
Expand Down Expand Up @@ -217,6 +230,24 @@ to access application menu</source>
<translation>casuale fino a</translation>
</message>
</context>
<context>
<name>TransitionIcon</name>
<message>
<location filename="../TransitionIcon.cpp" line="34"/>
<source>loop with fade-out/in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../TransitionIcon.cpp" line="37"/>
<source>loop with cross-fade</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../TransitionIcon.cpp" line="40"/>
<source>loop with gap</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Volume</name>
<message>
Expand Down
39 changes: 37 additions & 2 deletions src/translations/soundscape_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ to access application menu</source>
<message>
<location filename="../MainWindow.cpp" line="77"/>
<source>Pause playing tracks</source>
<translation>Приостановить возпроизведение</translation>
<translation>Приостановить воспроизведение</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="80"/>
<source>Resume paused tracks</source>
<translation>Возобновить возпроизведение</translation>
<translation>Возобновить воспроизведение</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="86"/>
Expand Down Expand Up @@ -151,6 +151,19 @@ to access application menu</source>
<translation>%1 сек</translation>
</message>
</context>
<context>
<name>Status</name>
<message>
<location filename="../Status.cpp" line="45"/>
<source>paused</source>
<translation>приостановлена</translation>
</message>
<message>
<location filename="../Status.cpp" line="48"/>
<source>playing</source>
<translation>воспроизводится</translation>
</message>
</context>
<context>
<name>TrackControls</name>
<message>
Expand Down Expand Up @@ -218,6 +231,28 @@ to access application menu</source>
<translation>случайный до</translation>
</message>
</context>
<context>
<name>TransitionIcon</name>
<message>
<location filename="../TransitionIcon.cpp" line="34"/>
<source>loop with fade-out/in</source>
<translation>затухание и
нарастание</translation>
</message>
<message>
<location filename="../TransitionIcon.cpp" line="37"/>
<source>loop with cross-fade</source>
<translation>перекрёстное
затухание и
нарастание</translation>
</message>
<message>
<location filename="../TransitionIcon.cpp" line="40"/>
<source>loop with gap</source>
<translation>затухание и нарастание
с перерывом</translation>
</message>
</context>
<context>
<name>Volume</name>
<message>
Expand Down

0 comments on commit 9c48e75

Please sign in to comment.