Currently we have some license issues. We are working on it.

Verified Commit 7dbab415 authored by noplanman's avatar noplanman
Browse files

Drop custom translating and just use translate.wordpress.org

parent 35120c73
<?php
/**
* Define the internationalisation functionality
*
* Loads and defines the internationalisation files for this plugin
* so that it is ready for translation.
*
* @package Wp_Otp
* @subpackage Internationalisation
* @since 0.1.0
*/
namespace Wp_Otp;
/**
* Define the internationalisation functionality.
*
* Loads and defines the internationalisation files for this plugin so that it is ready for translation.
*
* @since 0.1.0
*/
class Wp_Otp_I18n {
/**
* Load the plugin text domain for translation.
*
* @since 0.1.0
*/
public function load_plugin_textdomain() {
load_plugin_textdomain(
WP_OTP_SLUG,
false,
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
);
}
}
......@@ -35,7 +35,6 @@ class Wp_Otp {
public function __construct() {
$this->load_dependencies();
$this->define_constants();
$this->set_locale();
$this->define_admin_hooks();
$this->define_public_hooks();
}
......@@ -57,11 +56,6 @@ class Wp_Otp {
*/
require_once __DIR__ . '/class-wp-otp-loader.php';
/**
* The class responsible for defining internationalization functionality of the plugin.
*/
require_once __DIR__ . '/class-wp-otp-i18n.php';
/**
* The class responsible for managing all user meta data.
*/
......@@ -90,18 +84,6 @@ class Wp_Otp {
defined( 'WP_OTP_STEALTH' ) || define( 'WP_OTP_STEALTH', false );
}
/**
* Define the locale for this plugin for internationalization.
*
* @since 0.1.0
* @access private
*/
private function set_locale() {
$plugin_i18n = new Wp_Otp_I18n();
$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
}
/**
* Register all of the hooks related to the admin area functionality of the plugin.
*
......
# Copyright (C) 2016 WP-OTP
# This file is distributed under the same license as the WP-OTP package.
msgid ""
msgstr ""
"Project-Id-Version: WP-OTP 0.1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-otp\n"
"POT-Creation-Date: 2016-12-23 22:40:51+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: admin/class-wp-otp-admin.php:50
msgid "Are you sure you want to reconfigure WP-OTP?"
msgstr ""
#: admin/class-wp-otp-admin.php:52
msgid "Are you sure you want to regenerate your recovery codes?"
msgstr ""
#: admin/class-wp-otp-admin.php:93
msgid "WP-OTP configured successfully!"
msgstr ""
#: admin/class-wp-otp-admin.php:94
msgid ""
"If you change your phone or do not have access to the OTP Authenticator app "
"you can use the following codes as One Time Passwords on your login screen "
"and then reconfigure WP-OTP."
msgstr ""
#: admin/class-wp-otp-admin.php:96 admin/class-wp-otp-admin.php:139
msgid "Keep these codes secret!"
msgstr ""
#: admin/class-wp-otp-admin.php:107
msgid "WP-OTP configuration failed."
msgstr ""
#: admin/class-wp-otp-admin.php:108
msgid "The One Time Password entered was invalid! Please try again."
msgstr ""
#: admin/class-wp-otp-admin.php:137
msgid "WP-OTP recovery codes regenerated!"
msgstr ""
#: admin/class-wp-otp-admin.php:138
msgid "Here are your new recovery codes."
msgstr ""
#: admin/class-wp-otp-admin.php:333
msgid "Important"
msgstr ""
#: admin/class-wp-otp-admin.php:335
msgid "You have %d WP-OTP recovery code left. You should generate new ones."
msgid_plural ""
"You have %d WP-OTP recovery codes left. You should generate new ones."
msgstr[0] ""
msgstr[1] ""
#: admin/class-wp-otp-admin.php:346
#: admin/partials/wp-otp-profile-display.php:34
msgctxt "Link to regenerate the WP-OTP recovery codes"
msgid "Regenerate"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:10
msgid "Set up WP-OTP (WordPress One Time Password)"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:14
msgid "OTP Secret"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:19
msgid "WP-OTP has been configured successfully."
msgstr ""
#: admin/partials/wp-otp-profile-display.php:21
msgctxt "Link to reset and reconfigure WP-OTP secret"
msgid "Reconfigure"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:26
msgid "Recovery codes"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:39
msgid ""
"To activate WP-OTP, enter the One Time Password from your authenticator app "
"and save your profile."
msgstr ""
#: admin/partials/wp-otp-profile-display.php:41
#: public/class-wp-otp-public.php:39
msgid "One Time Password"
msgstr ""
#: admin/partials/wp-otp-profile-display.php:50
msgid ""
"Download any OTP Authenticator app on your smart phone and scan the QR Code "
"to activate WP-OTP."
msgstr ""
#: admin/partials/wp-otp-profile-display.php:66
msgid "Get it on %s"
msgstr ""
#: public/class-wp-otp-public.php:51
msgid "OTP code from your authenticator app. (Blank if not yet configured)"
msgstr ""
#: public/class-wp-otp-public.php:83
msgid "<strong>Invalid code!</strong> Please try again."
msgstr ""
#. Plugin Name of the plugin/theme
msgid "WP-OTP"
msgstr ""
#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/wp-otp/"
msgstr ""
#. Description of the plugin/theme
msgid ""
"WP-OTP adds 2 Factor Authentication using TOTP or HOTP. (Based on \"WP "
"Secure Login\" by Brijesh Kothari)"
msgstr ""
#. Author of the plugin/theme
msgid "Armando Lüscher"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://noplanman.ch"
msgstr ""
......@@ -2,9 +2,9 @@
Contributors: noplanman
Donate link: https://noplanman.ch/donate
Tags: login, 2fa, otp, totp, one time password, security, recovery, freeotp, google authenticator
Requires at least: 3.1.4
Requires at least: 4.6
Tested up to: 5.2.2
Stable tag: 0.3.0
Stable tag: Unreleased
Requires PHP: 5.5
Author URI: https://noplanman.ch
Plugin URI: https://git.feneas.org/noplanman/wp-otp
......@@ -49,7 +49,7 @@ There are a multitude of filters to be adjusted.
* `wp_otp_secret_length`: Length of the secret key.
= Minimum requirements =
WordPress 3.1.4, PHP 5.5.
WordPress 4.6, PHP 5.5.
= Donate / Support =
......@@ -93,6 +93,10 @@ This means that you will need to add your OTP (or recovery) code at the end of y
== Changelog ==
= Unreleased =
* Drop all custom i18n and rely on translate.wordpress.org.
* Minimum requirement now WP 4.6.
= 0.3.0 =
* Update list of OTP mobile apps.
* Add stealth mode (via WP_OTP_STEALTH), passing OTP code concatenated to password.
......
......@@ -3,13 +3,11 @@
* Plugin Name: WP-OTP
* Plugin URI: https://wordpress.org/plugins/wp-otp/
* Description: WP-OTP adds 2 Factor Authentication using TOTP. (Based on "WP Secure Login" by Brijesh Kothari)
* Version: 0.3.0
* Version: Unreleased
* Author: Armando Lüscher
* Author URI: https://noplanman.ch
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-otp
* Domain Path: /languages
* GitLab Plugin URI: https://git.feneas.org/noplanman/wp-otp
* GitLab Branch: master
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment