Add update language stuff to build.bat and build_beta.bat

This commit is contained in:
Nikolaj Olsson 2021-01-03 12:13:27 +01:00
parent 9b09a4a968
commit 477ce470fd
6 changed files with 23 additions and 1 deletions

View File

@ -254,6 +254,7 @@ Note: Do check free disk space.</WaveFileMalformed>
<TopAlignSelectedLines>Top align selected lines (keep horizontal position)</TopAlignSelectedLines>
<BottomAlignSelectedLines>Bottom align selected lines (keep horizontal position)</BottomAlignSelectedLines>
<SizeXY>Size: {0}x{1}</SizeXY>
<SetAspectRatio11>Set aspect ratio 1:1</SetAspectRatio11>
</BinEdit>
<Bookmarks>
<EditBookmark>Edit bookmark</EditBookmark>
@ -2376,11 +2377,12 @@ Continue?</RestoreDefaultSettingsMsg>
<EditWordOnly>Edit word only</EditWordOnly>
<AddXToNames>Add '{0}' to name list</AddXToNames>
<AddXToUserDictionary>Add '{0}' to user dictionary</AddXToUserDictionary>
<AutoFixNames>Auto fix names where only casing differ</AutoFixNames>
<AutoFixNames>Auto fix names where only casing differs</AutoFixNames>
<AutoFixNamesViaSuggestions>Also fix names via 'spell check suggestions'</AutoFixNamesViaSuggestions>
<CheckOneLetterWords>Prompt for unknown one letter words</CheckOneLetterWords>
<TreatINQuoteAsING>Treat word ending " in' " as " ing " (English only)</TreatINQuoteAsING>
<RememberUseAlwaysList>Remember "Use always" list</RememberUseAlwaysList>
<LiveSpellCheck>Live spell check</LiveSpellCheck>
<ImageText>Image text</ImageText>
<SpellCheckCompleted>Spell check completed</SpellCheckCompleted>
<SpellCheckAborted>Spell check aborted</SpellCheckAborted>

View File

@ -15,6 +15,13 @@ ECHO Getting latest changes...
git pull
ECHO.
ECHO Check for new translation strings...
SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe"
IF NOT EXIST "%LanguageToolPath%" (
ECHO Compile UpdateLanguageFiles!
)
"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs"
ECHO Starting compilation...
REM Set environment variables for Visual Studio command line if necessary

View File

@ -15,6 +15,14 @@ ECHO Getting latest changes...
git pull
ECHO.
ECHO Check for new translation strings...
SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe"
IF NOT EXIST "%LanguageToolPath%" (
ECHO Compile UpdateLanguageFiles!
)
"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs"
ECHO.
ECHO Starting compilation...
MD SubtitleEditBeta

View File

@ -399,6 +399,7 @@ namespace Nikse.SubtitleEdit.Logic
TopAlignSelectedLines = "Top align selected lines (keep horizontal position)",
BottomAlignSelectedLines = "Bottom align selected lines (keep horizontal position)",
SizeXY = "Size: {0}x{1}",
SetAspectRatio11 = "Set aspect ratio 1:1",
};
Bookmarks = new LanguageStructure.Bookmarks

View File

@ -691,6 +691,9 @@ namespace Nikse.SubtitleEdit.Logic
case "BinEdit/SizeXY":
language.BinEdit.SizeXY = reader.Value;
break;
case "BinEdit/SetAspectRatio11":
language.BinEdit.SetAspectRatio11 = reader.Value;
break;
case "Bookmarks/EditBookmark":
language.Bookmarks.EditBookmark = reader.Value;
break;

View File

@ -268,6 +268,7 @@
public string TopAlignSelectedLines { get; set; }
public string BottomAlignSelectedLines { get; set; }
public string SizeXY { get; set; }
public string SetAspectRatio11 { get; set; }
}
public class Bookmarks