Yet another localization fix in Data Translators.

Partialy fixes #7129.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40577 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Siarzhuk Zharski 2011-02-20 12:15:28 +00:00
parent ee1568cb41
commit 1da233a71f
4 changed files with 8 additions and 11 deletions

View File

@ -61,9 +61,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static const int32 sTranslatorVersion = B_TRANSLATION_MAKE_VERSION(1, 2, 0);
static const char* sTranslatorName = B_TRANSLATE_MARK("JPEG images");
static const char* sTranslatorInfo
= B_TRANSLATE_MARK("©2002-2003, Marcin Konicki\n"
static const char* sTranslatorName = B_TRANSLATE("JPEG images");
static const char* sTranslatorInfo = B_TRANSLATE("©2002-2003, Marcin Konicki\n"
"©2005-2007, Haiku\n"
"\n"
"Based on IJG library © 1994-2009, Thomas G. Lane, Guido Vollbeding.\n"
@ -671,9 +670,7 @@ TranslatorAboutView::TranslatorAboutView(const char* name)
BView(name, 0, new BGroupLayout(B_VERTICAL))
{
BAlignment labelAlignment = BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP);
BString str1(sTranslatorName);
str1.ReplaceFirst("JPEG images", B_TRANSLATE("JPEG images"));
BStringView* title = new BStringView("Title", str1.String());
BStringView* title = new BStringView("Title", sTranslatorName);
title->SetFont(be_bold_font);
title->SetExplicitAlignment(labelAlignment);

View File

@ -57,8 +57,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static int32 sTranslatorVersion = B_TRANSLATION_MAKE_VERSION(1, 0, 0);
static const char* sTranslatorName = B_TRANSLATE_MARK("JPEG2000 images");
static const char* sTranslatorInfo = B_TRANSLATE_MARK("©2002-2003, Shard\n"
static const char* sTranslatorName = B_TRANSLATE("JPEG2000 images");
static const char* sTranslatorInfo = B_TRANSLATE("©2002-2003, Shard\n"
"©2005-2006, Haiku\n"
"\n"
"Based on JasPer library:\n"

View File

@ -92,8 +92,8 @@ const uint32 kNumInputFormats = sizeof(sInputFormats) / sizeof(translation_forma
const uint32 kNumOutputFormats = sizeof(sOutputFormats) / sizeof(translation_format);
const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting);
const char* kShortName1 = B_TRANSLATE_MARK("RAW images");
const char* kShortInfo1 = B_TRANSLATE_MARK("RAW image translator");
const char* kShortName1 = B_TRANSLATE("RAW images");
const char* kShortInfo1 = B_TRANSLATE("RAW image translator");
// #pragma mark -

View File

@ -226,7 +226,7 @@ DataTranslationsWindow::_ShowInfoAlert(int32 id)
BString message;
// Convert the version number into a readable format
snprintf(message.LockBuffer(512), 512,
snprintf(message.LockBuffer(2048), 2048,
B_TRANSLATE("Name:\t%s \nVersion:\t%ld.%ld.%ld\nInfo:\t%s\n\nPath:\n%s\n"),
name, B_TRANSLATION_MAJOR_VERSION(version),
B_TRANSLATION_MINOR_VERSION(version),