The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::ZFSCurses::Text - Translate UI texts and messages.

VERSION

Version 1.210.

METHODS

new

Create an instance of App::ZFSCurses::Text.

title

Return the text title.

title_datasets

Return the text title in the datasets view.

title_snapshots

Return the text title in the datasets view.

top_label_datasets

Return the top label text in the dataset screen.

top_label_snapshots

Return the top label text in the snapshot screen.

top_label_properties

Return the top label text in the properties screen.

Return the footer text. This method expects (sometimes) a text about the F1 key.

exit_dialog

Return the exit dialog text.

destroy_confirmation

Return the text when destroying an object.

f1_help

Return the text about the F1 key. This method is given to the footer method depending on the screen displayed to the user.

select_property

Return the text when a property is not selected.

select_snapshot

Return the text when a snapshot is not selected.

select_dataset

Return the text when a dataset is not selected.

change_property

Return the text label displayed in the change properties screen.

ok_property

Return the text when a property has been changed.

error_property

Return the text when an error occured while changing a property.

no_help_found

Return the text when no help has been found for a property.

no_zfs_command_found

Return the text when the zfs command hasn't been found.

non_root_user

Return the text when zfscurses is run without root privileges.

property_read_only

Return the text when a property is read only.

fill_help_messages

Read the __DATA__ handle and fill the help_messages hash with property definitions. The __DATA__ handle is filled with lines that look like this:

  aclinherit%aclinherit is a property that is about ...

The idea is to split the line on the % part and then fill the hash with the property and its definition. The hash is then called upon when the F1 key is pressed to display to the user what a property is about.

This method is called automatically after instantiating this class.

help_messages

Return the help_messages hash.

AUTHOR

Patrice Clement <monsieurp at cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2020 by Patrice Clement.

This is free software, licensed under the (three-clause) BSD License.

See the LICENSE file.