update with last changes (2.6.0d0)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2456650 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
d3ccc658e8
commit
1c7debbaf5
8 changed files with 197 additions and 97 deletions
|
@ -5,11 +5,16 @@
|
|||
* @author Stefan Herndler
|
||||
* @since 1.5.0 14.09.14 17:47
|
||||
*
|
||||
* Edited for:
|
||||
* 2.0.0 PHP-related bug fix thanks to @matkus 2020-10-26T1609+0100
|
||||
* 2.1.6 conform to WordPress plugin language file name scheme 2020-12-08T1931+0100
|
||||
* Edited:
|
||||
*
|
||||
* Last modified: 2020-12-25T0344+0100
|
||||
* @since 2.0.0 PHP-related bug fix thanks to @matkus2 code contribution 2020-10-26T1609+0100
|
||||
* @see <https://wordpress.org/support/topic/error-missing-parameter-if-using-php-7-1-or-later/>
|
||||
* @see <https://www.php.net/manual/en/migration71.incompatible.php>
|
||||
*
|
||||
* @since 2.1.6 conform to WordPress plugin language file name scheme, thanks to @nikelaos bug report 2020-12-08T1931+0100
|
||||
* @see <https://wordpress.org/support/topic/more-feature-ideas/>
|
||||
*
|
||||
* Last modified: 2021-01-10T1755+0100
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -35,7 +40,7 @@ class MCI_Footnotes_Language {
|
|||
* @author Stefan Herndler
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @since 2.0.0 PHP 7.1 related bug fix thanks to @matkus
|
||||
* @since 2.0.0 PHP 7.1 related bug fix thanks to @matkus2 code contribution
|
||||
* @see <https://wordpress.org/support/topic/error-missing-parameter-if-using-php-7-1-or-later/>
|
||||
* @see <https://www.php.net/manual/en/migration71.incompatible.php>
|
||||
*/
|
||||
|
@ -58,16 +63,20 @@ class MCI_Footnotes_Language {
|
|||
* @param string $p_str_LanguageCode Language Code to load a specific text domain.
|
||||
* @return bool
|
||||
*
|
||||
* Edited for:
|
||||
* 2.1.6 conform to WordPress plugin language file name scheme by using load_plugin_textdomain()
|
||||
* Edited:
|
||||
* @since 2.1.6 conform to WordPress plugin language file name scheme, thanks to @nikelaos bug report
|
||||
* @see <https://wordpress.org/support/topic/more-feature-ideas/>
|
||||
* That is done by using load_plugin_textdomain()
|
||||
* @see wp-includes/l10n.php:857
|
||||
* “The .mo file should be named based on the text domain with a dash, and then the locale exactly.”
|
||||
*/
|
||||
private static function load($p_str_LanguageCode) {
|
||||
return load_plugin_textdomain(
|
||||
MCI_Footnotes_Config::C_STR_PLUGIN_NAME,
|
||||
false, // This argument only fills the gap left by a deprecated argument (since WP2.7).
|
||||
MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/languages' // The plugin basedir is provided; trailing slash will be clipped.
|
||||
// This argument only fills the gap left by a deprecated argument (since WP2.7):
|
||||
false,
|
||||
// The plugin basedir is provided; trailing slash would be clipped:
|
||||
MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/languages'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue