public CollectionsSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.CollectionsStep)
 {
     ChooseCollections     = Format(section => section?.ChooseCollections);
     NonFiction            = Format(section => section?.NonFiction);
     Fiction               = Format(section => section?.Fiction);
     SciMagArticles        = Format(section => section?.SciMagArticles);
     DownloadInto          = Format(section => section?.DownloadInto);
     ErrorWarningTitle     = Format(section => section?.ErrorWarningTitle);
     NoCollectionsSelected = Format(section => section?.NoCollectionsSelected);
 }
 public SciMagSearchResultItemViewModel(SciMagArticle article, LanguageFormatter formatter)
     : base(article, formatter)
 {
 }
 public FictionSearchResultsGridColumnsLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.FictionSearchResultsTab?.Columns)
 {
     Title          = Format(section => section?.Title);
     Authors        = Format(section => section?.Authors);
     Series         = Format(section => section?.Series);
     Year           = Format(section => section?.Year);
     Language       = Format(section => section?.Language);
     Publisher      = Format(section => section?.Publisher);
     FormatColumn   = Format(section => section?.Format);
     FileSize       = Format(section => section?.FileSize);
     InLocalLibrary = Format(section => section?.InLocalLibrary);
 }
示例#4
0
 public SetupWizardWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow)
 {
     WindowTitle = Format(section => section?.WindowTitle);
     DownloadingDumpsStepHeader = Format(section => section?.DownloadingDumpsStepHeader);
     CreatingDatabaseStepHeader = Format(section => section?.CreatingDatabaseStepHeader);
     ImportingDumpsStepHeader   = Format(section => section?.ImportingDumpsStepHeader);
     Back                  = Format(section => section?.Back);
     Next                  = Format(section => section?.Next);
     Finish                = Format(section => section?.Finish);
     Cancel                = Format(section => section?.Cancel);
     ExitSetupTitle        = Format(section => section?.ExitSetupTitle);
     ExitSetupText         = Format(section => section?.ExitSetupText);
     LanguageStep          = new LanguageSetupStepLocalizator(prioritizedTranslationList, formatter);
     SetupModeStep         = new SetupModeSetupStepLocalizator(prioritizedTranslationList, formatter);
     DatabaseOperationStep = new DatabaseOperationSetupStepLocalizator(prioritizedTranslationList, formatter);
     StepListStep          = new StepListSetupStepLocalizator(prioritizedTranslationList, formatter);
     DownloadModeStep      = new DownloadModeSetupStepLocalizator(prioritizedTranslationList, formatter);
     DownloadDumpInfoStep  = new DownloadDumpInfoSetupStepLocalizator(prioritizedTranslationList, formatter);
     CollectionsStep       = new CollectionsSetupStepLocalizator(prioritizedTranslationList, formatter);
     DownloadDumpsStep     = new DownloadDumpsSetupStepLocalizator(prioritizedTranslationList, formatter);
     DownloadDumpLinksStep = new DownloadDumpLinksSetupStepLocalizator(prioritizedTranslationList, formatter);
     ImportDumpsStep       = new ImportDumpsSetupStepLocalizator(prioritizedTranslationList, formatter);
     CreateDatabaseStep    = new CreateDatabaseSetupStepLocalizator(prioritizedTranslationList, formatter);
     ConfirmationStep      = new ConfirmationSetupStepLocalizator(prioritizedTranslationList, formatter);
 }
示例#5
0
 public SearchResultsTabLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     SearchPlaceHolder   = Format(translation => translation?.SearchPlaceHolder);
     SearchInProgress    = Format(translation => translation?.SearchInProgress);
     Interrupt           = Format(translation => translation?.Interrupt);
     Interrupting        = Format(translation => translation?.Interrupting);
     ExportButtonTooltip = Format(translation => translation?.ExportButtonTooltip);
 }
