dev.xiligroup est en travaux › Forums › xili-language plugin › Trouble with Post Date
Ce sujet contient 0 réponses et 3 voix, et a été mis à jour par xiligroup dev il y a Il y a 13 ans, 2 mois.
-
AuteurArticles
-
30 September 2011 at 6:29 #2973
AnonymeThanks for your observation,
The date translation on fly is the MOST difficult problem in WP (and xili-language). If you are php easy, you can see in source that xili-langue has choose the way of
setlocale(LC_TIME, $curlang); /* work if server is ready */
(line 4350…). So as commented in code source, your server must me ready with dating in khmer !For the date format, what is the string in khmer translating used in .po file by WP (language file) ? used in poedit or xili-dictionary
Other solutions are possible because xili-language are hookable. But it is time heavy for non php easy user.
I have added khmer fonts on my macosx. Menus and posts are visible with fonts… only some texts in widgets at right none. If time, il will try some tests next weeks… even if I am totally unable to read these beautiful fonts.
30 September 2011 at 6:50 #2974
AnonymeInteresting links for further implementation in WP and in hook for xili-language :
http://www.cistrain.org/forum/viewtopic.php?f=18&t=3395
http://translate.e-khmer.net/wordpress/
This recent plugin
http://wordpress.org/extend/plugins/khmer-numbers-for-the-date-and-time/
can’t be used with xili-language because hook permanently the date and time results but can be used perhaps for hook in xili-language.
30 September 2011 at 16:31 #2976
AnonymeOk. I actually created the « Khmer Numbers for the Date and Time » plugin, but only by basing it on another plugin (I only modified it for Khmer).
There are no servers that keep Khmer time, so that can’t be done that I know of.
You asked, « For the date format, what is the string in khmer translating used in .po file by WP (language file) ? used in poedit or xili-dictionary »
That actually is one of the issues, I can’t find the date in the .po file. Unless it is %d etc. Should there be strings for « January » « February » etc.?
The easiest solution would be to just change the dates as done in the « Khmer Numbers for the Date and Time » plugin because the date format stays the same as English. I just want to translate the names of the months, as well as use Khmer numbers rather than English (Khmer numbers are: ១២៣៤៥៦៧៨៩០
How would I hook the month names (Jan, Feb, Mar) and numbers? I don’t quite understand.
Thanks for your help,
Nathan
30 September 2011 at 16:56 #2977Have you begin to create and translate via xili-dictionary the km_KH .po and .mo file of 2011 theme.
For hook : I contact you directly via your email – or contact me via email form inside xili-language setting after checking all options to give me good infos.
Be patient,
30 September 2011 at 17:14 #2978
AnonymeYes, I’ve been able to translate the site using xili-dictionary (I haven’t finished yet though).
I’ll send you an e-mail. Thank you.
-Nathan
2 October 2011 at 7:32 #2979by providing a small code added in functions.php of the theme (using filters of xili-language), the dates are now well presented as visible here for this beautiful language and the site using 2011 theme child.
http://www.sbbic.org/?lang=km_kh
Soon a kit will be published – be patient
dev.xiligroup.team
-
AuteurArticles
Vous devez être connecté pour répondre à ce sujet.