diff --git a/frontend/locales/english.json b/frontend/locales/english.json new file mode 100644 index 0000000..a97dd54 --- /dev/null +++ b/frontend/locales/english.json @@ -0,0 +1 @@ +{"console-title-port": {"message": "Port", "description": ""}, "toolbar-createuser": {"message": "Create user", "description": ""}, "button-login": {"message": "Login", "description": ""}, "edituser-access": {"message": "Account type", "description": ""}, "error-reinstall-notselected-title": {"message": "No template selected", "description": ""}, "title-overview": {"message": "Overview", "description": ""}, "error-admin-vpses-add-burstable": {"message": "You did not enter a valid burstable RAM specification.", "description": ""}, "title-unauthorized": {"message": "Unauthorized", "description": ""}, "addvps-guaranteed": {"message": "Guaranteed RAM", "description": ""}, "error-start-suspended-title": {"message": "VPS is suspended", "description": ""}, "event-1week-ago": {"message": "1 week ago", "description": ""}, "overview-title-bandwidth": {"message": "Bandwidth", "description": ""}, "error-stop-failed-title": {"message": "VPS failed to stop", "description": ""}, "button-admin-edituser": {"message": "Apply changes", "description": ""}, "addnode-customkeypair": {"message": "Custom keypair", "description": ""}, "console-step2": {"message": "After logging in with the above details, you will have to enter your VPS panel login details, after which you can select a VPS to invoke a root shell on.", "description": ""}, "console-step1": {"message": "To use the out-of-band console, connect through SSH using the following details:", "description": ""}, "error-logout-notloggedin-text": {"message": "You can only logout when you are already logged in.", "description": ""}, "error-reinstall-suspended-text": {"message": "You can not reinstall this VPS, because it is suspended. If you believe this is in error, please contact support.", "description": ""}, "menu-backups": {"message": "Backups", "description": ""}, "error-stop-success-title": {"message": "VPS stopped", "description": ""}, "list-status-unknown": {"message": "Status unknown", "description": ""}, "title-password": {"message": "Set new root password", "description": ""}, "password-field-confirm": {"message": "Confirm password", "description": ""}, "console-title-password": {"message": "Password", "description": ""}, "button-admin-vps-suspend": {"message": "Suspend VPS", "description": ""}, "error-start-terminated-title": {"message": "VPS is terminated", "description": ""}, "addvps-node": {"message": "Node", "description": ""}, "button-reinstall": {"message": "Reinstall", "description": ""}, "error-reinstall-failed-title": {"message": "Reinstallation failed", "description": ""}, "event-minutes-ago": {"message": "%1$d minutes ago", "description": ""}, "reinstall-warning": {"message": "I understand that by reinstalling my VPS, all data on the VPS is permanently lost and cannot be recovered. There will be no further confirmations, after clicking the Reinstall button the reinstallation process cannot be aborted.", "description": ""}, "error-admin-vpses-add-guaranteed": {"message": "You did not enter a valid guaranteed RAM specification.", "description": ""}, "error-admin-user-title": {"message": "That user does not exist", "description": ""}, "error-password-missing-title": {"message": "Fields missing", "description": ""}, "error-admin-nodes-add-hostname": {"message": "You did not fill in a valid hostname.", "description": ""}, "error-logout-success-text": {"message": "You have been successfully logged out. You can now close this page.", "description": ""}, "button-admin-vps-terminate": {"message": "Terminate VPS", "description": ""}, "button-password": {"message": "Set new root password", "description": ""}, "error-admin-vpses-add-hostname": {"message": "You entered an invalid hostname.", "description": ""}, "list-column-hostname": {"message": "Hostname", "description": ""}, "button-admin-addvps": {"message": "Create VPS", "description": ""}, "error-suspend-error-text": {"message": "The VPS could not be suspended.", "description": ""}, "title-admin-nodelist": {"message": "Node overview", "description": ""}, "error-password-nomatch-title": {"message": "Passwords do not match", "description": ""}, "event-weeks-ago": {"message": "%1$d weeks ago", "description": ""}, "admin-overview-message": {"message": "In the future, this page will hold a log of all most recent events. For now, it's just an empty page.", "description": ""}, "error-password-success-text": {"message": "Your new root password was successfully configured. Please ensure to change your root password again from your VPS after logging in.", "description": ""}, "addvps-template": {"message": "Template", "description": ""}, "error-start-terminated-text": {"message": "Your VPS could not be started, as it is terminated.", "description": ""}, "title-admin-vps-terminate": {"message": "Terminate VPS", "description": ""}, "warning-password-title": {"message": "Security warning", "description": ""}, "console-introduction": {"message": "If you cannot access your VPS for some reason, you can use the out-of-band console (also known as shell dropper) to invoke a root shell.", "description": ""}, "overview-status-unknown": {"message": "Unknown", "description": ""}, "overview-quota-title-traffic-outgoing": {"message": "Outgoing traffic", "description": ""}, "error-terminate-error-title": {"message": "Failed to terminate VPS", "description": ""}, "error-start-running-title": {"message": "VPS can't be started", "description": ""}, "error-stop-terminated-title": {"message": "VPS is terminated", "description": ""}, "warning-password-text": {"message": "Configuring your root password through this panel may expose it to the VPS provider. Only use this feature in an emergency situation, and always change your password again afterwards, from within your VPS.", "description": ""}, "list-status-stopped": {"message": "Stopped", "description": ""}, "error-unsuspend-error-title": {"message": "Failed to unsuspend VPS", "description": ""}, "error-restart-start-title": {"message": "VPS failed to start", "description": ""}, "error-reinstall-notfound-title": {"message": "Reinstallation aborted", "description": ""}, "userbox-account": {"message": "Account settings", "description": ""}, "overview-quota-title-traffic-incoming": {"message": "Incoming traffic", "description": ""}, "error-suspended-title": {"message": "This VPS is suspended", "description": ""}, "error-admin-vpses-add-user": {"message": "You did not select a valid user.", "description": ""}, "error-password-missing-text": {"message": "Both fields are required. Please try again.", "description": ""}, "addnode-publickey": {"message": "Public key", "description": ""}, "error-suspend-success-text": {"message": "The VPS has been suspended and can no longer be used by the owner.", "description": ""}, "toolbar-addnode": {"message": "Add node", "description": ""}, "title-admin-addvps": {"message": "Create VPS", "description": ""}, "error-reinstall-success-text": {"message": "Your VPS was successfully reinstalled.", "description": ""}, "error-terminated-title": {"message": "This VPS has been terminated", "description": ""}, "error-password-nomatch-text": {"message": "Both entries must be identical. Please try again.", "description": ""}, "error-form": {"message": "One or more problems occurred.", "description": ""}, "list-status-suspended": {"message": "Suspended", "description": ""}, "event-1day-ago": {"message": "1 day ago", "description": ""}, "overview-status-stopped": {"message": "Stopped", "description": ""}, "admin-title-id": {"message": "User ID", "description": ""}, "overview-title-location": {"message": "Server location", "description": ""}, "event-hours-ago": {"message": "%1$d hours ago", "description": ""}, "warning-suspended-text": {"message": "You cannot change any configuration or perform any actions on this VPS. If you feel this should not be the case, please contact support.", "description": ""}, "edituser-username": {"message": "Username", "description": ""}, "error-unauthorized-title": {"message": "You are not authorized to view this page", "description": ""}, "admin-level-nodeadmin": {"message": "Node administrator", "description": ""}, "error-stop-suspended-title": {"message": "VPS is suspended", "description": ""}, "error-start-suspended-text": {"message": "Your VPS could not be started, as it is currently suspended. If you believe this is in error, please file a support ticket.", "description": ""}, "reinstall-patience": {"message": "(be patient; this may take a while)", "description": ""}, "error-reinstall-unavailable-text": {"message": "The template you selected is not available. Please select a different template.", "description": ""}, "error-terminate-success-text": {"message": "The VPS has been terminated and can no longer be used by the owner.", "description": ""}, "error-reinstall-notselected-text": {"message": "You did not select a template from the list. Please select a template and try again.", "description": ""}, "vps-admin-unsuspend-text": {"message": "Are you sure you wish to unsuspend this VPS? The owner will be able to use it again.", "description": ""}, "menu-ip": {"message": "IP Allocation", "description": ""}, "addnode-location": {"message": "Physical location", "description": ""}, "error-password-invalid-title": {"message": "Failed to configure root password", "description": ""}, "error-password-terminated-text": {"message": "You can not configure the root password for this VPS, because it has been terminated.", "description": ""}, "addvps-burstable": {"message": "Burstable RAM", "description": ""}, "error-unsuspend-success-text": {"message": "The VPS has been unsuspended and can now be used by the owner again.", "description": ""}, "userbox-loggedin": {"message": "You are logged in as {%?username}.", "description": ""}, "vps-admin-terminate": {"message": "Terminate", "description": ""}, "error-notfound-title": {"message": "VPS not found", "description": ""}, "error-password-terminated-title": {"message": "Failed to configure root password", "description": ""}, "error-admin-vpses-add-cpucount": {"message": "You did not enter a valid amount of CPUs.", "description": ""}, "error-stop-stopped-text": {"message": "Your VPS cannot be stopped because it is not running.", "description": ""}, "error-reinstall-unavailable-title": {"message": "Reinstallation aborted", "description": ""}, "error-stop-terminated-text": {"message": "Your VPS could not be stopped, as it is terminated.", "description": ""}, "overview-button-stop": {"message": "Stop VPS", "description": ""}, "title-admin-edituser": {"message": "Edit user", "description": ""}, "login-password": {"message": "Password", "description": ""}, "toolbar-createvps": {"message": "Create VPS", "description": ""}, "error-admin-nodes-add-privatekey": {"message": "You did not upload a valid private key.", "description": ""}, "warning-terminated-text": {"message": "You cannot change any configuration or perform any actions on this VPS, as it is terminated.", "description": ""}, "error-admin-nodes-add-name": {"message": "You did not fill in a valid name.", "description": ""}, "overview-title-traffic": {"message": "Traffic", "description": ""}, "event-1hour-ago": {"message": "1 hour ago", "description": ""}, "overview-status-running": {"message": "Running", "description": ""}, "error-start-success-title": {"message": "VPS started", "description": ""}, "overview-title-traffic-outgoing": {"message": "Outgoing traffic", "description": ""}, "event-now": {"message": "now", "description": ""}, "admin-title-accesslevel": {"message": "Access level", "description": ""}, "error-admin-vpses-add-template": {"message": "You did not select a valid template.", "description": ""}, "overview-title-status": {"message": "Status", "description": ""}, "error-terminate-success-title": {"message": "VPS terminated", "description": ""}, "error-reinstall-terminated-text": {"message": "You can not reinstall this VPS, because it has been terminated.", "description": ""}, "warning-suspended-title": {"message": "This VPS is suspended", "description": ""}, "title-console": {"message": "Out-of-band console", "description": ""}, "overview-title-disk": {"message": "Disk space", "description": ""}, "error-stop-failed-text": {"message": "Your VPS could not be stopped. If this error persists, please file a support ticket.", "description": ""}, "error-stop-suspended-text": {"message": "Your VPS could not be stopped, as it is currently suspended. If you believe this is in error, please file a support ticket.", "description": ""}, "_time": {"message": "%H:%M:%S", "description": ""}, "list-column-nodeid": {"message": "Node ID", "description": ""}, "menu-alerts": {"message": "Alerts", "description": ""}, "button-admin-vps-transfer": {"message": "Transfer VPS", "description": ""}, "login-username": {"message": "Username", "description": ""}, "list-column-location": {"message": "Physical location", "description": ""}, "header-vps-admin": {"message": "Administrative tasks", "description": ""}, "event-seconds-ago": {"message": "%1$d seconds ago", "description": ""}, "menu-admin-users": {"message": "Users", "description": ""}, "overview-title-node": {"message": "Host node", "description": ""}, "overview-button-restart": {"message": "Restart VPS", "description": ""}, "event-days-ago": {"message": "%1$d days ago", "description": ""}, "admin-level-masteradmin": {"message": "Master administrator", "description": ""}, "error-unterminate-success-text": {"message": "The VPS has been unterminated and can now be used by the owner again.", "description": ""}, "addnode-name": {"message": "Name", "description": ""}, "addvps-traffic": {"message": "Traffic allocation", "description": ""}, "menu-admin-vpses": {"message": "VPSes", "description": ""}, "addvps-diskspace": {"message": "Disk space", "description": ""}, "title-admin-vps-unsuspend": {"message": "Unsuspend VPS", "description": ""}, "error-restart-success-title": {"message": "VPS restarted", "description": ""}, "overview-title-guaranteed": {"message": "Guaranteed RAM", "description": ""}, "overview-title-configuration": {"message": "VPS configuration", "description": ""}, "title-login": {"message": "Login to your VPS panel", "description": ""}, "_datetime_short": {"message": "%d/%m/%Y %H:%M:%S", "description": ""}, "console-title-username": {"message": "Username", "description": ""}, "event-1year-ago": {"message": "1 year ago", "description": ""}, "edituser-email": {"message": "Email address", "description": ""}, "menu-admin-overview": {"message": "Overview", "description": ""}, "event-1minutes-ago": {"message": "1 minute ago", "description": ""}, "menu-api": {"message": "API", "description": ""}, "menu-reinstall": {"message": "Reinstall", "description": ""}, "button-admin-vps-unterminate": {"message": "Unterminate VPS", "description": ""}, "event-past": {"message": "in the past", "description": ""}, "list-column-platform": {"message": "Platform", "description": ""}, "vps-admin-suspend": {"message": "Suspend / unsuspend", "description": ""}, "error-suspend-success-title": {"message": "VPS suspended", "description": ""}, "error-unsuspend-error-text": {"message": "The VPS could not be unsuspended.", "description": ""}, "overview-button-start": {"message": "Start VPS", "description": ""}, "error-reinstall-start-title": {"message": "Failed to start", "description": ""}, "addvps-user": {"message": "User", "description": ""}, "error-start-success-text": {"message": "Your VPS was successfully started.", "description": ""}, "error-admin-nodes-add-location": {"message": "You did not fill in a valid physical location.", "description": ""}, "admin-level-enduser": {"message": "End user", "description": ""}, "error-password-suspended-title": {"message": "Failed to configure root password", "description": ""}, "error-start-failed-text": {"message": "Your VPS could not be started. If this error persists, please file a support ticket.", "description": ""}, "overview-title-os": {"message": "Operating system", "description": ""}, "addvps-hostname": {"message": "Hostname (optional)", "description": ""}, "error-login-invalid-text": {"message": "The login details you provided are invalid. Please try again.", "description": ""}, "_locale": {"message": "en_US.UTF-8,en_US", "description": ""}, "password-field-password": {"message": "New root password", "description": ""}, "error-stop-success-text": {"message": "Your VPS was successfully stopped.", "description": ""}, "userbox-admin": {"message": "Administration panel", "description": ""}, "list-status-running": {"message": "Running", "description": ""}, "error-restart-success-text": {"message": "Your VPS was successfully restarted.", "description": ""}, "overview-title-burstable": {"message": "Burstable RAM", "description": ""}, "error-reinstall-success-title": {"message": "Reinstallation succeeded!", "description": ""}, "error-unterminate-success-title": {"message": "VPS unterminated", "description": ""}, "notfound": {"message": "The specified VPS was not found.", "description": ""}, "console-title-hostname": {"message": "Hostname", "description": ""}, "error-admin-nodes-add-upload": {"message": "Something went wrong while processing the uploaded keys. Ensure that the keys directory is writable.", "description": ""}, "title-admin-nodeinfo": {"message": "Node lookup", "description": ""}, "title-admin-vps-transfer": {"message": "Transfer VPS ownership", "description": ""}, "warning-terminated-title": {"message": "This VPS has been terminated", "description": ""}, "error-logout-notloggedin-title": {"message": "You are not logged in", "description": ""}, "event-1second-ago": {"message": "1 second ago", "description": ""}, "header-admin-user-vpses": {"message": "VPSes owned by this user", "description": ""}, "error-login-invalid-title": {"message": "Login failed", "description": ""}, "error-notfound-text": {"message": "The VPS you selected was not found.", "description": ""}, "error-stop-stopped-title": {"message": "VPS can't be stopped", "description": ""}, "admin-level-reseller": {"message": "Reseller", "description": ""}, "error-password-suspended-text": {"message": "You can not configure the root password for this VPS, because it is suspended. If you believe this is in error, please contact support.", "description": ""}, "error-unauthorized-text": {"message": "Your access level is not sufficient or you are not logged in.", "description": ""}, "error-password-invalid-text": {"message": "Your password may be in an invalid format. Try again with a different password.", "description": ""}, "title-reinstall": {"message": "Reinstall your VPS", "description": ""}, "menu-statistics": {"message": "Statistics", "description": ""}, "menu-admin-nodes": {"message": "Nodes", "description": ""}, "error-reinstall-terminated-title": {"message": "Reinstallation aborted", "description": ""}, "admin-title-vpses": {"message": "VPS count", "description": ""}, "title-admin-overview": {"message": "Administrative overview", "description": ""}, "list-column-ram": {"message": "RAM", "description": ""}, "error-restart-terminated-text": {"message": "Your VPS could not be restarted, as it is terminated.", "description": ""}, "button-admin-vps-unsuspend": {"message": "Unsuspend VPS", "description": ""}, "error-terminate-error-text": {"message": "The VPS could not be terminated.", "description": ""}, "title-admin-userlist": {"message": "User overview", "description": ""}, "overview-title-ipv6": {"message": "IPv6 addresses", "description": ""}, "title-admin-vps-suspend": {"message": "Suspend VPS", "description": ""}, "overview-title-ipv4": {"message": "IPv4 addresses", "description": ""}, "addnode-privatekey": {"message": "Private key", "description": ""}, "title-admin-userinfo": {"message": "User lookup", "description": ""}, "error-admin-nodes-add-publickey": {"message": "You did not upload a valid public key.", "description": ""}, "error-reinstall-failed-text": {"message": "Something went wrong during the reinstallation of your VPS. Please try again. If the reinstallation fails again, please contact support.", "description": ""}, "event-1month-ago": {"message": "1 month ago", "description": ""}, "list-column-disk": {"message": "Disk space", "description": ""}, "_datetime_long": {"message": "%A %B %d, %Y %H:%M:%S", "description": ""}, "error-restart-suspended-text": {"message": "Your VPS could not be restarted, as it is currently suspended. If you believe this is in error, please file a support ticket.", "description": ""}, "vps-admin-suspend-text": {"message": "Are you sure you wish to suspend this VPS? The owner will no longer be able to use it, until it is unsuspended!", "description": ""}, "error-reinstall-suspended-title": {"message": "Reinstallation aborted", "description": ""}, "error-start-failed-title": {"message": "VPS failed to start", "description": ""}, "addnode-hostname": {"message": "Hostname", "description": ""}, "error-admin-vpses-add-node": {"message": "You did not select a valid node.", "description": ""}, "userbox-logout": {"message": "Log out", "description": ""}, "error-restart-suspended-title": {"message": "VPS is suspended", "description": ""}, "list-column-template": {"message": "Template", "description": ""}, "header-admin-node-vpses": {"message": "VPSes on this node", "description": ""}, "userbox-list": {"message": "My VPSes", "description": ""}, "error-reinstall-notfound-text": {"message": "The template you selected does not exist (anymore). Please select a different template.", "description": ""}, "error-start-running-text": {"message": "Your VPS cannot be started because it is already running.", "description": ""}, "vps-admin-unterminate-text": {"message": "Are you sure you wish to unterminate this VPS? The owner will be able to use it again.", "description": ""}, "toolbar-editnode": {"message": "Edit node details", "description": ""}, "vps-admin-terminate-text": {"message": "Are you sure you wish to terminate this VPS? The VPS will be suspended immediately, and deleted after several hours. As long as it is not deleted, the termination can be undone.", "description": ""}, "event-future": {"message": "in the future", "description": ""}, "error-reinstall-confirm-text": {"message": "You did not tick the checkbox at the bottom of the page. Please carefully read the warning, tick the checkbox, and try again.", "description": ""}, "_date_short": {"message": "%d/%m/%Y", "description": ""}, "overview-quota-title-ram": {"message": "RAM", "description": ""}, "error-unterminate-error-text": {"message": "The VPS could not be unterminated.", "description": ""}, "error-reinstall-confirm-title": {"message": "Reinstallation aborted", "description": ""}, "overview-quota-title-traffic": {"message": "Traffic", "description": ""}, "button-admin-addnode": {"message": "Add node", "description": ""}, "error-admin-user-text": {"message": "The user you tried to look up does not exist.", "description": ""}, "event-months-ago": {"message": "%1$d months ago", "description": ""}, "overview-quota-title-disk": {"message": "Disk space", "description": ""}, "title-admin-vpslist": {"message": "VPS overview", "description": ""}, "error-restart-terminated-title": {"message": "VPS is terminated", "description": ""}, "menu-overview": {"message": "Overview", "description": ""}, "list-column-node": {"message": "Node", "description": ""}, "title-admin-addnode": {"message": "Add node", "description": ""}, "error-suspend-error-title": {"message": "Failed to suspend VPS", "description": ""}, "error-unsuspend-success-title": {"message": "VPS unsuspended", "description": ""}, "error-password-success-title": {"message": "Password configuration succeeded!", "description": ""}, "menu-password": {"message": "Root Password", "description": ""}, "event-years-ago": {"message": "%1$d years ago", "description": ""}, "admin-title-email": {"message": "Email address", "description": ""}, "addvps-cpucount": {"message": "CPUs", "description": ""}, "error-admin-vpses-add-disk": {"message": "You did not enter a valid disk space specification.", "description": ""}, "admin-title-username": {"message": "Username", "description": ""}, "_date_long": {"message": "%A %B %d, %Y", "description": ""}, "footer": {"message": "CVM is a free and open source VPS control panel. Want to contribute?", "description": ""}, "title-admin-vps-unterminate": {"message": "Unterminate VPS", "description": ""}, "vps-admin-transfer": {"message": "Transfer", "description": ""}, "error-reinstall-start-text": {"message": "The VPS was successfully reinstalled, but it could not be started. If the issue persists, please contact support.", "description": ""}, "error-restart-start-text": {"message": "Your VPS could not be started. If this error persists, please file a support ticket.", "description": ""}, "menu-console": {"message": "Console", "description": ""}, "error-logout-success-title": {"message": "Successfully logged out", "description": ""}, "error-unterminate-error-title": {"message": "Failed to unterminate VPS", "description": ""}, "error-admin-vpses-add-traffic": {"message": "You did not enter a valid traffic allocation specification.", "description": ""}, "overview-status-suspended": {"message": "Suspended", "description": ""}, "overview-title-traffic-incoming": {"message": "Incoming traffic", "description": ""}, "toolbar-edituser": {"message": "Edit user details", "description": ""}} diff --git a/tools/locale_convert.py b/tools/locale_convert.py new file mode 100644 index 0000000..e79c8d1 --- /dev/null +++ b/tools/locale_convert.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +import sys, json, re + +f = open(sys.argv[1]) +output = {} + +for line in f: + if not line.startswith("#"): + data = re.search("(.+?[^\\\]);(.+)", line) + + if data is not None: + key = data.group(1).replace("\;", ";").strip() + val = data.group(2).replace("\;", ";").strip() + + output[key] = { + "message": val, + "description": "" + } + +print json.dumps(output)