<?php
/**
 * English language file for projectacl plugin
 */

$lang['menu'] = 'Project Permissions Manager';

// Messages
$lang['no_project_selected'] = 'You must select a project';
$lang['memberships_saved'] = 'Users assigned successfully';
$lang['permissions_saved'] = 'Permissions updated successfully. %d user(s) with access.';
$lang['save_error'] = 'Error saving changes';
$lang['group_deleted'] = 'Group %s deleted successfully';
$lang['permissions_deleted'] = 'Permissions for project P:%d deleted successfully (%d entries).';

// Form labels
$lang['projects_list'] = 'Projects List';
$lang['select_users'] = 'Configure user permissions';
$lang['user_name'] = 'User';
$lang['users_for_project'] = 'Users assigned to project %s';
$lang['save'] = 'Save';
$lang['cancel'] = 'Cancel';
$lang['manage_users'] = 'Manage users';

// Table columns
$lang['project_id'] = 'Project ID';
$lang['client_name'] = 'Client Name';
$lang['project_type'] = 'Project Type';
$lang['framework'] = 'Framework';
$lang['year'] = 'Year';
$lang['coordinator'] = 'Coordinator';
$lang['assigned_users'] = 'Assigned Users';
$lang['actions'] = 'Manage';
$lang['group_name'] = 'Group Name';

// Permission levels (for reference)
$lang['perm_none'] = 'None';
$lang['perm_read'] = 'Read';
$lang['perm_edit'] = 'Edit';
$lang['perm_create'] = 'Create';
$lang['perm_upload'] = 'Upload';
$lang['perm_delete'] = 'Delete';

// Export/Import
$lang['export_title'] = 'Export permissions';
$lang['export_desc'] = 'Download a CSV file with all users and their permissions. Levels: 0=None, 1=Read, 2=Edit, 4=Create, 8=Upload, 16=Delete.';
$lang['export_button'] = 'Download CSV';
$lang['import_title'] = 'Import permissions';
$lang['import_desc'] = 'Upload a previously exported CSV file to update user permissions.';
$lang['import_button'] = 'Import CSV';
$lang['import_success'] = 'Permissions updated successfully. %d user(s) modified.';
$lang['import_error'] = 'Error importing the file.';
$lang['import_no_file'] = 'No file selected.';
$lang['import_invalid_format'] = 'Invalid file format. Make sure to use a CSV file exported from this system.';
$lang['import_no_projects'] = 'No project columns found in the file.';

// Migrate legacy groups
$lang['migrate_title'] = 'Migrate legacy groups';
$lang['migrate_desc'] = 'Converts users from @proyecto{id} groups to the new ACL system with Delete (16) permission.';
$lang['migrate_button'] = 'Migrate to ACL';
$lang['migrate_success'] = 'Migration completed. Added %d permissions for %d projects.';
$lang['migrate_error'] = 'Error migrating permissions.';
$lang['migrate_no_users'] = 'Users file not found.';
$lang['migrate_nothing'] = 'No users with project groups found to migrate.';

// Cleanup ACL
$lang['cleanup_title'] = 'Cleanup ACL file';
$lang['cleanup_desc'] = 'Removes duplicates, empty lines, permissions and physical folders for projects that no longer exist in the database.';
$lang['cleanup_button'] = 'Cleanup ACL';
$lang['cleanup_success'] = 'Cleanup completed. Removed %d duplicates, %d empty lines and %d entries for deleted projects.';
$lang['cleanup_folders_removed'] = 'Additionally removed %d orphan project folders.';
$lang['cleanup_error'] = 'Error cleaning up ACL file.';
$lang['cleanup_no_file'] = 'ACL file not found.';
