lcresourcestring.pas 2.0 KB

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