Open main menu

Gramps β

Changes

Date Handler/he

1,090 bytes added, 25 April
m
Why have different date handlers?: translation
<div dir="rtl" lang="he" class="mw-content-rtl">
{{languages/he|Date Handler}}
==Why have different מדוע קיימים מספר [[Media:date handlers.png|date handlersסדרני תאריכים]]?==
Different cultures and regions tend to have specific and different conventions for parsing and displaying datesמדינות, תרבויות ואפילו אזורים שונים נוטים לסגל לעצמם מוסכמות מסויימות ושונות לניתוח והצגת תאריכים. For exampleדוגמה פשןטה היא אופן תסדור מרוזת תאריך במשומות שונים, the month and day order is different between most european coutries and the USסדר תצוג החודש והיום שונה בין רוב המדינות האירופיות לזה הנהוג בארצות הברית (dd/mm/yyyy לעומת mm/dd/yyyy). Alsoכמו כן, each language has its own set of acceptable כל שפה מנהיגה על פי רוב ערכת מבחינים (qualifiers) ומאייכים (modifiers and qualifiers for the date) משלה וסימונים מקובלים לתצוג תאריכים: things like מחרוזות לתצוג טווח או תקופה, כמו "from X to מ־X עד Y" or או "between בין X and Yל־Y" may have different word order in different languagesעשויים להיות בעלי סדר מילים שונה בשפות שונות. Same with דומה הדבר במונחים שבאים לתאר את 'איכות' התאריכם כמו"בסביבות", "aroundמחושב", "calculatedמשוער", "estimatedמקורב". Add to this calendar names and you have a compelling need for a dedicated date handlerאם לא די באלו, שמות החודשים והימים שונים משפה לשפה ואם נוסיף לזאת גם את שבעת לוחות השנה השונים, והרי ההנמקה לצורך מובהק בסדרן תאריכים יעודי לכל תרבות או שפה.
By providing אפשור הנהגת מספר [[Media:date handlers.png|date handlersסדרני תאריך]], several problems are resolvedפותרת מספר סוגיות.* Dates entered by users of that language in almost any form can be parsed by Grampsתיקנון – תוכנת גרמפס תדע לנתח כל תאריך שהוזן על ידי משתמשים, ללא תלות בשפת ההזנה.* The displayed dates will look clear and correct to the usersתצוג – התאריכים שמוצגים למשתמשים יהיו מובנים, ברורים ונכונים.* Translators do not have to worry about translating regular expressions like המקמה – אין צורך לתרגום ביטויים שגרתיים כמו <code>(fromמ|beforeלפני|betweenבין)</code>.
Unfortunatelyלרוע המזל, it turned out that the maintenance burden of התברר שנטל התחזוקה של [[Media:date handlers.png|date handlersסדרן תאריכים]] across all the languages is very high compared to the regular maintenance overhead of strings in the translation databaseלכל שפההוא גבוה מאוד בהשוואה לתקורת התחזוקה הרגילות של מחרוזות במסד נתוני התרגום. Under במסגרת הטיפול בתקל {{bug|6926}} we attempted to shift the balance back from coding to translation databaseנעשה נסיון להעביר את הנטל מהצורך בקידוד חזרה למסד נתוני תרגום. The new system also allows to support inflections for month names in the languages where it is neededהמערכת החדשה מאפשרת גם תמיכה בהטית שמות חודשים בשפות שבהן זה נחוץ. Date handler code still existsקוד סדרן תאריכים עדיין קיים, but is much simpler and easier to maintainאבל הוא הרבה יותר פשוט וקל לתחזוקה. See also לקריאה נוספת [[Date_Handler#Issues|the related open issuesסוגיות פתוחות קשורות]].
==How to write a date handler==
3,401
edits