diff --git a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/extension/BlockReason.kt b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/extension/BlockReason.kt index c265e2e9d..b6d5d773d 100644 --- a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/extension/BlockReason.kt +++ b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/extension/BlockReason.kt @@ -34,6 +34,7 @@ fun BlockReason.getStringResId(): Int { BlockReason.AGERATING18 -> R.string.blockReason_ageRating18 BlockReason.STARTDATE -> R.string.blockReason_startDate BlockReason.ENDDATE -> R.string.blockReason_endDate + BlockReason.JOURNALISTIC -> R.string.blockReason_journalistic BlockReason.UNKNOWN -> R.string.blockReason_unknown } } diff --git a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/data/BlockReason.kt b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/data/BlockReason.kt index 939de4060..ce7c5cc3f 100644 --- a/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/data/BlockReason.kt +++ b/pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/integrationlayer/data/BlockReason.kt @@ -15,5 +15,6 @@ enum class BlockReason { AGERATING12, STARTDATE, ENDDATE, + JOURNALISTIC, UNKNOWN, } diff --git a/pillarbox-core-business/src/main/res/values-de/strings.xml b/pillarbox-core-business/src/main/res/values-de/strings.xml index a8f21167c..7a05e6ee7 100644 --- a/pillarbox-core-business/src/main/res/values-de/strings.xml +++ b/pillarbox-core-business/src/main/res/values-de/strings.xml @@ -15,5 +15,6 @@ Dieser Inhalt ist aus Gründen des Jugendschutzes nur zwischen 20:00 und 6:00 Uhr verfügbar. Dieser Inhalt ist noch nicht verfügbar. Dieser Inhalt ist nicht mehr verfügbar. + Dieser Inhalt steht aus publizistischen Gründen vorübergehend nicht zur Verfügung. Dieser Inhalt ist nicht verfügbar. diff --git a/pillarbox-core-business/src/main/res/values-fr/strings.xml b/pillarbox-core-business/src/main/res/values-fr/strings.xml index 1232514a1..df3c6037a 100644 --- a/pillarbox-core-business/src/main/res/values-fr/strings.xml +++ b/pillarbox-core-business/src/main/res/values-fr/strings.xml @@ -15,5 +15,6 @@ Ce contenu n\'est disponible qu\'entre 20h et 6h afin de protéger le jeune public. Ce contenu n’est pas encore disponible. Ce contenu n’est plus disponible. + Ce contenu est temporairement indisponible pour des raisons éditoriales. Ce contenu n’est pas disponible. diff --git a/pillarbox-core-business/src/main/res/values-it/strings.xml b/pillarbox-core-business/src/main/res/values-it/strings.xml index 267d5051b..9822fa459 100644 --- a/pillarbox-core-business/src/main/res/values-it/strings.xml +++ b/pillarbox-core-business/src/main/res/values-it/strings.xml @@ -15,5 +15,6 @@ Per proteggere i bambini, questo contenuto è disponibile solo tra le 20 e le 6. Questo contenuto non è ancora disponibile. Questo contenuto non è più disponibile. + Questo contenuto è temporaneamente non disponibile per motivi editoriali. Questo contenuto non è disponibile. diff --git a/pillarbox-core-business/src/main/res/values-rm/strings.xml b/pillarbox-core-business/src/main/res/values-rm/strings.xml index e3971c8f1..1fcfddd5b 100644 --- a/pillarbox-core-business/src/main/res/values-rm/strings.xml +++ b/pillarbox-core-business/src/main/res/values-rm/strings.xml @@ -15,5 +15,6 @@ Per proteger ils uffants è quest cuntegn disponibel mo tranter las 20.00 e las 06.00. Quest medium n\'è betg anc disponibel. Quest medium n\'è betg pli disponibel. + Quest cuntegn na stat ad interim betg a disposiziun per motivs publicistics. Quest medium n\'è betg disponibel. diff --git a/pillarbox-core-business/src/main/res/values/strings.xml b/pillarbox-core-business/src/main/res/values/strings.xml index 004e958de..264702e54 100644 --- a/pillarbox-core-business/src/main/res/values/strings.xml +++ b/pillarbox-core-business/src/main/res/values/strings.xml @@ -14,5 +14,6 @@ To protect children this content is only available between 8PM and 6AM. This content is not available yet. This content is not available anymore. + This content is temporarily unavailable for journalistic reasons. This content is not available. diff --git a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/extension/BlockReasonTest.kt b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/extension/BlockReasonTest.kt index fa5f031ca..84d3f0305 100644 --- a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/extension/BlockReasonTest.kt +++ b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/extension/BlockReasonTest.kt @@ -26,6 +26,7 @@ class BlockReasonTest { assertEquals("This content is not available outside Switzerland.", context.getString(BlockReason.GEOBLOCK)) assertEquals("This content is not available due to legal restrictions.", context.getString(BlockReason.LEGAL)) assertEquals("This content is not available yet.", context.getString(BlockReason.STARTDATE)) + assertEquals("This content is temporarily unavailable for journalistic reasons.", context.getString(BlockReason.JOURNALISTIC)) assertEquals("This content is not available.", context.getString(BlockReason.UNKNOWN)) } @@ -38,6 +39,7 @@ class BlockReasonTest { assertEquals(R.string.blockReason_geoBlock, BlockReason.GEOBLOCK.getStringResId()) assertEquals(R.string.blockReason_legal, BlockReason.LEGAL.getStringResId()) assertEquals(R.string.blockReason_startDate, BlockReason.STARTDATE.getStringResId()) + assertEquals(R.string.blockReason_journalistic, BlockReason.JOURNALISTIC.getStringResId()) assertEquals(R.string.blockReason_unknown, BlockReason.UNKNOWN.getStringResId()) } }