wpdiggerstudio/wpzylos-i18n 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpdiggerstudio/wpzylos-i18n

最新稳定版本:v1.0.0

Composer 安装命令:

composer require wpdiggerstudio/wpzylos-i18n

包简介

Internationalization wrapper for WPZylos framework

README 文档

README

PHP Version License GitHub

Internationalization wrapper for WPZylos framework.

📖 Full Documentation | 🐛 Report Issues

✨ Features

  • Text Domain Loading — Automatic text domain registration
  • Translation Helpers — Plugin-scoped __() and _e() wrappers
  • Context Awareness — Uses plugin text domain automatically
  • Pluralization — Handle singular/plural forms

📋 Requirements

Requirement Version
PHP ^8.0
WordPress 6.0+

🚀 Installation

composer require wpdiggerstudio/wpzylos-i18n

📖 Quick Start

use WPZylos\Framework\I18n\Translator;

$translator = new Translator($context);

// Translate strings
echo $translator->__('Hello World');
echo $translator->_n('One item', '%d items', $count);

🏗️ Core Features

Translation Methods

// Simple translation
$label = $translator->__('Settings');

// Echo translation
$translator->_e('Save Changes');

// Pluralization
$message = $translator->_n(
    'You have %d item',
    'You have %d items',
    $count
);

// With context
$text = $translator->_x('Post', 'noun');

Text Domain Loading

// Automatically loads from languages/ directory
// my-plugin/languages/my-plugin-{locale}.mo
$translator->load();

📦 Related Packages

Package Description
wpzylos-core Application foundation
wpzylos-scaffold Plugin template

📖 Documentation

For comprehensive documentation, tutorials, and API reference, visit wpzylos.com.

☕ Support the Project

If you find this package helpful, consider buying me a coffee! Your support helps maintain and improve the WPZylos ecosystem.

Donate with PayPal

📄 License

MIT License. See LICENSE for details.

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Made with ❤️ by WPDiggerStudio

统计信息

  • 总下载量: 260
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固