<commit_before>(*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) <NAME>
*)
unit proc_msg;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils,
  ATBinHex,
  ATSynEdit;

const
  cAppExeVersion = '1.137.2.1';
  cAppApiVersion = 401;

const
  cOptionSystemSuffix =
    {$ifdef windows} '' {$endif}
    {$ifdef linux} '__linux' {$endif}
    {$ifdef darwin} '__mac' {$endif}
    {$ifdef freebsd} '__freebsd' {$endif}
    {$ifdef netbsd} '__netbsd' {$endif}
    {$ifdef openbsd} '__openbsd' {$endif}
    {$ifdef dragonfly} '__dragonfly' {$endif}
    {$ifdef solaris} '__solaris' {$endif}
    {$ifdef haiku} '__haiku' {$endif}
    ;

  cSystemLibDir =
    {$ifdef windows} '' {$endif}
    {$ifdef linux} '/usr/lib' {$endif}
    {$ifdef darwin} '/Library/Frameworks' {$endif}
    {$ifdef freebsd} '/usr/local/lib' {$endif}
    {$ifdef netbsd} '/usr/pkg/lib' {$endif}
    {$ifdef openbsd} '/usr/local/lib' {$endif}
    {$ifdef dragonfly} '/usr/lib' {$endif}
    {$ifdef solaris} '/usr/local/lib' {$endif}
    {$ifdef haiku} '/system/lib' {$endif}
    ;

  cSystemHasPkExec =
    {$if defined(linux) or defined(bsd)}
    true
    {$else}
    false
    {$endif};

const
  EOL = #10;
  msgPythonListError = 'Cannot create new list object'; //no need i18n
  msgCallbackBad = 'Bad API callback, report to plugin author: %s'; //no i18n
  msgCallbackDeprecated = 'Deprecated API callback, report to plugin author: %s'; //no i18n
  msgApiDeprecated = 'Deprecated API usage: %s'; //no i18n
  msgErrorInTheme = 'NOTE: Theme "%s" misses item "%s"';
  msgCmdPalettePrefixHelp = '#p – plugins'+EOL+'#l – lexers'+EOL+'#f – opened files'+EOL+'#r – recent files';
  msgRescannedAllPlugins = 'Rescanned all plugins';
  msgWelcomeTabTitle = '(welcome)';
  msgSavedPythonLibOption = 'Saved the option "pylib'+cOptionSystemSuffix+'". Restart CudaText to apply it.';
  msgSearchingInDir = 'Searching:';

  msgErrorPluginIgnored = 'NOTE: Plugin %s is in ignore-list, please remove it';
  msgErrorTooManyFileTabs = 'NOTE: Too many editor-tabs are opened, cannot add tab';
  msgCannotFindLexers = 'NOTE: Cannot find lexers: %s';
  msgCannotFindData = 'NOTE: Cannot find data: %s';
  msgCannotFindSessionFile = 'NOTE: File from session not found: %s';
  msgStatusbarCellColumnMarks: array[boolean] of string = ('-', '||');
  msgStatusbarCellInsOvr: array[boolean] of string = ('Ins', 'Ovr');

  msgTitle = 'CudaText'; //no i18n
  msgModified: array[boolean] of string = ('', '*'); //no i18n
  msgLiteLexerSuffix = ' ^'; //no i18n

  msgDialogTitleOpen: string = 'Open file';
  msgDialogTitleSaveAs: string = 'Save file as';
  msgDialogTitleSelFolder: string = 'Select folder';

  msgFileMaybeNotText: string = 'File is maybe not text:';
  msgFileTooBig: string = 'File is too big to edit:';

  msgLinkOpenSite: string = 'Open link';
  msgLinkOpenEmail: string = 'Send e-mail';

  msgTooltipClearFilter: string = 'Clear filter';
  msgTooltipCloseTab: string = 'Close tab';
  msgTooltipAddTab: string = 'Add tab';
  msgTooltipArrowLeft: string = 'Scroll tabs left';
  msgTooltipArrowRight: string = 'Scroll tabs right';
  msgTooltipArrowMenu: string = 'Show tabs menu';

  msgUntitledTab: string = 'Untitled';
  msgAllFiles: string = 'All files';<commit_msg>fmt src<commit_after>(*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) <NAME>
*)
unit proc_msg;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils,
  ATBinHex,
  ATSynEdit;

