Skip to content

Commit

Permalink
Merge pull request #1863 from dosymep/localization/Keynotes
Browse files Browse the repository at this point in the history
Localization Keynotes
  • Loading branch information
jmcouffin committed Jul 8, 2023
2 parents 79d2a76 + 45a210f commit 6429a19
Show file tree
Hide file tree
Showing 7 changed files with 473 additions and 165 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="Title">Edit Keynote</system:String>
<system:String x:Key="KeynoteTitle">Keynote Key</system:String>
<system:String x:Key="ParentTitle">Keynote Parent</system:String>
<system:String x:Key="ApplyChanges">Apply Changes</system:String>
<system:String x:Key="UpperInfo">To UPPER</system:String>
<system:String x:Key="LowerInfo">To lower</system:String>
<system:String x:Key="TitleCaseInfo">To Title Case</system:String>
<system:String x:Key="SentenceCaseInfo">To Sentence case</system:String>
<system:String x:Key="TranslateInfo">Translate</system:String>
<system:String x:Key="TemplatesInfo">Templates</system:String>


<system:String x:Key="AddCategoryTitle">Add Category</system:String>
<system:String x:Key="CreateCategoryKey">Create Category Key</system:String>
<system:String x:Key="AddCategoryApply">Add Category</system:String>

<system:String x:Key="EditCategoryTitle">Edit Category</system:String>
<system:String x:Key="EditCategoryKey">Category Key</system:String>
<system:String x:Key="EditCategoryApply">Update Category</system:String>

<system:String x:Key="AddKeynoteTitle">Add Keynote</system:String>
<system:String x:Key="CreateKeynoteKey">Create Keynote Key</system:String>
<system:String x:Key="AddKeynoteApply">Add Keynote</system:String>

<system:String x:Key="EditKeynoteTitle">Edit Keynote</system:String>
<system:String x:Key="EditKeynoteKey">Keynote Key</system:String>
<system:String x:Key="EditKeynoteApply">Update Keynote</system:String>


<system:String x:Key="CategoryKeyValidate">Category must have a unique key.</system:String>
<system:String x:Key="CategoryTitleValidate">Category must have a title.</system:String>
<system:String x:Key="CategoryTitleRemoved">Existing title is removed. Category must have a title.</system:String>

<system:String x:Key="KeynoteKeyValidate">Keynote must have a unique key.</system:String>
<system:String x:Key="KeynoteTextValidate">Keynote must have a text.</system:String>
<system:String x:Key="KeynoteParentValidate">Keynote must have a parent.</system:String>
<system:String x:Key="KeynoteTextRemoved">Existing text is removed. Keynote must have a text.</system:String>

<system:String x:Key="EnterUniqueKey">Enter a Unique Key</system:String>
<system:String x:Key="PickParent">Pick parent...</system:String>

<system:String x:Key="SelectTemplate">Select Template</system:String>
<system:String x:Key="TemplateReserved">-- reserved for future use --</system:String>
<system:String x:Key="TemplateDontUse">!! do not use !!</system:String>
<system:String x:Key="ComingSoon">Not yet implemented. Coming soon.</system:String>


</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="Title">Редактор ключевых пометок (КП)</system:String>
<system:String x:Key="KeynoteTitle">Ключ КП</system:String>
<system:String x:Key="ParentTitle">Родитель КП</system:String>
<system:String x:Key="ApplyChanges">Применить изменения</system:String>
<system:String x:Key="UpperInfo">К ВЕРХНЕМУ РЕГИСТРУ</system:String>
<system:String x:Key="LowerInfo">к нижнему регистру</system:String>
<system:String x:Key="TitleCaseInfo">К Первой Букве Каждого Слова</system:String>
<system:String x:Key="SentenceCaseInfo">К первому слову предложения</system:String>
<system:String x:Key="TranslateInfo">Перевести</system:String>
<system:String x:Key="TemplatesInfo">Шаблоны</system:String>


<system:String x:Key="AddCategoryTitle">Добавить категорию</system:String>
<system:String x:Key="CreateCategoryKey">Создать ключ категории</system:String>
<system:String x:Key="AddCategoryApply">Добавить категорию</system:String>

<system:String x:Key="EditCategoryTitle">Редактировать категорию</system:String>
<system:String x:Key="EditCategoryKey">Ключ категории</system:String>
<system:String x:Key="EditCategoryApply">Обновить категорию</system:String>

<system:String x:Key="AddKeynoteTitle">Добавить КП</system:String>
<system:String x:Key="CreateKeynoteKey">Создать ключ КП</system:String>
<system:String x:Key="AddKeynoteApply">Добавить КП</system:String>

