Automattic / wp-cldr

Use CLDR localization data in WordPress
GNU General Public License v2.0
24 stars 6 forks source link

initial commit of plugin page with examples of plugin capabilities #64

Closed stuwest closed 8 years ago

stuwest commented 8 years ago

i needed to do some testing so put together a quick demo page which seems a fine thing to have on the plugin settings page.

stuwest commented 8 years ago

ok fixes committed.

one more thing. i'm getting a duplicate &submit=Update+examples URL parameter when I use the dropdowns to change the examples. Something about using submit_button() but I can't figure it out.

jblz commented 8 years ago

i'm getting a duplicate &submit=Update+examples URL parameter when I use the dropdowns to change the examples

I'm not able to reproduce -- can you list the steps that result in this?

stuwest commented 8 years ago

Here's how to reproduce the extra parameter issue:

  1. open plugin settings page /wp-admin/options-general.php?page=wp-cldr
  2. change locale to something else eg Swiss German: screen shot 2016-02-29 at 12 45 02 pm
  3. look at URL which in above case is http://localhost:8888/wp-admin/options-general.php?locale=de_CH&page=wp-cldr&country=US&submit=Update+examples
stuwest commented 8 years ago

rebased and merged this one. the only outstanding item is the redundant URL parameter, which isn't blocking. opened issue #69 for it.