diff options
author | Koala Yeung <koalay@gmail.com> | 2017-04-23 11:58:47 +0800 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-23 05:58:47 +0200 |
commit | 6f0b3b069f3ee9a9eceec77666fc124b9695f124 (patch) | |
tree | df91e818ec083c016f105a14b7d7d4d55e96c782 /app/assets/javascripts/components | |
parent | 9cd20a7062b2dad15d5c64b93cab36c1250e6b2a (diff) |
Adding arabic string localization (rebased) (#1895)
* Create ar.jsx * Preparing file for translation. * Create ar.yml * Preparing file for translation. * Create simple_form.ar.yml * Preparing file for translation. * Create devise.ar.yml * Preparing file for translation. * Create doorkeeper.ar.yml * Preparing file for translation. * Update index.jsx Preparing file for translation. * Update mastodon.jsx * Preparing file to translation. * Correction thanks to @Taekiro https://github.com/tootsuite/mastodon/pull/1798#pullrequestreview-32924922 * Update settings_helper.rb Preparing file to translation. * Update application.rb * Preparing file to translation. * Update simple_form.ar.yml * Update doorkeeper.ar.yml * Update devise.ar.yml * Update ar.yml * Fix i18n-tasks unused issue (ar) Remove unused translation strings * Update application.rb * Update ar.jsx * Fix various issues with Arabic translation * Fix duplication caused in merge * Fix syntax error in devise.ar.yml * Fix import error Duplicated incorrect import in mastodon.jsx * Fix duplication error in locales/index.jsx * Update ar.yml * Update ar.jsx * Update ar.yml * Update ar.jsx * Fix ar translation
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r-- | app/assets/javascripts/components/containers/mastodon.jsx | 2 | ||||
-rw-r--r-- | app/assets/javascripts/components/locales/ar.jsx | 72 | ||||
-rw-r--r-- | app/assets/javascripts/components/locales/index.jsx | 2 |
3 files changed, 76 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/containers/mastodon.jsx b/app/assets/javascripts/components/containers/mastodon.jsx index 6aae23b62..e2b91e5dd 100644 --- a/app/assets/javascripts/components/containers/mastodon.jsx +++ b/app/assets/javascripts/components/containers/mastodon.jsx @@ -42,6 +42,7 @@ import Blocks from '../features/blocks'; import Mutes from '../features/mutes'; import Report from '../features/report'; import { IntlProvider, addLocaleData } from 'react-intl'; +import ar from 'react-intl/locale-data/ar'; import en from 'react-intl/locale-data/en'; import de from 'react-intl/locale-data/de'; import eo from 'react-intl/locale-data/eo'; @@ -76,6 +77,7 @@ const browserHistory = useRouterHistory(createBrowserHistory)({ addLocaleData([ ...en, + ...ar, ...de, ...eo, ...es, diff --git a/app/assets/javascripts/components/locales/ar.jsx b/app/assets/javascripts/components/locales/ar.jsx new file mode 100644 index 000000000..f72eb826f --- /dev/null +++ b/app/assets/javascripts/components/locales/ar.jsx @@ -0,0 +1,72 @@ +const ar = { + "column_back_button.label": "العودة الى الوراء", + "lightbox.close": "إغلاق", + "loading_indicator.label": "تحميل ...", + "status.mention": "أذكُر @{name}", + "status.delete": "إحذف", + "status.reply": "ردّ", + "status.reblog": "رَقِّي", + "status.favourite": "Favourite", + "status.reblogged_by": "{name} رقى", + "status.sensitive_warning": "محتوى حساس", + "status.sensitive_toggle": "اضغط للعرض", + "status.show_more": "أظهر المزيد", + "status.show_less": "إعرض أقلّ", + "status.open": "وسع هذه المشاركة", + "status.report": "إبلِغ عن @{name}", + "video_player.toggle_sound": "تبديل الصوت", + "account.mention": "أُذكُر @{name}", + "account.edit_profile": "تعديل الملف الشخصي", + "account.unblock": "إلغاء الحظر عن @{name}", + "account.unfollow": "إلغاء المتابعة", + "account.block": "حظر @{name}", + "account.follow": "إتبع", + "account.posts": "المشاركات", + "account.follows": "يتبع", + "account.followers": "المتابعون", + "account.follows_you": "يتابعك", + "account.requested": "في انتظار الموافقة", + "getting_started.heading": "إستعدّ للبدء", + "getting_started.about_addressing": "يمكنك متابعة الأشخاص إذا كنت تعرف اسم المستخدم الخاص بهم والنطاق الذي هم عليه عن طريق إدخال عنوان شبيه بالبريد الإلكتروني في الحقل المخصص للبحث.", + "getting_started.about_shortcuts": "إذا كان المستخدم المستهدف في نفس النطاق الذي تستخدمه، فإسم المستخدم وحده يكفي. وتنطبق نفس القاعدة على ذكر الأشخاص في المنشورات و التبويقات.", + "getting_started.open_source_notice": "ماستدون برنامج مفتوح المصدر. يمكنك المساهمة، أو الإبلاغ عن تقارير الأخطاء، على GitHub {github}. {apps}.", + "column.home": "الرئيسية", + "column.community": "القائمة الزمنية المحلية", + "column.public": "القائمة الزمنية الفيدرالية", + "column.notifications": "الإشعارات", + "tabs_bar.compose": "تحرير", + "tabs_bar.home": "الرئيسية", + "tabs_bar.mentions": "الإشارات", + "tabs_bar.public": "القائمة الزمنية الفيدرالية", + "tabs_bar.notifications": "الإشعارات", + "compose_form.placeholder": "ماذا يدور في ذهنك ؟", + "compose_form.publish": "بَوِّق", + "compose_form.sensitive": "ضع علامة حساس على الوسائط", + "compose_form.spoiler": "إخفاء النص وراء تحذير", + "compose_form.private": "ضع علامة خاص", + "compose_form.privacy_disclaimer": "Your private status will be delivered to mentioned users on {domains}. Do you trust {domainsCount, plural, one {that server} other {those servers}}? Post privacy only works on Mastodon instances. If {domains} {domainsCount, plural, one {is not a Mastodon instance} other {are not Mastodon instances}}, there will be no indication that your post is private, and it may be boosted or otherwise made visible to unintended recipients.", + "compose_form.unlisted": "لا تعرض على الخيوط الزمنية العامة", + "navigation_bar.edit_profile": "تعديل الملف الشخصي", + "navigation_bar.preferences": "التفضيلات", + "navigation_bar.community_timeline": "القائمة الزمنية المحلية", + "navigation_bar.public_timeline": "القائمة الزمنية الفيدرالية", + "navigation_bar.logout": "خروج", + "reply_indicator.cancel": "إلغاء", + "search.placeholder": "ابحث", + "search.account": "حساب", + "search.hashtag": "وسم", + "upload_button.label": "إضافة وسائط", + "upload_form.undo": "إلغاء", + "notification.follow": "{name} يتبعك", + "notification.favourite": "{name} أعجب بمنشورك", + "notification.reblog": "{name} قام بترقية تبويقك", + "notification.mention": "{name} ذكرك", + "notifications.column_settings.alert": "إشعارات سطح المكتب", + "notifications.column_settings.show": "إعرِضها في عمود", + "notifications.column_settings.follow": "متابعُون جُدُد :", + "notifications.column_settings.favourite": "المُفَضَّلة :", + "notifications.column_settings.mention": "الإشارات :", + "notifications.column_settings.reblog": "الترقيّات:", +}; + +export default ar; diff --git a/app/assets/javascripts/components/locales/index.jsx b/app/assets/javascripts/components/locales/index.jsx index 14c76ea23..9bda9a83e 100644 --- a/app/assets/javascripts/components/locales/index.jsx +++ b/app/assets/javascripts/components/locales/index.jsx @@ -1,3 +1,4 @@ +import ar from './ar'; import en from './en'; import de from './de'; import es from './es'; @@ -22,6 +23,7 @@ import bg from './bg'; import id from './id'; const locales = { + ar, en, de, es, |