支持文件类型 (Strings)

PHP - Laravel/F3/Kohana 数组((Strings))

文本由 Phrase Language AI 从英语机器翻译而得。

文件扩展名

.php

API扩展

拉瓦尔语

导入

可以

导出

可以

复数形式支持

可以

描述支持

没有

Laravel 为区域消息文件使用普通 PHP 数组。数组是一个有序的列表或项目的集合。数组名可以是 PHP 中的任意类型:数字、字符串、对象、其他数组等。Strings 常用于区域消息数组中的值。Laravel 使用包含键值对的关联数组;它也为每个消息文件有一个匿名数组,文件返回该数组。

拉威尔阵列中的复数

使用复数时请谨慎。编辑器可以识别简单的复数语法,例如“零个事物|一个事物|多个事物”,但不会识别带有计数和范围指定符的复杂复数语法。对于复杂的复数,请使用复数Strings中的换行符来帮助译员。

例如

<?php

return [

    “您好” => “欢迎来到我的新网站”,

];

代码示例

<?php

return [

    “您好” => “欢迎来到我的新网站”,

    Phrase 网页编辑器支持 ??

    "Simple_plural" => "Zero things|One thing|Many things",

        Phrase 网页编辑器不支持//?,尝试使用新的

    / / 行来帮助译员。

    "complex_plural" => "

        {0} 零个条目

        |{1}一件事

        |[2,*] 多个事项

    ",

];
这篇文章有帮助吗?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.