示例#6
0
 public SynchronizationWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.Synchronization)
 {
     WindowTitle             = Format(section => section?.WindowTitle);
     ErrorMessageTitle       = Format(section => section?.ErrorMessageTitle);
     ImportRequired          = Format(section => section?.ImportRequired);
     NoSynchronizationMirror = Format(section => section?.NoSynchronizationMirror);
     OfflineModePromptTitle  = Format(section => section?.OfflineModePromptTitle);
     OfflineModePromptText   = Format(section => section?.OfflineModePromptText);
     Unknown                          = Format(section => section?.Unknown);
     Interrupt                        = Format(section => section?.Interrupt);
     Interrupting                     = Format(section => section?.Interrupting);
     Close                            = Format(section => section?.Close);
     StatusPreparation                = FormatStatus(section => section?.Preparation);
     StatusCreatingIndexes            = FormatStatus(section => section?.CreatingIndexes);
     StatusLoadingIds                 = FormatStatus(section => section?.LoadingIds);
     StatusSynchronizingData          = FormatStatus(section => section?.SynchronizingData);
     StatusSynchronizationComplete    = FormatStatus(section => section?.SynchronizationComplete);
     StatusSynchronizationCancelled   = FormatStatus(section => section?.SynchronizationCancelled);
     StatusSynchronizationError       = FormatStatus(section => section?.SynchronizationError);
     LogLineCreatingIndexes           = FormatLogLine(section => section?.CreatingIndexes);
     LogLineLoadingIds                = FormatLogLine(section => section?.LoadingIds);
     LogLineSynchronizingBookList     = FormatLogLine(section => section?.SynchronizingBookList);
     LogLineDownloadingNewBooks       = FormatLogLine(section => section?.DownloadingNewBooks);
     LogLineSynchronizationSuccessful = FormatLogLine(section => section?.SynchronizationSuccessful);
     LogLineInsufficientDiskSpace     = FormatLogLine(section => section?.InsufficientDiskSpace);
     LogLineSynchronizationCancelled  = FormatLogLine(section => section?.SynchronizationCancelled);
 }
 public DownloadManagerLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     TabTitle          = Format(translation => translation?.TabTitle);
     Start             = Format(translation => translation?.Start);
     Stop              = Format(translation => translation?.Stop);
     Remove            = Format(translation => translation?.Remove);
     StartAll          = Format(translation => translation?.StartAll);
     StopAll           = Format(translation => translation?.StopAll);
     RemoveCompleted   = Format(translation => translation?.RemoveCompleted);
     QueuedStatus      = Format(translation => translation?.QueuedStatus);
     DownloadingStatus = Format(translation => translation?.DownloadingStatus);
     StoppedStatus     = Format(translation => translation?.StoppedStatus);
     RetryDelayStatus  = Format(translation => translation?.RetryDelayStatus);
     ErrorStatus       = Format(translation => translation?.ErrorStatus);
     Log = Format(translation => translation?.Log);
     TechnicalDetails                           = Format(translation => translation?.TechnicalDetails);
     Copy                                       = Format(translation => translation?.Copy);
     FileNotFoundErrorTitle                     = Format(translation => translation?.FileNotFoundErrorTitle);
     LogLineQueued                              = Format(translation => translation?.LogMessages?.Queued);
     LogLineStarted                             = Format(translation => translation?.LogMessages?.Started);
     LogLineStopped                             = Format(translation => translation?.LogMessages?.Stopped);
     LogLineCompleted                           = Format(translation => translation?.LogMessages?.Completed);
     LogLineOfflineModeIsOn                     = Format(translation => translation?.LogMessages?.OfflineModeIsOn);
     LogLineMaximumDownloadAttempts             = Format(translation => translation?.LogMessages?.MaximumDownloadAttempts);
     LogLineStartingFileDownloadUnknownFileSize = Format(translation => translation?.LogMessages?.StartingFileDownloadUnknownFileSize);
     LogLineResumingFileDownloadUnknownFileSize = Format(translation => translation?.LogMessages?.ResumingFileDownloadUnknownFileSize);
     LogLineRequest                             = Format(translation => translation?.LogMessages?.Request);
     LogLineResponse                            = Format(translation => translation?.LogMessages?.Response);
     LogLineTooManyRedirects                    = Format(translation => translation?.LogMessages?.TooManyRedirects);
     LogLineHtmlPageReturned                    = Format(translation => translation?.LogMessages?.HtmlPageReturned);
     LogLineNoPartialDownloadSupport            = Format(translation => translation?.LogMessages?.NoPartialDownloadSupport);
     LogLineNoContentLengthWarning              = Format(translation => translation?.LogMessages?.NoContentLengthWarning);
     LogLineServerResponseTimeout               = Format(translation => translation?.LogMessages?.ServerResponseTimeout);
     LogLineDownloadIncompleteError             = Format(translation => translation?.LogMessages?.DownloadIncompleteError);
     LogLineFileWriteError                      = Format(translation => translation?.LogMessages?.FileWriteError);
     LogLineUnexpectedError                     = Format(translation => translation?.LogMessages?.UnexpectedError);
 }
        // POST api/Translation
        public async Task <IHttpActionResult> PostTranslation(TranslationData data)
        {
            try {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }
                LanguageType wordLanguage;
                LanguageType translationLanguage;
                if (!Enum.TryParse <LanguageType>(data.wordLanguage, out wordLanguage))
                {
                    return(BadRequest("Invalid word language"));
                }
                if (!Enum.TryParse <LanguageType>(data.translationLanguage, out translationLanguage))
                {
                    return(BadRequest("Invalid translation language"));
                }

                var user = this.GetUser();

                // . add word
                SpeachPartType    sp = GetSpeachPart(data.translationWords, data.translationWord);
                LanguageFormatter languageFormatter = new LanguageFormatter(wordLanguage);
                Word word = await db.AddWord(languageFormatter.FormatWord(data.word, sp),
                                             wordLanguage,
                                             data.wordPronunciation,
                                             data.wordSoundUrls,
                                             data.wordPictureUrls);

                // . add word translations to mongo
                await mongoDb.AddTranslations(
                    data.word.ToLower(),
                    data.wordLanguage,
                    data.translationLanguage,
                    data.translationWords,
                    data.translationCards);

                // . if book id is not specified - add translation to 'Cool Translator' book
                UserBook userBook;
                if (data.bookId == 0)
                {
                    userBook = await db.GetCTUserBook(User.Identity.GetUserId(), wordLanguage);

                    data.bookId = userBook.BookId;
                }
                else
                {
                    userBook = await db.FindUserBookAsync(user.Id, data.bookId);

                    if (userBook == null)
                    {
                        return(BadRequest("Invalid bookId"));
                    }
                    if (!userBook.Book.CanBeUpdatedBy(user.Id))
                    {
                        return(BadRequest(string.Format("User {0} is not author of the book", user.DisplayName)));
                    }
                }

                // . add translation
                Tuple <BookWord, Translation> bwt = await db.AddTranslation(data.bookId, word.Id, data.translationWord, translationLanguage, sp);

                Redis.PushWord(wordLanguage, sp, word.Value);
                Redis.PushWord(translationLanguage, sp, bwt.Item2.Value);

                var userBookDto = new UserBookDto(userBook);
                return(CreatedAtRoute("DefaultApi", new { id = bwt.Item2.Id }, new {
                    userBook = userBookDto,
                    book = userBookDto.BookDto,
                    word = new WordDto(word),
                    bookWord = new BookWordDto(bwt.Item1),
                    translation = new TranslationDto(bwt.Item2)
                }));
            } catch (Exception e) {
                _logger.Error(e, "Unable to add translation");
                throw;
            }
        }
