Skip to content

Commit

Permalink
Merge pull request #34 from threadi/feature/removeLanguageFilesFromRe…
Browse files Browse the repository at this point in the history
…lease

removed language files from release
  • Loading branch information
threadi authored Nov 26, 2023
2 parents f081cee + e58a24f commit 9ef22fd
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 50 deletions.
1 change: 0 additions & 1 deletion build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
<delete file="${build.dir}/${plugin.slug}_${plugin.version}.zip"/>
<zip destfile="${build.dir}/${plugin.slug}_${plugin.version}.zip">
<zipfileset dir="${src.dir}/attributes" prefix="${plugin.slug}/attributes" />
<zipfileset dir="${src.dir}/languages" prefix="${plugin.slug}/languages" />
<zipfileset dir="${src.dir}/libs" prefix="${plugin.slug}/libs" />
<zipfileset dir="${src.dir}" includes="uninstall.php,readme.txt,js.js" prefix="${plugin.slug}" />
<zipfileset dir="${src.dir}" includes="${plugin.slug}-release.php" fullpath="${plugin.slug}/${plugin.slug}.php" />
Expand Down
Binary file modified languages/play-audio-once-de_DE.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions languages/play-audio-once-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Play Audio once 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/play-audio-"
"once\n"
"POT-Creation-Date: 2023-07-16T14:59:36+02:00\n"
"PO-Revision-Date: 2023-07-16 14:59+0200\n"
"POT-Creation-Date: 2023-11-26T12:48:18+01:00\n"
"PO-Revision-Date: 2023-11-26 12:48+0100\n"
"Last-Translator: Thomas Zwirner <[email protected]>\n"
"Language-Team: \n"
"Language: de\n"
Expand Down Expand Up @@ -37,10 +37,10 @@ msgstr "Thomas Zwirner"
msgid "https://www.thomaszwirner.de"
msgstr "https://www.thomaszwirner.de"

#: attributes/index.js:103 attributes/index.js:91
#: attributes/audioOption.js:279 attributes/audioOption.js:216
msgid "Advanced Audio Controls"
msgstr "Erweiterte Audiosteuerung"

#: attributes/index.js:105 attributes/index.js:94
#: attributes/audioOption.js:281 attributes/audioOption.js:219
msgid "play only once per session"
msgstr "nur einmal pro Sitzung spielen"
Binary file modified languages/play-audio-once-de_DE_formal.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions languages/play-audio-once-de_DE_formal.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Play Audio once 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/play-audio-"
"once\n"
"POT-Creation-Date: 2023-07-16T14:59:36+02:00\n"
"PO-Revision-Date: 2023-07-16 15:00+0200\n"
"POT-Creation-Date: 2023-11-26T12:48:18+01:00\n"
"PO-Revision-Date: 2023-11-26 12:48+0100\n"
"Last-Translator: Thomas Zwirner <[email protected]>\n"
"Language-Team: \n"
"Language: de\n"
Expand Down Expand Up @@ -37,10 +37,10 @@ msgstr "Thomas Zwirner"
msgid "https://www.thomaszwirner.de"
msgstr "https://www.thomaszwirner.de"

#: attributes/index.js:103 attributes/index.js:91
#: attributes/audioOption.js:279 attributes/audioOption.js:216
msgid "Advanced Audio Controls"
msgstr "Erweiterte Audiosteuerung"

#: attributes/index.js:105 attributes/index.js:94
#: attributes/audioOption.js:281 attributes/audioOption.js:219
msgid "play only once per session"
msgstr "nur einmal pro Sitzung spielen"
Binary file modified languages/play-audio-once-es_ES.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions languages/play-audio-once-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Play Audio once @@VersionNumber@@\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/play-audio-once\n"
"POT-Creation-Date: 2023-07-16T14:59:36+02:00\n"
"PO-Revision-Date: 2023-07-16 15:00+0200\n"
"POT-Creation-Date: 2023-11-26T12:48:18+01:00\n"
"PO-Revision-Date: 2023-11-26 12:49+0100\n"
"Last-Translator: Thomas Zwirner <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
Expand Down Expand Up @@ -36,10 +36,10 @@ msgstr "Thomas Zwirner"
msgid "https://www.thomaszwirner.de"
msgstr "https://www.thomaszwirner.de"

#: attributes/index.js:103 attributes/index.js:91
#: attributes/audioOption.js:279 attributes/audioOption.js:216
msgid "Advanced Audio Controls"
msgstr "Controles de audio avanzados"

#: attributes/index.js:105 attributes/index.js:94
#: attributes/audioOption.js:281 attributes/audioOption.js:219
msgid "play only once per session"
msgstr "jugar sólo una vez por sesión"
Binary file modified languages/play-audio-once-it_IT.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions languages/play-audio-once-it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Play Audio once @@VersionNumber@@\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/play-audio-once\n"
"POT-Creation-Date: 2023-07-16T14:59:36+02:00\n"
"PO-Revision-Date: 2023-07-16 15:00+0200\n"
"POT-Creation-Date: 2023-11-26T12:48:18+01:00\n"
"PO-Revision-Date: 2023-11-26 12:49+0100\n"
"Last-Translator: Thomas Zwirner <[email protected]>\n"
"Language-Team: \n"
"Language: it\n"
Expand Down Expand Up @@ -36,10 +36,10 @@ msgstr "Thomas Zwirner"
msgid "https://www.thomaszwirner.de"
msgstr "https://www.thomaszwirner.de"

