Skip to main content

egui_pop_views/
strings.rs

1//! The strings the views show, by key with English fallbacks,
2//! translated through the provider installed with
3//! `egui_pop_core::strings::install`. Retry buttons use core's
4//! [`RETRY`](egui_pop_core::strings::RETRY).
5
6use egui_pop_core::strings::StrKey;
7
8/// A tree's accessible name, unless the application gives one.
9pub const TREE: StrKey = StrKey::new("egui-pop-views-tree", "Tree");
10/// A tree's filter field: its placeholder and accessible name.
11pub const TREE_FILTER: StrKey = StrKey::new("egui-pop-views-tree-filter", "Filter");
12/// Beside a tree's filter field: how many nodes match of how many.
13pub const TREE_FILTER_COUNT: StrKey = StrKey::new(
14    "egui-pop-views-tree-filter-count",
15    "{ $count } of { $total }",
16);
17/// A tree's filter that matches nothing: beside the field and as the
18/// tree's one row.
19pub const TREE_FILTER_NONE: StrKey = StrKey::new("egui-pop-views-tree-filter-none", "No match");
20/// Announced to screen readers when a tree's filter changes.
21pub const TREE_FILTER_ANNOUNCE: StrKey = StrKey::new(
22    "egui-pop-views-tree-filter-announce",
23    "{ $count } of { $total } match the filter",
24);
25/// A list's accessible name, unless the application gives one.
26pub const LIST: StrKey = StrKey::new("egui-pop-views-list", "List");
27/// A table's accessible name, unless the application gives one.
28pub const TABLE: StrKey = StrKey::new("egui-pop-views-table", "Table");
29/// A branch whose children are on their way.
30pub const LOADING: StrKey = StrKey::new("egui-pop-views-loading", "Loading…");
31/// A branch whose children could not be loaded.
32pub const FAILED: StrKey = StrKey::new("egui-pop-views-failed", "Could not load: { $reason }");
33/// An empty branch, shown under it when expanded.
34pub const EMPTY: StrKey = StrKey::new("egui-pop-views-empty", "Empty");
35/// The rename field's accessible name.
36pub const RENAME: StrKey = StrKey::new("egui-pop-views-rename", "Rename { $name }");
37/// A list item's drag handle: its accessible name.
38pub const ITEM_MOVE: StrKey = StrKey::new("egui-pop-views-item-move", "Move { $name }");
39/// A column header's accessible name when sorted up.
40pub const SORTED_UP: StrKey =
41    StrKey::new("egui-pop-views-sorted-up", "{ $column }, sorted ascending");
42/// A column header's accessible name when sorted down.
43pub const SORTED_DOWN: StrKey = StrKey::new(
44    "egui-pop-views-sorted-down",
45    "{ $column }, sorted descending",
46);
47/// A header's context menu: sort the table up by this column.
48pub const SORT_ASCENDING: StrKey = StrKey::new("egui-pop-views-sort-ascending", "Sort ascending");
49/// A header's context menu: sort the table down by this column.
50pub const SORT_DESCENDING: StrKey =
51    StrKey::new("egui-pop-views-sort-descending", "Sort descending");
52/// A header's context menu: leave the table unsorted.
53pub const SORT_CLEAR: StrKey = StrKey::new("egui-pop-views-sort-clear", "Unsorted");
54/// A plot's accessible name, unless the application gives one.
55pub const PLOT: StrKey = StrKey::new("egui-pop-views-plot", "Chart");
56/// A plot series' kind, in its accessible summary: a line.
57pub const PLOT_LINE: StrKey = StrKey::new("egui-pop-views-plot-line", "line");
58/// A plot series' kind: points alone (a scatter).
59pub const PLOT_POINTS: StrKey = StrKey::new("egui-pop-views-plot-points", "points");
60/// A plot series' kind: bars.
61pub const PLOT_BARS: StrKey = StrKey::new("egui-pop-views-plot-bars", "bars");
62/// A plot series' kind: a stepped line.
63pub const PLOT_STEPS: StrKey = StrKey::new("egui-pop-views-plot-steps", "steps");
64/// A plot's draggable time cursor, its accessible name.
65pub const PLOT_CURSOR: StrKey = StrKey::new("egui-pop-views-plot-cursor", "Time cursor");
66/// A plot series in the plot's accessible summary.
67pub const PLOT_SERIES: StrKey = StrKey::new(
68    "egui-pop-views-plot-series",
69    "{ $name } ({ $kind }): { $count } points, x from { $x_min } to { $x_max }, y from { $y_min } to { $y_max }",
70);
71/// A plot series with no point, in the summary.
72pub const PLOT_SERIES_EMPTY: StrKey = StrKey::new(
73    "egui-pop-views-plot-series-empty",
74    "{ $name } ({ $kind }): no points",
75);
76/// A plot's time cursor, in the summary.
77pub const PLOT_TIME_CURSOR: StrKey = StrKey::new(
78    "egui-pop-views-plot-time-cursor",
79    "Time cursor at { $time }",
80);
81
82/// A thumbnail grid's accessible name, unless the application gives one.
83pub const LIBRARY: StrKey = StrKey::new("egui-pop-views-library", "Library");
84/// A filmstrip's accessible name.
85pub const FILMSTRIP: StrKey = StrKey::new("egui-pop-views-filmstrip", "Filmstrip");
86/// The comparison view's accessible name.
87pub const COMPARE: StrKey = StrKey::new("egui-pop-views-compare", "Compare");
88/// The rating stars' name, and the filter menu's rating entry.
89pub const RATING: StrKey = StrKey::new("egui-pop-views-rating", "Rating");
90/// A star of a thumbnail, rating its image. No longer shown: the
91/// thumbnails' stars are `egui_pop_core::rating::RatingStars`, named
92/// with `egui_pop_core::strings::RATING_SET` and `RATING_CLEAR`; kept
93/// for compatibility.
94pub const RATE_STARS: StrKey = StrKey::new("egui-pop-views-rate-stars", "Rate { $stars } of 5");
95/// A rated image's rating, said after its name in the library grid mode.
96pub const LIBRARY_RATED: StrKey =
97    StrKey::new("egui-pop-views-library-rated", "Rated { $stars } of 5");
98/// The colour labels' names.
99pub const RED: StrKey = StrKey::new("egui-pop-views-red", "Red");
100pub const YELLOW: StrKey = StrKey::new("egui-pop-views-yellow", "Yellow");
101pub const GREEN: StrKey = StrKey::new("egui-pop-views-green", "Green");
102pub const BLUE: StrKey = StrKey::new("egui-pop-views-blue", "Blue");
103pub const PURPLE: StrKey = StrKey::new("egui-pop-views-purple", "Purple");
104/// A colour label's toggle button.
105pub const LABEL_TOGGLE: StrKey = StrKey::new("egui-pop-views-label-toggle", "{ $label } label");
106/// A mark toggle's tooltip with the key bound to it: "Red label (6)".
107pub const MARK_WITH_KEY: StrKey =
108    StrKey::new("egui-pop-views-mark-with-key", "{ $mark } ({ $key })");
109/// The filter menu's label entry.
110pub const LABEL: StrKey = StrKey::new("egui-pop-views-label", "Label");
111/// The filter menu's flag entry.
112pub const FLAG: StrKey = StrKey::new("egui-pop-views-flag", "Flag");
113/// The flags' names.
114pub const PICK: StrKey = StrKey::new("egui-pop-views-pick", "Pick");
115pub const REJECT: StrKey = StrKey::new("egui-pop-views-reject", "Reject");
116pub const UNFLAGGED: StrKey = StrKey::new("egui-pop-views-unflagged", "Unflagged");
117/// A collapsed stack's button.
118pub const EXPAND_STACK: StrKey = StrKey::new(
119    "egui-pop-views-expand-stack",
120    "Expand the stack of { $count }",
121);
122/// An expanded stack's button.
123pub const COLLAPSE_STACK: StrKey = StrKey::new(
124    "egui-pop-views-collapse-stack",
125    "Collapse the stack of { $count }",
126);
127/// A pending cell of a thumbnail grid: an image counted but not
128/// arrived yet.
129pub const LOADING_IMAGE: StrKey = StrKey::new(
130    "egui-pop-views-loading-image",
131    "Loading image { $number } of { $total }",
132);
133/// A chip's remove button.
134pub const REMOVE: StrKey = StrKey::new("egui-pop-views-remove", "Remove { $item }");
135/// The tag input's name and hint.
136pub const ADD_TAG: StrKey = StrKey::new("egui-pop-views-add-tag", "Add a tag");
137/// The search field's name and hint.
138pub const SEARCH: StrKey = StrKey::new("egui-pop-views-search", "Search");
139/// The search field's menu of criteria.
140pub const ADD_FILTER: StrKey = StrKey::new("egui-pop-views-add-filter", "Add a filter");
141/// The search field's clear button.
142pub const CLEAR_FILTERS: StrKey = StrKey::new("egui-pop-views-clear-filters", "Clear the search");
143/// The search field's list of the application's suggestions.
144pub const SUGGESTIONS: StrKey = StrKey::new("egui-pop-views-suggestions", "Suggestions");
145/// The filter chips.
146pub const FILTER_RATING: StrKey =
147    StrKey::new("egui-pop-views-filter-rating", "Rating ≥ { $rating }");
148pub const FILTER_LABEL: StrKey = StrKey::new("egui-pop-views-filter-label", "Label: { $label }");
149pub const FILTER_FLAG: StrKey = StrKey::new("egui-pop-views-filter-flag", "Flag: { $flag }");
150pub const FILTER_TAG: StrKey = StrKey::new("egui-pop-views-filter-tag", "Tag: { $tag }");
151pub const FILTER_DATES: StrKey = StrKey::new("egui-pop-views-filter-dates", "{ $from } to { $to }");
152pub const FILTER_FROM: StrKey = StrKey::new("egui-pop-views-filter-from", "From { $from }");
153pub const FILTER_TO: StrKey = StrKey::new("egui-pop-views-filter-to", "Until { $to }");
154/// The comparison's "best" toggle.
155pub const MARK_BEST: StrKey = StrKey::new("egui-pop-views-mark-best", "Best of the comparison");
156/// The comparison with no image: where to drop some.
157pub const COMPARE_EMPTY: StrKey = StrKey::new(
158    "egui-pop-views-compare-empty",
159    "Drop images here to compare them",
160);
161/// A comparison pane's close button: its accessible name.
162pub const COMPARE_REMOVE: StrKey = StrKey::new(
163    "egui-pop-views-compare-remove",
164    "Remove { $name } from the comparison",
165);
166/// Why a drop on the comparison is refused: the payload holds no image.
167pub const COMPARE_NOT_IMAGES: StrKey =
168    StrKey::new("egui-pop-views-compare-not-images", "Not images to compare");
169/// Why a drop on the comparison is refused: it shows all it can.
170pub const COMPARE_FULL: StrKey =
171    StrKey::new("egui-pop-views-compare-full", "The comparison is full");
172
173/// The viewer's toolbar: the previous page.
174pub const VIEWER_BACK: StrKey = StrKey::new("egui-pop-views-viewer-back", "Back");
175/// The viewer's toolbar: the next page.
176pub const VIEWER_FORWARD: StrKey = StrKey::new("egui-pop-views-viewer-forward", "Forward");
177/// The viewer's toolbar: the page again.
178pub const VIEWER_RELOAD: StrKey = StrKey::new("egui-pop-views-viewer-reload", "Reload");
179/// The viewer's address bar's accessible name.
180pub const VIEWER_ADDRESS: StrKey = StrKey::new("egui-pop-views-viewer-address", "Address");
181/// The viewer's search field's accessible name and hint.
182pub const VIEWER_FIND: StrKey = StrKey::new("egui-pop-views-viewer-find", "Find in page");
183/// Where the search is: the current match and how many.
184pub const VIEWER_FIND_COUNT: StrKey =
185    StrKey::new("egui-pop-views-viewer-find-count", "{ $at } of { $count }");
186/// The search found nothing.
187pub const VIEWER_FIND_NONE: StrKey = StrKey::new("egui-pop-views-viewer-find-none", "No match");
188pub const VIEWER_FIND_PREVIOUS: StrKey =
189    StrKey::new("egui-pop-views-viewer-find-previous", "Previous match");
190pub const VIEWER_FIND_NEXT: StrKey = StrKey::new("egui-pop-views-viewer-find-next", "Next match");
191pub const VIEWER_FIND_CLOSE: StrKey =
192    StrKey::new("egui-pop-views-viewer-find-close", "Close the search");
193/// The page's zoom, a button resetting it.
194pub const VIEWER_ZOOM: StrKey = StrKey::new("egui-pop-views-viewer-zoom", "Page zoom: { $zoom }");
195pub const VIEWER_ZOOM_IN: StrKey = StrKey::new("egui-pop-views-viewer-zoom-in", "Zoom in");
196pub const VIEWER_ZOOM_OUT: StrKey = StrKey::new("egui-pop-views-viewer-zoom-out", "Zoom out");
197/// Nothing open yet.
198pub const VIEWER_EMPTY: StrKey = StrKey::new(
199    "egui-pop-views-viewer-empty",
200    "Nothing is open. Help pages and images open here.",
201);
202/// A page on its way.
203pub const VIEWER_LOADING: StrKey =
204    StrKey::new("egui-pop-views-viewer-loading", "Loading { $target }…");
205/// The bar over a page whose remote images wait for the user.
206pub const VIEWER_IMAGES_BLOCKED: StrKey = StrKey::new(
207    "egui-pop-views-viewer-images-blocked",
208    "Images from { $host } are not loaded.",
209);
210/// The bar's button: load them, and remember the host.
211pub const VIEWER_IMAGES_LOAD: StrKey = StrKey::new(
212    "egui-pop-views-viewer-images-load",
213    "Load images from { $host }",
214);
215/// The bar over an HTML page: what it holds that the viewer does not show.
216pub const VIEWER_SIMPLIFIED: StrKey = StrKey::new(
217    "egui-pop-views-viewer-simplified",
218    "Not shown here: { $what }. Open outside shows the page whole.",
219);
220/// In place of an image that is not shown.
221pub const VIEWER_IMAGE_MISSING: StrKey = StrKey::new(
222    "egui-pop-views-viewer-image-missing",
223    "Image not shown: { $alt }",
224);
225/// The error page's titles.
226pub const VIEWER_NOT_FOUND: StrKey = StrKey::new(
227    "egui-pop-views-viewer-not-found",
228    "This page does not exist",
229);
230pub const VIEWER_NO_CONNECTION: StrKey = StrKey::new(
231    "egui-pop-views-viewer-no-connection",
232    "This page could not be loaded",
233);
234pub const VIEWER_TOO_LARGE: StrKey = StrKey::new(
235    "egui-pop-views-viewer-too-large",
236    "This page is too large to show here",
237);
238pub const VIEWER_UNSUPPORTED: StrKey = StrKey::new(
239    "egui-pop-views-viewer-unsupported",
240    "This page cannot be shown here",
241);
242/// A video's button while paused (the `Video` widget and the viewer's page).
243pub const VIEWER_VIDEO_PLAY: StrKey = StrKey::new("egui-pop-views-viewer-video-play", "Play");
244/// A video's button while playing.
245pub const VIEWER_VIDEO_PAUSE: StrKey = StrKey::new("egui-pop-views-viewer-video-pause", "Pause");
246/// A video's position slider.
247pub const VIEWER_VIDEO_POSITION: StrKey =
248    StrKey::new("egui-pop-views-viewer-video-position", "Position");
249/// A video's volume slider.
250pub const VIEWER_VIDEO_VOLUME: StrKey = StrKey::new("egui-pop-views-viewer-video-volume", "Volume");
251/// A video's time.
252pub const VIEWER_VIDEO_TIME: StrKey = StrKey::new(
253    "egui-pop-views-viewer-video-time",
254    "{ $elapsed } / { $total }",
255);
256/// A video's picture, its accessible name.
257pub const VIEWER_VIDEO_PICTURE: StrKey =
258    StrKey::new("egui-pop-views-viewer-video-picture", "Video: { $name }");
259/// A video before its first picture.
260pub const VIEWER_VIDEO_LOADING: StrKey =
261    StrKey::new("egui-pop-views-viewer-video-loading", "Opening the video…");
262/// A YouTube page whose web view is in a window of its own.
263pub const VIEWER_EMBED_OWN_WINDOW: StrKey = StrKey::new(
264    "egui-pop-views-viewer-embed-own-window",
265    "This video plays in a window of its own",
266);
267/// A YouTube page's button, once its own window was closed.
268pub const VIEWER_EMBED_SHOW: StrKey =
269    StrKey::new("egui-pop-views-viewer-embed-show", "Show the video");
270/// The card in place of YouTube's player when the panel is smaller than the
271/// player's minimum.
272pub const VIEWER_EMBED_TOO_SMALL: StrKey = StrKey::new(
273    "egui-pop-views-viewer-embed-too-small",
274    "The panel is too small for YouTube's player",
275);
276/// The card's reason: the minimum and the panel's size, in pixels.
277pub const VIEWER_EMBED_TOO_SMALL_DETAIL: StrKey = StrKey::new(
278    "egui-pop-views-viewer-embed-too-small-detail",
279    "YouTube's player needs at least { $min } by { $min } pixels; here it would get { $width } by { $height }. Enlarge the panel, or open the video outside.",
280);
281/// The title of the error page of a video that cannot be played, and of a
282/// `Video` widget's failure.
283pub const VIEWER_VIDEO_FAILED: StrKey = StrKey::new(
284    "egui-pop-views-viewer-video-failed",
285    "This video cannot be played here",
286);
287/// A `Video` widget without a player (a build without the `video` feature,
288/// the web).
289pub const VIDEO_NO_PLAYER: StrKey = StrKey::new(
290    "egui-pop-views-video-no-player",
291    "This application has no video player",
292);
293/// The viewer's content's accessible name.
294pub const VIEWER_PAGE: StrKey = StrKey::new("egui-pop-views-viewer-page", "Page");
295/// A code block's accessible name.
296pub const VIEWER_CODE_BLOCK: StrKey = StrKey::new("egui-pop-views-viewer-code-block", "Code block");
297
298/// A text log's accessible name, unless the application gives one.
299pub const TEXT_LOG: StrKey = StrKey::new("egui-pop-views-text-log", "Text log");
300/// A text log's columns: when a line was logged.
301pub const TEXT_LOG_TIME: StrKey = StrKey::new("egui-pop-views-text-log-time", "Time");
302/// A text log's columns: the entity a line was logged on.
303pub const TEXT_LOG_ENTITY: StrKey = StrKey::new("egui-pop-views-text-log-entity", "Entity");
304/// A text log's columns: a line's level.
305pub const TEXT_LOG_LEVEL: StrKey = StrKey::new("egui-pop-views-text-log-level", "Level");
306/// A text log's columns: a line's text.
307pub const TEXT_LOG_BODY: StrKey = StrKey::new("egui-pop-views-text-log-body", "Body");
308/// A text log's text filter: its placeholder and accessible name.
309pub const TEXT_LOG_FILTER: StrKey = StrKey::new("egui-pop-views-text-log-filter", "Filter");
310/// A text log's level chip: its accessible name (`$level`: `WARN`...).
311pub const TEXT_LOG_SHOW_LEVEL: StrKey = StrKey::new(
312    "egui-pop-views-text-log-show-level",
313    "Show { $level } lines",
314);
315/// A text log's toggle keeping the last line in view.
316pub const TEXT_LOG_FOLLOW: StrKey = StrKey::new("egui-pop-views-text-log-follow", "Follow");
317/// Beside a text log's filters: how many lines are shown of how many.
318pub const TEXT_LOG_COUNT: StrKey = StrKey::new(
319    "egui-pop-views-text-log-count",
320    "{ $count } of { $total } lines",
321);
322/// A multi-line body's disclosure, folded: its accessible name.
323pub const TEXT_LOG_EXPAND: StrKey = StrKey::new(
324    "egui-pop-views-text-log-expand",
325    "Show all { $count } lines",
326);
327/// A multi-line body's disclosure, unfolded: its accessible name.
328pub const TEXT_LOG_COLLAPSE: StrKey =
329    StrKey::new("egui-pop-views-text-log-collapse", "Show the first line");
330/// After a folded body's first line: how many lines it hides.
331pub const TEXT_LOG_MORE: StrKey = StrKey::new("egui-pop-views-text-log-more", "+{ $count } lines");
332
333/// A timeline's accessible name, unless the application gives one.
334pub const TIMELINE: StrKey = StrKey::new("egui-pop-views-timeline", "Timeline");
335/// A timeline's marker: its accessible name, and what is announced when the
336/// keys reach it.
337pub const TIMELINE_MARKER: StrKey = StrKey::new(
338    "egui-pop-views-timeline-marker",
339    "Marker { $label } at { $time }",
340);
341/// A timeline's cue point, the same way.
342pub const TIMELINE_CUE: StrKey =
343    StrKey::new("egui-pop-views-timeline-cue", "Cue { $label } at { $time }");
344/// A marker added with M or a double click: its label.
345pub const TIMELINE_NEW_MARKER: StrKey =
346    StrKey::new("egui-pop-views-timeline-new-marker", "Marker { $number }");
347/// The history's steps of a timeline.
348pub const TIMELINE_ADD_MARKER: StrKey =
349    StrKey::new("egui-pop-views-timeline-add-marker", "Add marker");
350pub const TIMELINE_MOVE_MARKER: StrKey =
351    StrKey::new("egui-pop-views-timeline-move-marker", "Move marker");
352pub const TIMELINE_REMOVE_MARKER: StrKey =
353    StrKey::new("egui-pop-views-timeline-remove-marker", "Remove marker");
354pub const TIMELINE_SET_RANGE: StrKey =
355    StrKey::new("egui-pop-views-timeline-set-range", "Set range");
356pub const TIMELINE_CLEAR_RANGE: StrKey =
357    StrKey::new("egui-pop-views-timeline-clear-range", "Clear range");
358pub const TIMELINE_LOOP_ON: StrKey =
359    StrKey::new("egui-pop-views-timeline-loop-on", "Loop the range");
360pub const TIMELINE_LOOP_OFF: StrKey =
361    StrKey::new("egui-pop-views-timeline-loop-off", "Stop looping");
362/// A timeline's clip: its accessible name, and what is announced when the
363/// keys reach it.
364pub const TIMELINE_CLIP: StrKey = StrKey::new(
365    "egui-pop-views-timeline-clip",
366    "Clip { $label } on { $track }, { $start } to { $end }",
367);
368/// The history's steps of a timeline's clips.
369pub const TIMELINE_ADD_CLIP: StrKey = StrKey::new("egui-pop-views-timeline-add-clip", "Add clip");
370pub const TIMELINE_MOVE_CLIP: StrKey =
371    StrKey::new("egui-pop-views-timeline-move-clip", "Move clip");
372pub const TIMELINE_MOVE_CLIPS: StrKey =
373    StrKey::new("egui-pop-views-timeline-move-clips", "Move clips");
374pub const TIMELINE_TRIM_CLIP: StrKey =
375    StrKey::new("egui-pop-views-timeline-trim-clip", "Trim clip");
376pub const TIMELINE_REMOVE_CLIP: StrKey =
377    StrKey::new("egui-pop-views-timeline-remove-clip", "Remove clip");
378pub const TIMELINE_REMOVE_CLIPS: StrKey =
379    StrKey::new("egui-pop-views-timeline-remove-clips", "Remove clips");
380pub const TIMELINE_SPLIT_CLIP: StrKey =
381    StrKey::new("egui-pop-views-timeline-split-clip", "Split clip");
382pub const TIMELINE_SPLIT_CLIPS: StrKey =
383    StrKey::new("egui-pop-views-timeline-split-clips", "Split clips");
384pub const TIMELINE_RIPPLE_DELETE: StrKey =
385    StrKey::new("egui-pop-views-timeline-ripple-delete", "Ripple delete");
386/// The speed shown beside the playhead while shuttling: `2×`, `-4×`.
387pub const TIMELINE_SPEED: StrKey = StrKey::new("egui-pop-views-timeline-speed", "{ $speed }×");
388/// A timeline transport's buttons, their accessible names.
389pub const TRANSPORT_START: StrKey = StrKey::new("egui-pop-views-transport-start", "Go to start");
390pub const TRANSPORT_STEP_BACK: StrKey =
391    StrKey::new("egui-pop-views-transport-step-back", "Step back");
392pub const TRANSPORT_PLAY_BACKWARD: StrKey =
393    StrKey::new("egui-pop-views-transport-play-backward", "Play backward");
394pub const TRANSPORT_STOP: StrKey = StrKey::new("egui-pop-views-transport-stop", "Stop");
395pub const TRANSPORT_PLAY: StrKey = StrKey::new("egui-pop-views-transport-play", "Play");
396pub const TRANSPORT_PAUSE: StrKey = StrKey::new("egui-pop-views-transport-pause", "Pause");
397pub const TRANSPORT_STEP_FORWARD: StrKey =
398    StrKey::new("egui-pop-views-transport-step-forward", "Step forward");
399pub const TRANSPORT_END: StrKey = StrKey::new("egui-pop-views-transport-end", "Go to end");
400pub const TRANSPORT_LOOP: StrKey = StrKey::new("egui-pop-views-transport-loop", "Loop");
401/// A transport button's tooltip: what it does and its keys.
402pub const TRANSPORT_KEYS: StrKey =
403    StrKey::new("egui-pop-views-transport-keys", "{ $action } ({ $keys })");
404
405/// Every string the views show, for catalogues and tests.
406pub const ALL: &[StrKey] = &[
407    TEXT_LOG,
408    TEXT_LOG_TIME,
409    TEXT_LOG_ENTITY,
410    TEXT_LOG_LEVEL,
411    TEXT_LOG_BODY,
412    TEXT_LOG_FILTER,
413    TEXT_LOG_SHOW_LEVEL,
414    TEXT_LOG_FOLLOW,
415    TEXT_LOG_COUNT,
416    TEXT_LOG_EXPAND,
417    TEXT_LOG_COLLAPSE,
418    TEXT_LOG_MORE,
419    TREE,
420    TREE_FILTER,
421    TREE_FILTER_COUNT,
422    TREE_FILTER_NONE,
423    TREE_FILTER_ANNOUNCE,
424    LIST,
425    TABLE,
426    LOADING,
427    FAILED,
428    EMPTY,
429    RENAME,
430    ITEM_MOVE,
431    SORTED_UP,
432    SORTED_DOWN,
433    SORT_ASCENDING,
434    SORT_DESCENDING,
435    SORT_CLEAR,
436    PLOT,
437    PLOT_LINE,
438    PLOT_POINTS,
439    PLOT_BARS,
440    PLOT_STEPS,
441    PLOT_CURSOR,
442    PLOT_SERIES,
443    PLOT_SERIES_EMPTY,
444    PLOT_TIME_CURSOR,
445    LIBRARY,
446    FILMSTRIP,
447    COMPARE,
448    RATING,
449    RATE_STARS,
450    LIBRARY_RATED,
451    RED,
452    YELLOW,
453    GREEN,
454    BLUE,
455    PURPLE,
456    LABEL_TOGGLE,
457    MARK_WITH_KEY,
458    LABEL,
459    FLAG,
460    PICK,
461    REJECT,
462    UNFLAGGED,
463    EXPAND_STACK,
464    COLLAPSE_STACK,
465    LOADING_IMAGE,
466    REMOVE,
467    ADD_TAG,
468    SEARCH,
469    ADD_FILTER,
470    CLEAR_FILTERS,
471    SUGGESTIONS,
472    FILTER_RATING,
473    FILTER_LABEL,
474    FILTER_FLAG,
475    FILTER_TAG,
476    FILTER_DATES,
477    FILTER_FROM,
478    FILTER_TO,
479    MARK_BEST,
480    COMPARE_EMPTY,
481    COMPARE_REMOVE,
482    COMPARE_NOT_IMAGES,
483    COMPARE_FULL,
484    VIEWER_BACK,
485    VIEWER_CODE_BLOCK,
486    VIEWER_FORWARD,
487    VIEWER_RELOAD,
488    VIEWER_ADDRESS,
489    VIEWER_FIND,
490    VIEWER_FIND_COUNT,
491    VIEWER_FIND_NONE,
492    VIEWER_FIND_PREVIOUS,
493    VIEWER_FIND_NEXT,
494    VIEWER_FIND_CLOSE,
495    VIEWER_ZOOM,
496    VIEWER_ZOOM_IN,
497    VIEWER_ZOOM_OUT,
498    VIEWER_EMPTY,
499    VIEWER_LOADING,
500    VIEWER_IMAGES_BLOCKED,
501    VIEWER_IMAGES_LOAD,
502    VIEWER_SIMPLIFIED,
503    VIEWER_IMAGE_MISSING,
504    VIEWER_NOT_FOUND,
505    VIEWER_NO_CONNECTION,
506    VIEWER_TOO_LARGE,
507    VIEWER_UNSUPPORTED,
508    VIEWER_PAGE,
509    VIEWER_VIDEO_PLAY,
510    VIEWER_VIDEO_PAUSE,
511    VIEWER_VIDEO_POSITION,
512    VIEWER_VIDEO_VOLUME,
513    VIEWER_VIDEO_TIME,
514    VIEWER_VIDEO_PICTURE,
515    VIEWER_VIDEO_LOADING,
516    VIEWER_VIDEO_FAILED,
517    VIDEO_NO_PLAYER,
518    VIEWER_EMBED_OWN_WINDOW,
519    VIEWER_EMBED_SHOW,
520    VIEWER_EMBED_TOO_SMALL,
521    VIEWER_EMBED_TOO_SMALL_DETAIL,
522    TIMELINE,
523    TIMELINE_MARKER,
524    TIMELINE_CUE,
525    TIMELINE_NEW_MARKER,
526    TIMELINE_ADD_MARKER,
527    TIMELINE_MOVE_MARKER,
528    TIMELINE_REMOVE_MARKER,
529    TIMELINE_SET_RANGE,
530    TIMELINE_CLEAR_RANGE,
531    TIMELINE_LOOP_ON,
532    TIMELINE_LOOP_OFF,
533    TIMELINE_SPEED,
534    TRANSPORT_START,
535    TRANSPORT_STEP_BACK,
536    TRANSPORT_PLAY_BACKWARD,
537    TRANSPORT_STOP,
538    TRANSPORT_PLAY,
539    TRANSPORT_PAUSE,
540    TRANSPORT_STEP_FORWARD,
541    TRANSPORT_END,
542    TRANSPORT_LOOP,
543    TRANSPORT_KEYS,
544    TIMELINE_CLIP,
545    TIMELINE_ADD_CLIP,
546    TIMELINE_MOVE_CLIP,
547    TIMELINE_MOVE_CLIPS,
548    TIMELINE_TRIM_CLIP,
549    TIMELINE_REMOVE_CLIP,
550    TIMELINE_REMOVE_CLIPS,
551    TIMELINE_SPLIT_CLIP,
552    TIMELINE_SPLIT_CLIPS,
553    TIMELINE_RIPPLE_DELETE,
554];
555
556#[cfg(test)]
557mod tests {
558    use super::*;
559
560    #[test]
561    fn keys_are_unique_fluent_ids() {
562        let mut seen = std::collections::BTreeSet::new();
563        for k in ALL {
564            assert!(seen.insert(k.key), "`{}` twice", k.key);
565            assert!(k.key.starts_with("egui-pop-views-"), "{}", k.key);
566            assert!(
567                k.key
568                    .chars()
569                    .all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '-'),
570                "{}",
571                k.key
572            );
573        }
574    }
575}