示例#9
0
 public NonFictionSearchResultsTabLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     SearchBoxTooltip = Format(translation => translation?.SearchBoxTooltip);
     Columns          = new NonFictionSearchResultsGridColumnsLocalizator(prioritizedTranslationList, formatter);
 }
 public ConfirmationSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.ConfirmationStep)
 {
     StepHeader              = Format(section => section?.StepHeader);
     SettingsHeader          = Format(section => section?.SettingsHeader);
     AllowInternetConnection = Format(section => section?.AllowInternetConnection);
     UseDownloadManager      = Format(section => section?.UseDownloadManager);
     UseBrowser              = Format(section => section?.UseBrowser);
     YouCanChangeSettings    = Format(section => section?.YouCanChangeSettings);
 }
示例#11
0
 public FictionExporterLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     Id            = Format(translation => translation?.Id);
     Title         = Format(translation => translation?.Title);
     Authors       = Format(translation => translation?.Authors);
     RussianAuthor = Format(translation => translation?.RussianAuthor);
     Series        = Format(translation => translation?.Series);
     Publisher     = Format(translation => translation?.Publisher);
     Edition       = Format(translation => translation?.Edition);
     Year          = Format(translation => translation?.Year);
     Language      = Format(translation => translation?.Language);
     FormatHeader  = Format(translation => translation?.Format);
     Pages         = Format(translation => translation?.Pages);
     Version       = Format(translation => translation?.Version);
     FileSize      = Format(translation => translation?.FileSize);
     Added         = Format(translation => translation?.Added);
     LastModified  = Format(translation => translation?.LastModified);
     Md5Hash       = Format(translation => translation?.Md5Hash);
     Comments      = Format(translation => translation?.Comments);
     LibgenId      = Format(translation => translation?.LibgenId);
     Isbn          = Format(translation => translation?.Isbn);
     GoogleBookId  = Format(translation => translation?.GoogleBookId);
     Asin          = Format(translation => translation?.Asin);
 }
 public SearchResultsTabLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SearchResultsTabs)
 {
     SearchPlaceHolder          = Format(section => section?.SearchPlaceHolder);
     SearchInProgress           = Format(section => section?.SearchInProgress);
     Interrupt                  = Format(section => section?.Interrupt);
     Interrupting               = Format(section => section?.Interrupting);
     AddToBookmarksTooltip      = Format(section => section?.AddToBookmarksTooltip);
     RemoveFromBookmarksTooltip = Format(section => section?.RemoveFromBookmarksTooltip);
     ExportButtonTooltip        = Format(section => section?.ExportButtonTooltip);
     Details                                 = Format(section => section?.Details);
     Open                                    = Format(section => section?.Open);
     Download                                = Format(section => section?.Download);
     Copy                                    = Format(section => section?.Copy);
     ErrorMessageTitle                       = Format(section => section?.ErrorMessageTitle);
     OfflineModeIsOnMessageTitle             = Format(section => section?.OfflineModeIsOnMessageTitle);
     OfflineModeIsOnMessageText              = Format(section => section?.OfflineModeIsOnMessageText);
     NoDownloadMirrorError                   = Format(section => section?.NoDownloadMirrorError);
     LargeNumberOfItemsToDownloadPromptTitle = Format(section => section?.LargeNumberOfItemsToDownloadPromptTitle);
 }
