Skip to content

Commit

Permalink
🔄 Sync supportpal/addon-language-english (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream and sync-bot authored May 23, 2022
1 parent f428a84 commit 9da1ecd
Show file tree
Hide file tree
Showing 10 changed files with 243 additions and 28 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#####################################################################################
# WARNING #
#####################################################################################
# #
# This file is synchronised across all supportpal/addon-language-* repositories. #
# Be careful not to hardcode any paths, and only update it in the #
# supportpal/addon-language-english repository! #
# #
#####################################################################################

version: 2

updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#####################################################################################
# WARNING #
#####################################################################################
# #
# This file is synchronised across all supportpal/addon-language-* repositories. #
# Be careful not to hardcode any paths, and only update it in the #
# supportpal/addon-language-english repository! #
# #
#####################################################################################
name: Release

on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set environment
run: |
ADDON_NAME="$(grep -rEho "^namespace Addons\\\\Languages\\\\([^\\\\]+)" Controllers/ | sed 's:.*\\::')"
ADDON_NAME_LOWER="$(echo $ADDON_NAME | awk '{print tolower($0)}')"
BASE_FILENAME="addon-$(echo $ADDON_NAME_LOWER)-${{ github.ref_name }}"
echo "ADDON_NAME=$(echo $ADDON_NAME)" >> $GITHUB_ENV
echo "ZIP_FILENAME=$(echo $BASE_FILENAME).zip" >> $GITHUB_ENV
echo "TAR_FILENAME=$(echo $BASE_FILENAME).tar.gz" >> $GITHUB_ENV
- name: Build Release
run: |
git archive --format=tar --prefix="${{ env.ADDON_NAME }}/" HEAD -o archive.tar
tar -xf archive.tar
rm -rf ${{ env.ADDON_NAME }}/.github/
zip -r ${{ env.ZIP_FILENAME }} ${{ env.ADDON_NAME }}
tar -zcvf ${{ env.TAR_FILENAME }} ${{ env.ADDON_NAME }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.ZIP_FILENAME }}
${{ env.TAR_FILENAME }}
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#####################################################################################
# WARNING #
#####################################################################################
# #
# This file is synchronised across all supportpal/addon-language-* repositories. #
# Be careful not to hardcode any paths, and only update it in the #
# supportpal/addon-language-english repository! #
# #
#####################################################################################
name: test

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer:v2, supportpal/language-tools

- name: PHP Syntax Check
uses: overtrue/[email protected]
with:
path: .
options: --exclude=vendor

- name: Set environment
run: |
LANG_PATH=$(find Lang -mindepth 1 -maxdepth 1 -type d -print -quit)
echo "LANG_PATH=$(echo $LANG_PATH)" >> $GITHUB_ENV
echo "LANG_NAME=$(basename $LANG_PATH)" >> $GITHUB_ENV
- name: Check out English
if: ${{ env.LANG_NAME != 'en' }}
uses: actions/checkout@v3
with:
repository: supportpal/addon-language-english
path: addon-language-english/
ref: master

- name: Code Quality
if: ${{ env.LANG_NAME != 'en' }}
run: |
language-tools compare addon-language-english/Lang/en/ Lang/${{ env.LANG_NAME }}
5 changes: 5 additions & 0 deletions Lang/sv/conditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@
* 3.7.0
*/
"user_organisation_access_level" => "User organisation access level",

/*
* 4.0.0
*/
"last_message_content_exc_notes" => "Last message content (excluding notes)",
);
91 changes: 77 additions & 14 deletions Lang/sv/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@

// Plugins
"plugins" => "Insticksmodul|Insticksmoduler",
"installed_plugins" => "Installerade Insticksmodul",
"visit_plugin" => "Besök Insticksmodulsidan",

// Messages
Expand Down Expand Up @@ -405,7 +404,6 @@
"heading5" => "Heading 5",
"heading6" => "Heading 6",
"upload" => "Ladda upp",
"upload_label" => "Dra och släpp filer här eller klicka på Ladda upp",
"more_formatting" => "More Formatting",
"clearformat" => "Clear Formatting",
"bold" => "Bold",
Expand Down Expand Up @@ -452,15 +450,6 @@
"ticket_desc2" => "The ticket grid can be ordered adjusted to your preference and filtered as needed.",
"zip_extension_required" => "The Zip PHP extension is not installed. Please install it and try again.",
"zip_file_not_downloaded" => "The zip file could not download. Verify that you are able to access: :url",
"plugin_basic_info" => "Please provide some basic information about your plugin.",
"plugin_author_name" => "Author name",
"plugin_author_uri" => "Author URI (link to your website)",
"plugin_vendor_name" => "Vendor name (name of your company, can be same as author name)",
"plugin_name" => "Plugin name",
"plugin_description" => "Plugin description",
"plugin_already_exists" => "Plugin already exists!",
"plugin_creating" => "Creating plugin...",
"plugin_ready" => "Plugin ready in :directory! Build something amazing.",

