Posted on March 12th, 2010 by cfz
How can we customize the output of prepared variables such as $prepared[birthday] . Cause the output is in English however i want to translate that.Where's it not using a phrase though?
$vbphrase[birth_date]
$prepared[birthday] ($prepared[age])
$vbphrase[age]
$prepared[age]
Do you mean the actual birthday/birthdate itself and not the "Date of Birth" title?Where's it not using a phrase though?
$vbphrase[birth_date]
$prepared[birthday] ($prepared[age])
$vbphrase[age]
$prepared[age]
Do you mean the actual birthday/birthdate itself and not the "Date of Birth" title?
Please show me the phrase here
$prepared[birthday] ($prepared[age])
as the output of $prepared[birthday] is November 5, 1975 and November can't be translated.If it isn't using phrases then you will need to report it as a bug.Changing the contents of any variable requires custom coding.Changing the contents of any variable requires custom coding.
How can we change the output because the output is English and it is not using any phrases.
If this requires custom coding then it is a bug because the output shall have phrases.Ah, the actual month, okay. I would think this to be a bug as well, since it should be translatable.To format dates in other languages, you should use the setlocale() and strftime() functions instead of date(). Is not a bug, but a programmer limitation. If you want an easy fix, edit the date() format to output integers, instead of strings and run the new date through a function who transforms the integer into a translated string.#If you have any other info about this subject , Please add it free.# |
|
Tags: badahutong.com edit //