Download the PHP package tarohida/tfa-message-ja without Composer

On this page you can find all versions of the php package tarohida/tfa-message-ja. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tfa-message-ja

TFA Message Japanese

Drupal

Drupal の Two-Factor Authentication (TFA) モジュールのエラーメッセージを日本語に対応させるモジュールです。

概要

TFA モジュールが表示するエラーメッセージに含まれる英語の時間表記(例: "5 min", "10 sec")を、日本語表記(例: "5分", "10秒")に自動変換します。

問題

TFA モジュールのエラーメッセージでは、Drupal の formatInterval() 関数が返す時間表記が含まれます。日本語ロケールでも英語形式で出力されることがあり、日本語訳と組み合わせると不自然な表現になります。

変換前の例:

変換後の例:

主な機能

要件

インストール

Composer 経由(推奨)

モジュールを有効化:

手動インストール

  1. このリポジトリをダウンロード
  2. web/modules/contrib/tfa_message_ja または web/modules/custom/tfa_message_ja に配置
  3. モジュールを有効化:

使い方

モジュールを有効化するだけで自動的に動作します。設定画面はありません。

動作確認方法

  1. TFA を有効化したユーザーでログイン
  2. 意図的に間違った認証コードを複数回入力
  3. Flood 制御によるロックアウトメッセージが日本語で表示されることを確認

技術仕様

実装方法

対応する時間単位

英語 日本語
year(s) 年
month(s) ヶ月
week(s) 週間
day(s) 日
hour(s) 時間
min 分
sec 秒

ディレクトリ構成

トラブルシューティング

メッセージが変換されない

  1. 日本語ロケールの確認

    ja になっているか確認

  2. キャッシュクリア

  3. モジュールの有効化確認

他のモジュールとの互換性

このモジュールは TFA のエラーメッセージのみを対象とし、他のモジュールには影響しません。

他のモジュールとの組み合わせ

tfa_custom モジュールとの併用

tfa_custom モジュールと併用可能です:

両方を有効化することで、より快適な日本語環境を実現できます。

コントリビューション

バグ報告や機能リクエストは GitHub Issues までお願いします。

プルリクエストも歓迎します!

ライセンス

このプロジェクトは MIT ライセンスの下で公開されています。詳細は LICENSE.txt をご覧ください。

作者

リンク


All versions of tfa-message-ja with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
drupal/core Version ^10 || ^11
drupal/tfa Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tarohida/tfa-message-ja contains the following files

Loading the files please wait ...