Changes

From Gramps

Date Handler/he

479 bytes added, 10:58, 26 April 2024
m
How to write a date handler: translation
לרוע המזל, התברר שנטל התחזוקה של [[Media:date handlers.png|סדרן תאריכים]] לכל שפההוא גבוה מאוד בהשוואה לתקורת התחזוקה הרגילות של מחרוזות במסד נתוני התרגום. במסגרת הטיפול בתקל {{bug|6926}} נעשה נסיון להעביר את הנטל מהצורך בקידוד חזרה למסד נתוני תרגום. המערכת החדשה מאפשרת גם תמיכה בהטית שמות חודשים בשפות שבהן זה נחוץ. קוד סדרן תאריכים עדיין קיים, אבל הוא הרבה יותר פשוט וקל לתחזוקה. לקריאה נוספת [[Date_Handler#Issues|סוגיות פתוחות קשורות]].
==How to write a date handlerדגשים בייצור סדרן תאריכים=={{man warn|Since new code for Gramps is developed on masterמאחר שהקוד החדש בפתוח תוכנת גרמפס נוצר ב־master|these instructions only refer to the current APIהוראות אלו יישימות רק ל־API הנוכחי. If you are interested in older לתיעוד API documentationישן יותר , see the revision history on the wiki and in the נא לעיין בהיסטוריית הגרסאות בוויקי ב[[Getting_started_with_Gramps_development#Get_the_source_tree|source controlבקרת המקור]].}}
Please use the generated documentation on the לאיזכור וסיוע בקידוד סדרן תאריכים לשפה אות תרבות מסויימים (לדוגמה לעברית) נא להשתמש בתיעוד שנוצר על [http://www.gramps-project.org/docs/date.html date handler frameworkמסגרת סדרן תאריכים] as your programming reference. Here are the some highlights on how a date handler plugin for a new language should be developedלהלן מספר הדגשים על הדרך בה יש לפתח מתקע סדרן תאריכים עבור שפה מסויימת.
* The plugin must translate some strings in the translation databaseהמתקע משתמש בכמה מחרוזות במסד הנתוני התרגום אותם יש לתרגם. Special conventions allow for finer linguistic control for inflected forms of month names for languages where this is neededמוסכמות מיוחדות מאפשרות שליטה לשונית עדינה להטיית שמות חודשים בשפות בהן הטייה כזאת נחוצה.* The plugin must define כדי שהמתקע יפעל, נדרש להגדיר '''twoשתי''' classesמחלקות : one for parsing and one for displaying datesאחת לניתוח תאריכים והאחרת להצגת תאריכים. Various degrees of customizations exist, depending on how different the standards for formatting the dates in your locale are from Englishהתאמות אישיות ברמות שונות אפשרית כתלות בשונות התקן לעיצוב התאריכים בשפת היעד מהמקור האנגלי.* The plugin should be registered in the systemחובה לרשום את המתקע במערכת גרמפס.* Before submitting it to the code baseלפני דחיפת המתקע לבסיס הקוד בשרת ה־Git, it should be tested using the existing testing frameworkיש לבדוק אותו באמצעות מסגרות הבדיקה הקיימות.
===Localizing the date stringsהמקמת מחרוזות התאריך===
Use the regular [[Translating Gramps|translation routine]] to translate the strings such as month names, date modifiers etc. These strings are stored in the class '''DateStrings''', which is used both from the date parser and the date displayer.
6,817
edits

Navigation menu