Skip to content

Commit

Permalink
Merge pull request #2029 from zz9pzza/issue_4243
Browse files Browse the repository at this point in the history
issue 4243 : Use default yml parser, updating locale default file to latest version
  • Loading branch information
elzj committed Mar 1, 2015
2 parents aea9bd2 + 324c759 commit bf849df
Show file tree
Hide file tree
Showing 82 changed files with 12,673 additions and 4,940 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -27,6 +27,7 @@ gem "lograge" # https://github.com/roidrage/lograge
gem 'will_paginate', '>=3.0.2'
gem 'acts_as_list'
gem 'akismetor'
gem 'psych'

gem 'httparty'
gem 'htmlentities'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -217,6 +217,7 @@ GEM
method_source (~> 0.8)
slop (~> 3.4)
win32console (~> 1.3)
psych (2.0.12)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
Expand Down Expand Up @@ -410,6 +411,7 @@ DEPENDENCIES
phrase
pickle
pry
psych
rack-dev-mark
rails (= 3.2.18)
redis (>= 3.0)
Expand Down
1 change: 0 additions & 1 deletion config/boot.rb
@@ -1,6 +1,5 @@
require 'rubygems'
require 'yaml'
YAML::ENGINE.yamler = 'syck'

# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
Expand Down
255 changes: 179 additions & 76 deletions config/locales/ar.yml
@@ -1,121 +1,224 @@
# Arabic translations for Ruby on Rails
# Arabic translations for Ruby on Rails
# by Rida Al Barazi (me@rida.me)
# updated by Ahmed Hazem (nardgo@gmail.com)
# Rails 3 edit by rbjarnason

ar:
"ar":
date:
formats:
default: "%Y-%m-%d"
short: "%e %b"
long: "%B %e, %Y"

day_names: [الأحد, الإثنين, الثلاثاء, الأربعاء, الخميس, الجمعة, السبت]
abbr_day_names: [الأحد, الإثنين, الثلاثاء, الأربعاء, الخميس, الجمعة, السبت]
month_names: [~, يناير, فبراير, مارس, ابريل, مايو, يونيو, يوليو, اغسطس, سبتمبر, اكتوبر, نوفمبر, ديسمبر]
abbr_month_names: [~, يناير, فبراير, مارس, ابريل, مايو, يونيو, يوليو, اغسطس, سبتمبر, اكتوبر, نوفمبر, ديسمبر]
order: [ :day, :month, :year ]

day_names:
- الأحد
- الإثنين
- الثلاثاء
- الأربعاء
- الخميس
- الجمعة
- السبت
abbr_day_names:
- الأحد
- الإثنين
- الثلاثاء
- الأربعاء
- الخميس
- الجمعة
- السبت

month_names:
- ~
- يناير
- فبراير
- مارس
- ابريل
- مايو
- يونيو
- يوليو
- اغسطس
- سبتمبر
- اكتوبر
- نوفمبر
- ديسمبر
abbr_month_names:
- ~
- يناير
- فبراير
- مارس
- ابريل
- مايو
- يونيو
- يوليو
- اغسطس
- سبتمبر
- اكتوبر
- نوفمبر
- ديسمبر
order:
- :day
- :month
- :year

time:
formats:
default: "%a %b %d %H:%M:%S %Z %Y"
short: "%d %b %H:%M"
long: "%B %d, %Y %H:%M"
only_second: "%S"

datetime:
formats:
default: "%Y-%m-%dT%H:%M:%S%Z"

am: 'صباحا'
pm: 'مساءا'

# Used in array.to_sentence.
support:
array:
sentence_connector: "و"
skip_last_comma: false

words_connector: ", "
two_words_connector: " و "
last_word_connector: ", و "

select:
prompt: "الرجاء اختيار"

number:
format:
separator: "."
delimiter: ","
precision: 3
significant: false
strip_insignificant_zeros: false

currency:
format:
format: "%u%n"
unit: "$"
separator: "."
delimiter: ","
precision: 2
significant: false
strip_insignificant_zeros: false

percentage:
format:
delimiter: ""

precision:
format:
delimiter: ""

human:
format:
delimiter: ""
precision: 3
significant: true
strip_insignificant_zeros: true
storage_units:
format: "%n %u"
units:
byte:
one: "Byte"
other: "Bytes"
kb: "KB"
mb: "MB"
gb: "GB"
tb: "TB"
decimal_units:
format: "%n %u"
units:
unit: ""
thousand: ألف
million: مليون
billion: مليار
trillion: تريليون
quadrillion: الكدريليون رقم

