xref: /haiku/src/apps/icon-o-matic/shape/commands/RemoveTransformersCommand.cpp (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
1 /*
2  * Copyright 2006, 2023, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  *		Zardshard
8  */
9 
10 #include "RemoveTransformersCommand.h"
11 
12 #include <Catalog.h>
13 #include <Locale.h>
14 #include <StringFormat.h>
15 
16 #include "Transformer.h"
17 
18 
19 #undef B_TRANSLATION_CONTEXT
20 #define B_TRANSLATION_CONTEXT "Icon-O-Matic-RemoveTransformersCmd"
21 
22 
23 RemoveTransformersCommand::RemoveTransformersCommand(Container<Transformer>* container,
24 													 const int32* indices,
25 													 int32 count)
26 	: RemoveCommand<Transformer>(container, indices, count)
27 {
28 }
29 
30 
31 RemoveTransformersCommand::~RemoveTransformersCommand()
32 {
33 }
34 
35 
36 void
37 RemoveTransformersCommand::GetName(BString& name)
38 {
39 	static BStringFormat format(B_TRANSLATE("Remove {0, plural, "
40 		"one{transformer} other{transformers}}"));
41 	format.Format(name, fCount);
42 }
43