Skip to content

Commit

Permalink
Add translation link
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow committed Dec 8, 2024
1 parent e8ebef2 commit 1a3b1f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions LiftLog.Ui/Pages/Settings/SettingsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
<span slot="headline" >@UiStrings.BugReport</span>
<span slot="supporting-text">@UiStrings.BugReportSubtitle</span>
</md-list-item>
<md-list-item type="button" multi-line-supporting-text @onclick=@(OpenUrl("https://github.com/LiamMorrow/LiftLog/issues/new?assignees=&labels=translation&projects=&template=translation-suggestion.md"))>
<md-icon slot="start">translate</md-icon>
<span slot="headline" >@UiStrings.Translation</span>
<span slot="supporting-text">@UiStrings.TranslationSubtitle</span>
</md-list-item>

<md-list-item type="button" multi-line-supporting-text @onclick="ShowAppInfo">
<md-icon slot="start">info</md-icon>
Expand Down
2 changes: 1 addition & 1 deletion LiftLog.Ui/Shared/Presentation/LimitedHtml.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public partial class LimitedHtml
var parts = innerText.Split("<br>");
for (var i = 0; i < parts.Length; i++)
{
yield return (!closed, parts[i], i % 2 == 1);
yield return (closed, parts[i], i % 2 == 1);
}
}

Expand Down
8 changes: 8 additions & 0 deletions LiftLog.Ui/i18n/UiStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1169,4 +1169,12 @@
<value>This will import &lt;em&gt;{0}'s&lt;/em&gt; plan. It will not overwrite your existing plan.</value>
<comment/>
</data>
<data name="Translation" xml:space="preserve">
<value>Suggest a translation</value>
<comment/>
</data>
<data name="TranslationSubtitle" xml:space="preserve">
<value>Submit translations for parts of the app!</value>
<comment/>
</data>
</root>

0 comments on commit 1a3b1f6

Please sign in to comment.