Skip to main content

Search and Top Navigation

#7714 closed bug (fixed)

Opened September 13, 2011 08:38AM UTC

Closed September 13, 2011 09:06AM UTC

Last modified September 13, 2011 12:55PM UTC

Hungarian translation

Reported by: ruskom Owned by:
Priority: minor Milestone: 1.8.17
Component: ui.datepicker Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
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é".
Attachments (0)
Change History (9)

Changed September 13, 2011 08:44AM UTC by ruskom comment:1

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,

Changed September 13, 2011 08:57AM UTC by Richard D. Worth comment:2

resolution: → fixed
status: newclosed

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

Changeset: b8821d945eef1485a4d3dc6dc9dc826fe7949329

Changed September 13, 2011 09:04AM UTC by rdworth comment:3

resolution: fixed
status: closedreopened

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

Changed September 13, 2011 09:06AM UTC by Richard D. Worth comment:4

resolution: → fixed
status: reopenedclosed

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

Changeset: cedac75bccbfd8eb2b0301fd40fc31a36a9296b1

Changed September 13, 2011 09:11AM UTC by rdworth comment:5

_comment0: Datepicker i17n hu: Corrected some spellings and abbreviations as well as dateFormat. Fixes #7714 - Hungarian translation \ Changeset: eddf076b8c7d4e68a18823ffae884c113028801e1315905263875128

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

Changeset: eddf076b8c7d4e68a18823ffae884c113028801e

Changed September 13, 2011 09:11AM UTC by Richard D. Worth comment:6

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

(cherry picked from commit cedac75bccbfd8eb2b0301fd40fc31a36a9296b1)

Changeset: af7d433818d3d703fd19dd6ee067e8a6ac6cd811

Changed September 13, 2011 09:15AM UTC by rdworth comment:7

milestone: 1.91.8.17

Changed September 13, 2011 11:59AM UTC by ruskom comment:8

Replying to [comment:6 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.

Changed September 13, 2011 12:55PM UTC by scottgonzalez comment:9

version: git1.8.16