Ticket #7714 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Hungarian translation

Reported by: ruskom Owned by:
Priority: minor Milestone: 1.8.17
Component: ui.datepicker Version: 1.8.16
Keywords: Cc:
Blocking: Blocked by:

Description

I found some issues on the Hungarian translation for ui.datepicker. I've made some corrections:

  • First of all the dateFormat is not correct for Hungarian culture. I think you should consider to verify all localization files by comparing with the jQuery.Globalize ( https://github.com/jquery/globalize) culture files. So, the dateFormat has been updated to the correct format.
  • There was a typo in dayNames.
  • The closeText means "to close" not just "close".
  • The prevText, nextText contained the left and right arrow. Not needed on a hint text. There are no arrows in the English localization.
  • weekHeader changed, because it was a little bit confusing. In Hungarian language "Hét" means "Week", but "Hé" is a shortened version of "Hétfő" which means "Monday". So i think "Hét" is better than "Hé".

Change History

comment:1 Changed 3 years ago by ruskom

I can not attach the file. So I paste the patch here:

diff --git a/ui/i18n/jquery.ui.datepicker-hu.js b/ui/i18n/jquery.ui.datepicker-hu.js
index 2eea8b2..0aa8273 100644
--- a/ui/i18n/jquery.ui.datepicker-hu.js
+++ b/ui/i18n/jquery.ui.datepicker-hu.js
@@ -1,20 +1,21 @@
 /* Hungarian initialisation for the jQuery UI date picker plugin. */
 /* Written by Istvan Karaszi (jquery@spam.raszi.hu). */
+/* Globalization standards applied by Marton Rusko (marton.rusko@gmail.com) */
 jQuery(function($){
 	$.datepicker.regional['hu'] = {
-		closeText: 'bezárás',
-		prevText: '« vissza',
-		nextText: 'előre »',
+		closeText: 'bezár',
+		prevText: 'vissza',
+		nextText: 'előre',
 		currentText: 'ma',
 		monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
 		'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
 		monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
 		'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
-		dayNames: ['Vasárnap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
+		dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
 		dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
 		dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
-		weekHeader: 'Hé',
-		dateFormat: 'yy-mm-dd',
+		weekHeader: 'Hét',
+		dateFormat: 'yyyy.mm.dd.',
 		firstDay: 1,
 		isRTL: false,
 		showMonthAfterYear: true,

comment:2 Changed 3 years ago by Richard D. Worth

  • Status changed from new to closed
  • Resolution set to fixed

Datepicker i18n hu: Corrected some spellings and abbreviations as well as dateFormat. Fixes #7714 - Hungarian translation

Changeset: b8821d945eef1485a4d3dc6dc9dc826fe7949329

comment:3 Changed 3 years ago by rdworth

  • Status changed from closed to reopened
  • Resolution fixed deleted

Where globalize represents a four-digit year with yyyy and two-digit with yy, the current datepicker i18n system uses yy and y.

comment:4 Changed 3 years ago by Richard D. Worth

  • Status changed from reopened to closed
  • Resolution set to fixed

Datepicker i18n hu: Corrected four-digit year in dateFormat. Fixes #7714 - Hungarian translation

Changeset: cedac75bccbfd8eb2b0301fd40fc31a36a9296b1

comment:5 Changed 3 years ago by Richard D. Worth

Datepicker i18n hu: Corrected some spellings and abbreviations as well as dateFormat. Fixes #7714 - Hungarian translation (cherry picked from commit b8821d945eef1485a4d3dc6dc9dc826fe7949329)

Changeset: eddf076b8c7d4e68a18823ffae884c113028801e

Last edited 3 years ago by rdworth (previous) (diff)

comment:6 follow-up: ↓ 8 Changed 3 years ago by Richard D. Worth

Datepicker i18n hu: Corrected four-digit year in dateFormat. Fixes #7714 - Hungarian translation (cherry picked from commit cedac75bccbfd8eb2b0301fd40fc31a36a9296b1)

Changeset: af7d433818d3d703fd19dd6ee067e8a6ac6cd811

comment:7 Changed 3 years ago by rdworth

  • Milestone changed from 1.9 to 1.8.17

comment:8 in reply to: ↑ 6 Changed 3 years ago by ruskom

Replying to Richard D. Worth:

Datepicker i18n hu: Corrected four-digit year in dateFormat. Fixes #7714 - Hungarian translation (cherry picked from commit cedac75bccbfd8eb2b0301fd40fc31a36a9296b1)

Changeset: af7d433818d3d703fd19dd6ee067e8a6ac6cd811

Thanks for the corrections.

comment:9 Changed 3 years ago by scott.gonzalez

  • Version changed from git to 1.8.16
Note: See TracTickets for help on using tickets.