<system:String x:Key="EditKeynoteTitle">Редактировать КП</system:String>
<system:String x:Key="EditKeynoteKey">Ключ КП</system:String>
<system:String x:Key="EditKeynoteApply">Обновить КП</system:String>


<system:String x:Key="CategoryKeyValidate">Категория должна иметь уникальный ключ.</system:String>
<system:String x:Key="CategoryTitleValidate">Категория должна иметь название.</system:String>
<system:String x:Key="CategoryTitleRemoved">Существующее название было удалено. Категория должна иметь название.</system:String>

<system:String x:Key="KeynoteKeyValidate">КП должна иметь уникальный ключ.</system:String>
<system:String x:Key="KeynoteTextValidate">КП должна иметь описание.</system:String>
<system:String x:Key="KeynoteParentValidate">КП должна иметь родителя.</system:String>
<system:String x:Key="KeynoteTextRemoved">Существующие описание удалено. КП должна иметь описание.</system:String>

<system:String x:Key="EnterUniqueKey">Введите уникальный ключ</system:String>
<system:String x:Key="PickParent">Выбрать родителя...</system:String>

<system:String x:Key="SelectTemplate">Выбрать шаблон</system:String>
<system:String x:Key="TemplateReserved">-- зарезервировано для будущего использования --</system:String>
<system:String x:Key="TemplateDontUse">!! не использовать !!</system:String>
<system:String x:Key="ComingSoon">Еще не реализовано. Скоро появится.</system:String>


</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MinWidth="500" MinHeight="400"
ResizeMode="CanResizeWithGrip"
SizeToContent="Height"
Title="Edit Keynote"
Title="{DynamicResource Title}"
WindowStartupLocation="CenterOwner"
HorizontalContentAlignment="Center"
Closing ="window_closing">
Expand Down Expand Up @@ -53,16 +53,16 @@
<StackPanel Grid.Row="0" Orientation="Horizontal" Grid.ColumnSpan="2">
<Button x:Name="recordKey" Height="26" MinWidth="50" Padding="10,0,10,0" FontWeight="Bold"
Content="&#x25CF;&#x25CF;&#x25CF;" Click="pick_key"/>
<TextBlock x:Name="recordKeyTitle" Text="Keynote Key" Margin="10,0,0,0" VerticalAlignment="Center"/>
<TextBlock x:Name="recordKeyTitle" Text="{DynamicResource KeynoteTitle}" Margin="10,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.ColumnSpan="2">
<StackPanel x:Name="recordParentInput" Orientation="Horizontal" Margin="0,0,0,10">
<Button x:Name="recordParent" Height="26" MinWidth="50" Padding="10,0,10,0" FontWeight="Bold"
IsEnabled="False"
Content="&#x25CF;&#x25CF;&#x25CF;" Click="pick_parent"/>
<TextBlock x:Name="recordParentTitle" Text="Keynote Parent" Margin="10,0,0,0" VerticalAlignment="Center"/>
<TextBlock x:Name="recordParentTitle" Text="{DynamicResource ParentTitle}" Margin="10,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<Button x:Name="applyChanges" Height="26" Content="Apply Changes" Click="apply_changes"/>
<Button x:Name="applyChanges" Height="26" Content="{DynamicResource ApplyChanges}" Click="apply_changes"/>
<Button x:Name="cancelChanges" Height="26" Margin="0,10,0,0" Content="Cancel" Click="cancel_changes" Visibility="Collapsed"/>
</StackPanel>
<Grid Grid.Row="1" Grid.ColumnSpan="2" Margin="0,10,0,10" >
Expand All @@ -73,12 +73,12 @@
<!-- enabling spell check on this textbox causes all sorts of issues -->
<TextBox x:Name="recordText" Grid.Column="0" FontSize="14" TextWrapping="Wrap" Margin="0,0,5,0" />
<StackPanel Grid.Column="1" Width="24">
<Button Height="24" Content="TT" FontWeight="Medium" ToolTip="To UPPER" Click="to_upper"/>
<Button Height="24" Content="tt" Margin="0,5,0,0" FontWeight="Medium" ToolTip="To lower" Click="to_lower"/>
<Button Height="24" Content="Ti" Margin="0,5,0,0" FontWeight="Medium" ToolTip="To Title Case" Click="to_title"/>
<Button Height="24" Content="Se" Margin="0,5,0,0" FontWeight="Medium" ToolTip="To Sentence case" Click="to_sentence"/>
<Button Height="24" Content="{StaticResource translateIcon}" Margin="0,5,0,0" ToolTip="Translate" Click="translate"/>
<Button Height="24" Content="{StaticResource templatesIcon}" Margin="0,5,0,0" FontWeight="Medium" ToolTip="Templates" Click="select_template"/>
<Button Height="24" Content="TT" FontWeight="Medium" ToolTip="{DynamicResource UpperInfo}" Click="to_upper"/>
<Button Height="24" Content="tt" Margin="0,5,0,0" FontWeight="Medium" ToolTip="{DynamicResource LowerInfo}" Click="to_lower"/>
<Button Height="24" Content="Ti" Margin="0,5,0,0" FontWeight="Medium" ToolTip="{DynamicResource TitleCaseInfo}" Click="to_title"/>
<Button Height="24" Content="Se" Margin="0,5,0,0" FontWeight="Medium" ToolTip="{DynamicResource SentenceCaseInfo}" Click="to_sentence"/>
<Button Height="24" Content="{StaticResource translateIcon}" Margin="0,5,0,0" ToolTip="{DynamicResource TranslateInfo}" Click="translate"/>
<Button Height="24" Content="{StaticResource templatesIcon}" Margin="0,5,0,0" FontWeight="Medium" ToolTip="{DynamicResource TemplatesInfo}" Click="select_template"/>
</StackPanel>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="Title">Manage Keynotes</system:String>

