Skip to content

Commit

Permalink
chore: Change plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roboroads committed Apr 11, 2024
1 parent baef528 commit bdcf751
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 51 deletions.
8 changes: 5 additions & 3 deletions src/main/kotlin/nl/deschepers/laraveltinker/util/PlugUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import nl.deschepers.laraveltinker.settings.PersistentApplicationCache

/**
* Before you place a bug: I am aware this is insecure. I just don't want to bother actual supporters
* with my 'consider supporting' messages. Just note that decoding this does not give you any extra features, it
* JUST removes the 'consider supporting' message. Consider financially supporting me to get a legit key <3
* with my 'consider supporting' messages without connecting to third party services. Just note that
* decoding this does not give you any extra features, it JUST removes the 'consider supporting' message.
*
* Consider financially supporting me to get a legit key <3
*/
object PlugUtil {
internal const val SUPPORT_MESSAGE_EXECUTIONS = 10
Expand All @@ -21,7 +23,7 @@ object PlugUtil {
SUPPORT_MESSAGE_EXECUTIONS
) {
PersistentApplicationCache.instance.state.executionsCount = 0
val plugType = listOf("patreon", "paypal", "kofi", "linktree", "colleagues", "rating").asSequence().shuffled().find { true }
val plugType = listOf("github", "kofi", "linktree", "colleagues", "rating").asSequence().shuffled().find { true }
return Strings.get("lt.consider_supporting", Strings.get("lt.consider_supporting.$plugType"))
}
}
Expand Down
95 changes: 47 additions & 48 deletions src/main/resources/strings/strings.properties
Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@
name=Laravel Tinker
lt.run=Run Tinker
lt.running=Running Tinker console..
lt.started_at=// Laravel Tinker started at {0}
lt.execution_finished=\n*** Execution finished ***
lt.consider_supporting=Does the Laravel Tinker Plugin help you being more productive? \nConsider {0}. \n - Thank you!
lt.consider_supporting.patreon=becoming a <a href="https://www.patreon.com/roboroads">Patreon</a>
lt.consider_supporting.paypal=a donation through <a href="https://www.paypal.com/donate/?business=GVP8H97X2KWPS&no_recurring=0&currency_code=EUR">PayPal</a>
lt.consider_supporting.kofi=buying me a <a href="https://ko-fi.com/roboroads">coffee</a>
lt.consider_supporting.linktree=sharing on <a href="https://linktr.ee/roboroads">social media</a>
lt.consider_supporting.colleagues=telling your colleagues, friends and/or network
lt.consider_supporting.rating=<a href="https://plugins.jetbrains.com/plugin/14957-laravel-tinker/reviews">giving a rating</a> or <a href="https://github.com/Roboroads/laravel-tinker">starring on GitHub</a>
name = Laravel Tinker
lt.run = Run Tinker
lt.running = Running Tinker console..
lt.started_at = // Laravel Tinker started at {0}
lt.execution_finished = \n*** Execution finished ***
lt.consider_supporting = Does the Laravel Tinker Plugin help you being more productive? \nConsider {0}. \n - Thank you!
lt.consider_supporting.github = sponsoring me <a href="https://github.com/sponsors/Roboroads">on GitHub Sponsors</a>
lt.consider_supporting.kofi = sponsoring me <a href="https://ko-fi.com/roboroads">on Ko-fi</a>
lt.consider_supporting.linktree = sharing on <a href="https://linktr.ee/roboroads">social media</a>
lt.consider_supporting.colleagues = telling your colleagues, friends and/or network
lt.consider_supporting.rating = <a href="https://plugins.jetbrains.com/plugin/14957-laravel-tinker/reviews">giving a rating</a> or <a href="https://github.com/Roboroads/laravel-tinker">starring on GitHub</a>

lt.settings.php_interpreter=PHP interpreter settings
lt.settings.tinker_project_settings=Tinker project settings
lt.settings.php_interpreter = PHP interpreter settings
lt.settings.tinker_project_settings = Tinker project settings