/*
* 3.3.0
Expand All @@ -483,9 +472,6 @@
"brand_name_desc" => "Your brand name is used for all correspondence with users.",
"supportpal_announcements" => "SupportPal Announcements",
"add_selectize" => "Add <strong>:item</strong>...",
"plugin_author_uri_short" => "Author URI",
"plugin_vendor_name_short" => "Vendor Name",
"open_link_in_new_tab" => "Open link in new tab",
"general_settings" => "Configure general settings",
"configure_brand" => "Configure brand",
"configure_department" => "Configure department",
Expand Down Expand Up @@ -528,4 +514,81 @@
"background_jobs" => "Background Jobs",
"background_jobs_not_processing" => "Background jobs are not currently being processed, view <a target='_blank' href='https://docs.supportpal.com/current/Background+Jobs#Troubleshooting'>troubleshooting steps</a>.",

/*
* 4.0.0
*/
"addon" => "Add-on|Add-ons",
"addon_already_exists" => "An add-on already exists at this path: :path",
"addons_marketplace" => "Marketplace",
"addons_missing_valid_artifact" => "Add-on does not have a valid archive.",
"checksum_not_matched" => "The downloaded file failed checksum verification.",
"invalid_archive_format" => "Artifact should not include other directories other than the add-on.",
"downloading_version" => "Downloading add-on version :version to :path...",
"extracting_addon" => "Extracting add-on files...",
"activating_addon" => "Activating add-on...",
"addon_install_success" => "Add-on installed successfully.",
"addon_install_error" => "Add-on failed to install, please check the application logs for more details.",
"addon_latest_version" => "Add-on is already running the latest version.",
"addon_update_success" => "Add-on updated successfully.",
"addon_update_error" => "Add-on failed to update and has been reverted, please check the application logs for more details.",
"addon_basic_info" => "Please provide some basic information about the add-on.",
"addon_author_name" => "Author name",
"addon_author_uri" => "Author URI (link to your website)",
"addon_author_uri_short" => "Author URI",
"addon_vendor_name" => "Vendor name (name of your company, can be same as author name)",
"addon_vendor_name_short" => "Vendor Name",
"addon_name" => "Add-on name",
"addon_description" => "Add-on description",
"addon_creating" => "Creating add-on...",
"addon_ready" => "Add-on ready in :directory! Build something amazing.",
"addon_version_not_supported" => "The available version of the add-on does not support the installed SupportPal version.",
"no_addons_found" => "No add-ons found.",
"price" => "Price",
"one_time" => "One Time",
"monthly" => "Monthly",
"quarterly" => "Quarterly",
"semiannually" => "Semi-Annually",
"annually" => "Annually",
"biennially" => "Biennially",
"triennially" => "Triennially",
"tag" => "Tag|Tags",
"login_to_install" => "<a href=':link'>Login</a> to Install",
"marketplace_login_error" => "Login failed. Please <a target='_blank' href='https://www.supportpal.com/manage/logout.php'>logout</a> and then ensure to log in to the account that has your SupportPal license.",
"payment_required" => "Payment Required",
"addon_purchase_info" => "By clicking the above button, your account will be charged the price shown at the selected billing cycle, and you agree to our <a href=':link' target='_blank'>terms of service</a>.",
"addon_cancel_info" => "Cancelling will immediately deactivate the add-on and stop any further payments being taken.",
"system_health" => "System Health",
"system_health_desc" => "Health checks monitor that the system is performing correctly and notify you when issues arise.",
"system_health_errors" => "One or more <a href=':link'>system health</a> checks are failing.",
"app_log_check" => "Application Log Error Count",
"app_log_errors_exist" => "Application log file for today contains errors, please check the logs by navigating to Utilities -> Logs -> Log File Manager -> :filename",
"redis_check" => "Redis Connection",
"web_server_check" => "Web Server",
"web_server_error" => "Unable to connect to :url",
"redirection_rules_check" => "Redirection Rules",
"redirection_rule_error" => "Server redirection rules must remove /index.php from path. Otherwise attackers can potentially access your files.",
"cron_check" => "Cron",
"cron_check_error" => "The cron is not running.",
"cron_check_warning" => "The following tasks: (:tasks) has not been ran within their expected interval.",
"database_check" => "Database Connection",
"disk_usage_check" => "Free Disk Space",
"email_queue_check" => "Outbound Email Queue",
"email_queue_warning" => "Email queue contains :number emails that require manual attention.",
"pipe_check" => "Email Piping",
"file_not_found" => "File ':path' not found.",
"file_not_executable" => "File ':path' is not executable.",
"dependency_resolution" => "Unable to run health check.",
"debug_mode_warning" => "Debug mode should only be used temporarily.",
"custom_colour" => "Custom Colour",
"remove_colour" => "Remove Colour",
"background_colour" => "Background Colour",
"open_link" => "Open link",
"open_link_in" => "Open link in...",
"new_window" => "New window",
"current_window" => "Current window",
"edit_image" => "Edit image...",
"alternative_description" => "Alternative description",
"browse_image" => "Browse for an image",
"drop_image" => "Drop an image here",

);
16 changes: 16 additions & 0 deletions Lang/sv/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,20 @@
*/
"download_all" => "Download All",