#: attributes/index.js:103 attributes/index.js:91
#: attributes/audioOption.js:279 attributes/audioOption.js:216
msgid "Advanced Audio Controls"
msgstr "Controlli audio avanzati"

#: attributes/index.js:105 attributes/index.js:94
#: attributes/audioOption.js:281 attributes/audioOption.js:219
msgid "play only once per session"
msgstr "giocare solo una volta per sessione"
12 changes: 6 additions & 6 deletions languages/play-audio-once.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-07-16T14:59:36+02:00\n"
"POT-Creation-Date: 2023-11-26T12:48:18+01:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: play-audio-once\n"

#. Plugin Name of the plugin
Expand All @@ -30,12 +30,12 @@ msgstr ""
msgid "https://www.thomaszwirner.de"
msgstr ""

#: attributes/index.js:103
#: attributes/index.js:91
#: attributes/audioOption.js:279
#: attributes/audioOption.js:216
msgid "Advanced Audio Controls"
msgstr ""

#: attributes/index.js:105
#: attributes/index.js:94
#: attributes/audioOption.js:281
#: attributes/audioOption.js:219
msgid "play only once per session"
msgstr ""
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "play-audio-once",
"version": "1.1.1",
"version": "1.1.3",
"description": "Adds an option to the audio block to prevent the file from being played multiple times.",
"author": "threadi",
"license": "GPL-2.0-or-later",
"main": "attributes/index.js",
"main": "attributes/audioOption.js",
"scripts": {
"format": "wp-scripts format",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"start": "wp-scripts start src/index.js --output-path=attributes/",
"build": "wp-scripts build src/index.js --output-path=attributes/",
"start": "wp-scripts start src/audioOption.js --output-path=attributes/",
"build": "wp-scripts build src/audioOption.js --output-path=attributes/",
"packages-update": "wp-scripts packages-update"
},
"devDependencies": {
"@wordpress/scripts": "^20.0.2",
"@wordpress/scripts": "^26.17.0",
"npm-pack-zip": "^1.3.0"
},
"dependencies": {
"@wordpress/i18n": "^4.3.0",
"classnames": "^2.3.1"
"@wordpress/i18n": "^4.46.0",
"classnames": "^2.3.2"
}
}
17 changes: 3 additions & 14 deletions play-audio-once.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
exit;
}

/**
* Initialize the plugin.
*
* @return void
* @noinspection PhpUnused
*/
function play_audio_once_init(): void {
load_plugin_textdomain( 'play-audio-once', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
add_action( 'init', 'play_audio_once_init' );

/**
* Adds JavaScript-files to frontend.
*
Expand All @@ -53,16 +42,16 @@ function play_audio_once_scripts(): void {
function play_audio_once_assets(): void {
wp_enqueue_script(
'play-audio-once-backend-js',
plugins_url( 'attributes/index.js', __FILE__ ),
plugins_url( 'attributes/audioOption.js', __FILE__ ),
array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-i18n', 'wp-block-editor' ),
filemtime( plugin_dir_path( __FILE__ ) . 'attributes/index.js' ),
filemtime( plugin_dir_path( __FILE__ ) . 'attributes/audioOption.js' ),
true
);
if ( function_exists( 'wp_set_script_translations' ) ) {
wp_set_script_translations(
'play-audio-once-backend-js',
'play-audio-once',
plugin_dir_path( __FILE__ ) . '/languages/'
trailingslashit(plugin_dir_path( __FILE__ )) . 'languages/'
);
}
}
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Contributors: threadi
Tags: audio, play audio once
Requires at least: 5.8
Tested up to: 6.4
Tested up to: 6.4.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Stable tag: 1.1.2
Stable tag: 1.1.3

== Description ==

Expand Down Expand Up @@ -58,3 +58,8 @@ The source-code of this plugin is hosted on [GitHub](https://github.com/threadi/
* Updated compatibility-flag for WordPress 6.4
* Updated dependencies
* Compatible with WordPress Coding Standards 3.0

= 1.1.3 =
* Removed language files from release
* Cleaned js-files
* Updated dependencies (security fixes in them)
1 change: 0 additions & 1 deletion src/index.js

This file was deleted.

5 changes: 2 additions & 3 deletions uninstall.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php
/**
* Run uninstall tasks for this Plugin, e.g.:
* - remove options-entry
* Run uninstall tasks for this Plugin.
*
* @package auto-category-for-posts
* @package play-audio-once
*/

// Exit if accessed directly.
Expand Down

0 comments on commit 9ef22fd

Please sign in to comment.