1/*
2 * Copyright 2006, 2023, Haiku. All rights reserved.
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 "MoveStylesCommand.h"
11
12#include <Catalog.h>
13#include <Locale.h>
14#include <StringFormat.h>
15
16#include "Style.h"
17
18
19#undef B_TRANSLATION_CONTEXT
20#define B_TRANSLATION_CONTEXT "Icon-O-Matic-MoveStylesCmd"
21
22
23MoveStylesCommand::MoveStylesCommand(Container<Style>* container,
24		Style** styles, int32 count, int32 toIndex)
25	: MoveCommand<Style>(container, styles, count, toIndex)
26{
27}
28
29
30MoveStylesCommand::~MoveStylesCommand()
31{
32}
33
34
35void
36MoveStylesCommand::GetName(BString& name)
37{
38	static BStringFormat format(B_TRANSLATE("Move {0, plural, "
39		"one{style} other{styles}}"));
40	format.Format(name, fCount);
41}
42