示例#13
0
 public SearchResultItemViewModel(T libgenObject, LanguageFormatter formatter)
 {
     LibgenObject = libgenObject;
     Formatter    = formatter;
 }
示例#14
0
 public void UpdateLocalization(LanguageFormatter newFormatter)
 {
     Formatter = newFormatter;
     UpdateLocalizableProperties();
 }
示例#15
0
 public CSharpValueFormatter(IDbgTextWriter output, DbgEvaluationInfo evalInfo, LanguageFormatter languageFormatter, ValueFormatterOptions options, CultureInfo cultureInfo)
 {
     this.output            = output ?? throw new ArgumentNullException(nameof(output));
     this.evalInfo          = evalInfo ?? throw new ArgumentNullException(nameof(evalInfo));
     this.languageFormatter = languageFormatter ?? throw new ArgumentNullException(nameof(languageFormatter));
     this.options           = options;
     this.cultureInfo       = cultureInfo ?? CultureInfo.InvariantCulture;
     recursionCounter       = 0;
 }
 public SqlDebuggerWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     WindowTitle           = Format(translation => translation?.WindowTitle);
     SqlQueryTextBoxHeader = Format(translation => translation?.SqlQueryTextBoxHeader);
     Copy  = Format(translation => translation?.Copy);
     Close = Format(translation => translation?.Close);
 }
