php中gettext的完整示例 [英] complete example of gettext in php

查看:73
本文介绍了php中gettext的完整示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了最后一个小时左右,试图在php中找到gettext的完整工作示例-所有源文件,po文件,具有正确的路径等.只是一个"hello world",其中包含所有必需的文件

i've been googling for the last hour or so trying to find a complete working example of gettext in php - all source files, po files, with proper paths, etc. Just a "hello world" with all the required files.

我想知道是否有人有这样一个可行的例子.预先感谢.

I was wondering if anybody has such a working example. thanks in advance.

推荐答案

我已经阅读了针对此问题发布的其他指南,但是这些指南对我来说都不足够完整,而且似乎也正朝着这个主题发展.

I've read these other guides posted for this question, but none of them was complete enough for me and also they seem to be rushing into the subject.

此指南 分为许多部分,您将从简单的Hello World到复杂的复数管理学习.它不仅解释了每个函数的功能,而且还解释了这些函数所使用的值.

THIS GUIDE is divided in many parts, you'll learn from a simple Hello World to a complex plural management. It not just explain what every function does, but also the values used for these functions.

作为奖励,本指南教您如何使用 Poedit ,这对于使用gettext国际化,如果您要处理一个大型项目,这是必须具备的.

As a bonus, this guide teaches how to use Poedit which is a very helpful toll for working with gettext internationalization and a must have if you are dealing with a huge project.

如果OP也认为指南更好,则OP可能会更改对此答案的接受答案.因此,此答案可以引起更多关注,并可以为更多像我这样的gettext初学者提供帮助.

The OP may change the accepted answer to this one if he also think that guide is better. So this answer can get more attention and more gettext beginners like me can be helped.

这篇关于php中gettext的完整示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