LimeniaUiStrings class final
The texts of the Limenia widgets, with built-in German (de) and English (en) versions.
The widgets pick the strings in this order:
- the
stringsargument of a widget orshow…function, - the nearest LimeniaUiStringsScope,
- forLocale with the locale of the app (
Localizations.localeOf): German forde, English for every other language.
Change single texts with copyWith, e.g. the emergency hint with the number of a helpline:
LimeniaUiStrings.de.copyWith(emergencyHint: 'Du brauchst Hilfe? …')
Texts with values are functions, such as suspendedMessage. Dates and times arrive there already formatted by formatDate or formatDateTime, in the local time zone of the device.
The texts of the tenant (the ready-made statement of reasons, the facts written by the moderator, the titles of the policies and the redress text) come from Limenia in the language of the tenant and are shown unchanged.
- Annotations
Constructors
-
LimeniaUiStrings({required String close, required String tryAgain, required String sending, required String characterCount(int count, int limit), required String textTooLong(int limit), required String formatDate(DateTime date), required String formatDateTime(DateTime date), required String reportTitle, required String reportCategoryQuestion, required String reportCategoryRequired, required Map<
String, String> categoryLabels, required String reportTextLabel, required String reportTextHint, required String goodFaithLabel, required String goodFaithRequired, required String emergencyHint, required String reportSubmit, required String reportSentTitle, required String reportSentMessage, required String reportQueuedTitle, required String reportQueuedMessage, required String reportFailedTitle, required String reportFailedMessage, required String reportExpiredMessage, required String reporterWarning, required String reporterSuspended(String? until), required String appealTitle, required String appealTopicLabel, required String appealDecidedOn(String date), required String appealInfo, required String appealDeadline(String date), required String appealTextLabel, required String appealTextHint, required String appealTextRequired, required String appealSubmit, required String appealSentTitle, required String appealSentMessage, required String appealQueuedTitle, required String appealQueuedMessage, required String appealFailedTitle, required String appealFailedMessage, required String appealExpiredMessage, required String appealWindowClosed, required String appealAlreadyOpen, required String appealNotAllowed, required String appealReporterSuspended(String? until), required Map<ModerationAction, String> actionLabels, required String sorMeasure, required String sorEndsAt, required String sorScope, required String sorScopeApp, required String sorFacts, required String sorNoticeSource, required String sorNoticeSourceNotice, required String sorNoticeSourceTrustedFlagger, required String sorNoticeSourceOwnInitiative, required String sorAutomation, required String sorAutomationNone, required String sorAutomatedDetection, required String sorAutomationPartial, required String sorAutomationFull, required String sorGrounds, required String sorGroundTerms, required String sorGroundLaw(String? until), required String sorRedress, required String submitComplaint, required String showReasons, required String warnedTitle, required String warnedMessage, required String suspendedTitle, required String suspendedMessage(String? until), required String bannedTitle, required String bannedMessage}) -
Creates a complete set of strings. Usually you start from de or en
and change single texts with copyWith.
const
Properties
-
actionLabels
→ Map<
ModerationAction, String> -
The measure of a decision by action, e.g. in the statement of reasons and
the summary of a complaint.
final
- appealAlreadyOpen → String
-
Message for
appeal_already_open: this person already has an open complaint against the decision.final - appealDeadline → String Function(String date)
-
Until when a complaint is possible, with the formatted
date.final - appealDecidedOn → String Function(String date)
-
When the decision was taken, with the formatted
date.final - appealExpiredMessage → String
-
Message when the complaint waited too long and was dropped
(AppealExpired).
final
- appealFailedMessage → String
-
Message when the complaint could not be sent and may succeed when tried
again.
final
- appealFailedTitle → String
-
Title when the complaint could not be sent (AppealFailed,
AppealExpired or an error of the callback).
final
- appealInfo → String
-
What a complaint is: the six-month window, free of charge, decided by a
person (Art. 20 DSA).
final
- appealNotAllowed → String
-
Message for
appeal_not_allowed: this person cannot complain against this decision.final - appealQueuedMessage → String
-
Message when the complaint waits for a connection (AppealQueued).
final
- appealQueuedTitle → String
-
Title when the complaint waits for a connection (AppealQueued).
final
- appealReporterSuspended → String Function(String? until)
-
Message for
reporter_suspended(AppealFailed.isReporterSuspended), with the formatted end of the suspension or null if it is not known.final - appealSentMessage → String
-
Message after Limenia has the complaint (AppealSent).
final
- appealSentTitle → String
-
Title after Limenia has the complaint (AppealSent).
final
- appealSubmit → String
-
Button that sends a complaint.
final
- appealTextHint → String
-
Hint inside the empty text field of a complaint.
final
- appealTextLabel → String
-
Label of the text field of a complaint.
final
- appealTextRequired → String
-
Error when the user sends a complaint without text.
final
- appealTitle → String
-
Title of the complaint form, also of the button that opens it.
final
- appealTopicLabel → String
-
Label above the summary of the decision the complaint is about.
final
- appealWindowClosed → String
-
Message for
appeal_window_closed: the six months have passed.final - bannedMessage → String
-
Message of the notice for a banned user.
final
- bannedTitle → String
-
Title of the notice for a banned user (SanctionStatus.banned).
final
-
categoryLabels
→ Map<
String, String> -
Labels of the default categories (ReasonCategory.defaults) by code,
matching the default policies Limenia creates for every tenant.
final
- characterCount → String Function(int count, int limit)
-
Counter below a text field:
countcharacters of at mostlimit.final - close → String
-
Button and tooltip that closes a sheet or a result.
final
- emergencyHint → String
-
Hint shown for the categories of a
ReportEmergencyHint, e.g. self-harm and violence, unless the hint brings its own text.final - formatDate → String Function(DateTime date)
-
A date without time, in the local time zone of the device.
final
- formatDateTime → String Function(DateTime date)
-
A date with time, in the local time zone of the device.
final
- goodFaithLabel → String
-
Label of the checkbox that confirms a report in good faith
(Art. 16(2)(d) DSA), see
GoodFaithConfirmation.final - goodFaithRequired → String
-
Error when the good-faith confirmation is required and not checked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reportCategoryQuestion → String
-
Question above the categories of a report.
final
- reportCategoryRequired → String
-
Error when the user sends a report without a category.
final
- reporterSuspended → String Function(String? until)
-
Message when Limenia does not process the reports of this person
(ReportFailed.isReporterSuspended), with the formatted end of the
suspension or null if it is not known.
final
- reporterWarning → String
-
Warning for a reporter whose reports were often manifestly unfounded
(Art. 23 DSA, ReportSent.reporterWarning).
final
- reportExpiredMessage → String
-
Message when the report waited too long and was dropped
(ReportExpired).
final
- reportFailedMessage → String
-
Message when the report could not be sent and may succeed when tried
again.
final
- reportFailedTitle → String
-
Title when the report could not be sent (ReportFailed, ReportExpired
or an error of the callback).
final
- reportQueuedMessage → String
-
Message when the report waits for a connection (ReportQueued).
final
- reportQueuedTitle → String
-
Title when the report waits for a connection (ReportQueued).
final
- reportSentMessage → String
-
Message after Limenia has the report (ReportSent).
final
- reportSentTitle → String
-
Title after Limenia has the report (ReportSent).
final
- reportSubmit → String
-
Button that sends a report.
final
- reportTextHint → String
-
Hint inside the empty free text field of a report.
final
- reportTextLabel → String
-
Label of the optional free text of a report.
final
- reportTitle → String
-
Title of the report sheet.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sending → String
-
Shown, and read by screen readers, while a report or complaint is sent.
final
- showReasons → String
-
Button that shows the statement of reasons of a restriction.
final
- sorAutomatedDetection → String
-
SorDetails.automatedDetection: the matter was detected automatically,
a person decided.
final
- sorAutomation → String
-
Label of the use of automated means (Art. 17(3)(c) DSA).
final
- sorAutomationFull → String
-
Automation.full: an automatic decision without a moderator.
final
- sorAutomationNone → String
-
Automation.none without SorDetails.automatedDetection: no automated
means were used.
final
- sorAutomationPartial → String
-
Automation.partial: a moderator took and confirmed the suggestion of an
automated assessment.
final
- sorEndsAt → String
-
Label of the end of a temporary restriction (SorDetails.endsAt).
final
- sorFacts → String
-
Label of the facts written by the moderator (SorDetails.facts).
final
- sorGroundLaw → String Function(String? until)
-
A ground with LegalBasis.law: illegal content, with the law reference
of the policy or null if it has none.
final
- sorGrounds → String
-
Label of the grounds of a decision (SorDetails.grounds).
final
- sorGroundTerms → String
-
A ground with LegalBasis.terms: a violation of the terms of the app.
final
- sorMeasure → String
-
Label of the measure in the statement of reasons.
final
- sorNoticeSource → String
-
Label of what led to the decision (SorDetails.noticeSource).
final
- sorNoticeSourceNotice → String
-
NoticeSource.notice: reports of users.
final
- sorNoticeSourceOwnInitiative → String
-
NoticeSource.ownInitiative: an own review of the provider.
final
- sorNoticeSourceTrustedFlagger → String
-
NoticeSource.trustedFlagger: a report of a trusted flagger (Art. 22
DSA), never with its name.
final
- sorRedress → String
-
Label of the redress text of the tenant (SorDetails.redress).
final
- sorScope → String
-
Label of the territorial scope (SorDetails.territorialScope).
final
- sorScopeApp → String
-
The territorial scope
app: the whole app.final - submitComplaint → String
-
Button that starts a complaint against a decision.
final
- suspendedMessage → String Function(String? until)
-
Message for a suspended user, with the formatted end of the suspension or
null if it is not known.
final
- suspendedTitle → String
-
Title of the notice for a suspended user (SanctionStatus.suspended).
final
- textTooLong → String Function(int limit)
-
Error of a text field whose text is longer than
limitcharacters.final - tryAgain → String
-
Button that sends a failed report or complaint again.
final
- warnedMessage → String
-
Message of the notice for a warned user.
final
- warnedTitle → String
-
Title of the notice for a warned user (SanctionStatus.warned).
final
Methods
-
copyWith(
{String? close, String? tryAgain, String? sending, String characterCount(int count, int limit)?, String textTooLong(int limit)?, String formatDate(DateTime date)?, String formatDateTime(DateTime date)?, String? reportTitle, String? reportCategoryQuestion, String? reportCategoryRequired, Map< String, String> ? categoryLabels, String? reportTextLabel, String? reportTextHint, String? goodFaithLabel, String? goodFaithRequired, String? emergencyHint, String? reportSubmit, String? reportSentTitle, String? reportSentMessage, String? reportQueuedTitle, String? reportQueuedMessage, String? reportFailedTitle, String? reportFailedMessage, String? reportExpiredMessage, String? reporterWarning, String reporterSuspended(String? until)?, String? appealTitle, String? appealTopicLabel, String appealDecidedOn(String date)?, String? appealInfo, String appealDeadline(String date)?, String? appealTextLabel, String? appealTextHint, String? appealTextRequired, String? appealSubmit, String? appealSentTitle, String? appealSentMessage, String? appealQueuedTitle, String? appealQueuedMessage, String? appealFailedTitle, String? appealFailedMessage, String? appealExpiredMessage, String? appealWindowClosed, String? appealAlreadyOpen, String? appealNotAllowed, String appealReporterSuspended(String? until)?, Map<ModerationAction, String> ? actionLabels, String? sorMeasure, String? sorEndsAt, String? sorScope, String? sorScopeApp, String? sorFacts, String? sorNoticeSource, String? sorNoticeSourceNotice, String? sorNoticeSourceTrustedFlagger, String? sorNoticeSourceOwnInitiative, String? sorAutomation, String? sorAutomationNone, String? sorAutomatedDetection, String? sorAutomationPartial, String? sorAutomationFull, String? sorGrounds, String? sorGroundTerms, String sorGroundLaw(String? until)?, String? sorRedress, String? submitComplaint, String? showReasons, String? warnedTitle, String? warnedMessage, String? suspendedTitle, String suspendedMessage(String? until)?, String? bannedTitle, String? bannedMessage}) → LimeniaUiStrings - A copy with the given texts replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forLocale(
Locale locale) → LimeniaUiStrings -
The built-in strings for
locale: de for German, en for every other language. -
of(
BuildContext context) → LimeniaUiStrings -
The strings for the widgets at
context: from the nearest LimeniaUiStringsScope, otherwise forLocale with the locale of the app (English without one).
Constants
- de → const LimeniaUiStrings
- German strings, informal ("du").
- en → const LimeniaUiStrings
- English strings.