示例#17
0
 public ApplicationUpdateWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.ApplicationUpdate)
 {
     WindowTitle          = Format(section => section?.WindowTitle);
     UpdateAvailable      = Format(section => section?.UpdateAvailable);
     Download             = Format(section => section?.Download);
     DownloadAndInstall   = Format(section => section?.DownloadAndInstall);
     SkipThisVersion      = Format(section => section?.SkipThisVersion);
     Cancel               = Format(section => section?.Cancel);
     Interrupt            = Format(section => section?.Interrupt);
     Interrupting         = Format(section => section?.Interrupting);
     InterruptPromptTitle = Format(section => section?.InterruptPromptTitle);
     InterruptPromptText  = Format(section => section?.InterruptPromptText);
     Error = Format(section => section?.Error);
     IncompleteDownload = Format(section => section?.IncompleteDownload);
     Close = Format(section => section?.Close);
 }
示例#18
0
 public ImportDumpsSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.ImportDumpsStep)
 {
     NonFictionDumpName     = Format(section => section?.NonFictionDumpName);
     FictionDumpName        = Format(section => section?.FictionDumpName);
     SciMagArticlesDumpName = Format(section => section?.SciMagArticlesDumpName);
     NotImported            = Format(section => section?.NotImported);
     Importing        = Format(section => section?.Importing);
     ImportSuccessful = Format(section => section?.ImportSuccessful);
     ImportCancelled  = Format(section => section?.ImportCancelled);
     ImportError      = Format(section => section?.ImportError);
     ImportButton     = Format(section => section?.ImportButton);
     ImportingButton  = Format(section => section?.ImportingButton);
     DeleteDumps      = Format(section => section?.DeleteDumps);
 }
 public NonFictionSearchResultItemViewModel(NonFictionBook book, LanguageFormatter formatter)
     : base(book, formatter)
 {
 }
 public CSharpStackFrameFormatter(ITextColorWriter output, DbgEvaluationContext context, LanguageFormatter languageFormatter, DbgStackFrameFormatterOptions options, ValueFormatterOptions valueOptions, CultureInfo cultureInfo, CancellationToken cancellationToken)
 {
     this.output            = output ?? throw new ArgumentNullException(nameof(output));
     this.context           = context ?? throw new ArgumentNullException(nameof(context));
     this.languageFormatter = languageFormatter ?? throw new ArgumentNullException(nameof(languageFormatter));
     this.options           = options;
     this.valueOptions      = valueOptions;
     this.cultureInfo       = cultureInfo ?? CultureInfo.InvariantCulture;
     this.cancellationToken = cancellationToken;
 }
 public SettingsWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     WindowTitle = Format(translation => translation?.WindowTitle);
     Ok          = Format(translation => translation?.Ok);
     Cancel      = Format(translation => translation?.Cancel);
     DiscardChangesPromptTitle          = Format(translation => translation?.DiscardChangesPromptTitle);
     DiscardChangesPromptText           = Format(translation => translation?.DiscardChangesPromptText);
     GeneralTabHeader                   = Format(translation => translation?.General?.TabHeader);
     GeneralLanguage                    = Format(translation => translation?.General?.Language);
     GeneralCheckUpdates                = Format(translation => translation?.General?.CheckUpdates);
     GeneralUpdateCheckIntervalNever    = Format(translation => translation?.General?.UpdateCheckIntervals?.Never);
     GeneralUpdateCheckIntervalDaily    = Format(translation => translation?.General?.UpdateCheckIntervals?.Daily);
     GeneralUpdateCheckIntervalWeekly   = Format(translation => translation?.General?.UpdateCheckIntervals?.Weekly);
     GeneralUpdateCheckIntervalMonthly  = Format(translation => translation?.General?.UpdateCheckIntervals?.Monthly);
     NetworkTabHeader                   = Format(translation => translation?.Network?.TabHeader);
     NetworkOfflineMode                 = Format(translation => translation?.Network?.OfflineMode);
     NetworkUseHttpProxy                = Format(translation => translation?.Network?.UseHttpProxy);
     NetworkProxyAddress                = Format(translation => translation?.Network?.ProxyAddress);
     NetworkProxyAddressRequired        = Format(translation => translation?.Network?.ProxyAddressRequired);
     NetworkProxyPort                   = Format(translation => translation?.Network?.ProxyPort);
     NetworkProxyUserName               = Format(translation => translation?.Network?.ProxyUserName);
     NetworkProxyPassword               = Format(translation => translation?.Network?.ProxyPassword);
     NetworkProxyPasswordWarning        = Format(translation => translation?.Network?.ProxyPasswordWarning);
     DownloadTabHeader                  = Format(translation => translation?.Download?.TabHeader);
     DownloadDownloadMode               = Format(translation => translation?.Download?.DownloadMode) + ":";
     DownloadOpenInBrowser              = Format(translation => translation?.Download?.OpenInBrowser);
     DownloadUseDownloadManager         = Format(translation => translation?.Download?.UseDownloadManager);
     DownloadDownloadDirectory          = Format(translation => translation?.Download?.DownloadDirectory) + ":";
     DownloadBrowseDirectoryDialogTitle = Format(translation => translation?.Download?.BrowseDirectoryDialogTitle);
     DownloadDownloadDirectoryNotFound  = Format(translation => translation?.Download?.DownloadDirectoryNotFound);
     DownloadTimeout                    = Format(translation => translation?.Download?.Timeout);
     DownloadSeconds                    = Format(translation => translation?.Download?.Seconds);
     DownloadDownloadAttempts           = Format(translation => translation?.Download?.DownloadAttempts);
     DownloadTimes                = Format(translation => translation?.Download?.Times);
     DownloadRetryDelay           = Format(translation => translation?.Download?.RetryDelay);
     MirrorsTabHeader             = Format(translation => translation?.Mirrors?.TabHeader);
     MirrorsNonFiction            = Format(translation => translation?.Mirrors?.NonFiction);
     MirrorsFiction               = Format(translation => translation?.Mirrors?.Fiction);
     MirrorsSciMagArticles        = Format(translation => translation?.Mirrors?.SciMagArticles);
     MirrorsBooks                 = Format(translation => translation?.Mirrors?.Books);
     MirrorsArticles              = Format(translation => translation?.Mirrors?.Articles);
     MirrorsCovers                = Format(translation => translation?.Mirrors?.Covers);
     MirrorsSynchronization       = Format(translation => translation?.Mirrors?.Synchronization);
     MirrorsNoMirror              = Format(translation => translation?.Mirrors?.NoMirror);
     SearchTabHeader              = Format(translation => translation?.Search?.TabHeader);
     SearchLimitResults           = Format(translation => translation?.Search?.LimitResults);
     SearchMaximumResults         = Format(translation => translation?.Search?.MaximumResults);
     SearchPositiveNumbersOnly    = Format(translation => translation?.Search?.PositiveNumbersOnly);
     SearchOpenDetails            = Format(translation => translation?.Search?.OpenDetails) + ":";
     SearchInModalWindow          = Format(translation => translation?.Search?.InModalWindow);
     SearchInNonModalWindow       = Format(translation => translation?.Search?.InNonModalWindow);
     SearchInNewTab               = Format(translation => translation?.Search?.InNewTab);
     ExportTabHeader              = Format(translation => translation?.Export?.TabHeader);
     ExportOpenResults            = Format(translation => translation?.Export?.OpenResults);
     ExportSplitIntoMultipleFiles = Format(translation => translation?.Export?.SplitIntoMultipleFiles);
     ExportMaximumRowsPerFile     = Format(translation => translation?.Export?.MaximumRowsPerFile);
     AdvancedTabHeader            = Format(translation => translation?.Advanced?.TabHeader);
     AdvancedUseLogging           = Format(translation => translation?.Advanced?.UseLogging);
     AdvancedEnableSqlDebugger    = Format(translation => translation?.Advanced?.EnableSqlDebugger);
 }
