samedi 6 mai 2017

How will Laravel language translation parameters in Chinese sentences?

I know that we could replace parameters with ":name" format in translation. But Chinese and many asian languages are not "space" separated series of words. They are more like:

"你好世界,我是:PHP程序员"

If I want to translation :PHP paramter with a value like:

["PHP" => "C Plus Plus"]

Will that work?

What about There are two paramters like these:

"你好世界,我是:PHP7程序员,我也是:PHP程序员"

You see there are two parameters: :PHP and :PHP7

If the paramters are given as follows:

["PHP" => "This is PHP value", "PHP7" => "This is PHP7 value"]

What will be the final translated string?

Will that be:

"你好世界,我是This is PHP7 value程序员,我也是This is PHP value程序员"

or will that be:

"你好世界,我是This is PHP value7程序员,我也是This is PHP value程序员"



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire