From 3292b90274c44e1485bdb127e31bbbcf80938a6a Mon Sep 17 00:00:00 2001
From: Humdinger <humdingerb@gmail.com>
Date: Sat, 2 May 2015 10:48:08 +0200
Subject: [PATCH] Unify version output ("v" vs "Version", sentence casing.
---
src/add-ons/translators/gif/GIFView.cpp | 2 +-
src/add-ons/translators/jpeg/JPEGTranslator.cpp | 9 ++++++---
src/add-ons/translators/jpeg2000/JPEG2000Translator.cpp | 5 +++--
src/add-ons/translators/ppm/PPMTranslator.cpp | 2 +-
src/add-ons/translators/psd/ConfigView.cpp | 4 ++--
src/add-ons/translators/tga/TGAView.cpp | 2 +-
6 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/add-ons/translators/gif/GIFView.cpp b/src/add-ons/translators/gif/GIFView.cpp
index 4167771..e26bc2d 100644
a
|
b
|
GIFView::GIFView(TranslatorSettings* settings)
|
56 | 56 | |
57 | 57 | char version_string[100]; |
58 | 58 | snprintf(version_string, sizeof(version_string), |
59 | | B_TRANSLATE("v%d.%d.%d, %s"), |
| 59 | B_TRANSLATE("Version %d.%d.%d, %s"), |
60 | 60 | int(B_TRANSLATION_MAJOR_VERSION(GIF_TRANSLATOR_VERSION)), |
61 | 61 | int(B_TRANSLATION_MINOR_VERSION(GIF_TRANSLATOR_VERSION)), |
62 | 62 | int(B_TRANSLATION_REVISION_VERSION(GIF_TRANSLATOR_VERSION)), |
diff --git a/src/add-ons/translators/jpeg/JPEGTranslator.cpp b/src/add-ons/translators/jpeg/JPEGTranslator.cpp
index a951c29..21ec873 100644
a
|
b
|
TranslatorAboutView::TranslatorAboutView(const char* name)
|
671 | 671 | title->SetFont(be_bold_font); |
672 | 672 | title->SetExplicitAlignment(labelAlignment); |
673 | 673 | |
674 | | char versionString[16]; |
675 | | sprintf(versionString, "v%d.%d.%d", (int)(sTranslatorVersion >> 8), |
676 | | (int)((sTranslatorVersion >> 4) & 0xf), (int)(sTranslatorVersion & 0xf)); |
| 674 | char versionString[100]; |
| 675 | snprintf(versionString, sizeof(versionString), |
| 676 | B_TRANSLATE("Version %d.%d.%d"), |
| 677 | (int)(sTranslatorVersion >> 8), |
| 678 | (int)((sTranslatorVersion >> 4) & 0xf), |
| 679 | (int)(sTranslatorVersion & 0xf)); |
677 | 680 | |
678 | 681 | BStringView* version = new BStringView("Version", versionString); |
679 | 682 | version->SetExplicitAlignment(labelAlignment); |
diff --git a/src/add-ons/translators/jpeg2000/JPEG2000Translator.cpp b/src/add-ons/translators/jpeg2000/JPEG2000Translator.cpp
index cf3ec78..9d3f3d0 100644
a
|
b
|
TranslatorAboutView::TranslatorAboutView(const char* name)
|
713 | 713 | title->SetFont(be_bold_font); |
714 | 714 | title->SetExplicitAlignment(labelAlignment); |
715 | 715 | |
716 | | char versionString[16]; |
717 | | sprintf(versionString, "v%d.%d.%d", |
| 716 | char versionString[100]; |
| 717 | snprintf(versionString, sizeof(versionString), |
| 718 | B_TRANSLATE("Version %d.%d.%d"), |
718 | 719 | static_cast<int>(sTranslatorVersion >> 8), |
719 | 720 | static_cast<int>((sTranslatorVersion >> 4) & 0xf), |
720 | 721 | static_cast<int>(sTranslatorVersion & 0xf)); |
diff --git a/src/add-ons/translators/ppm/PPMTranslator.cpp b/src/add-ons/translators/ppm/PPMTranslator.cpp
index bdb546c..b81f384 100644
a
|
b
|
public:
|
507 | 507 | "bits big-endian"), CSMessage(B_RGBA15_BIG))); |
508 | 508 | fMenu->AddItem(new BMenuItem(B_TRANSLATE("RGB 5:6:5 16 bits " |
509 | 509 | "big-endian"), CSMessage(B_RGB16))); |
510 | | fField = new BMenuField(B_TRANSLATE("Input Color Space:"), |
| 510 | fField = new BMenuField(B_TRANSLATE("Input color space:"), |
511 | 511 | fMenu); |
512 | 512 | fField->SetViewColor(ViewColor()); |
513 | 513 | SelectColorSpace(g_settings.out_space); |
diff --git a/src/add-ons/translators/psd/ConfigView.cpp b/src/add-ons/translators/psd/ConfigView.cpp
index ff28ad0..e380d46 100644
a
|
b
|
ConfigView::ConfigView(TranslatorSettings *settings)
|
45 | 45 | fSettings->SetGetInt32(PSD_SETTING_VERSION); |
46 | 46 | |
47 | 47 | _AddItemToMenu(versionPopupMenu, |
48 | | B_TRANSLATE("Photoshop Document (PSD File)"), MSG_VERSION_CHANGED, |
| 48 | B_TRANSLATE("Photoshop Document (PSD file)"), MSG_VERSION_CHANGED, |
49 | 49 | PSD_FILE, currentVersion); |
50 | 50 | _AddItemToMenu(versionPopupMenu, |
51 | | B_TRANSLATE("Photoshop Big Document (PSB File)"), MSG_VERSION_CHANGED, |
| 51 | B_TRANSLATE("Photoshop Big Document (PSB file)"), MSG_VERSION_CHANGED, |
52 | 52 | PSB_FILE, currentVersion); |
53 | 53 | |
54 | 54 | fVersionField = new BMenuField("version", |
diff --git a/src/add-ons/translators/tga/TGAView.cpp b/src/add-ons/translators/tga/TGAView.cpp
index 0f2ea19..6caf8be 100644
a
|
b
|
TGAView::TGAView(const char *name, uint32 flags, TranslatorSettings *settings)
|
68 | 68 | fpchkIgnoreAlpha->SetValue(val); |
69 | 69 | fpchkIgnoreAlpha->SetViewColor(ViewColor()); |
70 | 70 | |
71 | | fpchkRLE = new BCheckBox(B_TRANSLATE("Save with RLE Compression"), |
| 71 | fpchkRLE = new BCheckBox(B_TRANSLATE("Save with RLE compression"), |
72 | 72 | new BMessage(CHANGE_RLE)); |
73 | 73 | val = (fSettings->SetGetBool(TGA_SETTING_RLE)) ? 1 : 0; |
74 | 74 | fpchkRLE->SetValue(val); |