示例#22
0
 public DownloadDumpInfoSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.DownloadDumpInfoStep)
 {
     DownloadingDumpInfo    = Format(section => section?.DownloadingDumpInfo);
     CannotDownloadDumpInfo = Format(section => section?.CannotDownloadDumpInfo);
     Interrupt    = Format(section => section?.Interrupt);
     Interrupting = Format(section => section?.Interrupting);
     Retry        = Format(section => section?.Retry);
 }
示例#23
0
 public Localizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
 {
     this.prioritizedTranslationList = prioritizedTranslationList;
     Formatter = formatter;
 }
示例#24
0
 public NonFictionExporterLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     Id              = Format(translation => translation?.Id);
     Title           = Format(translation => translation?.Title);
     Authors         = Format(translation => translation?.Authors);
     Series          = Format(translation => translation?.Series);
     Publisher       = Format(translation => translation?.Publisher);
     Year            = Format(translation => translation?.Year);
     Language        = Format(translation => translation?.Language);
     FormatHeader    = Format(translation => translation?.Format);
     Isbn            = Format(translation => translation?.Isbn);
     Added           = Format(translation => translation?.Added);
     LastModified    = Format(translation => translation?.LastModified);
     Library         = Format(translation => translation?.Library);
     FileSize        = Format(translation => translation?.FileSize);
     Topics          = Format(translation => translation?.Topics);
     Volume          = Format(translation => translation?.Volume);
     Magazine        = Format(translation => translation?.Magazine);
     City            = Format(translation => translation?.City);
     Edition         = Format(translation => translation?.Edition);
     BodyMatterPages = Format(translation => translation?.BodyMatterPages);
     TotalPages      = Format(translation => translation?.TotalPages);
     Tags            = Format(translation => translation?.Tags);
     Md5Hash         = Format(translation => translation?.Md5Hash);
     Comments        = Format(translation => translation?.Comments);
     LibgenId        = Format(translation => translation?.LibgenId);
     Issn            = Format(translation => translation?.Issn);
     Udc             = Format(translation => translation?.Udc);
     Lbc             = Format(translation => translation?.Lbc);
     Lcc             = Format(translation => translation?.Lcc);
     Ddc             = Format(translation => translation?.Ddc);
     Doi             = Format(translation => translation?.Doi);
     OpenLibraryId   = Format(translation => translation?.OpenLibraryId);
     GoogleBookId    = Format(translation => translation?.GoogleBookId);
     Asin            = Format(translation => translation?.Asin);
     Dpi             = Format(translation => translation?.Dpi);
     Ocr             = Format(translation => translation?.Ocr);
     TableOfContents = Format(translation => translation?.TableOfContents);
     Scanned         = Format(translation => translation?.Scanned);
     Orientation     = Format(translation => translation?.Orientation);
     Paginated       = Format(translation => translation?.Paginated);
     Colored         = Format(translation => translation?.Colored);
     Cleaned         = Format(translation => translation?.Cleaned);
 }
