«Misc Gnome Stuff»: الفرق بين المراجعتين

من ويكي عربآيز
اذهب إلى: تصفح، ابحث
ط (استبدال النص - 'http://www.arabeyes.org' ب'https://www.arabeyes.org')
سطر 21: سطر 21:
   
 
* Agreed. --[[مستخدم:Djihed|جهاد]] 12:51, 21 أكتوبر 2007 (PDT)
 
* Agreed. --[[مستخدم:Djihed|جهاد]] 12:51, 21 أكتوبر 2007 (PDT)
  +
  +
==Date and Time translation==
  +
gnome uses [https://developer.gnome.org/glib/stable/glib-GDateTime.html#g-date-time-format g-date-time-format] to localize date and time. It uses special escape modifiers to translate date and time.
  +
Here's a table for conversion that you should use when translating to arabic:
  +
  +
{| class="wikitable"
  +
|-
  +
! Escape
  +
! Translation
  +
! Usage
  +
|-
  +
| %a
  +
| %A
  +
| Abbreviated weekday
  +
|-
  +
| %A
  +
| %A
  +
| Weekday
  +
|-
  +
| %b
  +
| %b
  +
| Abbreviated month name
  +
|-
  +
| %B
  +
| %B
  +
| Month Name
  +
|-
  +
| %c
  +
| %c
  +
| System date and time format
  +
|-
  +
| %C
  +
| %OC
  +
| Century
  +
|-
  +
| %d
  +
| %Od
  +
| Day of the month (01-31)
  +
|-
  +
| %e
  +
| %Oe
  +
| Day of the month (1-31)
  +
|-
  +
| %F
  +
| %OY-%Om-%Od
  +
| Date
  +
|-
  +
| %g
  +
| %Og
  +
| Week based year within century
  +
|-
  +
| %G
  +
| %OG
  +
| Week based year
  +
|-
  +
| %h
  +
| %h
  +
| Same as %b
  +
|-
  +
| %H
  +
| %OH
  +
| Hour in 24 (00-23)
  +
|-
  +
| %I
  +
| %OI
  +
| Hour in 12 (01-12)
  +
|-
  +
| %j
  +
| %Oj
  +
| Day of the year (000-366)
  +
|-
  +
| %k
  +
| %Ok
  +
| Hour in 24 (0-23)
  +
|-
  +
| %l
  +
| %Ol
  +
| Hour in 12 (1-12)
  +
|-
  +
| %m
  +
| %Om
  +
| Month (01-12)
  +
|-
  +
| %M
  +
| %OM
  +
| Minute (00-59)
  +
|-
  +
| %p
  +
| %p
  +
| "AM" or "PM" in local ("ص" و "م")
  +
|-
  +
| %P
  +
| %P
  +
| "am" or "pm" in local ("ص" و "م")
  +
|-
  +
| %r
  +
| %r
  +
| 12-hour time
  +
|-
  +
| %R
  +
| %OH:%OM
  +
| 24-hour time
  +
|-
  +
| %s
  +
| %s
  +
| Unix Time, untranslatable
  +
|-
  +
| %S
  +
| %OS
  +
| Seconds (00-60)
  +
|-
  +
| %t
  +
| %t
  +
| Tab character
  +
|-
  +
| %T
  +
| %OH:%OM:%OS
  +
| Time
  +
|-
  +
| %u
  +
| %Ou
  +
| Weekday number from Monday (1-7)
  +
|-
  +
| %V
  +
| %OV
  +
| Week number of the current year (01-53)
  +
|-
  +
| %w
  +
| %Ow
  +
| Weekday number from Sunday (0-6)
  +
|-
  +
| %x
  +
| %x
  +
| Date
  +
|-
  +
| %X
  +
| %X
  +
| Time
  +
|-
  +
| %y
  +
| %Oy
  +
| Year without century
  +
|-
  +
| %Y
  +
| %OY
  +
| Year
  +
|-
  +
| %z
  +
| %z
  +
| Time zone as an offset from UTC
  +
|-
  +
| %Z
  +
| %Z
  +
| Time zone name or abbreviation
  +
  +
|}

نسخة 11:34، 14 أغسطس 2018

This page for random issues related to Gnome translation

translator_credits

The formate of translators_credits field is different from file to file, this is my proposal to unify it.

فريق عربآيز للترجمة https://www.arabeyes.org :\n
اسم المترجم\t<translator@foo.org>\n
مترجم آخر\t<another_one@foobar.org>
 

The "\t" (tap character) will add a "tap" after translators name, which will help aligning e-mails together to make it look better. The "\n" is (new line character) necessary to start new lines.

Add new translator to the end of the list.

Translators names in Arabic only, the English is not necessary.


  • Agreed. --جهاد 12:51, 21 أكتوبر 2007 (PDT)

Date and Time translation

gnome uses g-date-time-format to localize date and time. It uses special escape modifiers to translate date and time. Here's a table for conversion that you should use when translating to arabic:

Escape Translation Usage
 %a  %A Abbreviated weekday
 %A  %A Weekday
 %b  %b Abbreviated month name
 %B  %B Month Name
 %c  %c System date and time format
 %C  %OC Century
 %d  %Od Day of the month (01-31)
 %e  %Oe Day of the month (1-31)
 %F  %OY-%Om-%Od Date
 %g  %Og Week based year within century
 %G  %OG Week based year
 %h  %h Same as %b
 %H  %OH Hour in 24 (00-23)
 %I  %OI Hour in 12 (01-12)
 %j  %Oj Day of the year (000-366)
 %k  %Ok Hour in 24 (0-23)
 %l  %Ol Hour in 12 (1-12)
 %m  %Om Month (01-12)
 %M  %OM Minute (00-59)
 %p  %p "AM" or "PM" in local ("ص" و "م")
 %P  %P "am" or "pm" in local ("ص" و "م")
 %r  %r 12-hour time
 %R  %OH:%OM 24-hour time
 %s  %s Unix Time, untranslatable
 %S  %OS Seconds (00-60)
 %t  %t Tab character
 %T  %OH:%OM:%OS Time
 %u  %Ou Weekday number from Monday (1-7)
 %V  %OV Week number of the current year (01-53)
 %w  %Ow Weekday number from Sunday (0-6)
 %x  %x Date
 %X  %X Time
 %y  %Oy Year without century
 %Y  %OY Year
 %z  %z Time zone as an offset from UTC
 %Z  %Z Time zone name or abbreviation