<system:String x:Key="ImportKeynotes">Import Keynotes</system:String>
<system:String x:Key="ImportKeynotesInfo">Import keynotes from Revit standard keynote file</system:String>

<system:String x:Key="ExportKeynotes">Export All</system:String>
<system:String x:Key="ExportKeynotesInfo">Export keynotes to Revit standard keynote file</system:String>

<system:String x:Key="ExportVisibleKeynotes">or Visible</system:String>
<system:String x:Key="ExportVisibleKeynotesInfo">Export listed keynotes to Revit standard keynote file</system:String>

<system:String x:Key="RefreshKeynotes">Refresh</system:String>
<system:String x:Key="RefreshKeynotesInfo">Reloads keynote file and updates keynotes per changes</system:String>

<system:String x:Key="ChangeKeynote">Change keynote file.</system:String>
<system:String x:Key="ShowKeynote">Show keynote file.</system:String>

<system:String x:Key="UpdateKeynote">Update Model</system:String>
<system:String x:Key="UpdateKeynoteInfo">Reloads keynote file and updates keynotes per changes</system:String>

<system:String x:Key="CategoryKeynotes">Categories</system:String>
<system:String x:Key="AddKeynoteCategory">Add new keynote category</system:String>
<system:String x:Key="EditKeynoteCategory">Edit selected category</system:String>
<system:String x:Key="RemoveKeynoteCategory">Remove selected category</system:String>
<system:String x:Key="ReKeyKeynoteCategory">Change key for selected category</system:String>
<system:String x:Key="ShowChangeKeynoteCategoryHistory">Show category change history</system:String>

<system:String x:Key="Keynotes">Keynotes</system:String>
<system:String x:Key="AddKeynote">Add a new keynote</system:String>
<system:String x:Key="SearchKeynote">Find instances of selected keynote</system:String>
<system:String x:Key="EditKeynote">Edit selected keynote</system:String>
<system:String x:Key="RemoveKeynote">Remove selected keynote</system:String>
<system:String x:Key="AddChildKeynote">Add a new keynote as a child to the selected keynote</system:String>
<system:String x:Key="DuplicateKeynote">Duplicate selected keynote</system:String>
<system:String x:Key="ChangeKeyKeynote">Change key of selected keynote</system:String>
<system:String x:Key="ChangeCategoryKeynote">Change category of selected keynote</system:String>
<system:String x:Key="ShowChangeKeynoteHistory">Show keynote change history</system:String>

<system:String x:Key="PlaceKeynote">Place</system:String>
<system:String x:Key="UserKeynotes">User Keynotes</system:String>
<system:String x:Key="ElementKeynotes">Element Keynotes</system:String>
<system:String x:Key="MaterialKeynotes">Material Keynotes</system:String>

<system:String x:Key="KeynotesHistory">Keynotes History</system:String>
<system:String x:Key="EnableHistory">Enable History</system:String>
<system:String x:Key="EnableHistoryInfo">Enable history tracking on keynotes.</system:String>

<GridLength x:Key="RightPanelWidth">140</GridLength>
<GridLength x:Key="RefreshKeynotesWidth">70</GridLength>