示例#25
0
 public SciMagExporterLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.Exporter?.SciMagColumns)
 {
     Id            = Format(section => section?.Id);
     Title         = Format(section => section?.Title);
     Authors       = Format(section => section?.Authors);
     Magazine      = Format(section => section?.Magazine);
     Year          = Format(section => section?.Year);
     Month         = Format(section => section?.Month);
     Day           = Format(section => section?.Day);
     Volume        = Format(section => section?.Volume);
     Issue         = Format(section => section?.Issue);
     Pages         = Format(section => section?.Pages);
     FileSize      = Format(section => section?.FileSize);
     AddedDateTime = Format(section => section?.AddedDateTime);
     Md5Hash       = Format(section => section?.Md5Hash);
     AbstractUrl   = Format(section => section?.AbstractUrl);
     LibgenId      = Format(section => section?.LibgenId);
     Doi1          = Format(section => section?.Doi1);
     Doi2          = Format(section => section?.Doi2);
     Isbn          = Format(section => section?.Isbn);
     MagazineId    = Format(section => section?.MagazineId);
     Issnp         = Format(section => section?.Issnp);
     Issne         = Format(section => section?.Issne);
     PubmedId      = Format(section => section?.PubmedId);
     Pmc           = Format(section => section?.Pmc);
     Pii           = Format(section => section?.Pii);
     Attribute1    = Format(section => section?.Attribute1);
     Attribute2    = Format(section => section?.Attribute2);
     Attribute3    = Format(section => section?.Attribute3);
     Attribute4    = Format(section => section?.Attribute4);
     Attribute5    = Format(section => section?.Attribute5);
     Attribute6    = Format(section => section?.Attribute6);
 }
