-
Notifications
You must be signed in to change notification settings - Fork 1
/
messages.cpp
89 lines (68 loc) · 2.91 KB
/
messages.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
Copyright (c) 2005-2012 Alon Bar-Lev <[email protected]>
Copyright (c) 2005-2012 Andrey Dubovik <[email protected]>
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program (see the file COPYING.GPL included with this
distribution); if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "messages.h"
namespace msg {
const char* copyright = (
"Copyright (c) 2005-2012 Alon Bar-Lev <[email protected]>\n"
"Copyright (c) 2005-2012 Andrey Dubovik <http://www.yellowsite.ru>\n"
"\n"
"This is free software; see the source for copying conditions.\n"
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
);
const char* usage = (
"Usage:\n"
" mp3unicode [options] file1 file2 ...\n"
"\n"
"Options:\n"
" -h, --help This help\n"
" -v, --version Version information\n"
" -s, --source-encoding=cp Current encoding, required\n"
" -1, --id3v1-encoding=t Target encoding, can be 'none' or an ANSI code page\n"
" -2, --id3v2-encoding=t Target encoding, can be 'none', an ANSI code page or 'unicode'\n"
" -p, --preserve-unicode Try not to reencode unicode.\n"
" -w, --preview Do not modify the files, just show converted tags.\n"
" -q, --quiet Do not report what files have been processed.\n"
"\n"
"To view available ANSI code pages, execute:\n"
" iconv --list\n"
"\n"
"Important: use 'unicode' instead of utf-8 or utf-16\n\n"
);
const char* wrong_senc = "Cannot open source encoding.\n";
const char* wrong_1enc = "Cannot open id3v1 encoding.\n";
const char* wrong_2enc = "Cannot open id3v2 encoding.\n";
const char* enc_error = "Error during encoding.\n";
const char* nosenc = "Please specify source encoding.\n";
const char* seehelp = "For help, type mp3unicode --help.\n";
const char* nofiles = "No files are given.\n";
const char* v1unicode = "ID3v1 does not support unicode.\n";
std::string nofile(const std::string filename) {
return "Cannot open file: " + filename + ".";
}
std::string emptyfile(const std::string filename) {
return filename + " does not contain any ID3 tags, skipping.\n";
}
std::string writefail(const std::string filename) {
return filename + "failed!\n";
}
std::string filedone(const std::string filename) {
return filename + "...done\n";
}
std::string error(const std::string message) {
return "Error: " + message + "\n";
}
}