Skip to content

Commit 1c837db

Browse files
committed
Fix bug causing translations to not be loaded
1 parent 6e981d7 commit 1c837db

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 2.2.0
4+
* Introduced CodeSniffer testing on code
5+
* Fixed description heading disappearing when media buttons enabled
6+
* Added snippet scope selector
7+
* Minify all CSS and JS in plugin
8+
* Made CodeMirror theme names more readable
9+
310
## 2.1.0
411
* Added additional setting descriptions
512
* Added settings for code and description editor height
@@ -16,8 +23,8 @@
1623

1724
## 2.0.1
1825

19-
* Fix table creation code not running on upgrade
20-
* Fix snippets per page option not saving
26+
* Fixed table creation code not running on upgrade
27+
* Fixed snippets per page option not saving
2128

2229
## 2.0
2330

code-snippets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
License: MIT
2525
License URI: license.txt
2626
Text Domain: code-snippets
27-
Domain Path: /languages/
27+
Domain Path: /languages
2828
*/
2929

3030
/* Exit if accessed directly */
@@ -107,13 +107,13 @@
107107

108108
/**
109109
* Load up the localization file if we're using WordPress in a different language.
110-
* Place it in this plugin's "languages" folder and name it "code-snippets-[value in wp-config].mo"
110+
* Place it in this plugin's "languages" folder and name it "code-snippets-[language_COUNTRY].mo"
111111
*
112112
* If you wish to contribute a language file to be included in the Code Snippets package,
113113
* please see create an issue on GitHub: https://github.com/sheabunge/code-snippets/issues
114114
*/
115115
function code_snippets_load_textdomain() {
116-
load_plugin_textdomain( 'code-snippets', false, dirname( basename( __FILE__ ) ) . '/languages/' );
116+
load_plugin_textdomain( 'code-snippets', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
117117
}
118118

119119
add_action( 'plugins_loaded', 'code_snippets_load_textdomain' );

0 commit comments

Comments
 (0)