-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with expiry date field on French sites #697
Comments
2723110-t |
Was working fine recently. Maybe due to an update of WP Job Manager or Wordpress? |
I fixed it on my site by removing the translation with Loco Translate. But this fix will be canceled by each update... |
This happens with Italian localization as well: But the field placeholder appears to be correctly localized: Also, I believe the error causes the datetime picker to be misplaced when editing the page (it then moves back to the proper position after clicking the field): Of the many datepickers in my installation, this is the only one behaving that way. |
Confirmed this happens when a translation changes the yy-mm-dd format to something else (e.g. Italian aa-mm-gg) This breaks the datepicker Temporary workaround is to install Loco Translate and change that string back to yy-mm-dd You can then move the language file to the wp-content/languages/plugins directory to prevent it being updated. |
I changed the language of my test site to French but the date picker in the post editor behaved correctly on a new job and while editing an existing job. I tried Italian too, but that showed "aa-11-gg" in the datepicker of the post editor. The French .po now has this translation:
While the Italian one is:
jQuery doesn't understand aa and gg. Here's the date format in jQuery which does not include aa or gg. I'll update the description of that strings and link to that page. |
Fixes #697 The Italian and French translations are incorrect as the translators changed the date form from "yyyy" and "dd" to the first letter of the words in those languages. I'm adding a link to the official documentation for the date format in PHP and Javascript respectively for each of these to help translation.
Fixes #697 The translators comment tells the translator what to use when translating these date formats, rather than using the local word for a given time period.
* Add link to date format to avoid confusion Fixes #697 The Italian and French translations are incorrect as the translators changed the date form from "yyyy" and "dd" to the first letter of the words in those languages. I'm adding a link to the official documentation for the date format in PHP and Javascript respectively for each of these to help translation.
@akirk has suggested changes to the French and Italian translations on WordPress.org to fix these errors, and I have checked in translator comments linking to the documentation for the date formats in PHP and Javascript where they're needed. |
When site language is set to Français, the date field doesn't work properly, it displays letters instead of the day and year:
May affect other locales, but I tried a few and only found French to be an issue.
2701237-t
The text was updated successfully, but these errors were encountered: