58 | | static const char sTranslatorName[] = "JPEG2000 images"; |
59 | | static const char sTranslatorInfo[] = "©2002-2003, Shard\n" |
60 | | "©2005-2006, Haiku\n" |
61 | | "\n" |
62 | | "Based on JasPer library:\n" |
63 | | "© 1999-2000, Image Power, Inc. and\n" |
64 | | "the University of British Columbia, Canada.\n" |
65 | | "© 2001-2003 Michael David Adams.\n" |
66 | | " http://www.ece.uvic.ca/~mdadams/jasper/\n" |
67 | | "\n" |
68 | | "ImageMagick's jp2 codec was used as \"tutorial\".\n" |
69 | | " http://www.imagemagick.org/\n"; |
| 58 | char sTranslatorName[255]; |
| 59 | char sTranslatorInfo[512]; |
95 | | const uint32 kNumInputFormats = sizeof(sInputFormats) / sizeof(translation_format); |
96 | | const uint32 kNumOutputFormats = sizeof(sOutputFormats) / sizeof(translation_format); |
97 | | const uint32 kNumDefaultSettings = sizeof(sDefaultSettings) / sizeof(TranSetting); |
| 85 | const uint32 kNumInputFormats \ |
| 86 | = sizeof(sInputFormats) / sizeof(translation_format); |
| 87 | const uint32 kNumOutputFormats \ |
| 88 | = sizeof(sOutputFormats) / sizeof(translation_format); |
| 89 | const uint32 kNumDefaultSettings \ |
| 90 | = sizeof(sDefaultSettings) / sizeof(TranSetting); |
726 | | BString translationInfo(sTranslatorInfo); |
727 | | translationInfo.ReplaceFirst("Based on JasPer library:", |
728 | | B_TRANSLATE("Based on JasPer library:")); |
729 | | translationInfo.ReplaceFirst("1999-2000, Image Power, Inc. and", |
730 | | B_TRANSLATE("1999-2000, Image Power, Inc. and")); |
731 | | translationInfo.ReplaceFirst("the University of British Columbia, Canada.", |
732 | | B_TRANSLATE("the University of British Columbia, Canada.")); |
733 | | translationInfo.ReplaceFirst("ImageMagick's jp2 codec was used as " |
734 | | "\"tutorial\".", B_TRANSLATE("ImageMagick's jp2 codec was used as " |
735 | | "\"tutorial\".")); |
736 | | infoView->SetText(translationInfo.String()); |
| 717 | infoView->SetText(sTranslatorInfo); |
| 1299 | |
| 1300 | BString str1(B_TRANSLATE("JPEG2000 images")); |
| 1301 | BString str2("©2002-2003, Shard\n" |
| 1302 | "©2005-2006, Haiku\n" |
| 1303 | "\n" |
| 1304 | "Based on JasPer library:\n" |
| 1305 | "© 1999-2000, Image Power, Inc. and\n" |
| 1306 | "the University of British Columbia, Canada.\n" |
| 1307 | "© 2001-2003 Michael David Adams.\n" |
| 1308 | " http://www.ece.uvic.ca/~mdadams/jasper/\n" |
| 1309 | "\n" |
| 1310 | "ImageMagick's jp2 codec was used as \"tutorial\".\n" |
| 1311 | " http://www.imagemagick.org/\n"); |
| 1312 | str2.ReplaceFirst("Based on JasPer library:", |
| 1313 | B_TRANSLATE("Based on JasPer library:")); |
| 1314 | str2.ReplaceFirst("1999-2000, Image Power, Inc. and", |
| 1315 | B_TRANSLATE("1999-2000, Image Power, Inc. and")); |
| 1316 | str2.ReplaceFirst("the University of British Columbia, Canada.", |
| 1317 | B_TRANSLATE("the University of British Columbia, Canada.")); |
| 1318 | str2.ReplaceFirst("ImageMagick's jp2 codec was used as " |
| 1319 | "\"tutorial\".", B_TRANSLATE("ImageMagick's jp2 codec was used as " |
| 1320 | "\"tutorial\".")); |
| 1321 | memset(sTranslatorName, 0x00, 255); |
| 1322 | memset(sTranslatorInfo, 0x00, 512); |
| 1323 | if (str1.Length() <= 255) |
| 1324 | strncpy(sTranslatorName, str1.String(), str1.Length()); |
| 1325 | if (str2.Length() <= 512) |
| 1326 | strncpy(sTranslatorInfo, str2.String(), str2.Length()); |
| 1327 | |