const
  cAppExeVersion = '1.137.2.1';
  cAppApiVersion = 401;

const
  cOptionSystemSuffix =
    {$ifdef windows} '' {$endif}
    {$ifdef linux} '__linux' {$endif}
    {$ifdef darwin} '__mac' {$endif}
    {$ifdef freebsd} '__freebsd' {$endif}
    {$ifdef netbsd} '__netbsd' {$endif}
    {$ifdef openbsd} '__openbsd' {$endif}
    {$ifdef dragonfly} '__dragonfly' {$endif}
    {$ifdef solaris} '__solaris' {$endif}
    {$ifdef haiku} '__haiku' {$endif}
    ;

  cSystemLibDir =
    {$ifdef windows} '' {$endif}
    {$ifdef linux} '/usr/lib' {$endif}
    {$ifdef darwin} '/Library/Frameworks' {$endif}
    {$ifdef freebsd} '/usr/local/lib' {$endif}
    {$ifdef netbsd} '/usr/pkg/lib' {$endif}
    {$ifdef openbsd} '/usr/local/lib' {$endif}
    {$ifdef dragonfly} '/usr/lib' {$endif}
    {$ifdef solaris} '/usr/local/lib' {$endif}
    {$ifdef haiku} '/system/lib' {$endif}
    ;

  cSystemHasPkExec =
    {$if defined(linux) or defined(bsd)}
    true
    {$else}
    false
    {$endif};

const
  EOL = #10;
  msgPythonListError = 'Cannot create new list object'; //no need i18n
  msgCallbackBad = 'Bad API callback, report to plugin author: %s'; //no i18n
  msgCallbackDeprecated = 'Deprecated API callback, report to plugin author: %s'; //no i18n
  msgApiDeprecated = 'Deprecated API usage: %s'; //no i18n
  msgErrorInTheme = 'NOTE: Theme "%s" misses item "%s"';
  msgCmdPalettePrefixHelp = '#p – plugins'+EOL+'#l – lexers'+EOL+'#f – opened files'+EOL+'#r – recent files';
  msgRescannedAllPlugins = 'Rescanned all plugins';
  msgWelcomeTabTitle = '(welcome)';
  msgSavedPythonLibOption = 'Saved the option "pylib'+cOptionSystemSuffix+'". Restart CudaText to apply it.';
  msgSearchingInDir = 'Searching:';

  msgErrorPluginIgnored = 'NOTE: Plugin %s is in ignore-list, please remove it';
  msgErrorTooManyFileTabs = 'NOTE: Too many editor-tabs are opened, cannot add tab';
  msgCannotFindLexers = 'NOTE: Cannot find lexers: %s';
  msgCannotFindData = 'NOTE: Cannot find data: %s';
  msgCannotFindSessionFile = 'NOTE: File from session not found: %s';

  msgTitle = 'CudaText'; //no i18n
  msgModified: array[boolean] of string = ('', '*'); //no i18n
  msgLiteLexerSuffix = ' ^'; //no i18n
  msgStatusbarCellColumnMarks: array[boolean] of string = ('-', '||');
  msgStatusbarCellInsOvr: array[boolean] of string = ('Ins', 'Ovr');

  msgDialogTitleOpen: string = 'Open file';
  msgDialogTitleSaveAs: string = 'Save file as';
  msgDialogTitleSelFolder: string = 'Select folder';

  msgFileMaybeNotText: string = 'File is maybe not text:';
  msgFileTooBig: string = 'File is too big to edit:';

  msgLinkOpenSite: string = 'Open link';
  msgLinkOpenEmail: string = 'Send e-mail';

  msgTooltipClearFilter: string = 'Clear filter';
  msgTooltipCloseTab: string = 'Close tab';
  msgTooltipAddTab: string = 'Add tab';
  msgTooltipArrowLeft: string = 'Scroll tabs left';
  msgTooltipArrowRight: string = 'Scroll tabs right';
  msgTooltipArrowMenu: string = 'Show tabs menu';

  msgUntitledTab: string = 'Untitled';
  msgAllFiles: string = 'All files';
{'fraction_non_alphanumeric': 0.1461901949202599, 'fraction_numerical': 0.008564678086237449, 'mean_word_length': 4.1623475609756095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2307043', 'n_tokens_mistral': 2400, 'n_tokens_neox': 2293, 'n_words': 700}