From ed659d0cff867f923e59bbf758a488a572c23048 Mon Sep 17 00:00:00 2001 From: Emir SARI Date: Sun, 4 Feb 2024 19:30:04 +0000 Subject: [PATCH] Fix i18n --- artpaint/layers/Layer.cpp | 2 +- artpaint/layers/LayerWindow.cpp | 2 +- locales/en.catkeys | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/artpaint/layers/Layer.cpp b/artpaint/layers/Layer.cpp index fb933a68..541ad0b8 100644 --- a/artpaint/layers/Layer.cpp +++ b/artpaint/layers/Layer.cpp @@ -48,7 +48,7 @@ Layer::Layer( fBlendMode(BLEND_NORMAL) { frame.OffsetTo(B_ORIGIN); - fLayerName << "Layer " << fLayerId; + fLayerName << B_TRANSLATE("Layer") << " " << fLayerId; if (fLayerType == HS_NORMAL_LAYER) { BRect sourceRect; diff --git a/artpaint/layers/LayerWindow.cpp b/artpaint/layers/LayerWindow.cpp index a7483af9..6576bb71 100644 --- a/artpaint/layers/LayerWindow.cpp +++ b/artpaint/layers/LayerWindow.cpp @@ -208,7 +208,7 @@ LayerWindow::LayerWindow(BRect frame) BMessage* message = new BMessage(HS_LAYER_TRANSPARENCY_CHANGED); message->AddInt32("value", 0); - transparency_slider = new NumberSliderControl("Alpha:", "0", message, 0, 100, false, false); + transparency_slider = new NumberSliderControl(B_TRANSLATE("Alpha:"), "0", message, 0, 100, false, false); BFont font; diff --git a/locales/en.catkeys b/locales/en.catkeys index 4ce409ec..410549a3 100644 --- a/locales/en.catkeys +++ b/locales/en.catkeys @@ -1,4 +1,4 @@ -1 English application/x-vnd.artpaint 1413323695 +1 English application/x-vnd.artpaint 3830704577 Angle: Manipulators Angle: Lighten PixelOperations Lighten Enable antialiasing Manipulators Enable antialiasing @@ -30,6 +30,7 @@ Mode: LayerWindow Mode: Opens the tool setup window. PaintWindow Opens the tool setup window. Making a selection. Tools Making a selection. New color set ColorPalette New color set +Layer ColorPalette Layer Change transparency… Manipulators Change transparency… Cut PaintWindow Cut OK Windows OK @@ -78,8 +79,8 @@ Green Tools Green Crop: Use handles or number-fields to set new borders. SHIFT locks aspect ratio. Manipulators Crop: Use handles or number-fields to set new borders. SHIFT locks aspect ratio. Edit PaintWindow Edit Drop a color from the Colors window Windows Drop a color from the Colors window -Nearest neighbor ScaleUtilities Nearest neighbor Layer name ImageView Layer name +Nearest neighbor ScaleUtilities Nearest neighbor Drawing an ellipse. Tools Drawing an ellipse. Hard mix PixelOperations Hard mix Background color Tools Background color @@ -161,6 +162,7 @@ Lightness ColorSliders For CIELAB color sliders - also called L*a*b* color Light Selection tool Tools Selection tool Enable gradient Tools Enable gradient Cuts the selection from all layers to the clipboard. PaintWindow Cuts the selection from all layers to the clipboard. +Alpha: LayerWindow Alpha: Not enough free memory to add a layer. You can free more memory by disabling the undo and closing other images. It is also a good idea to save the image now because running out of memory later on might make saving difficult or impossible. I am very sorry about this inconvenience. ImageView Not enough free memory to add a layer. You can free more memory by disabling the undo and closing other images. It is also a good idea to save the image now because running out of memory later on might make saving difficult or impossible. I am very sorry about this inconvenience. Pastes previously copied selection as a new layer. PaintWindow Pastes previously copied selection as a new layer. Selects entire layer PaintWindow Selects entire layer @@ -198,8 +200,8 @@ Opens an image from disk. PaintWindow Opens an image from disk. Paste as a new project PaintWindow Paste as a new project Layers Windows Layers Not enough free memory to finish the effect you requested. You may close other images and try again. Also shortening the depth of undo or disabling undo altogether helps in achieving more memory. If you have other applications running, closing them gives you more free memory. It is also a good idea to save your work at this point, because if the memory runs out completely saving might become impossible. I am very sorry about this inconvenience. ImageView Not enough free memory to finish the effect you requested. You may close other images and try again. Also shortening the depth of undo or disabling undo altogether helps in achieving more memory. If you have other applications running, closing them gives you more free memory. It is also a good idea to save your work at this point, because if the memory runs out completely saving might become impossible. I am very sorry about this inconvenience. -None PaintWindow None Color dodge PixelOperations Color dodge +None PaintWindow None Cursor Windows Cursor Crop… PaintWindow Crop… Darken PixelOperations Darken