Skip to content

Commit

Permalink
Add some context for a few translatable strings. Add pot file.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewAPicture committed Oct 13, 2024
1 parent 4921fe2 commit bab36a3
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 3 deletions.
86 changes: 86 additions & 0 deletions languages/debug-bar-console-reloaded.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Debug Bar Console Reloaded\n"
"POT-Creation-Date: 2024-10-12 19:45-0600\n"
"PO-Revision-Date: 2024-10-12 19:41-0600\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"X-Generator: Poedit 3.5\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-WPHeader: debug-bar-console-reloaded.php\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
"X-Poedit-SearchPathExcluded-1: vendor\n"

#: src/Panel.php:28
msgid "Console"
msgstr ""

#: src/Panel.php:45
msgid "PHP"
msgstr ""

#: src/Panel.php:46
msgid "SQL"
msgstr ""

#: src/Panel.php:70
msgid "Shift + Enter"
msgstr ""

#: src/Panel.php:71
msgctxt "Run the program"
msgid "Run"
msgstr ""

#: src/Panel.php:74
msgid "Enter PHP code to execute."
msgstr ""

#: src/Panel.php:78
msgid "Enter SQL to execute."
msgstr ""

#: src/Panel.php:84
msgctxt "Formatted output"
msgid "Formatted"
msgstr ""

#: src/Panel.php:85
msgctxt "Raw output"
msgid "Raw"
msgstr ""

#: src/Panel.php:88
msgid "Output"
msgstr ""

#. Plugin Name of the plugin/theme
msgid "Debug Bar Console Reloaded"
msgstr ""

#. Plugin URI of the plugin/theme
msgid "http://wordpress.org/extend/plugins/debug-bar-console-reloaded/"
msgstr ""

#. Description of the plugin/theme
msgid "Adds a PHP/SQL console to the debug bar. Requires the debug bar plugin."
msgstr ""

#. Author of the plugin/theme
msgid "Drew Jaynes"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://werdswords.com"
msgstr ""
6 changes: 3 additions & 3 deletions src/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function render() {
</ul>
<div id="debug-bar-console-submit">
<span><?php esc_html_e('Shift + Enter', 'debug-bar-console-reloaded'); ?></span>
<a href="#"><?php esc_html_e('Run', 'debug-bar-console-reloaded'); ?></a>
<a href="#"><?php echo esc_html_x('Run', 'Run the program', 'debug-bar-console-reloaded'); ?></a>
</div>
<div class="debug-bar-console-panel debug-bar-console-on-php">
<label for="debug-bar-console-input-php" class="screen-reader-text"><?php esc_html_e('Enter PHP code to execute.', 'debug-bar-console-reloaded'); ?></label>
Expand All @@ -81,8 +81,8 @@ function render() {
</div>
<div id="debug-bar-console-output">
<ul class="debug-bar-console-tabs">
<li class="debug-bar-console-tab debug-bar-console-tab-active" data-output-mode="formatted"><?php esc_html_e('Formatted', 'debug-bar-console-reloaded'); ?></li>
<li class="debug-bar-console-tab" data-output-mode="raw"><?php esc_html_e('Raw', 'debug-bar-console-reloaded'); ?></li>
<li class="debug-bar-console-tab debug-bar-console-tab-active" data-output-mode="formatted"><?php echo esc_html_x('Formatted', 'Formatted output', 'debug-bar-console-reloaded'); ?></li>
<li class="debug-bar-console-tab" data-output-mode="raw"><?php echo esc_html_x('Raw', 'Raw output', 'debug-bar-console-reloaded'); ?></li>
</ul>
<div class="debug-bar-console-panel">
<iframe title="<?php esc_attr_e('Output', 'debug-bar-console-reloaded'); ?>"></iframe>
Expand Down

0 comments on commit bab36a3

Please sign in to comment.