WordPress.org

Ready to get started?Download WordPress

Forums

Developer's Custom Fields
localization? (6 posts)

  1. Unsal Korkmaz
    Member
    Posted 2 years ago #

    Is it possible to add localization support?
    Date picker needs it for example. And can you use wordpress default localization for dates if possible?

    Sorry for being a headache :P

    http://wordpress.org/extend/plugins/developers-custom-fields/

  2. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    Full localization isn't on the cards right now. However, if you want to translate the plugin, I'm using gettext functions throughout, so let me know and I can get that going easily in a point release.

    As for the date format, I can look into automating it according to the WP settings, but for now you can change it yourself if you want:

    http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#config-settings

    I'm genuinely happy to help with any problems, but please, RTFM! :P

  3. Unsal Korkmaz
    Member
    Posted 2 years ago #

    I dont have any problem with date format :S
    I mean when you click date field, a panel is appearing and it has months in title like "October 2011" well.. that october is english and normally wordpress translating it.
    I dont think document have this :S

  4. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the misunderstanding. However, if you read the docs or check the source code, or even just the files for the plugin, you'll see straight away that I use the jQuery Datepicker plugin. So you probably need to look at that, e.g. http://docs.jquery.com/UI/Datepicker/Localization

  5. Unsal Korkmaz
    Member
    Posted 2 years ago #

    I am not exactly sure but probably translation support can cover it tho:
    http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/locale.php#L107

    Problem is, i am not good at source code reading and editing it my own :S

  6. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    I'm not sure of your question here. I'm afraid I've not done localization with jQuery Datepicker before, but that's the plugin that creates the date field, and you'll have to looks at that to see what's needed.

    My guess is that the problem for you will be if the way the Custom Fields plugin outputs date fields JavaScript needs to be modified to accomodate Datepicker localization. I'm currently travelling so I can't start developing this, but if you want to hack it until I get round to a new version, you should look at slt_cf_display.php, around line 382. HTH!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic