if (hours) {
if (m > 30 && !minutes) {
- /* TRANSLATORS: h here is an abbreviation for hours */
+ /// TRANSLATORS: h here is an abbreviation for hours
ap << (h + 1) << _("h");
} else {
- /* TRANSLATORS: h here is an abbreviation for hours */
+ /// TRANSLATORS: h here is an abbreviation for hours
ap << h << _("h");
}
if (minutes) {
/* Minutes */
if (s > 30 && !seconds) {
- /* TRANSLATORS: m here is an abbreviation for minutes */
+ /// TRANSLATORS: m here is an abbreviation for minutes
ap << (m + 1) << _("m");
} else {
- /* TRANSLATORS: m here is an abbreviation for minutes */
+ /// TRANSLATORS: m here is an abbreviation for minutes
ap << m << _("m");
}
if (seconds) {
/* Seconds */
- /* TRANSLATORS: s here is an abbreviation for seconds */
+ /// TRANSLATORS: s here is an abbreviation for seconds
ap << s << _("s");
}
{
assert (MAX_DCP_AUDIO_CHANNELS == 12);
- /* TRANSLATORS: these are the names of audio channels; Lfe (sub) is the low-frequency
- enhancement channel (sub-woofer). HI is the hearing-impaired audio track and
- VI is the visually-impaired audio track (audio describe).
- */
+ /// TRANSLATORS: these are the names of audio channels; Lfe (sub) is the low-frequency
+ /// enhancement channel (sub-woofer). HI is the hearing-impaired audio track and
+ /// VI is the visually-impaired audio track (audio describe).
string const channels[] = {
_("Left"),
_("Right"),
{
string ext = f.extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
- return (ext == ".tif" || ext == ".tiff" || ext == ".jpg" || ext == ".jpeg" || ext == ".png" || ext == ".bmp" || ext == ".tga" || ext == ".dpx");
+ return (
+ ext == ".tif" || ext == ".tiff" || ext == ".jpg" || ext == ".jpeg" ||
+ ext == ".png" || ext == ".bmp" || ext == ".tga" || ext == ".dpx" ||
+ ext == ".j2c" || ext == ".j2k"
+ );
+}
+
+bool
+valid_j2k_file (boost::filesystem::path f)
+{
+ string ext = f.extension().string();
+ transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
+ return (ext == ".j2k" || ext == ".j2c");
}
string