datetime:
distance_in_words:
half_a_minute: 'نصف دقيقة'
less_than_x_seconds:
one: 'أقل من ثانية'
other: '{{count}} ثوان'
other: '%{count} ثوان'
x_seconds:
one: 'ثانية واحدة'
other: '{{count}} ثوان'
other: '%{count} ثوان'
less_than_x_minutes:
one: 'أقل من دقيقة'
other: '{{count}} دقائق'
other: '%{count} دقائق'
x_minutes:
one: 'دقيقة واحدة'
other: '{{count}} دقائق'
other: '%{count} دقائق'
about_x_hours:
one: 'حوالي ساعة واحدة'
other: '{{count}} ساعات'
other: '%{count} ساعات'
x_days:
one: 'يوم واحد'
other: '{{count}} أيام'
other: '%{count} أيام'
about_x_months:
one: 'حوالي شهر واحد'
other: '{{count}} أشهر'
other: '%{count} أشهر'
x_months:
one: 'شهر واحد'
other: '{{count}} أشهر'
other: '%{count} أشهر'
about_x_years:
one: 'حوالي سنة'
other: '{{count}} سنوات'
other: '%{count} سنوات'
over_x_years:
one: 'أكثر من سنة'
other: '{{count}} سنوات'

number:
format:
separator: '.'
delimiter: ','
precision: 3
human:
format:
delimiter: ','
precision: 1
currency:
format:
separator: '.'
delimiter: ','
precision: 2
format: '%u %n'
unit: '$'
percentage:
format:
delimiter: ','
precision:
format:
delimiter: ','

other: '%{count} سنوات'
almost_x_years:
one: "تقريبا سنة واحدة"
other: "ما يقرب من %{count} سنة"
prompts:
year: "السنة"
month: "الشهر"
day: "اليوم"
hour: "ساعة"
minute: "دقيقة"
second: "ثانية"

helpers:
select:
prompt: "الرجاء اختيار"

submit:
create: "%{model} إنشاء"
update: "%{model} نموذج"
submit: "%{model} حفظ"

errors:
format: "%{attribute} %{message}"

messages: &errors_messages
inclusion: "ليس خيارا مقبولا"
exclusion: "محجوز"
invalid: "غير معرف أو محدد"
confirmation: "لا تتوافق مع التأكيد"
accepted: "يجب أن تقبل"
empty: "فارغ، يرجى ملء الحقل"
blank: "فارغ، يرجى ملء الحقل"
too_long: "أطول من اللازم (الحد الأقصى هو %{count})"
too_short: "أقصر من اللازم (الحد الأدنى هو %{count})"
wrong_length: "بطول غير مناسب (يجب أن يكون %{count})"
not_an_integer: "يجب أن يكون صحيحا"
not_a_number: "ليس رقما"
greater_than: "يجب أن يكون أكبر من %{count}"
greater_than_or_equal_to: "يجب أن يكون أكبر من أو يساوي %{count}"
equal_to: "يجب أن يساوي %{count}"
less_than: "يجب أن يكون أصغر من %{count}"
less_than_or_equal_to: "يجب أن يكون أصغر من أو يساوي %{count}"
odd: "يجب أن يكون فردي"
even: "يجب أن يكون زوجي"
taken: "غير متوفر (مستخدم)"
record_invalid: "%{errors} فشل التحقق من صحة"
template: &errors_template
header:
one: "ليس بالامكان حفظ %{model}: خطأ واحد."
other: "ليس بالامكان حفظ %{model}: %{count} أخطاء."
body: "يرجى التحقق من الحقول التالية:"

activerecord:
errors:
template:
header:
one: "ليس بالامكان حفظ {{model}}: خطأ واحد."
other: "ليس بالامكان حفظ {{model}}: {{count}} أخطاء."
body: "يرجى التحقق من الحقول التالية:"
messages:
inclusion: "ليس خيارا مقبولا"
exclusion: "محجوز"
invalid: "غير معرف أو محدد"
confirmation: "لا تتوافق مع التأكيد"
accepted: "يجب أن تقبل"
empty: "فارغ، يرجى ملء الحقل"
blank: "فارغ، يرجى ملء الحقل"
too_long: "أطول من اللازم (الحد الأقصى هو {{count}})"
too_short: "أقصر من اللازم (الحد الأدنى هو {{count}})"
wrong_length: "بطول غير مناسب (يجب أن يكون {{count}})"
taken: "غير متوفر (مستخدم)"
not_a_number: "ليس رقما"
greater_than: "يجب أن يكون أكبر من {{count}}"
greater_than_or_equal_to: "يجب أن يكون أكبر من أو يساوي {{count}}"
equal_to: "يجب أن يساوي {{count}}"
less_than: "يجب أن يكون أصغر من {{count}}"
less_than_or_equal_to: "يجب أن يكون أصغر من أو يساوي {{count}}"
odd: "يجب أن يكون فردي"
even: "يجب أن يكون زوجي"
<<: *errors_messages
template:
<<: *errors_template

full_messages:
format: "%{attribute} %{message}"

0 comments on commit bf849df

Please sign in to comment.