/*
* 4.0.0
*/
"install" => "Install",
"installing" => "Installing...",
"updating" => "Updating...",
"cancelling" => "Cancelling...",
"ok" => "OK",
"mark_as_verified" => "Mark as Verified",
"not_verified" => "Not Verified",
"free" => "Free",
"commercial" => "Commercial",
"purchase" => "Purchase",
"more_information" => "More Information",
"details" => "Details",

);
5 changes: 5 additions & 0 deletions Lang/sv/license.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@
*/
"multi_ip_support" => "Consider enabling <a href=':href' target='_blank'>Multi-IP support</a> in the client area to define additional IP addresses.",

/*
* 4.0.0
*/
"unlicensed" => "Unlicensed",

);
12 changes: 6 additions & 6 deletions Lang/sv/permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@
// General
"tag" => "Hantera etiketter",

/*
* 2.0.2
*/
// Core
"plugin" => "Visa plugins",

/*
* 2.0.3
*/
Expand Down Expand Up @@ -125,4 +119,10 @@
*/
"background_jobs" => "View Background Jobs",

/*
* 4.0.0
*/
"addon" => "View and Manage Add-ons",
"system_health" => "View System Health",

);
14 changes: 6 additions & 8 deletions Lang/sv/ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@

"track_ticket_not_found" => "Kunde inte hitta ärendet med det inskrivna ärendenumret och användare-postadressen.",

"channel_deactivated" => "Ärendekanalen är för närvarande avaktiverad så ett svar kan inte postas.",

"type_in_tags" => "Skriv in taggar",

/*
Expand All @@ -322,7 +320,6 @@
"default_reply_options_desc" => "Välj standardsvarsalternativ som sätts när ett ärende öppnas eller besvaras. ':reply_option'-inställningen blir ikryssad baserad på ':department_option'-avdelningsinställningar.",
"associate_response_tag" => "Associera konserverat svar med en etikett...",
"canned_response_tags_desc" => "Lägg till etiketter som kan hjälpa dig att hitta ett snabbsvar när ett ärende besvaras.",
"loading_tags" => "Laddar etiketter",
"append_ip_address" => "Bifoga IP-adress",
"append_ip_address_desc" => "Bifoga användarnas IP-adresser till deras meddelande när de öppnar eller svarar på ärenden från framsidan.",
"unassign_operator" => "Ta bort tilldelad operatör",
Expand Down Expand Up @@ -495,11 +492,6 @@
"block_user" => "Block User",
"merge_tickets" => "Merge Tickets",

/*
* 2.5.1
*/
"channel_account_removed" => "The ticket channel account has been deactivated or removed, a reply cannot be posted.",

/*
* 2.6.0
*/
Expand Down Expand Up @@ -547,4 +539,10 @@
"api_channel_name" => "API",
"api_channel_desc" => "Tickets and replies posted through the API.",

/*
* 4.0.0
*/
"on_behalf_of" => "Created on behalf of",
"reply_canned_be_posted" => "It is not currently possible to reply to this ticket; the channel or channel account may be disabled.",

);
10 changes: 10 additions & 0 deletions Lang/sv/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,14 @@
"logged_in" => "Logged In",
"revoke_session_desc" => "Revoking a session will log the device out of the operator panel. It will also revoke all remember me tokens for other devices.",

/**
* 4.0.0
*/
"verify_phone_number" => "Verify Phone Number",
"verify_phone_method" => "Select the method you wish to verify your phone number.",
"verify_phone_code_sent" => "A verification code has been sent to your phone number, please enter this code below.",
"verify_phone_code_send_error" => "An error occurred while sending the verification code. Please try again later.",
"verify_phone_code_error" => "Code could not be verified.",
"logged_in_as" => "Logged in as :name",

);

0 comments on commit 9da1ecd

Please sign in to comment.