Skip to content

Commit

Permalink
upgrade from settings (stevencohn#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored Apr 20, 2024
1 parent e31030f commit 07baa57
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 7 deletions.
36 changes: 29 additions & 7 deletions OneMore/Commands/Settings/HashtagSheet.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions OneMore/Commands/Settings/HashtagSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public HashtagSheet(SettingsProvider provider) : base(provider)
"filterBox",
"scheduleLink",
"warningBox",
"upgradeLink",
"disabledBox"
});
}
Expand Down Expand Up @@ -76,6 +77,8 @@ public HashtagSheet(SettingsProvider provider) : base(provider)

filterBox.Checked = settings.Get<bool>("unfiltered");

upgradeLink.Enabled = !provider.GetCollection("tagging").Get("converted", false);

if (provider.GetCollection("GeneralSheet").Get("experimental", false))
{
delayBox.Value = settings.Get("delay", HashtagScanner.DefaultThrottle);
Expand Down Expand Up @@ -126,6 +129,19 @@ private async void ScheduleRebuild(object sender, LinkLabelLinkClickedEventArgs
}


// NOTE: temporary page tags
private async void UpgradeTags(object sender, LinkLabelLinkClickedEventArgs e)
{
var converter = new LegacyTaggingConverter();
var upgraded = await converter.UpgradeLegacyTags(ParentForm);

if (upgraded)
{
upgradeLink.Enabled = false;
}
}


public override bool CollectSettings()
{
// general...
Expand Down
9 changes: 9 additions & 0 deletions OneMore/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.ar-SA.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@
<value>علامات التصنيف</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>ترقية علامات الصفحة إلى علامات التصنيف المضمنة</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>يجب استخدام هذا بعد إضافة أو إزالة دفتر واحد أو أكثر من دفاتر الملاحظات. يوصى بجدولة إعادة البناء بعد ساعات ، مثل منتصف الليل.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,10 @@ Gelber Hintergrund</value>
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Aktualisieren Sie Seiten-Tags auf Inline-Hashtags</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Dies sollte verwendet werden, nachdem ein oder mehrere Notizbücher hinzugefügt oder entfernt werden. Es wird empfohlen, den Wiederaufbau von Nachbästen wie Mitternacht zu planen.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.es-ES.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@ Fondo amarillo</value>
<value>Etiquetas</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Actualice las etiquetas de la página a hashtags en línea</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Esto debe usarse después de agregar o eliminar uno o más cuadernos. Se recomienda programar las reconstrucciones fuera del horario de atención, como la medianoche.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@ Fond jaune</value>
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Mettre à niveau les balises de page vers des hashtags en ligne</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Ceci doit être utilisé après avoir ajouté ou supprimé un ou plusieurs cahiers. Il est recommandé de planifier des reconstructions après les heures d'ouverture, comme minuit.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.he-IL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,10 @@ Total Row Font
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>שדרג את תגי העמוד להאשטאגים מוטבעים</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>יש להשתמש בזה לאחר הוספת או הסרת מחברת אחת או יותר. מומלץ לתאם מחדש את הבנייה מחדש לאחר שעות העבודה, כמו חצות.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.nl-NL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,10 @@ Gele achtergrond</value>
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Upgrade paginatags naar inline hashtags</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Dit moet worden gebruikt na het toevoegen of verwijderen van een of meer notebooks. Het wordt aanbevolen om wederopbouw na uur te plannen, zoals middernacht.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.pl-PL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,10 @@ Czerwony pierwszy plan
<value>Hashtagi</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Uaktualnij tagi strony do hashtagów wbudowanych</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Należy to użyć po dodaniu lub usunięciu jednego lub więcej notebooków. Zaleca się zaplanowanie przebudowy po godzinach, takich jak północ.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.pt-BR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,10 @@ Fundo Amarelo</value>
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Atualizar tags de página para hashtags embutidas</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>Isso deve ser usado após adicionar ou remover um ou mais notebooks. Recomenda-se agendar reconstrução após o horário comercial, como a meia-noite.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,10 @@ Yellow Background</value>
<value>Hashtags</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>Upgrade page tags to inline hashtags</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>This should be used after adding or removing one or more notebooks. It is recommended to schedule rebuilds after-hours, such as midnight.</value>
<comment>multiline label</comment>
Expand Down
4 changes: 4 additions & 0 deletions OneMore/Properties/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,10 @@ OneNote 文件 (*.one)</value>
<value>标签</value>
<comment>sheet title</comment>
</data>
<data name="HashtagSheet_upgradeLink.Text" xml:space="preserve">
<value>将页面标签升级为内联主题标签</value>
<comment>link</comment>
</data>
<data name="HashtagSheet_warningLabel.Text" xml:space="preserve">
<value>在添加或删除一个或多个笔记本电脑后应使用此功能。 建议在下班后(例如午夜)安排重建。</value>
<comment>multiline label</comment>
Expand Down

0 comments on commit 07baa57

Please sign in to comment.