Ticket #7117: datatranslations-localization-update.patch
File datatranslations-localization-update.patch, 3.2 KB (added by , 13 years ago) |
---|
-
src/preferences/datatranslations/DataTranslationsWindow.cpp
223 223 _GetTranslatorInfo(id, name, info, version, path); 224 224 225 225 BString message; 226 message << B_TRANSLATE("Name: %name \nVersion: ");226 message << B_TRANSLATE("Name: %name \nVersion:") << " "; 227 227 message.ReplaceAll("%name", name); 228 228 229 229 // Convert the version number into a readable format 230 message << (int)B_TRANSLATION_MAJOR_VERSION(version)231 << '.' << (int)B_TRANSLATION_MINOR_VERSION(version)232 << '.' << (int)B_TRANSLATION_REVISION_VERSION(version);230 message << static_cast<int>B_TRANSLATION_MAJOR_VERSION(version) 231 << '.' << static_cast<int>B_TRANSLATION_MINOR_VERSION(version) 232 << '.' << static_cast<int>B_TRANSLATION_REVISION_VERSION(version); 233 233 message << B_TRANSLATE("\nInfo: %info\n\nPath:\n") << path.Path() << "\n"; 234 234 message.ReplaceAll("%info", info); 235 235 236 BAlert* alert = new BAlert( B_TRANSLATE("info"), message.String(),236 BAlert* alert = new BAlert("info", message.String(), 237 237 B_TRANSLATE("OK")); 238 238 BTextView *view = alert->TextView(); 239 239 BFont font; -
src/preferences/datatranslations/DataTranslations.cpp
51 51 void 52 52 DataTranslationsApplication::AboutRequested() 53 53 { 54 BAlert* alert = new BAlert( B_TRANSLATE("about"),54 BAlert* alert = new BAlert("about", 55 55 B_TRANSLATE("DataTranslations\n\twritten by Oliver Siebenmarck and" 56 56 " others\n\tCopyright 2002-2010, Haiku Inc. All rights reserved.\n"), 57 57 B_TRANSLATE("OK")); … … 72 72 void 73 73 DataTranslationsApplication::_InstallError(const char* name, status_t status) 74 74 { 75 BString text(B_TRANSLATE("Could not install 76 text << name << ":\n" << strerror(status);75 BString text(B_TRANSLATE("Could not install")); 76 text << " " << name << ":\n" << strerror(status); 77 77 BAlert* alert = new BAlert(B_TRANSLATE("DataTranslations - Error"), 78 text.String(), B_TRANSLATE("O k"));78 text.String(), B_TRANSLATE("OK")); 79 79 alert->Go(); 80 80 } 81 81 … … 102 102 void 103 103 DataTranslationsApplication::_NoTranslatorError(const char* name) 104 104 { 105 BString text( B_TRANSLATE("The item '"));106 text << B_TRANSLATE("%name' does not appear to be a Translator and will"107 " not be installed.");105 BString text( 106 B_TRANSLATE("The item '%name' does not appear to be a Translator and " 107 "will not be installed.")); 108 108 text.ReplaceAll("%name", name); 109 109 BAlert* alert = new BAlert("", text.String(), B_TRANSLATE("Ok")); 110 110 alert->Go(); … … 152 152 } 153 153 154 154 if (target.Contains(ref.name)) { 155 BString string( B_TRANSLATE("An item named '"));156 string << B_TRANSLATE("%namealready exists in the "155 BString string( 156 B_TRANSLATE("An item named '%name' already exists in the " 157 157 "Translators folder! Shall the existing translator be " 158 "overwritten?") ;158 "overwritten?")); 159 159 string.ReplaceAll("%name", ref.name); 160 160 161 161 BAlert* alert = new BAlert(B_TRANSLATE("DataTranslations - Note"),