lcresourcestring.pas 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // SPDX-License-Identifier: GPL-3.0-only
  2. unit LCResourceString;
  3. {$mode objfpc}{$H+}
  4. interface
  5. uses BGRABitmapTypes;
  6. function GradientTypeToTranslatedStr(AGradientType: TGradientType): string;
  7. resourcestring
  8. rsPreview = 'Preview';
  9. rsNoFill = 'No fill';
  10. rsSolidColor = 'Solid color';
  11. rsColor = 'Color';
  12. rsOpacity = 'Opacity';
  13. rsGradientFill = 'Gradient fill';
  14. rsSwapColors = 'Swap colors';
  15. rsStartOpacity = 'Start opacity';
  16. rsEndOpacity = 'End opacity';
  17. rsGradientLinear = 'Linear';
  18. rsGradientReflected = 'Reflected';
  19. rsGradientDiamond = 'Diamond';
  20. rsGradientRadial = 'Radial';
  21. rsGradientAngular = 'Angular';
  22. rsGradientRepetition = 'Gradient repetition';
  23. rsGrPad = 'Pad';
  24. rsGrRepeat = 'Repeat';
  25. rsGrReflect = 'Reflect';
  26. rsGrSine = 'Sine';
  27. rsColorInterpolation = 'Color interpolation';
  28. rsCiStdRGB = 'sRGB';
  29. rsCiLinearRGB = 'RGB';
  30. rsCiLinearHSLPositive = 'HSL CW';
  31. rsCiLinearHSLNegative = 'HSL CCW';
  32. rsCiGSBPositive = 'Corr. HSL CW';
  33. rsCiGSBNegative = 'Corr. HSL CCW';
  34. rsTextureFill = 'Texture fill';
  35. rsTextureRepetition = 'Texture repetition';
  36. rsLoadTexture = 'Load texture';
  37. rsTrNone = 'No repetition';
  38. rsTrRepeatX = 'Repeat X';
  39. rsTrRepeatY = 'Repeat Y';
  40. rsTrRepeatBoth = 'Repeat both';
  41. rsEditGradTexPoints = 'Edit gradient/texture points';
  42. rsAdjustToShape = 'Adjust to shape';
  43. rsNotTextureFill = 'It is not a texture fill';
  44. rsIncompatibleType = 'Incompatible type';
  45. rsLightPosition = 'Light position';
  46. rsShapeClassNotSpecified = 'Shape class not specified';
  47. rsUnknownShapeClass = 'Unknown shape class "%1"';
  48. rsShapeNotFound = 'Shape not found';
  49. rsIndexOutOfBounds = 'Index out of bounds';
  50. implementation
  51. function GradientTypeToTranslatedStr(AGradientType: TGradientType): string;
  52. begin
  53. case AGradientType of
  54. gtLinear: result := rsGradientLinear;
  55. gtReflected: result := rsGradientReflected;
  56. gtDiamond: result := rsGradientDiamond;
  57. gtRadial: result := rsGradientRadial;
  58. gtAngular: result := rsGradientAngular;
  59. else result := '?';
  60. end;
  61. end;
  62. end.