lt.error.no_php_interpreter=PHP CLI interpreter is missing
lt.error.php_interpreter_error=PHP CLI Interpreter error
lt.error.please_check_interpreter_settings=Please check your PHP CLI interpreter settings.
lt.error.laravel_root_does_not_exist.title=The configured Laravel root directory does not exist
lt.error.laravel_root_does_not_exist.message=Please check if it's the right path. Current setting: {0}
lt.error.laravel_root_no_vendor.title=Could not find vendor directory.
lt.error.laravel_root_no_vendor.message=If your vendor folder is not in your laravel root, please configure it in the plugin settings. Current setting: {0}
lt.error.no_php_interpreter = PHP CLI interpreter is missing
lt.error.php_interpreter_error = PHP CLI Interpreter error
lt.error.please_check_interpreter_settings = Please check your PHP CLI interpreter settings.
lt.error.laravel_root_does_not_exist.title = The configured Laravel root directory does not exist
lt.error.laravel_root_does_not_exist.message = Please check if it's the right path. Current setting: {0}
lt.error.laravel_root_no_vendor.title = Could not find vendor directory.
lt.error.laravel_root_no_vendor.message = If your vendor folder is not in your laravel root, please configure it in the plugin settings. Current setting: {0}
lt.settings.output_settings=Output Settings
lt.settings.show_execution_start=Show the start time of the execution in the output
lt.settings.show_execution_end=Show when execution finishes
lt.settings.use_word_wrapping=Use text-wrapping in tinker output (removing horizontal scrolling)
lt.settings.terminate_app=Terminate the app after execution
lt.settings.other_settings=Other Settings
lt.settings.project_settings=Project Settings
lt.settings.laravel_root=Laravel root folder
lt.settings.vendor_root=Vendor root folder
lt.settings.laravel_root.tooltip1=Override the folder in which tinker will execute.
lt.settings.laravel_root.tooltip2=Leave empty to let the plugin automatically guess the root.
lt.settings.laravel_root.tooltip3=When using a remote, make sure your interpreter path mapping is correct!
lt.settings.support_key=Support key
lt.settings.support_key.tooltip=A valid key only disables the "Consider supporting"-plug every {0} executions.
lt.settings.support_key.tooltip_support_options=Check the "Sponsor" button at https://github.com/Roboroads/laravel-tinker.
lt.settings.output_settings = Output Settings
lt.settings.show_execution_start = Show the start time of the execution in the output
lt.settings.show_execution_end = Show when execution finishes
lt.settings.use_word_wrapping = Use text-wrapping in tinker output (removing horizontal scrolling)
lt.settings.terminate_app = Terminate the app after execution
lt.settings.other_settings = Other Settings
lt.settings.project_settings = Project Settings
lt.settings.laravel_root = Laravel root folder
lt.settings.vendor_root = Vendor root folder
lt.settings.laravel_root.tooltip1 = Override the folder in which tinker will execute.
lt.settings.laravel_root.tooltip2 = Leave empty to let the plugin automatically guess the root.
lt.settings.laravel_root.tooltip3 = When using a remote, make sure your interpreter path mapping is correct!
lt.settings.support_key = Support key
lt.settings.support_key.tooltip = A valid key only disables the "Consider supporting"-plug every {0} executions.
lt.settings.support_key.tooltip_support_options = Check the "Sponsor" button at https://github.com/Roboroads/laravel-tinker.
lt.console.filename=LaravelTinkerConsole.php
lt.console.name=Tinker Console
lt.console.default_content=<?php\n//Tinker away!\n
lt.console.menu_title=Laravel Tinker Consoles
lt.console.filename = LaravelTinkerConsole.php
lt.console.name = Tinker Console
lt.console.default_content = <?php\n//Tinker away!\n
lt.console.menu_title = Laravel Tinker Consoles
lt.menu.action.smart=Smart Action: {0}
lt.menu.action.switch_to_tinker_console=Switch To Console Tab
lt.menu.action.open_last_console=Reopen Last Console
lt.menu.action.open_new_console=Open New Console
lt.menu.action.open_new_console_with_selection=Open Tinker Console With Selection
lt.menu.action.run_console=Run Console
lt.menu.action.run_tinker_console=Run Tinker Console
lt.menu.action.close_all_tinker_windows=Close All Tinker Windows
lt.menu.action.smart = Smart Action: {0}
lt.menu.action.switch_to_tinker_console = Switch To Console Tab
lt.menu.action.open_last_console = Reopen Last Console
lt.menu.action.open_new_console = Open New Console
lt.menu.action.open_new_console_with_selection = Open Tinker Console With Selection
lt.menu.action.run_console = Run Console
lt.menu.action.run_tinker_console = Run Tinker Console
lt.menu.action.close_all_tinker_windows = Close All Tinker Windows

0 comments on commit bdcf751

Please sign in to comment.