PluginProbe
FileBird – WordPress Media Library Folders & File Manager / 5.3.2
FileBird – WordPress Media Library Folders & File Manager v5.3.2
6.5.8 6.5.7 6.5.5 6.5.4 trunk 4.3.1 5.1.6 5.3 5.3.2 5.4.3 5.4.4 5.4.5 5.5 5.5.3 5.5.5 5.5.8 5.5.8.1 5.6 5.6.1 5.6.2 5.6.3 5.6.4 6.2.3 6.2.5 6.3 All 36 releases
filebird / includes / I18n.php

I18n.php in FileBird – WordPress Media Library Folders & File Manager 5.3.2, at includes/I18n.php

175 lines 12.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace FileBird;
3
4 defined( 'ABSPATH' ) || exit;
5 /**
6 * I18n Logic
7 */
8 class I18n {
9 protected static $instance = null;
10
11 public static function getInstance() {
12 if ( null == self::$instance ) {
13 self::$instance = new self();
14 }
15
16 return self::$instance;
17 }
18
19 private function __construct() {
20 }
21
22 public static function loadPluginTextdomain() {
23 if ( function_exists( 'determine_locale' ) ) {
24 $locale = determine_locale();
25 } else {
26 $locale = is_admin() ? get_user_locale() : get_locale();
27 }
28 unload_textdomain( 'filebird' );
29 load_textdomain( 'filebird', NJFB_PLUGIN_PATH . '/i18n/languages/filebird-' . $locale . '.mo' );
30 load_plugin_textdomain( 'filebird', false, NJFB_PLUGIN_PATH . '/i18n/languages/' );
31 }
32
33 public static function getTranslation() {
34 $translation = array(
35 'noMedia' => __( 'No media files found.', 'filebird' ),
36 'new_folder' => __( 'New Folder', 'filebird' ),
37 'delete' => __( 'Delete', 'filebird' ),
38 'folders' => __( 'Folders', 'filebird' ),
39 'ok' => __( 'Ok', 'filebird' ),
40 'cancel' => __( 'Cancel', 'filebird' ),
41 'cut' => __( 'Cut', 'filebird' ),
42 'paste' => __( 'Paste', 'filebird' ),
43 'download' => __( 'Download', 'filebird' ),
44 'loading' => __( 'Loading', 'filebird' ),
45 'generate_download' => __( 'Generating download link...', 'filebird' ),
46 'move_done' => __( 'Successfully moved', 'filebird' ),
47 'move_error' => __( 'Unsuccessfully moved', 'filebird' ),
48 'delete_done' => __( 'Successfully deleted!', 'filebird' ),
49 'delete_error' => __( "Can't delete!", 'filebird' ),
50 'save' => __( 'Save', 'filebird' ),
51 'folder' => __( 'Folder', 'filebird' ),
52 'folder_name_placeholder' => __( 'Folder name...', 'filebird' ),
53 'folders' => __( 'Folders', 'filebird' ),
54 'enter_folder_name_placeholder' => __( 'Enter folder name...', 'filebird' ),
55 'are_you_sure_delete' => __( 'Are you sure you want to delete', 'filebird' ),
56 'are_you_sure' => __( 'Are you sure?', 'filebird' ),
57 'all_files_will_move' => __( 'Those files will be moved to <strong>Uncategorized</strong> folder.', 'filebird' ),
58 'editing_warning' => __( 'You are editing another folder! Please complete the task first!', 'filebird' ),
59 'sort_folders' => __( 'Sort Folders', 'filebird' ),
60 'delete_folder' => __( 'Delete Folder', 'filebird' ),
61 'sort_files' => __( 'Sort Files', 'filebird' ),
62 'bulk_select' => __( 'Bulk Select', 'filebird' ),
63 'all_files' => __( 'All Files', 'filebird' ),
64 'uncategorized' => __( 'Uncategorized', 'filebird' ),
65 'previous_folder_selected' => __( 'Previous folder selected', 'filebird' ),
66 'rename' => __( 'Rename', 'filebird' ),
67 'are_you_sure_delete_this_folder' => __( 'Are you sure you want to delete this folder? Those files will be moved to <strong>Uncategorized</strong> folder.', 'filebird' ),
68 'sort_ascending' => __( 'Sort Ascending', 'filebird' ),
69 'sort_descending' => __( 'Sort Descending', 'filebird' ),
70 'reset' => __( 'Reset', 'filebird' ),
71 'by_name' => __( 'By Name', 'filebird' ),
72 'name_ascending' => __( 'Name Ascending', 'filebird' ),
73 'name_descending' => __( 'Name Descending', 'filebird' ),
74 'by_date' => __( 'By Date', 'filebird' ),
75 'date_ascending' => __( 'Date Ascending', 'filebird' ),
76 'date_descending' => __( 'Date Descending', 'filebird' ),
77 'by_modified' => __( 'By Modified', 'filebird' ),
78 'modified_ascending' => __( 'Modified Ascending', 'filebird' ),
79 'modified_descending' => __( 'Modified Descending', 'filebird' ),
80 'by_author' => __( 'By Author', 'filebird' ),
81 'by_file_name' => __( 'By File Name', 'filebird' ),
82 'author_ascending' => __( 'Author Ascending', 'filebird' ),
83 'author_descending' => __( 'Author Descending', 'filebird' ),
84 'skip_and_deactivate' => __( 'Skip & Deactivate', 'filebird' ),
85 'deactivate' => __( 'Deactivate', 'filebird' ),
86 'thank_you_so_much' => __( 'Thank you so much!', 'filebird' ),
87 'feedback' => array(
88 'filebird_pro' => __( 'I\'ve purchased FileBird Pro.', 'filebird' ),
89 'no_features' => __( 'It doesn\'t have the features I\'m looking for.', 'filebird' ),
90 'not_working' => __( 'Not work with my theme or other plugins.', 'filebird' ),
91 'found_better_plugin' => __( 'Found another plugin that works better.', 'filebird' ),
92 'not_know_using' => __( 'Don\'t know how to use it.', 'filebird' ),
93 'temporary_deactivation' => __( 'This is just temporary, I will use it again.', 'filebird' ),
94 'other' => __( 'Other', 'filebird' ),
95 ),
96 'which_features' => __( 'Which features please?', 'filebird' ),
97 'found_better_plugin_placeholder' => __( 'Please tell us which one', 'filebird' ),
98 'not_know_using_document' => __( 'Please read FileBird documentation <a target="_blank" href="https://ninjateam.gitbook.io/filebird/">here</a> or <a target="_blank" href="https://ninjateam.org/support/">chat with us</a> if you need help', 'filebird' ),
99 'not_working_support' => __( 'Please <a target="_blank" href="https://ninjateam.org/support/">ask for support here</a>, we will fix it for you.', 'filebird' ),
100 'other_placeholder' => __( 'Please share your thoughts...', 'filebird' ),
101 'quick_feedback' => __( 'Want a better FileBird?', 'filebird' ),
102 'deactivate_sadly' => __( 'Sorry to see you walk away, please share why you want to deactivate FileBird?', 'filebird' ),
103 'folder_limit_reached' => __( 'Folder Limit Reached', 'filebird' ),
104 'limit_folder' => __(
105 '<p>FileBird Lite version supports up to 10 folders.<br>Please upgrade to have unlimited folders and other premium features!</p>
106 <ul class="fbv-in_feature">
107 <li>Unlimited Folders</li>
108 <li>Sort Files / Folders</li>
109 <li>Compatible with Premium Page Builders <span id="fbv-pagebuilder" class="njn-i"><svg viewBox="0 0 192 512"><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"></path></svg></span></li>
110 <li>Get Fast Updates</li>
111 <li>Premium Technical Support</li>
112 <li>One-time Payment</li>
113 <li>30-day Refund Guarantee</li>
114 </ul>',
115 'filebird'
116 ),
117 'pagebuilder_support' => __( 'Including Divi, Fusion, Thrive Architect, WPBakery...', 'filebird' ),
118 'upgrade_to_pro' => __( 'Upgrade to FileBird Pro now', 'filebird' ),
119 'success' => __( 'Success.', 'filebird' ),
120 'filebird_db_updated' => __( 'Congratulations. Successfully imported!', 'filebird' ),
121 'go_to_media' => __( 'Go To Media', 'filebird' ),
122 'update_noti_title' => __( 'FileBird 4 Update Required', 'filebird' ),
123 'update_noti_desc' => __( 'You\'re using the new FileBird 4. Please import database to view your folders correctly.', 'filebird' ),
124 'update_noti_btn' => __( 'Import now', 'filebird' ),
125 'import_failed' => __( 'Import failed. Please try again or <a href="https://ninjateam.org/support" target="_blank">contact our support</a>.', 'filebird' ),
126 'purchase_code_missing' => __( 'Please enter your Purchase Code.', 'filebird' ),
127 'envato_token_missing' => __( 'Please enter your Personal Access Token or get one.', 'filebird' ),
128 'envato_invalid_license' => __( 'Can not active your License, please try again.', 'filebird' ),
129 'settings' => __( 'Settings', 'filebird' ),
130 'fb_settings' => __( 'FileBird Settings', 'filebird' ),
131 'select_default_startup_folder' => __( 'Select a default startup folder:', 'filebird' ),
132 'set_setting_success' => __( 'Settings saved', 'filebird' ),
133 'set_setting_fail' => __( 'Failed to save settings. Please try again!', 'filebird' ),
134 'unlock_new_features_title' => __( 'Unlock new features', 'filebird' ),
135 'unlock_new_features_desc' => __( 'To use FileBird folders with your current page builder/plugin, please upgrade to PRO version.', 'filebird' ),
136 'do_more_with_filebird_title' => __( 'Do more with FileBird PRO', 'filebird' ),
137 'do_more_with_filebird_desc' => __( 'You\'re using a third party plugin, which is supported in FileBird PRO. Please upgrade to browse files faster and get more done.', 'filebird' ),
138 'go_pro' => __( 'Go Pro', 'filebird' ),
139 'view_details' => __( 'View details.', 'filebird' ),
140 'turn_off_for_7_days' => __( 'Turn off for 7 days', 'filebird' ),
141 'collapse' => __( 'Collapse', 'filebird' ),
142 'expand' => __( 'Expand', 'filebird' ),
143 'uploaded' => __( 'Uploaded', 'filebird' ),
144 'lessThanAMin' => __( 'Less than a min', 'filebird' ),
145 'totalSize' => __( 'Total size', 'filebird' ),
146 'move' => __( 'Move', 'filebird' ),
147 'item' => __( 'item', 'filebird' ),
148 'items' => __( 'items', 'filebird' ),
149 'import_folder_to_filebird' => __( 'Import folders to FileBird', 'filebird' ),
150 'go_to_import' => __( 'Go to import', 'filebird' ),
151 'no_thanks' => __( 'No, thanks', 'filebird' ),
152 'import_some_folders' => __( 'You have some folders created by other media plugins. Would you like to import them?', 'filebird' ),
153 'default_tree_view' => __( 'Default Tree View', 'filebird' ),
154 'flat_tree_view' => __( 'Flat Tree View', 'filebird' ),
155 'imported' => __( 'Imported!', 'filebird' ),
156 'please_try_again' => __( 'Please try again.', 'filebird' ),
157 'successfully_exported' => __( 'Successfully exported!', 'filebird' ),
158 'successfully_imported' => __( 'Successfully imported!', 'filebird' ),
159 'active_to_use_feature' => __( 'Please activate FileBird license to use this feature.', 'filebird' ),
160 'by_size' => __( 'By Size', 'filebird' ),
161 'size_ascending' => __( 'Size Ascending', 'filebird' ),
162 'size_descending' => __( 'Size Descending', 'filebird' ),
163 'PRO' => __( 'PRO', 'filebird' ),
164 'change_color' => __( 'Change Color', 'filebird' ),
165 'processing' => __( 'Processing...', 'filebird' ),
166 'all_folders' => __( 'All folders', 'filebird' ),
167 'common_folders' => __( 'Common folders', 'filebird' ),
168 'all_folders_description' => __( 'This option imports the common folder tree and user-based folder trees.', 'filebird' ),
169 'common_folders_description' => __( 'This option imports only the common folder tree.', 'filebird' ),
170 'user_folders_description' => __( 'This option imports the folder tree created by', 'filebird' ),
171 );
172 return $translation;
173 }
174 }
175