<system:String x:Key="AllCategories">-- ALL CATEGORIES --</system:String>
<system:String x:Key="ADCLockedLocalFile">Keynote file is being modified and locked by: {}. Please try again later</system:String>
<system:String x:Key="ADCLockedLocalFileNone">Can not get keynote file from {}</system:String>
<system:String x:Key="ADCNotAvailable">
This model is using a keynote file that seems to be
managed by {long} ({short}). But {short} is not
running, or is not installed. Please install/run the
{short} and open the keynote manager again
</system:String>

<system:String x:Key="SetKeynoteFileTransactionName">Set Keynote File</system:String>
<system:String x:Key="KeynoteFileNotExists">Keynote file is not accessible. Please select a keynote file.</system:String>
<system:String x:Key="KeynoteFileNotSetup">Keynote file is not setup.</system:String>
<system:String x:Key="KeynoteFileIsReadOnly">Keynote file is read-only.</system:String>

<system:String x:Key="KeynoteFileConnectionFailed" xml:space="preserve">Existing keynote file needs to be converted to a format usable by this tool. The resulting keynote file is still readable by Revit and could be shared with other projects. Users should NOT be making changes to the existing keynote file during the conversion process.
Are you sure you want to convert?
</system:String>

<system:String x:Key="KeynoteFileConnectionConvert">Convert</system:String>
<system:String x:Key="KeynoteFileConnectionSelectOther">Select a different keynote file</system:String>
<system:String x:Key="KeynoteFileConnectionHelp">Give me more info</system:String>
<system:String x:Key="KeynoteFileConversionCompleted">Conversion completed!</system:String>
<system:String x:Key="KeynoteFileConversionFailed">Conversion failed! %s</system:String>
<system:String x:Key="KeynoteFileNotConversion">Keynote file is not yet converted.</system:String>
<system:String x:Key="KeynoteFileLaunchAgain">Launch the tool again to manage keynotes.</system:String>

<system:String x:Key="KeynoteFileBackupException">Error backing up existing keynote file.</system:String>
<system:String x:Key="KeynoteFilePreparingException">Error preparing new keynote file.</system:String>

<system:String x:Key="EnterUniqueKey">Enter a Unique Key</system:String>
<system:String x:Key="ChooseUniqueKey">Choose New Key</system:String>
<system:String x:Key="SelectParentCategory">Select Parent Category</system:String>

<system:String x:Key="SelectFilter">Select Filter</system:String>

<system:String x:Key="KeynoteLockedUnknownUser">and unknown user</system:String>
<system:String x:Key="KeynoteLocked">
Category is locked and is being edited by {}.
Wait until their changes are committed.
Meanwhile you can use or modify the keynotes
under this category.
</system:String>

<system:String x:Key="CategoryLockedUnknownUser">and unknown user</system:String>
<system:String x:Key="CategoryLocked">
Category is locked and is being edited by {}.
Wait until their changes are committed.
</system:String>

<system:String x:Key="CategoryChildrenLocked">At least one keynote in this category is locked. Wait until the changes are committed.</system:String>
<system:String x:Key="CategoryHasChildren">Category "%s" is not empty. Delete all its keynotes first.</system:String>
<system:String x:Key="CategoryUsed">Category "%s" is used in the model. Can not delete.</system:String>
<system:String x:Key="PromptToDeleteCategory">Are you sure you want to delete category "%s"?</system:String>

<system:String x:Key="KeynoteHasChildren">Keynote "%s" has sub-keynotes. Delete all its sub-keynotes first.</system:String>
<system:String x:Key="KeynoteUsed">"Keynote "%s" is used in the model. Can not delete.</system:String>
<system:String x:Key="PromptToDeleteKeynote">Are you sure you want to delete keynote "%s"?</system:String>

<system:String x:Key="ReKeyKeynoteTransaction">Rekey Keynote {}</system:String>
<system:String x:Key="ReKeyKeynoteChildrenLocked">At least one child keynote of this keynote is locked. Wait until the changes are committed.</system:String>
<system:String x:Key="ReCatKeynoteChildrenLocked">At least one child keynote of this keynote is locked. Wait until the changes are committed.</system:String>


<system:String x:Key="KeynoteName">{} "{}" Keynote @ "{}"</system:String>
<system:String x:Key="LastEditKeynote"> - Last Edited By "{}"</system:String>
<system:String x:Key="UpdateKeynotesTransactionName">Update Keynotes</system:String>
<system:String x:Key="ComingSoon">Not yet implemented. Coming soon.</system:String>
<system:String x:Key="SkipDuplicates">Do you want me to skip duplicates if any?</system:String>
<system:String x:Key="MainException">Creating keynote manager window</system:String>
</ResourceDictionary>
Loading

0 comments on commit 6429a19

Please sign in to comment.