示例#26
0
 public NonFictionSearchResultsGridColumnsLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     Title        = Format(translation => translation?.Title);
     Authors      = Format(translation => translation?.Authors);
     Series       = Format(translation => translation?.Series);
     Year         = Format(translation => translation?.Year);
     Publisher    = Format(translation => translation?.Publisher);
     FormatColumn = Format(translation => translation?.Format);
     FileSize     = Format(translation => translation?.FileSize);
     Ocr          = Format(translation => translation?.Ocr);
 }
 public DownloadDumpLinksSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.DownloadDumpLinksStep)
 {
     OpenPage               = Format(section => section?.OpenPage);
     CopyLink               = Format(section => section?.CopyLink);
     DownloadFiles          = Format(section => section?.DownloadFiles);
     NonFictionDumpName     = Format(section => section?.NonFictionDumpName);
     FictionDumpName        = Format(section => section?.FictionDumpName);
     SciMagArticlesDumpName = Format(section => section?.SciMagArticlesDumpName);
     YYYY = Format(section => section?.YYYY);
     MM   = Format(section => section?.MM);
     DD   = Format(section => section?.DD);
 }
示例#28
0
 public CreateDatabaseWindowLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter)
 {
     WindowTitle                       = Format(translation => translation?.WindowTitle);
     FirstRunMessage                   = Format(translation => translation?.FirstRunMessage);
     ChooseOption                      = Format(translation => translation?.ChooseOption);
     CreateNewDatabase                 = Format(translation => translation?.CreateNewDatabase);
     OpenExistingDatabase              = Format(translation => translation?.OpenExistingDatabase);
     BrowseNewDatabaseDialogTitle      = Format(translation => translation?.BrowseNewDatabaseDialogTitle);
     BrowseExistingDatabaseDialogTitle = Format(translation => translation?.BrowseExistingDatabaseDialogTitle);
     Databases            = Format(translation => translation?.Databases);
     AllFiles             = Format(translation => translation?.AllFiles);
     Error                = Format(translation => translation?.Error);
     CannotCreateDatabase = Format(translation => translation?.CannotCreateDatabase);
     Ok     = Format(translation => translation?.Ok);
     Cancel = Format(translation => translation?.Cancel);
 }
 public VisualBasicStackFrameFormatter(IDbgTextWriter output, DbgEvaluationInfo evalInfo, LanguageFormatter languageFormatter, DbgStackFrameFormatterOptions options, ValueFormatterOptions valueOptions, CultureInfo cultureInfo)
 {
     this.output            = output ?? throw new ArgumentNullException(nameof(output));
     this.evalInfo          = evalInfo ?? throw new ArgumentNullException(nameof(evalInfo));
     this.languageFormatter = languageFormatter ?? throw new ArgumentNullException(nameof(languageFormatter));
     this.options           = options;
     this.valueOptions      = valueOptions;
     this.cultureInfo       = cultureInfo ?? CultureInfo.InvariantCulture;
 }
示例#30
0
 public StepListSetupStepLocalizator(List <Translation> prioritizedTranslationList, LanguageFormatter formatter)
     : base(prioritizedTranslationList, formatter, translation => translation?.SetupWizardWindow?.StepListStep)
 {
     StepListHeader   = Format(section => section?.StepListHeader);
     DownloadingDumps = Format(section => section?.DownloadingDumps);
     CreatingDatabase = Format(section => section?.CreatingDatabase);
     ImportingDumps   = Format(section => section?.ImportingDumps);
     ClickNextButton  = Format(section => section?.ClickNextButton);
 }