- Google スプレッドシートのApp Scriptを開いて translate.gs のコードを貼り付ける
- スプレッドシートの先頭行に以下のような形で言語名を記述する
| key👇 lang👉 | ja-JP | zh-CHS | en-US |
|---|
スプレッドシートの2行目以降に翻訳テキストを追加していく
| ## SquereSizerコントロール | |
| 矩形の変形操作をサポートしたコントロールです。 | |
| MinMaxサイズ、MinMaxエリアの中で変形します | |
| 角の部分をThumb、上下左右の線をLine、移動操作をPositionとしています。 | |
| PositionBehaviorを移動可能範囲を制御できます。Area内(InsideArea)、Areaに接地(IntersectArea)、無制限(Free)。 | |
| FrameworkElementのプロパティを使って制御する部分 | |
| * Width/Height |
| <UserControl x:Class="Starryboard.Views.Controls.ScreenCapturePlayer" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:local="using:Starryboard.Views.Controls" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| mc:Ignorable="d" | |
| d:DesignHeight="300" | |
| d:DesignWidth="400" | |
| xmlns:canvas="using:Microsoft.Graphics.Canvas.UI.Xaml"> |
| <UserControl | |
| x:Class="Starryboard.Views.Controls.VirtualAnalogPad" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:local="using:Starryboard.Views.Controls" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| mc:Ignorable="d" | |
| d:DesignHeight="300" | |
| d:DesignWidth="400"> |
| #nullable enable | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Input; | |
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; |
| <ResourceDictionary> | |
| <ResourceDictionary.ThemeDictionaries> | |
| <ResourceDictionary x:Key="Light"> | |
| <SolidColorBrush x:Key="NavigationViewTopPaneBackground" Color="{ThemeResource SystemChromeMediumColor}" /> | |
| <SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="{ThemeResource SystemChromeMediumColor}" /> | |
| <SolidColorBrush x:Key="ApplicationContentBackgroundBrush" Color="{ThemeResource SystemChromeMediumLowColor}" /> | |
| </ResourceDictionary> | |
| <ResourceDictionary x:Key="Dark"> | |
| <SolidColorBrush x:Key="NavigationViewTopPaneBackground" Color="{ThemeResource SystemChromeMediumColor}" /> |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; | |
| using Windows.UI.Xaml.Controls.Primitives; | |
| namespace NicoVideoSnapshotSearchAssistanceTools.Presentation.Views.Interactions |
| const OUTPUT_FOLDER_ID = "PUT_HERE_YOUR_GOOGLE_DRIVE_FOLDER_ID"; | |
| function onOpen() { | |
| const ui = SpreadsheetApp.getUi(); // Uiクラスを取得する | |
| const menu = ui.createMenu('Translation Tools'); // Uiクラスからメニューを作成する | |
| menu.addItem('全ての言語コードをkvpテキストとして出力', 'ExportCurrentLocalizeSheet'); // メニューにアイテムを追加する | |
| menu.addItem('現在の行の未翻訳列を仮翻訳(ja-JPを参照)', 'KariTranslationCurrentColumn'); // メニューにアイテムを追加する | |
| menu.addItem('選択中セル全てを仮翻訳(ja-JPを参照)', 'KariTranslationSelectedCells'); // メニューにアイテムを追加する | |
| menu.addToUi(); // メニューをUiクラスに追加する |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; | |
| using System.Threading; | |
| namespace NicoPlayerHohoema.FixPrism | |
| { | |
| /// <summary> | |
| /// Implementation of <see cref="INotifyPropertyChanged"/> to simplify models. |